You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
412 KiB
150 lines
412 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5888],{26227:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},41464:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},61481:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},33853:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},12893:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},32134:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},38819:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return je}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(Ne,Te){return Pe.createElement(Se.Z,(0,ne.Z)({},Ne,{ref:Te,icon:Me}))},se=Pe.forwardRef(Fe),je=se},96408:function(ze,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},9749:function(ze,ot,oe){"use strict";var ne=oe(59301),Pe=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Fe=($e,Ne,Te)=>Ne in $e?Pe($e,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):$e[Ne]=Te,se=($e,Ne)=>{for(var Te in Ne||(Ne={}))Me.call(Ne,Te)&&Fe($e,Te,Ne[Te]);if(Xe)for(var Te of Xe(Ne))Se.call(Ne,Te)&&Fe($e,Te,Ne[Te]);return $e};const je=$e=>React.createElement("svg",se({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},$e),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));ot.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},25863:function(){"use strict";function ze(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ze.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(ze.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(ze.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var ot=[];function oe(ae,a){var y=ot.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=ot.pop();return ae===void 0?new go.Point:ae}function Pe(ae){ot.push(ae)}function Xe(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ue=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ue=a);else{var le=(x-ee)/ie,be=x-le*b;ge=ae,ue=le*ge+be}else if(ie===0){var Ge=(a-E)/re,ut=a-Ge*ae;ge=b,ue=Ge*ge+ut}else{var Ge=(a-E)/re,le=(x-ee)/ie,ut=a-Ge*ae,be=x-le*b;ge=(be-ut)/(Ge-le),ue=Ge*ge+ut}return te.x=ge,te.y=ue,te}function Me(ae,a,y,E,b,x,z,ee,te,re,ie,ge,ue,le){var be=1-te,Ge=te,ut=ae*be+y*Ge,rt=a*be+E*Ge,St=y*be+b*Ge,me=E*be+x*Ge,Oe=b*be+z*Ge,Be=x*be+ee*Ge,ke=ut*be+St*Ge,qe=rt*be+me*Ge,gt=St*be+Oe*Ge,it=me*be+Be*Ge,ct=ke*be+gt*Ge,yt=qe*be+it*Ge;re.x=ut,re.y=rt,ie.x=ke,ie.y=qe,ge.x=ct,ge.y=yt,ue.x=gt,ue.y=it,le.x=Oe,le.y=Be}var Se=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=Se,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var je=[];function $e(){var ae=je.pop();return ae===void 0?[]:ae}function Ne(ae){ae.length=0,je.push(ae)}function Te(ae){for(var a=$e(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function He(ae){var a=Re(ae),y=$e();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Ne(a),y}function Re(ae){for(var a=Te(ae),y=$e(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Xe(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],Ne(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Te(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Te(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Te(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Te(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Te(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Te(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Te(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ne(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=He(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ne(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=He(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ne(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=He(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=He(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=He(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=He(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ne(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=Se,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=se*.4;var re=ne(),ie=ne(),ge=ne(),ue=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ue,ue);var le=ne(),be=ne(),Ge=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ue,ue,Ge,le,be);var ut=ne(),rt=ne(),St=ne();Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ut,rt,St,ue,ue);var me=ne(),Oe=ne(),Be=ne();return Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ue,ue,Be,me,Oe),te.add(new go.PathSegment(go.PathSegment.Move,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,me.x*a,me.y*y,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,St.x*a,St.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,be.x*a,be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,St.x*a,St.y*y,ut.x*a,ut.y*y,rt.x*a,rt.y*y).close()),Pe(re),Pe(ie),Pe(ge),Pe(ue),Pe(le),Pe(be),Pe(Ge),Pe(ut),Pe(rt),Pe(St),Pe(me),Pe(Oe),Pe(Be),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),ue=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var le=oe(re.x,re.y);Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var be=oe(re.x,re.y);ue.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,(be.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,be.x*a,be.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=se*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ut=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ut),Pe(te),Pe(re),Pe(ie),Pe(ge),Pe(le),Pe(be),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*se;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Pe(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Pe(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Xe(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Xe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Xe(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Pe(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Pe(ge),re}),go.Shape.setFigureParameter("Pointer",0,new ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,ue=se*ge;te=.05,re=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+ue)*a,(re-ge)*y,(te+ge)*a,(re-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ue=se*ge,te=.825,re=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ue=se*ge,te=.5,re=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ue=se*ge,te=.175,re=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ue=se*ge,te=.05,re=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-ue)*y,(te-ue)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,ue=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=se*.4,ee=.4,te=.2,re=.5;var le=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=se*.2,ee=.2,te=.5,re=.5;var be=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=se*.4,ee=.4,te=.8,re=.5;var Ge=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=se*.8,ee=.8,te=1,re=.5;var ut=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var ue=oe(re.x,re.y),le=new go.PathFigure(re.x*a,re.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=se*.3,x=.3,Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),le.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),le.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(te),Pe(re),Pe(ie),Pe(ge),Pe(ue),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ue=.5,le=0,be=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ue=z,le=z,be=ie*ue,Ge=ie*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(be+ue)/2)*a,(te+(le+Ge)/2)*y,(ee-ue)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-ue)*a,(te-Ge)*y,(ee-be)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+be)*a,(te-le)*y,(ee+ue)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+Ge)*y,(ee+(be+ue)/2)*a,(te+(le+Ge)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ut=new go.PathFigure(.2*a,y,!1);E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var rt=new go.PathFigure(.8*a,y,!1);return E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=se*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=se*.1,ie=.1,ge=.9,ue=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=se*.1,ie=.4,ge=.9;var le=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=se*.05,ue=.175,le=.95,ee=new go.PathFigure((ue-ie)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,le*y,(ue+ge)*a,(le-ie)*y,(ue+ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,le*y,(ue-ge)*a,(le+ie)*y,(ue-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,ue=.375,le=.95,te=new go.PathFigure((ue-ie)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,le*y,(ue+ge)*a,(le-ie)*y,(ue+ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,le*y,(ue-ge)*a,(le+ie)*y,(ue-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,ue=.625,le=.95,re=new go.PathFigure((ue-ie)*a,le*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,le*y,(ue+ge)*a,(le-ie)*y,(ue+ie)*a,(le-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,le*y,(ue-ge)*a,(le+ie)*y,(ue-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,ue=.825,le=.95,be=new go.PathFigure((ue-ie)*a,le*y,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,le*y,(ue+ge)*a,(le-ie)*y,(ue+ie)*a,(le-ge)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,le*y,(ue-ge)*a,(le+ie)*y,(ue-ie)*a,(le+ge)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=se*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=se*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*se,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ze={},ot="5.0",oe={},ne=null,Pe=!1,Xe=!1,Me=null,Se=!1,Fe=null,se=null,je=0;je<arguments.length;je++){var $e=arguments[je];if($e!==null)switch(typeof $e){case"number":ot=$e.toFixed(1);break;case"string":$e.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=$e:Me=$e;break;case"object":typeof $e.is3D!="undefined"?ne=$e:oe=$e;break;case"boolean":Pe=$e,Xe=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Xe&&(Pe=!0)),Me!==null&&oe.id===void 0&&(oe.id=Me);var Ne="",Te="",He=!1,Re=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(he){return parseFloat(he)>4?parseFloat(he):5};ze.setHTML5Codebase=function(he,Ee){se=he,it(he,Ee)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(he,Ee){var Ke=parseFloat(he);if(Ke!==NaN&&Ke<5){console.log("The GeoGebra HTML5 codebase version "+Ke+" is deprecated. Using version latest instead.");return}Fe=he,gt(he,Ee)},ze.getHTML5CodebaseVersion=function(){return ae},ze.getParameters=function(){return oe},ze.setFontsCSSURL=function(he){z=he},ze.setGiacJSURL=function(he){},ze.setJNLPFile=function(he){Ne=he},ze.setJNLPBaseDir=function(he){},ze.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Ke=oe.id,ht,Qe=!1,Pt=0;Pt<arguments.length;Pt++){var de=arguments[Pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Ke=arguments[Pt]):typeof de=="boolean"?Qe=de:de instanceof HTMLElement&&(ht=de)}Je();function Je(){if(!Se){setTimeout(Je,200);return}Ee=ke(Ee);var dt=ht||document.getElementById(Ke);if(!dt){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet(dt,!1),oe.width===void 0&&dt.clientWidth&&(oe.width=dt.clientWidth),oe.height===void 0&&dt.clientHeight&&(oe.height=dt.clientHeight),!(oe.width&&oe.height)&&Ee==="html5"&&(delete oe.width,delete oe.height),Re=Ee,Ee==="screenshot")rt(dt,oe);else{var Ot=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Ot=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Ot=(!re()||he())&&ie()),Ot?(Re="screenshot",me(dt,oe,Qe,Ee)):ut(dt,oe,Qe)}}};function re(){try{return window.self!==window.top}catch(he){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return ne},ze.isJavaInstalled=function(){return!1};var ge=function(he){var Ee=function(Pt){var de=JSON.parse(Pt),Je=function(xt){return xt.type=="G"||xt.type=="E"},dt=de.elements?de.elements.filter(Je)[0]:de;if(!dt||!dt.url){Ke();return}oe.fileName=dt.url,ue(dt.settings||{}),ne.is3D=!0;var Ot="https://www.geogebra.org/images/";ze.setPreviewImage(E||dt.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),he()},Ke=function(){oe.onError&&oe.onError(),ct("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ht=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+oe.material_id+"?scope=basic";le("https://"+ht+"/api/proxy.php?path="+encodeURIComponent(Qe),Ee,Ke)};function ue(he){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ke){he[Ke]=!!he[Ke]}),Ee.forEach(function(Ke){oe[Ke]===void 0&&he[Ke]!==void 0&&(oe[Ke]=he[Ke])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function le(he,Ee,Ke){var ht=new XMLHttpRequest;ht.open("GET",he),ht.onload=function(){Ee(ht.responseText)},ht.onerror=Ke,ht.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return Re},ze.setPreviewImage=function(he,Ee,Ke){E=he,b=Ee,x=Ke},ze.removeExistingApplet=function(he,Ee){var Ke;typeof he=="string"&&(he=document.getElementById(he)),Re=null;var ht=null;for(Ke=0;Ke<he.childNodes.length;Ke++){var Qe=he.childNodes[Ke],Pt=Qe.className;Pt==="applet_screenshot"?Ee?(Qe.style.display="block",Re="screenshot"):Qe.style.display="none":Pt!=="applet_scaler prerender"&&(he.removeChild(Qe),ht=Pt&&Pt.indexOf("appletParameters")!=-1?Qe.id:null,Ke--)}var de=oe.id!==void 0?oe.id:ht,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},ze.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=ze.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var he=ze.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},ze.stopAnimation=function(){var he=ze.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},ze.getAppletObject=function(){var he=oe.id!==void 0?oe.id:"ggbApplet";return window[he]},ze.resize=function(){};var be=function(he,Ee,Ke){var ht=document.createElement("param");ht.setAttribute("name",Ee),ht.setAttribute("value",Ke),he.appendChild(ht)},Ge=function(he){return he&&he!=="false"},ut=function(he,Ee,Ke){te(ae)<=4.2&&(Ke=!0);var ht=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ht=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var Pt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(te(ae)<=4.4)Ge(Ee.showToolBar)&&(Ee.height-=7),Ge(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&Ge(Ee.showToolBar)&&(Ee.width=605,Pt=605);else{var Je=100;(Ge(Ee.showToolBar)||Ge(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),Je=Ge(Ee.showMenuBar)?245:155),Pt<Je&&(Ee.width=Je,Pt=Je)}Qe.style.border="none",Qe.style.display="inline-block";for(var dt in Ee)Ee.hasOwnProperty(dt)&&dt!=="appletOnLoad"&&Qe.setAttribute("data-param-"+dt,Ee[dt]);z&&Qe.setAttribute("data-param-fontscssurl",z),ze.resize=function(){GGBAppletUtils.responsiveResize(he,Ee)},window.addEventListener("resize",function(Ct){ze.resize()});var Ot=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Ke&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var xt=he.querySelector(".applet_scaler.prerender"),Ce=xt!==null;if(Ce)var ve=xt.querySelector(".ggb_preview");else{var ve=Be(Pt,de,Ee.borderColor,!1);xt=document.createElement("div"),xt.className="applet_scaler",xt.style.position="relative",xt.style.display="block",xt.style.width=Pt+"px",xt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xt,"66%"),te(ae)>=5?(Ee.appletOnLoad=function(Ct){var jt=he.querySelector(".ggb_preview");jt&&jt.parentNode.removeChild(jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(Ct)},Ce||xt.appendChild(ve)):Qe.appendChild(ve),xt.appendChild(Qe),Ce||he.appendChild(xt),setTimeout(function(){ze.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Qe),he.appendChild(fe),Ee.appletOnLoad=function(Ct){ze.resize(),Ot(Ct)}}function We(Ct,jt){jt&&typeof jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ct,jt.appletOnLoad):renderGGBElement(Ct),ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jt)}function _e(Ct,jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ct,params:jt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gt){We(Gt.article,Gt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Ct.className+=" geogebraweb")):We(Ct,jt)}if(ht){scriptLoadStarted=!0;for(var st=0;st<Qe.childNodes.length;st++){var Ft=Qe.childNodes[st].tagName;Ft==="TABLE"&&(Qe.removeChild(Qe.childNodes[st]),st--)}if(ggbHTML5LoadedScript!==null){var bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');bt!=null&&bt.parentNode.removeChild(bt)}var Mt=document.createElement("script"),It=function(){_e(Qe,Ee)};Mt.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Mt.src,ct("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Ee),!se&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),It()):Te.requirejs?__webpack_require__.e(3861).then(function(){var Ct=[__webpack_require__(40341)];It.apply(null,Ct)}.bind(this)).catch(__webpack_require__.oe):(Mt.onload=It,he.appendChild(Mt))}else _e(Qe,Ee);Ee.height=de,Ee.width=Pt},rt=function(he,Ee,Ke){var ht=Be(Ee.width,Ee.height,Ee.borderColor,Ke),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Ee.width+"px",Qe.style.height=Ee.height+"px",Qe.className="applet_screenshot applet_scaler"+(Ke?" applet_screenshot_play":""),Qe.appendChild(ht);var Pt=GGBAppletUtils.getScale(Ee,he,Ke);Ke?(he.appendChild(Oe()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),he.appendChild(Qe),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(Qe,Pt),Qe.style.width=Ee.width+"px",Qe.style.height=Ee.height+"px",Qe.parentNode.style.width=Ee.width*Pt+"px",Qe.parentNode.style.height=Ee.height*Pt+"px"),ze.resize=function(){St(he,ht,Qe,Ke)},window.addEventListener("resize",function(de){ze.resize()}),ze.resize()};function St(he,Ee,Ke,ht){if(he.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Qe=GGBAppletUtils.getScale(oe,he,ht);Ke.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Ke,Qe),Ke.parentNode.style.width=oe.width*Qe+"px",Ke.parentNode.style.height=oe.height*Qe+"px"):(GGBAppletUtils.scaleElement(Ke,1),Ke.parentNode.style.width=oe.width+"px",Ke.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(he,Ee){Ee.appendChild(he)};var me=function(he,Ee,Ke,ht){rt(he,Ee,!0);for(var Qe=function(){var Je=[];for(de=0;de<he.childNodes.length;de++)Je.push(he.childNodes[de]);if(window.GGBT_wsf_view){var dt=window.GGBT_wsf_view.renderFullScreen(he,Ee.id),Ot=document.getElementById("fullscreencontainer"),xt=jQuery(he).find(".fullscreencontent");xt.length>0?(dt.remove(),xt.attr("id","fullscreencontent").show(),jQuery(Ot).append(xt),window.dispatchEvent(new Event("resize"))):ut(dt,Ee,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else Re=ht,ut(he,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)he.removeChild(Je[de])},Pt=he.getElementsByClassName("ggb_preview_play"),de=0;de<Pt.length;de++)Pt[de].addEventListener("click",Qe,!1),Pt[de].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var he=document.createElement("div");if(he.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ke=document.createElement("style");Ke.styleSheet?Ke.styleSheet.cssText=Ee:Ke.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Ke)}return he},Be=function(he,Ee,Ke,ht){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=he-2+"px",Qe.style.height=Ee-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var Pt="lightgrey";Ke!==void 0&&(Ke==="none"?Pt="transparent":Pt=Ke),Qe.style.border="1px solid "+Pt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Je,dt,Ot;if(!ht){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,dt=360,dt>he/4*3&&(dt=he/4*3),Ot=dt/5.8,Je.setAttribute("src",b),Je.setAttribute("width",dt),Je.setAttribute("height",Ot);var xt=(he-dt)/2,Ce=(Ee-Ot)/2;Je.style.left=xt+"px",Je.style.top=Ce+"px",Qe.appendChild(Je)}}return Qe.appendChild(de),Qe},ke=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],gt=function(he,Ee){if(ae=he,Ee){it(ae,!0);return}var Ke=!Pe;if(Ke){var ht=te(ae);!isNaN(ht)&&ht<4.4&&(Ke=!1)}var Qe,Pt;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var de=ae.indexOf("//");de>0?Pt=ae:de===0?Pt=Qe+ae:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in qe)if(ae.slice(qe[Je].length*-1)===qe[Je]||ae.slice((qe[Je].length+1)*-1)===qe[Je]+"/"){it(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ke&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ge(oe.showToolBar)&&!Ge(oe.showMenuBar)&&!Ge(oe.showAlgebraInput)&&!Ge(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",it(Pt,!1)},it=function(he,Ee){if(he.requirejs){Te=he;return}he.slice(-1)!=="/"&&(he+="/"),Te=he,Ee===null&&(Ee=he.indexOf("http")===-1),He=Ee,a="web.nocache.js",y=!1;var Ke=Te.split("/");Ke.length>1&&(!Ee&&Ke[Ke.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):qe.indexOf(Ke[Ke.length-2])>=0&&(a=Ke[Ke.length-2]+".nocache.js")),Ke=he.split("/"),ae=Ke[Ke.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var ht=parseFloat(ae);ht!==NaN&&ht<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead."),gt("5.0",Ee))},ct=function(he,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(he)};oe.material_id!==void 0?ge(yt):yt();function yt(){var he=ot;Fe!==null?he=Fe:parseFloat(he)<5&&(he="5.0"),gt(he,!1),se!==null&&it(se,He),Se=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function ot(Se,Fe){Fe!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Fe+","+Fe+")",Se.style.webkitTransform="scale("+Fe+","+Fe+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function oe(Se,Fe,se,je,$e,Ne){var Te=null;if(Ne!=null&&Ne!="")for(var He=Se.parentNode;He!=null;)if((" "+He.className+" ").indexOf(" "+Ne+" ")>-1){Te=He;break}else He=He.parentNode;var Re=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Te)Re=Te.offsetWidth,ae=Math.max(je?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Re&&($e===void 0||!$e)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((se===void 0||!se)&&Fe>0&&Fe+y<Re?Re=Fe:Re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=x)),{width:Re,height:ae}}function ne(Se,Fe,se,je,$e){if(Se.isScreenshoGenerator)return 1;var Ne=je!==void 0&&je,Te=Se.noScaleMargin!=null&&Se.noScaleMargin,He=function(ee){return ee&&ee!=="false"},Re=He(Se.autoHeight),ae=oe(Fe,Se.width,se,Re,Ne&&window.GGBT_wsf_view||Te,$e),a=parseInt(ae.width),y=Se.width,E=Se.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ne?1:ae.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(Se,Fe,se){var je=1,$e,Ne=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ne=Se.allowUpscale),Se.hasOwnProperty("scale")&&(je=parseFloat(Se.scale),(isNaN(je)||je===null||je===0)&&(je=1),je>1&&(Ne=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))$e=ne(Se,Fe,Ne,se,Se.scaleContainerClass);else return je;return Ne&&(!Se.hasOwnProperty("scale")||je===1)?$e:Math.min(je,$e)}function Xe(Se){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),je=Se.getBoundingClientRect(),$e=(Fe-je.width)/2,Ne=(se-je.height)/2;Ne<0&&(Ne=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?($e<40?Se.style.left="40px":Se.style.left=$e+"px",Se.style.top=Ne+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne<40?Se.style.top="40px":Se.style.top=Ne+"px",Se.style.left=$e+"px")}function Me(Se,Fe){var se=Se.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var je=Pe(Fe,Se);ze()&&se.setAttribute("data-param-scale",je);for(var $e=null,Ne=0;Ne<Se.childNodes.length;Ne++)if(Se.childNodes[Ne].className!==void 0&&Se.childNodes[Ne].className.match(/^applet_scaler/)){$e=Se.childNodes[Ne];break}if($e!==null&&$e.querySelector(".noscale")!==null)return;var Te=Fe.id!==void 0?Fe.id:"ggbApplet",He=window[Te];(He==null||!He.recalculateEnvironments)&&$e!==null&&!$e.className.match(/fullscreen/)&&($e.parentNode.style.transform="",!isNaN(je)&&je!==1?($e.parentNode.style.width=Fe.width*je+"px",$e.parentNode.style.height=Fe.height*je+"px",ot($e,je)):(ot($e,1),$e.parentNode.style.width=Fe.width+"px",$e.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:ze,positionCenter:Xe,getScale:Pe,scaleElement:ot}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,ot){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ze){var ot=s[L].bindings;s[L].bindings=function(){for(var oe=ot?ot():{},ne=ze[webModule.__softPermutationId],Pe=O;Pe<ne.length;Pe++){var Xe=ne[Pe];oe[Xe[O]]=Xe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(ze){function ot(ne){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=Pe();if(Xe){ne();return}function Me(){if(!Xe){if(!Pe())return;Xe=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var Se=setInterval(function(){Me()},$)}function oe(ne){var Pe=u(),Xe=Pe.body,Me=Pe.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=ne,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Xe.appendChild(Me)}ot(function(){oe(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var ot=u(),oe=ot.body,ne=ot.createElement(_);ne.language=ab,ne.text=ze,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var ot=c[ze];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function ze(Se){var Fe=Se.lastIndexOf(rb);Fe==-1&&(Fe=Se.length);var se=Se.indexOf(sb);se==-1&&(se=Se.length);var je=Se.lastIndexOf(tb,Math.min(se,Fe));return je>=O?Se.substring(O,je+P):W}function ot(Se){if(!Se.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=Se+vb,Se=ze(Fe.src)}return Se}function oe(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ne(){for(var Se=o.getElementsByTagName(_),Fe=O;Fe<Se.length;++Fe)if(Se[Fe].src.indexOf(xb)!=-1)return ze(Se[Fe].src);return W}function Pe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Xe(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Me=oe();return Me==W&&(Me=ne()),Me==W&&(Me=Pe()),Me==W&&Xe()&&(Me=ze(o.location.href)),Me=ot(Me),Me}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],ot=O,oe=[],ne=[];function Pe(Se){var Fe=ne[Se](),se=oe[Se];if(Fe in se)return Fe;var je=[];for(var $e in se)je[se[$e]]=$e;throw r&&r(Se,je,Fe),null}if(__gwt_isKnownPropertyValue=function(Se,Fe){return Fe in oe[Se]},webModule.__getPropMap=function(){var Se={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(Se[Fe]=Pe(Fe));return Se},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Me=Xe.indexOf(Db);Me!=-1&&(ot=parseInt(Xe.substring(Me+P),$),Xe=Xe.substring(O,Me))}catch(Se){}return webModule.__softPermutationId=ot,C(Xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(ze,ot,oe){"use strict";oe.d(ot,{Ax:function(){return Me},Ds:function(){return Se},KI:function(){return se},SI:function(){return Xe},f1:function(){return Pe}});var ne=oe(74128);function Pe(je){let $e=!0;if(je.length>0){for(let Ne=0;Ne<je.length;Ne++)if(je[Ne].compile_success==0||!je[Ne].compile_success){$e=!1;break}}else $e=!1;return $e}function Xe(je,$e=""){let Ne=[];for(let Te=0;Te<je.length;Te++){let He=je[Te],Re=$e?`${$e}/${He.name}`:`${He.name}`;Ne.push({title:He.name,type:He.type,isLeaf:He.type!=="tree",key:Re})}return Ne}function Me(je,$e,Ne){for(let Te=0;Te<je.length;Te++){let He=je[Te];if(He.key===$e){He.children=Ne;break}He.children&&Me(He.children,$e,Ne)}return je}function Se(je,$e,Ne){let Te;return function(){let He=this,Re=arguments,ae=function(){Te=null,Ne||je.apply(He,Re)},a=Ne&&!Te;clearTimeout(Te),Te=setTimeout(ae,$e),a&&je.apply(He,Re)}}const Fe=!0,se=ne.Z.API_SERVER},22031:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return St}});var ne=oe(59301),Pe=oe(65582),Xe=oe(24905),Me=oe(12893),Se=oe(32134),Fe=oe(38147),se=oe(78241),je=oe(57809),$e={},Ne=Object.defineProperty,Te=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ae=(me,Oe,Be)=>Oe in me?Ne(me,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):me[Oe]=Be,a=(me,Oe)=>{for(var Be in Oe||(Oe={}))He.call(Oe,Be)&&ae(me,Be,Oe[Be]);if(Te)for(var Be of Te(Oe))Re.call(Oe,Be)&&ae(me,Be,Oe[Be]);return me},y=(me,Oe,Be)=>new Promise((ke,qe)=>{var gt=yt=>{try{ct(Be.next(yt))}catch(he){qe(he)}},it=yt=>{try{ct(Be.throw(yt))}catch(he){qe(he)}},ct=yt=>yt.done?ke(yt.value):Promise.resolve(yt.value).then(gt,it);ct((Be=Be.apply(me,Oe)).next())});const E=Xe.default.Group,b=({classroomList:me,loading:Oe,user:Be,exercise_id:ke=null,homework_common_id:qe=null,setitem:gt,item:it,type:ct,rz:yt,dispatch:he})=>{var Ee,Ke,ht,Qe,Pt,de,Je,dt;const[Ot,xt]=(0,ne.useState)([]);let[Ce,ve]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const fe=(0,Pe.useParams)(),[We,_e]=(0,ne.useState)(!1),[st,Ft]=(0,ne.useState)(!1),[bt]=se.default.useForm();(0,ne.useEffect)(()=>{yt&&(Ce.zydatas=yt,ve(a({},Ce)),it!=null&&it.ec_course_id&&Mt())},[it,yt]);function Mt(){return y(this,null,function*(){console.log("----",it),yield It(it==null?void 0:it.ec_major_school_id),yield Ct(it==null?void 0:it.ec_year_id),yield jt(it==null?void 0:it.ec_course_id),bt.setFieldsValue({ec_course_id:it==null?void 0:it.ec_course_id,ec_major_school_id:it==null?void 0:it.ec_major_school_id,ec_point_ids:it==null?void 0:it.ec_point_ids,ec_year_id:it==null?void 0:it.ec_year_id})})}function It(Gt){return y(this,null,function*(){const Vt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Gt}/ec_years/get_year_list.json`,{method:"get"});Ce.jbdatas=Vt==null?void 0:Vt.data,ve(a({},Ce)),bt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ct(Gt){return y(this,null,function*(){const Vt=yield(0,Fe.ZP)(`/api/ec_years/${Gt}/ec_courses/get_courses.json`,{method:"get"});Ce.kcdatas=Vt==null?void 0:Vt.data,ve(a({},Ce)),bt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const jt=Gt=>y(void 0,null,function*(){const Vt=yield(0,Fe.ZP)(`/api/ec_courses/${Gt}/ec_points.json`,{method:"get",params:{ec_course_id:Gt}});Ce.zsdatas=Vt==null?void 0:Vt.data,ve(a({},Ce))});return ne.createElement("div",{className:$e.from},ne.createElement(se.default,{form:bt,layout:"inline",onValuesChange:Gt=>{console.log("----",Gt),Gt.ec_major_school_id&&(Ce.jbdatas=[],Ce.kcdatas=[],Ce.zsdatas=[],ve(a({},Ce)),It(Gt.ec_major_school_id)),Gt.ec_year_id&&(Ce.kcdatas=[],Ce.zsdatas=[],ve(a({},Ce)),Ct(Gt.ec_year_id)),Gt.ec_course_id&&(Ce.zsdatas=[],ve(a({},Ce)),jt(Gt.ec_course_id))},onFinish:Gt=>y(void 0,null,function*(){gt(Gt)})},ne.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(je.default,{style:{width:150},disabled:((Ee=Ce.zydatas)==null?void 0:Ee.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ke=Ce==null?void 0:Ce.zydatas)==null?void 0:Ke.map((Gt,Vt)=>ne.createElement(je.default.Option,{key:Vt,value:Gt==null?void 0:Gt.ec_major_school_id},Gt==null?void 0:Gt.name)))),ne.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(je.default,{style:{width:150},disabled:((ht=Ce.jbdatas)==null?void 0:ht.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Qe=Ce==null?void 0:Ce.jbdatas)==null?void 0:Qe.map((Gt,Vt)=>ne.createElement(je.default.Option,{key:Vt,value:Gt==null?void 0:Gt.ec_year_id},Gt==null?void 0:Gt.year)))),ne.createElement(se.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(je.default,{style:{width:150},disabled:((Pt=Ce.kcdatas)==null?void 0:Pt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Ce==null?void 0:Ce.kcdatas)==null?void 0:de.map((Gt,Vt)=>ne.createElement(je.default.Option,{key:Vt,value:Gt==null?void 0:Gt.id},Gt==null?void 0:Gt.name)))),ne.createElement(se.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(je.default,{onChange:()=>{bt.submit()},style:{width:150},mode:"multiple",disabled:((Je=Ce.zsdatas)==null?void 0:Je.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(dt=Ce==null?void 0:Ce.zsdatas)==null?void 0:dt.map((Gt,Vt)=>ne.createElement(je.default.Option,{key:Vt,value:Gt==null?void 0:Gt.id},Gt==null?void 0:Gt.name))))))};var x=(0,Pe.connect)(({classroomList:me,loading:Oe,globalSetting:Be,user:ke})=>({classroomList:me,globalSetting:Be,loading:Oe.effects,user:ke}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ue=(me,Oe,Be)=>Oe in me?z(me,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):me[Oe]=Be,le=(me,Oe)=>{for(var Be in Oe||(Oe={}))ie.call(Oe,Be)&&ue(me,Be,Oe[Be]);if(re)for(var Be of re(Oe))ge.call(Oe,Be)&&ue(me,Be,Oe[Be]);return me},be=(me,Oe)=>ee(me,te(Oe)),Ge=(me,Oe,Be)=>new Promise((ke,qe)=>{var gt=yt=>{try{ct(Be.next(yt))}catch(he){qe(he)}},it=yt=>{try{ct(Be.throw(yt))}catch(he){qe(he)}},ct=yt=>yt.done?ke(yt.value):Promise.resolve(yt.value).then(gt,it);ct((Be=Be.apply(me,Oe)).next())});const ut=Xe.default.Group,rt=({classroomList:me,loading:Oe,user:Be,exercise_id:ke=null,homework_common_id:qe=null,setitem:gt,type:it,dispatch:ct})=>{var yt,he;let[Ee,Ke]=(0,ne.useState)([{}]),[ht,Qe]=(0,ne.useState)([]);function Pt(){return Ge(this,null,function*(){var Je,dt,Ot;let xt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:ke,homework_common_id:qe}});if(((Je=xt==null?void 0:xt.data)==null?void 0:Je.length)>0){let Ce=[];(dt=xt==null?void 0:xt.data)==null||dt.map(ve=>{var fe;(fe=ve==null?void 0:ve.ec_point_ids)==null||fe.map(We=>{Ce.push(We)})}),gt(be(le({},(Ot=xt==null?void 0:xt.data)==null?void 0:Ot[0]),{ec_point_ids:Ce})),Ke(xt==null?void 0:xt.data)}})}(0,ne.useEffect)(()=>{var Je,dt;(dt=(Je=Be==null?void 0:Be.userInfo)==null?void 0:Je.course)!=null&&dt.course_school_id&&de()},[(he=(yt=Be==null?void 0:Be.userInfo)==null?void 0:yt.course)==null?void 0:he.course_school_id]);function de(){return Ge(this,null,function*(){var Je,dt;const Ot=yield(0,Fe.ZP)(`/api/schools/${(dt=(Je=Be==null?void 0:Be.userInfo)==null?void 0:Je.course)==null?void 0:dt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Qe(Ot==null?void 0:Ot.data),(qe||ke)&&Pt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ee==null?void 0:Ee.map((Je,dt)=>ne.createElement("div",{key:dt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:ht,item:Je,type:dt,setitem:Ot=>{Ee.splice(dt,1,Ot),Ke([...Ee]);let xt=[];Ee==null||Ee.map(Ce=>{var ve;(ve=Ce==null?void 0:Ce.ec_point_ids)==null||ve.map(fe=>{xt.push(fe)})}),gt(be(le({},Ot),{ec_point_ids:xt}))}}),dt!=0&&ne.createElement(Me.Z,{onClick:()=>{Ee.splice(dt,1),Ke([...Ee])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(Se.Z,{onClick:()=>{Ee.push({}),Ke([...Ee])},style:{marginLeft:10,fontSize:"20px"}}))))};var St=(0,Pe.connect)(({classroomList:me,loading:Oe,globalSetting:Be,user:ke})=>({classroomList:me,globalSetting:Be,loading:Oe.effects,user:ke}))(rt)},16750:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return Te}});var ne=oe(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=oe(92310),Me=oe.n(Xe),Se=oe(71418),Fe=oe(2859),se=oe(38147),je=oe(65862),$e=(He,Re,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(He,Re)).next())}),Te=({data:He,className:Re,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[ue,le]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),He!=null&&He.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",He!=null&&He.src&&be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[He==null?void 0:He.visible]);const be=()=>$e(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const me=yield(0,je.ZJ)(He==null?void 0:He.src);z.current.src="",z.current.src=me,z.current.onload=function(){St()},ge(!1),le("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ut=me=>$e(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Oe=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:He.title,file:me.dataUrl}});Oe!=null&&Oe.id&&!x?(yield(0,se.ZP)(`/api/attachments/${He.id}/add_subitem.json`,{method:"post",body:{subitem_id:Oe==null?void 0:Oe.id,settings:JSON.stringify(me.state)}})).status===0&&E():Oe!=null&&Oe.id&&E(Oe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),le("")}),rt=()=>{const me=document.querySelector('a[href="https://markerjs.com/"]');me&&me.parentNode&&(me.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Be=>{const ke=document.querySelector(Be.name);ke&&ke.setAttribute("title",Be.title)})},St=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ut),ee.current.addEventListener("beforeclose",Ge),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),He!=null&&He.snapshotData&&ee.current.restoreState(He.snapshotData),setTimeout(()=>{window.scrollTo(0,0),rt()},300)};return ne.createElement(ne.Fragment,null,(He==null?void 0:He.visible)&&ne.createElement(Se.Z,{spinning:ie,tip:ue,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Me()(Pe.imageDimensions,Re,ae?Pe.fullWidth:""),style:a},ne.createElement("img",{className:Pe.img,ref:z}))))}},99298:function(ze,ot,oe){"use strict";var ne=oe(59301),Pe=oe(95237),Xe=oe(43604),Me=oe(99313),Se=oe(3113),Fe=oe(6339),se=oe(96408),je=oe(48136),$e=oe(59301);const Ne=(0,ne.forwardRef)(({callback:Te,showSaveButton:He,value:Re=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:$e.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>$e.createElement(Xe.Z,{flex:"110px",className:se.Z.item},$e.createElement("div",null,$e.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),$e.createElement("div",{className:se.Z.children},ee.children.map((re,ie)=>$e.createElement("div",{key:ie},$e.createElement("h1",null,re.name),$e.createElement(Pe.Z,{gutter:[10,10]},re.data.map((ge,ue)=>$e.createElement(Xe.Z,{key:ue,onClick:()=>b(ge),className:se.Z.diamond},$e.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:$e.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,te)=>$e.createElement(Xe.Z,{flex:"110px",className:se.Z.item},$e.createElement("div",null,$e.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),$e.createElement("div",{className:se.Z.children},ee.children.map((re,ie)=>$e.createElement("div",{key:ie},re.name&&$e.createElement("h1",null,re.name),$e.createElement(Pe.Z,{gutter:[10,10]},re.data.map((ge,ue)=>$e.createElement(Xe.Z,{key:ue,onClick:()=>b(ge),className:se.Z.diamond},$e.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Te&&Te(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),$e.createElement("div",{className:se.Z.mathWrap},$e.createElement(Me.default,{defaultActiveKey:"1",items:x}),$e.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),He&&$e.createElement("div",{className:se.Z.button},$e.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=Ne},58174:function(ze,ot,oe){"use strict";oe.d(ot,{z:function(){return Ge},Z:function(){return ut}});var ne=oe(59301),Pe=oe(54580),Xe=oe(8591),Me=oe(43418),Se=oe(3113),Fe=oe(74128),se=oe(80024),je=Object.defineProperty,$e=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,He=(rt,St,me)=>St in rt?je(rt,St,{enumerable:!0,configurable:!0,writable:!0,value:me}):rt[St]=me,Re=(rt,St)=>{for(var me in St||(St={}))Ne.call(St,me)&&He(rt,me,St[me]);if($e)for(var me of $e(St))Te.call(St,me)&&He(rt,me,St[me]);return rt},ae=(rt,St,me)=>new Promise((Oe,Be)=>{var ke=it=>{try{gt(me.next(it))}catch(ct){Be(ct)}},qe=it=>{try{gt(me.throw(it))}catch(ct){Be(ct)}},gt=it=>it.done?Oe(it.value):Promise.resolve(it.value).then(ke,qe);gt((me=me.apply(rt,St)).next())});const a="\u3000\u3000";function y(rt){var St=["Bytes","KB","MB","GB","TB"];if(rt==0)return"0 Byte";var me=parseInt(""+Math.floor(Math.log(rt)/Math.log(1024)),10);return(rt/Math.pow(1024,me)).toFixed(1)+" "+St[me]}var E=({value:rt=[],action:St,onChange:me,className:Oe,maxSize:Be=150,title:ke="\u6587\u4EF6\u4E0A\u4F20",accept:qe=null})=>{const gt={multiple:!1,fileList:rt,accept:qe,withCredentials:!0,beforeUpload:ct=>ct.size/1024/1024<Be?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(ct){var yt,he,Ee,Ke;let ht=[...ct.fileList];if(ht=ht.map(Qe=>(Qe.name.indexOf(a)===-1&&(Qe.name=`${Qe.name}${a}${y(Qe.size)}`),Re({},Qe))),ct.file.status==="done"&&((he=(yt=ct.file)==null?void 0:yt.response)==null?void 0:he.status)===-1){message.error((Ke=(Ee=ct.file)==null?void 0:Ee.response)==null?void 0:Ke.message),me([]);return}me(ht)},onRemove:ct=>ae(void 0,null,function*(){const yt=ct.size/1024/1024;return ct.status==="uploading"?!0:yt<Be&&(ct.response?ct.response.id:ct.uid)?yield removeAttachment(ct.response?ct.response.id:ct.id):!0})};function it(ct){ct.preventDefault(),ct.stopPropagation()}return React.createElement("div",{className:`single-upload ${Oe||""}`},React.createElement(Upload,Re({},gt),React.createElement(Button,{type:"primary",title:rt.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:rt.length>0,ghost:!0},ke),React.createElement("span",{onClick:it,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Be,"M)"," ")))},b=oe(61481),x=oe(89392),z=oe(9749),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(rt,St,me)=>St in rt?ee(rt,St,{enumerable:!0,configurable:!0,writable:!0,value:me}):rt[St]=me,ue=(rt,St)=>{for(var me in St||(St={}))re.call(St,me)&&ge(rt,me,St[me]);if(te)for(var me of te(St))ie.call(St,me)&&ge(rt,me,St[me]);return rt},le=(rt,St,me)=>new Promise((Oe,Be)=>{var ke=it=>{try{gt(me.next(it))}catch(ct){Be(ct)}},qe=it=>{try{gt(me.throw(it))}catch(ct){Be(ct)}},gt=it=>it.done?Oe(it.value):Promise.resolve(it.value).then(ke,qe);gt((me=me.apply(rt,St)).next())});const{Dragger:be}=Pe.default;function Ge(rt){let St=[];return rt&&rt.length>0&&(St=rt.map(me=>({uid:me.id,id:me.id,name:me.title+a+me.filesize,url:me.url,filesize:me.filesize,status:"done",response:{id:me.id}}))),St}var ut=({value:rt,onChange:St,action:me,data:Oe,className:Be,maxSize:ke=150,title:qe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:gt=!1,accept:it="",additionalText:ct,isDragger:yt,number:he=1e3,aloneClear:Ee=!1,realTimeRemove:Ke=!0,uploadText:ht,setFileProgress:Qe,showFileProgress:Pt})=>{const[de,Je]=(0,ne.useState)(!1);let[dt,Ot]=(0,ne.useState)(rt||[]),[xt,Ce]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{rt&&(xt===1&&Ot([...rt]),Ce(2),he===(rt==null?void 0:rt.length)&&Je(!0))},[rt]);const ve=()=>{setTimeout(()=>{dt.pop(),Ot([...dt])},500)};Pt&&Qe(dt.some(_e=>_e.status==="uploading"));const fe={multiple:!0,disabled:de,accept:it,withCredentials:!0,fileList:dt,beforeUpload:(_e,st)=>{const Ft=_e.size/1024/1024;return dt.concat(st).length>he?(dt.pop(),Ot([...dt]),Xe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${he}\u4E2A\u6587\u4EF6`),Ee?Promise.reject():(ve(),!1)):Ft<ke?!0:(Xe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ke}MB).`),Ee?Promise.reject():(ve(),!1))},data:Oe,action:me||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(_e){var st,Ft,bt,Mt;if(_e.file.status==="removed"?dt=_e.fileList:dt=(0,x.uniqBy)([..._e.fileList,...dt],"uid"),_e.file.status==="done"&&((Ft=(st=_e.file)==null?void 0:st.response)==null?void 0:Ft.status)===-1){Xe.ZP.error((Mt=(bt=_e.file)==null?void 0:bt.response)==null?void 0:Mt.message);return}dt.length>=he?Je(!0):Je(!1),Ot([...dt]),dt=dt.map(It=>{var Ct,jt;return(Ct=It==null?void 0:It.response)!=null&&Ct.id&&(It.url=(jt=It==null?void 0:It.response)==null?void 0:jt.url),It.name.indexOf(a)===-1&&(It.name=`${It.name}${a}${y(It.size)}`),ue({},It)}),console.log("info:",_e,dt),St(dt)},onRemove:_e=>le(void 0,null,function*(){if(!Ke)return!0;const st=()=>le(void 0,null,function*(){if(_e.response?_e.response.id:_e.id){let bt=yield(0,se.JZ)(_e.response?_e.response.id:_e.uid);return Promise.resolve(bt)}else return!0});return gt?new Promise((Ft,bt)=>{Me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>le(void 0,null,function*(){const Mt=yield st();Xe.ZP.success("\u5220\u9664\u6210\u529F"),Ft(!0)}),onCancel:()=>Ft(!1)})}):yield st()})};function We(_e){_e.preventDefault(),_e.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Be||""}`},yt&&ne.createElement(be,ue({},fe),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",ke,"MB)"," "),ct),!yt&&ne.createElement(Pe.default,ue({},fe),ne.createElement(Se.ZP,{disabled:de,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:z.Z}),qe),ne.createElement("span",{onClick:We,className:"upload_text"},ht||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${ke}MB)`)))}},85533:function(ze,ot,oe){"use strict";oe.d(ot,{h:function(){return ee}});var ne=oe(59301),Pe=oe(57809),Xe=oe(78241),Me=oe(3113),Se=oe(89780),Fe=oe.n(Se),se=oe(45559),je=oe(42313),$e=Object.defineProperty,Ne=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?$e(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))Re.call(re,ie)&&a(te,ie,re[ie]);if(He)for(var ie of He(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>Ne(te,Te(re));const b=Pe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ot.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function ue(be){ge(z[be][1])}function le(be){te(be)}return ne.createElement(Xe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ne.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Pe.default,{getPopupContainer:be=>be.parentNode,onChange:ue},Object.keys(z).map(be=>ne.createElement(b,{key:be,value:be},z[be][0])))),ne.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Me.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const ue=(0,ne.useRef)(),[le,be]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(le){let Ge=function(ut){const rt=ut.getValue();re&&re(rt)};return le.on("change",Ge),()=>{le.off("change",Ge)}}},[le,re]),(0,ne.useEffect)(()=>{le&&le.setOption("mode",ie)},[le,ie]),(0,ne.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ne.useEffect)(()=>{if(ue.current&&!le){const Ge=Fe().fromTextArea(ue.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));be(Ge)}},[ue.current,le]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ue}))}},96565:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return Jn}});var ne=oe(59301),Pe=oe(89780),Xe=oe.n(Pe),Me=oe(76374),Se=oe(45559),Fe=oe(6313),se=oe(25717),je=oe(99498),$e=oe(25419),Ne=oe(67549),Te=oe(6339),He=({value:Le="",className:we,showTextOnly:pe,showLines:lt,style:Nt={}})=>{const Bt=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Bt}}))},Re=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,pe)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,ee=(Le,we)=>{for(var pe in we||(we={}))b.call(we,pe)&&z(Le,pe,we[pe]);if(E)for(var pe of E(we))x.call(we,pe)&&z(Le,pe,we[pe]);return Le},te=(Le,we)=>a(Le,y(we));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:Le,title:we,icon:pe,actionName:lt,className:Nt="",children:Bt}){function ln(){Le(lt)}return Re.createElement("a",{title:we,className:Nt,onClick:ln},Re.createElement("i",{className:`${pe}`}),Bt)}var ge=({watch:Le,showNullButton:we,showNullProgramButton:pe,onActionCallback:lt,fullScreen:Nt,insertTemp:Bt,hidetoolBar:ln,extraUse:Wt})=>{const Qt=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!ln&&Qt.map((yn,_n)=>Re.createElement("li",{key:_n},yn.actionName?Re.createElement(ie,te(ee({},yn),{onActionCallback:lt})):Re.createElement("span",{className:"v-line"}))),we?Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Bt&&Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Bt}`,onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Wt&&Re.createElement("li",null,Wt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ie,{icon:`${Nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},ue=oe(57261),le=oe(78241),be=oe(92832),Ge=oe(3113),ut=Object.defineProperty,rt=Object.defineProperties,St=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,ke=(Le,we,pe)=>we in Le?ut(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,qe=(Le,we)=>{for(var pe in we||(we={}))Oe.call(we,pe)&&ke(Le,pe,we[pe]);if(me)for(var pe of me(we))Be.call(we,pe)&&ke(Le,pe,we[pe]);return Le},gt=(Le,we)=>rt(Le,St(we));const it={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:Le,onCancel:we})=>{function pe(lt){Le(lt)}return ne.createElement(le.default,gt(qe({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(be.default,null)),ne.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(be.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},yt=oe(85533),he=oe(45053),Ee=oe(43418),Ke=oe(95237),ht=oe(16750),Qe=oe(59301),Pt=({callback:Le,onCancel:we})=>{const pe=document.createElement("canvas"),lt=pe.getContext("2d");pe.width=1e3,pe.height=800,lt.fillStyle="#ffffff",lt.fillRect(0,0,pe.width,pe.height);const Nt=pe.toDataURL("image/png");return Qe.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Ke.Z,{style:{height:"100vh"}},Qe.createElement(ht.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nt,visible:!0,title:String(Date.now())},onOk:Bt=>{Le({src:Bt.url})},onClose:we})))},de=oe(12378);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Je.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.x,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we,pe.position.y))}),Le.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var lt=pe.actualBounds.x+pe.actualBounds.width;we=Math.max(lt,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we-pe.actualBounds.width,pe.position.y))}),Le.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.y,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,we))}),Le.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var lt=pe.actualBounds.y+pe.actualBounds.height;we=Math.max(lt,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,we-pe.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var pe=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(pe-lt.actualBounds.width/2,lt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var pe=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(lt.actualBounds.x,pe-lt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var pe=new Array;we.selection.each(function(Wt){Wt instanceof go.Link||pe.push(Wt)});for(var lt=0;lt<pe.length-1;lt++){var Nt=pe[lt],Bt=Nt.actualBounds.y+Nt.actualBounds.height+Le,ln=pe[lt+1];ln.move(new go.Point(Nt.actualBounds.x,Bt))}we.commitTransaction("align Column")},Je.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var pe=new Array;we.selection.each(function(Wt){Wt instanceof go.Link||pe.push(Wt)});for(var lt=0;lt<pe.length-1;lt++){var Nt=pe[lt],Bt=Nt.actualBounds.x+Nt.actualBounds.width+Le,ln=pe[lt+1];ln.move(new go.Point(Bt,Nt.actualBounds.y))}we.commitTransaction("align Row")},Je.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},Je.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},Je.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var lt=0;pe.parts.each(function(Nt){if(!Nt.isSelected){var Bt=Nt.zOrder;isNaN(Bt)?Nt.zOrder=0:lt=Math.max(lt,Bt)}}),we.set(pe,lt)}),Le.selection.each(function(pe){Je._assignZOrder(pe,we.get(pe.layer)+1)}),Le.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var lt=0;pe.parts.each(function(Nt){if(!Nt.isSelected){var Bt=Nt.zOrder;isNaN(Bt)?Nt.zOrder=0:lt=Math.min(lt,Bt)}}),we.set(pe,lt)}),Le.selection.each(function(pe){Je._assignZOrder(pe,we.get(pe.layer)-1-Je._findGroupDepth(pe))}),Le.commitTransaction("pushToBack")},Je._assignZOrder=function(Le,we,pe){pe===void 0&&(pe=Le),Le.layer===pe.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(lt){Je._assignZOrder(lt,we+1,pe)})},Je._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(pe){we=Math.max(we,Je._findGroupDepth(pe))}),we+1}else return 0},Je.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var pe=this.arrowKeyBehavior;if(pe==="none")return;if(pe==="select"){this._arrowKeySelect();return}else if(pe==="move"){this._arrowKeyMove();return}else if(pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},Je.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,pe=0,lt=0;if(we.control||we.meta)pe=1,lt=1;else if(Le.grid!==null){var Nt=Le.grid.gridCellSize;lt=Nt.width,pe=Nt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Bt){we.key==="Up"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y-pe)):we.key==="Down"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y+pe)):we.key==="Left"?Bt.move(new go.Point(Bt.actualBounds.x-lt,Bt.actualBounds.y)):we.key==="Right"&&Bt.move(new go.Point(Bt.actualBounds.x+lt,Bt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.lastInput,pe=null;we.key==="Up"?pe=this._findNearestPartTowards(270):we.key==="Down"?pe=this._findNearestPartTowards(90):we.key==="Left"?pe=this._findNearestPartTowards(180):we.key==="Right"&&(pe=this._findNearestPartTowards(0)),pe!==null&&(we.shift?pe.isSelected=!0:we.control||we.meta?pe.isSelected=!pe.isSelected:Le.select(pe))},Je.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var pe=we.actualBounds.center,lt=this._getAllParts(),Nt=1/0,Bt=we,ln=0;ln<lt.length;ln++){var Wt=lt[ln];if(Wt!==we&&Wt.canSelect()){var Qt=Wt.actualBounds.center,yn=pe.directionPoint(Qt),_n=this._angleCloseness(yn,Le);if(_n<=45){var at=pe.distanceSquaredPoint(Qt);at*=1+Math.sin(_n*Math.PI/180),at<Nt&&(Nt=at,Bt=Wt)}}}return Bt},Je.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},Je.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var pe=Le.lastInput;if(pe.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var lt=this._sortTreeChildrenByY(we).first();lt!==null&&Le.select(lt)}}else if(pe.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var Nt=we.findTreeParentNode();Nt!==null&&Le.select(Nt)}else if(pe.key==="Up"){var Nt=we.findTreeParentNode();if(Nt!==null){var Bt=this._sortTreeChildrenByY(Nt),ln=Bt.indexOf(we);if(ln>0){for(var Wt=Bt.elt(ln-1);Wt!==null&&Wt.isTreeExpanded&&!Wt.isTreeLeaf;){var Qt=this._sortTreeChildrenByY(Wt);Wt=Qt.last()}Wt!==null&&Le.select(Wt)}else Le.select(Nt)}}else if(pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var lt=this._sortTreeChildrenByY(we).first();lt!==null&&Le.select(lt)}else for(;we!==null;){var Nt=we.findTreeParentNode();if(Nt===null)break;var Bt=this._sortTreeChildrenByY(Nt),ln=Bt.indexOf(we);if(ln<Bt.length-1){Le.select(Bt.elt(ln+1));break}else we=Nt}var yn=Le.selection.first();yn!==null&&Le.scrollToRect(yn.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(pe,lt){var Nt=pe.location,Bt=lt.location;return Nt.y<Bt.y?-1:Nt.y>Bt.y?1:Nt.x<Bt.x?-1:Nt.x>Bt.x?1:0}),we},Je.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var dt=Je,Ot=oe(25863),xt=oe(43604),Ce=oe(38147),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=oe(59301),We=(Le,we,pe)=>new Promise((lt,Nt)=>{var Bt=Qt=>{try{Wt(pe.next(Qt))}catch(yn){Nt(yn)}},ln=Qt=>{try{Wt(pe.throw(Qt))}catch(yn){Nt(yn)}},Wt=Qt=>Qt.done?lt(Qt.value):Promise.resolve(Qt.value).then(Bt,ln);Wt((pe=pe.apply(Le,we)).next())});function _e({onCancel:Le,callback:we}){let pe=(0,ne.useRef)(),lt=(0,ne.useRef)(),Nt=(0,ne.useRef)(),Bt=(0,ne.useRef)(!1);const ln=(0,ne.useRef)(!1),[Wt,Qt]=(0,ne.useState)(0);function yn(){const at=de.bx.make,qt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};pe.current=new de.S0(lt.current,{padding:20,grid:at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tt=>{var Lt=tt.diagram.commandHandler.addTopLevelParts(tt.diagram.selection,!0);Lt||tt.diagram.currentTool.doCancel()},commandHandler:at(dt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tt=>{var Lt=tt.subject;Lt.location=Lt.location.copy().snapToGridPoint(tt.diagram.grid.gridOrigin,tt.diagram.grid.gridCellSize),setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tt=>{var Lt=tt.subject;setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()})},LinkRelinked:tt=>{var Lt=tt.parameter.part;Lt.invalidateConnectedLinks();var Dt=tt.subject;tt.diagram.toolManager.linkingTool.isForwards?Dt.toNode.invalidateConnectedLinks():Dt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=at(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),at(de.bn,{name:"SHAPE",fill:qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),at(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),pe.current.nodeTemplate.toolTip=at("ToolTip",at(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},at(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),at(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(tt,Lt){var Dt=(vt,Kt)=>{vt.handled=!0,vt.diagram.model.commit(Jt=>{var Ht=Kt.part.adornedPart,Sn=new de.E9().setRectSpot(Ht.actualBounds,tt);Sn.subtract(Ht.location),Sn.scale(2,2),Sn.x+=Math.sign(Sn.x)*130,Sn.y+=Math.sign(Sn.y)*130,Sn.add(Ht.location),Sn.snapToGridPoint(vt.diagram.grid.gridOrigin,vt.diagram.grid.gridCellSize);var Pn=Jt.copyNodeData(Ht.data);Jt.setGroupKeyForNodeData(Pn,Jt.getGroupKeyForNodeData(Ht.data)),Jt.addNodeData(Pn);var oa={from:Ht.key,to:Jt.getKeyForNodeData(Pn)};Jt.addLinkData(oa);var Qn=vt.diagram.findNodeForData(Pn);Qn.location=Sn,vt.diagram.select(Qn),setTimeout(()=>{vt.diagram.commandHandler.editTextBlock()},20)})};return at(de.bn,{figure:Lt,alignment:tt,alignmentFocus:tt.opposite(),width:tt.equals(de.z6.Top)||tt.equals(de.z6.Bottom)?25:18,height:tt.equals(de.z6.Top)||tt.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(vt,Kt)=>Kt.fill="dodgerblue",mouseLeave:(vt,Kt)=>Kt.fill="orange",isActionable:!0,click:Dt,contextClick:Dt})}function Zn(tt){return at(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Lt,Dt)=>Dt.fill="dodgerblue",mouseLeave:(Lt,Dt)=>Dt.fill="orange",click:(Lt,Dt)=>{Lt.diagram.commandHandler.showContextMenu(Dt.part.adornedPart)}},tt||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.Vm,{padding:10}),Tn(de.z6.Top,"TriangleUp"),Tn(de.z6.Left,"TriangleLeft"),Tn(de.z6.Right,"TriangleRight"),Tn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Cn(tt,Lt){return(Dt,vt)=>{Dt.handled=!0,Dt.diagram.model.commit(Kt=>{Kt.set(vt.part.adornedPart.data,tt,Lt)})}}function ce(tt,Lt){return Lt||(Lt="color"),at(de.bn,{width:16,height:16,stroke:"lightgray",fill:tt,margin:1,background:"transparent",mouseEnter:(Dt,vt)=>vt.stroke="dodgerblue",mouseLeave:(Dt,vt)=>vt.stroke="lightgray",click:Cn(Lt,tt),contextClick:Cn(Lt,tt)})}function Ae(){return[at("ContextMenuButton",at(de.s_,"Horizontal",ce(qt.white,"fill"),ce(qt.beige,"fill"),ce(qt.extralightblue,"fill"),ce(qt.extralightred,"fill"))),at("ContextMenuButton",at(de.s_,"Horizontal",ce(qt.lightgray,"fill"),ce(qt.lightgreen,"fill"),ce(qt.lightblue,"fill"),ce(qt.lightred,"fill")))]}function De(){return[at("ContextMenuButton",at(de.s_,"Horizontal",ce(qt.black),ce(qt.green),ce(qt.blue),ce(qt.red))),at("ContextMenuButton",at(de.s_,"Horizontal",ce(qt.white),ce(qt.magenta),ce(qt.purple),ce(qt.orange)))]}function Ze(tt,Lt){return Lt||(Lt="thickness"),at(de.bn,"LineH",{width:16,height:16,strokeWidth:tt,margin:1,background:"transparent",mouseEnter:(Dt,vt)=>vt.background="dodgerblue",mouseLeave:(Dt,vt)=>vt.background="transparent",click:Cn(Lt,tt),contextClick:Cn(Lt,tt)})}function et(tt,Lt){return Lt||(Lt="dash"),at(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tt,margin:1,background:"transparent",mouseEnter:(Dt,vt)=>vt.background="dodgerblue",mouseLeave:(Dt,vt)=>vt.background="transparent",click:Cn(Lt,tt),contextClick:Cn(Lt,tt)})}function nt(){return[at("ContextMenuButton",at(de.s_,"Horizontal",Ze(1),Ze(2),Ze(3),Ze(4))),at("ContextMenuButton",at(de.s_,"Horizontal",et(null),et([2,4]),et([4,4])))]}function Ye(tt,Lt){return Lt||(Lt="figure"),at(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tt,margin:1,background:"transparent",mouseEnter:(Dt,vt)=>vt.fill="dodgerblue",mouseLeave:(Dt,vt)=>vt.fill="lightgray",click:Cn(Lt,tt),contextClick:Cn(Lt,tt)})}pe.current.nodeTemplate.contextMenu=at("ContextMenu",at("ContextMenuButton",at(de.s_,"Horizontal",Ye("Rectangle"),Ye("RoundedRectangle"),Ye("Ellipse"),Ye("Diamond"))),at("ContextMenuButton",at(de.s_,"Horizontal",Ye("Parallelogram2"),Ye("ManualOperation"),Ye("Procedure"),Ye("Cylinder1"))),at("ContextMenuButton",at(de.s_,"Horizontal",Ye("Terminator"),Ye("CreateRequest"),Ye("Document"),Ye("TriangleDown"))),Ae(),De(),nt()),pe.current.groupTemplate=at(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tt,Lt)=>{var Dt=Lt.addMembers(Lt.diagram.selection,!0);Dt||Lt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),at(de.s_,"Auto",{name:"BODY"},at(de.bn,{parameter1:10,fill:qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(de.Vm,{background:"transparent",margin:20})),at(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),pe.current.groupTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.s_,"Auto",at(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),at(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=at("ContextMenu",Ae(),De(),nt()),pe.current.linkTemplate=at(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",tt=>tt>=1?10:0),new de.KX("toShortLength","dir",tt=>tt>=1?10:0),new de.KX("points").makeTwoWay(),at(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",tt=>tt===1)),at(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",tt=>tt>=1),new de.KX("width","thickness",tt=>7+3*tt),new de.KX("height","thickness",tt=>7+3*tt),new de.KX("segmentOffset","thickness",tt=>new de.E9(-15,4+1.5*tt))),at(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",tt=>tt===2),new de.KX("width","thickness",tt=>7+3*tt),new de.KX("height","thickness",tt=>7+3*tt),new de.KX("segmentOffset","thickness",tt=>new de.E9(-15,4+1.5*tt))),at(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),pe.current.linkTemplate.selectionAdornmentTemplate=at(de.uz,at(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ue(2)},new de.KX("pathPattern","thickness",Ue)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ue(tt){return at(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tt+4).toString()+" H3"})}function At(tt){var Lt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tt===0?Lt="M0 0 M16 16 M0 8 L16 8":tt===2&&(Lt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),at(de.bn,{geometryString:Lt,margin:2,background:"transparent",mouseEnter:(Dt,vt)=>vt.background="dodgerblue",mouseLeave:(Dt,vt)=>vt.background="transparent",click:Cn("dir",tt),contextClick:Cn("dir",tt)})}function Tt(tt){var Lt=(Dt,vt)=>{Dt.handled=!0,Dt.diagram.model.commit(Kt=>{var Jt=vt.part.adornedPart;Kt.set(Jt.data,tt?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(tt?Jt.toNode:Jt.fromNode).invalidateConnectedLinks()})};return at(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Dt,vt)=>vt.background="dodgerblue",mouseLeave:(Dt,vt)=>vt.background="transparent",click:Lt,contextClick:Lt})}function xe(tt,Lt){var Dt=0,vt=de.z6.RightSide;tt.equals(de.z6.Top)?(Dt=270,vt=de.z6.TopSide):tt.equals(de.z6.Left)?(Dt=180,vt=de.z6.LeftSide):tt.equals(de.z6.Bottom)&&(Dt=90,vt=de.z6.BottomSide),Lt||(Dt-=180);var Kt=(Jt,Ht)=>{Jt.handled=!0,Jt.diagram.model.commit(Sn=>{var Pn=Ht.part.adornedPart;Sn.set(Pn.data,Lt?"toSpot":"fromSpot",de.z6.stringify(vt)),(Lt?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return at(de.bn,{alignment:tt,alignmentFocus:tt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Dt,background:"transparent",mouseEnter:(Jt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Jt,Ht)=>Ht.background="transparent",click:Kt,contextClick:Kt})}pe.current.linkTemplate.contextMenu=at("ContextMenu",De(),nt(),at("ContextMenuButton",at(de.s_,"Horizontal",At(0),At(1),At(2))),at("ContextMenuButton",at(de.s_,"Horizontal",at(de.s_,"Spot",Tt(!1),xe(de.z6.Top,!1),xe(de.z6.Left,!1),xe(de.z6.Right,!1),xe(de.z6.Bottom,!1)),at(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Tt(!0),xe(de.z6.Top,!0),xe(de.z6.Left,!0),xe(de.z6.Right,!0),xe(de.z6.Bottom,!0)))));const on=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var tn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function hn(tt){return console.log("shapeName:",tt),tn.indexOf(tt)>=0}var Bn=new de.YI(Nt.current,{maxSelectionCount:1,linkTemplate:at(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:at(de.uz,"Link",{locationSpot:de.z6.Center},at(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),at(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),at(de.bn,{isPanelMain:!0,strokeWidth:2}),at(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(tt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(tt){var Lt;const Dt=tt.subject.part;var vt=(Lt=document.activeElement)==null?void 0:Lt.value;typeof vt=="string"&&vt.trim()===""&&pe.current.model.commit(function(Kt){Kt.set(Dt.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),Bn.nodeTemplate=at(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),at(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),at(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{pe.current.grid=at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pe.current.grid.visible=!0,pe.current.grid.gridCellStroke="darkgray",pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pe.current,pe.current}const _n=()=>We(this,null,function*(){var at=pe.current.makeImage();const qt=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:at.src}});we({src:qt.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{yn()},500),Qt(Wt+1),()=>{pe.current=null}),[]),fe.createElement("div",{ref:ln,className:Bt.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Wt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Ke.Z,null,fe.createElement(xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(xt.Z,{onClick:()=>{var at,qt,Tn=pe.current.selection.first();if(Bt.current=!Bt.current,document.activeElement&&Tn){let Zn=(qt=(at=document.activeElement)==null?void 0:at.value)==null?void 0:qt.trim();typeof Zn=="string"&&pe.current.model.commit(function(Cn){Cn.set(Tn.data,"text",Zn||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}Qt(Wt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.flowChartWrp},fe.createElement("div",{style:{display:"flex",height:"100%"}},fe.createElement("div",{style:{width:"300px",height:"100%"}},fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:ve.myPaletteDiv,ref:Nt})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:lt,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(Ge.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var st=_e,Ft=oe(5112),bt=oe(5871);const Mt=Ft.ZP.Group,It={margin:"0 8px"};var Ct=({callback:Le,onCancel:we})=>{function pe(lt){Le(lt)}return ne.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:It},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:It},"\u884C\u6570"),ne.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(bt.Z,null)),ne.createElement("span",{style:It},"\u5217\u6570"),ne.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(bt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:It},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(le.default.Item,{name:"align"},ne.createElement(Mt,null,ne.createElement(Ft.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(Ft.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(Ft.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(Ft.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},jt=oe(78673),Gt=oe(93510),Vt=oe.n(Gt),gn=(0,ne.forwardRef)(({use3d:Le,width:we,height:pe,callback:lt,showSaveButton:Nt},Bt)=>{const ln=(0,ne.useRef)(),Wt=(0,ne.useRef)(),[Qt,yn]=(0,ne.useState)(!1),_n=(0,ne.useRef)({id:ln,appName:"graphing",width:we||1e3,height:pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Wt.current=new(Vt())(_n.current,!0),window.onload=function(){Wt.current.inject("applet_container")}},[]);const at=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return lt&<(qt),qt};return(0,ne.useEffect)(()=>{_n.current.appName=Qt?"3D":"graphing",Wt.current.inject("applet_container")},[Qt]),(0,ne.useEffect)(()=>{yn(Le)},[Le]),(0,ne.useImperativeHandle)(Bt,()=>({getImgData:at})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ne.createElement(Ke.Z,{align:"middle"},ne.createElement(xt.Z,{flex:1},ne.createElement(jt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qt,onChange:qt=>yn(qt)})),ne.createElement(xt.Z,null,ne.createElement(Ge.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=oe(99298),ye=oe(1012),Ie=oe(8591);const Ve="link",mt="upload-image",pt="add-flowchart",Rt="draw-image",kt="add-flowchart",$t="code-block",_t="add-table",Yt="------------",Xt={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var en=oe(31103),fn=(Le,we,pe)=>new Promise((lt,Nt)=>{var Bt=Qt=>{try{Wt(pe.next(Qt))}catch(yn){Nt(yn)}},ln=Qt=>{try{Wt(pe.throw(Qt))}catch(yn){Nt(yn)}},Wt=Qt=>Qt.done?lt(Qt.value):Promise.resolve(Qt.value).then(Bt,ln);Wt((pe=pe.apply(Le,we)).next())});function pn(){}let Fn=0;const dn=1e4,an="\u2581",vn="@\u2581\u2581@",En="@\u2581@",xn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,un=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Nn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[Ve]:"\u6DFB\u52A0\u94FE\u63A5",[$t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:we,width:pe="100%",height:lt=400,miniToolbar:Nt=!1,isFocus:Bt=!1,watch:ln,insertTemp:Wt,mode:Qt="markdown",id:yn="markdown-editor-id",showResizeBar:_n=!1,noStorage:at=!1,showNullButton:qt=!1,showNullProgramButton:Tn=!1,hidetoolBar:Zn=!1,fullScreen:Cn=!1,onBlur:ce,onCMBeforeChange:Ae,onFullScreen:De,className:Ze="",disablePaste:et=!1,disabled:nt=!1,disabledFill:Ye=!1,placeholder:Ue="",values:At="",extraUse:Tt})=>{const[xe,on]=(0,ne.useState)(null),[tn,hn]=(0,ne.useState)(Le),[Bn,tt]=(0,ne.useState)(ln),[Lt,Dt]=(0,ne.useState)(Cn),[vt,Kt]=(0,ne.useState)(""),[Jt,Ht]=(0,ne.useState)(0),[Sn,Pn]=(0,ne.useState)(lt),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,ye.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,$n]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ia=(0,ne.useRef)(),ga=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>fn(void 0,null,function*(){var zt;const ft=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(zt=ft==null?void 0:ft.attachments)!=null&&zt.length&&(console.log("cm:",xe,ta),ft.attachments.map(wt=>{wt.content_type.indexOf("image")>-1?xe.replaceSelection(``):wt.content_type.indexOf("video")>-1?xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):wt.content_type.indexOf("pdf")>-1?xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type}&disposition=inline" target="_blank">${wt.name}</a>`):xe.replaceSelection(`[${wt.name}](${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type})`)}))});(0,ne.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;hn(At),xe==null||xe.setValue(At),window.scrollTo(0,zt)},[At]),(0,ne.useEffect)(()=>{De==null||De(Lt)},[Lt]),(0,ne.useEffect)(()=>{if(ta.current){let zt=function(wt,Et){var mn;if(et){Et.preventDefault();return}const zn=Et.clipboardData;if(zn){const Rn=zn.types.toString(),An=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(Et.preventDefault(),Qt=="stex")return;try{let jn=An[1];((mn=An[0])==null?void 0:mn.kind)==="file"&&(jn=An[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,he.I)(kn,Vn=>{var Ut,sn,bn;Vn.id?((Ut=kn==null?void 0:kn.type)==null?void 0:Ut.indexOf("image"))>-1?ft.replaceSelection(`<img width="100%" src="/api/attachments/${Vn.id}?type=${Vn.content_type})" alt="" />`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?ft.replaceSelection(`<video width="100%" controls src="/api/attachments/${Vn.id}"></video>`):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?ft.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):un.includes(sa)?ft.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):ft.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Ie.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Ie.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ft=Xe().fromTextArea(ta.current,{mode:Qt,lineNumbers:!Nt,lineWrapping:!0,value:Le,autoCloseTags:!Tn,autoCloseBrackets:!0});return ft.on("keyup",function(wt,Et){Et.keyCode===8&&(wt.getValue()==""?ft.setOption("placeholder",Ue):ft.setOption("placeholder",null))}),ft.on("keydown",function(wt,Et){if(Et.keyCode===8){var mn=Zt(wt);mn&&Et.preventDefault()}}),Bt&&ft.focus(),ft.on("paste",zt),ft.on("dragleave",function(wt,Et){ia.current.classList.remove("mouse-hover-md")}),nt&&ft.on("beforeChange",function(wt,Et){(Et.origin==="paste"||Et.origin==="+input")&&Et.cancel()}),on(ft),()=>{ft.off("paste",zt)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ia.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Sn,ia,Lt]);(0,ne.useEffect)(()=>{function zt(){let ft=new Me.Z(wt=>{for(let Et of wt)(Et.target.offsetHeight>0||Et.target.offsetWidth>0)&&(fa(),xe.setSize("100%","100%"),xe.refresh())});return ft.observe(ta.current.parentElement),ft}if(xe){const ft=zt();return()=>{var wt,Et;(wt=ta.current)!=null&&wt.parentElement&&ft.unobserve((Et=ta.current)==null?void 0:Et.parentElement)}}},[xe,fa]),(0,ne.useEffect)(()=>{if(xe){let zt=[];for(const[ft,wt]of Object.entries(Wn)){let Et={[ft]:()=>{On(wt)}};zt.push(Et),xe.addKeyMap(Et)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ft of zt)xe.removeKeyMap(ft)}}},[xe]),(0,ne.useEffect)(()=>{Cn!==Lt&&Dt(Cn)},[Cn]),(0,en.Z)(()=>{if(!at&&Jt>0){let zt=new Date().getTime(),ft=window.sessionStorage.getItem(yn);zt>=Jt+dn&&(!ft||ft!==tn)&&(window.sessionStorage.setItem(yn,tn),Qn(!0))}},dn),(0,ne.useEffect)(()=>{tt(ln)},[xe,ln]),(0,ne.useEffect)(()=>{xe&&Bt&&xe.focus()},[xe,Bt]),(0,ne.useEffect)(()=>{if(Bn&&xe){let zt=function(wt){let Et=wt.target;if(aa.current){let mn=Et.scrollTop/Et.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*mn}};const ft=xe.getScrollerElement();return ft.addEventListener("scroll",zt),()=>{ft.removeEventListener("scroll",zt)}}},[xe,Bn]),(0,ne.useEffect)(()=>{if(xe&&Ae){let zt=function(ft,wt){Ae(ft,wt)};return xe.on("beforeChange",zt),()=>{xe.off("beforeChange",zt)}}},[xe,Ae]),(0,ne.useEffect)(()=>{if(xe&&ce){let zt=function(){ce(xe.getValue())};return xe.on("blur",zt),()=>{xe.off("blur",zt)}}},[xe,ce]);function Zt(zt,ft){var wt=zt.getDoc(),Et=wt.getCursor(),mn=wt.getLine(Et.line),zn=mn.charAt(Et.ch-1),Rn=mn.lastIndexOf("@\u2581@",Et.ch),An=mn.lastIndexOf("@\u2581\u2581@",Et.ch),jn=Rn>An?Rn:An,kn=Rn>An?3:4;if(vn.indexOf(zn)===-1)return null;if(console.log("change1:",ft,zt,mn,Et,jn,Rn,An,zn),jn>=0&&Et.ch-jn<5){var sa=jn+kn;return wt.replaceRange("",{line:Et.line,ch:jn},{line:Et.line,ch:sa}),{line:Et.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if(xe){let zt=function(ft,wt){const Et=ft.getValue();hn(Et),Ht(new Date().getTime()),ft.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Tn?we(Et,Gn(Et)):we(Et))};return xe.on("change",zt),()=>{xe.off("change",zt)}}},[xe,we]),(0,ne.useEffect)(()=>{if(xe)if(Le==null)xe.setValue(""),hn("");else{const zt=window.scrollY||window.pageYOffset;Le!==xe.getValue()&&(xe.setValue(Le),hn(Le),xe.setCursor(nt?1:xe.lineCount(),0),window.scrollTo(0,zt))}},[xe,Le]);const On=(0,ne.useCallback)(zt=>{const ft=xe.getCursor(),wt=xe.getSelection();let Et=wt.split(`
|
|
`);switch(zt){case"bold":return xe.replaceSelection("**"+wt+"**"),wt===""&&xe.setCursor(ft.line,ft.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+wt+"*"),wt===""&&xe.setCursor(ft.line,ft.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+wt+"`"),wt===""&&xe.setCursor(ft.line,ft.ch+1),xe.focus();case"inline-latex":return Kt("inline-latex"),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+wt+"\n```"),xe.setCursor(ft.line+1,wt.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
|
|
`),xe.focus();case"list-ul":return wt===""?xe.replaceSelection("- "+wt):xe.replaceSelection(Et.map(mn=>mn===""?"":`- ${mn}`).join(`
|
|
`)),xe.focus();case"list-ol":return wt===""?xe.replaceSelection("1. "+wt):xe.replaceSelection(Et.map((mn,zn)=>mn===""?"":`${zn+1}. ${mn}`).join(`
|
|
`)),xe.focus();case"add-null-ch":return wt===""&&xe.setCursor(ft.line,ft.ch),xe.replaceSelection(an),xe.focus();case"add-signal":return wt===""&&xe.setCursor(ft.line,ft.ch),xe.replaceSelection(En),xe.focus();case"add-multiple":return wt===""&&xe.setCursor(ft.line,ft.ch),xe.replaceSelection(vn),xe.focus();case"inster-template-1":return wt===""&&xe.setCursor(ft.line,ft.ch),xe.replaceSelection(xn),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return tt(!Bn),xe.focus();case"trigger-full-screen":return Dt(!Lt),xe.focus();case Ve:Kt(Ve);return;case $t:Kt($t);return;case mt:Kt(mt);return;case Rt:Kt(Rt);return;case"maths-latex":Kt("maths-latex");return;case pt:Kt(pt);return;case _t:Kt(_t);return;default:throw new Error}},[xe,Bn,Lt]),Mn=(0,ne.useCallback)((zt,ft)=>{var wt,Et,mn,zn,Rn,An;switch(Kt(""),vt){case Ve:const{title:Ut,link:sn}=zt;return xe.replaceSelection(`[${Ut}](${sn})`),xe.focus();case $t:const{language:bn,content:rn}=zt;return xe.replaceSelection(["```"+bn,rn,"```"].join(`
|
|
`)),xe.focus();case"maths-latex":for(var jn=atob(zt),kn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)kn[sa]=jn.charCodeAt(sa);var Vn=new Blob([kn],{type:"image/png"});(0,he.I)(Vn,ma=>{ma.id?xe.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":xe.replaceSelection("`$$"+zt+"$$`");break;case mt:case Rt:case kt:const{src:cn,alt:Hn}=zt,wn=ft,ha=(mn=(Et=(wt=wn==null?void 0:wn.name)==null?void 0:wt.split("."))==null?void 0:Et.pop)==null?void 0:mn.call(Et);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?xe.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${cn}" alt="${Hn||""}" /></p>`):xe.replaceSelection(`<img width="100%" src="${cn}" alt="${Hn||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="${cn}"></video>`):((An=wn==null?void 0:wn.type)==null?void 0:An.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="${cn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):un.includes(ha)?xe.replaceSelection(`<a href="${cn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):xe.replaceSelection(`[${wn.name}](${cn})`),xe.focus();case _t:const{row:ua,col:wa,align:xa}=zt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ca=[],Ba=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&Ba.push(Xt[xa]),Ca.push(" ");ma===1&&(Fa+=`| ${Ba.join(" | ")} |
|
|
`),Fa+=`| ${Ca.join(wa===1?"":" | ")} |
|
|
`}return xe.replaceSelection(Fa+`
|
|
`),xe.focus();default:throw new Error}},[xe,vt]),Un=(0,ne.useMemo)(()=>{switch(vt){case Ve:return ne.createElement(ct,{callback:Mn,onCancel:Xn});case $t:return ne.createElement(yt.Z,{callback:Mn,onCancel:Xn});case mt:return ne.createElement(he.Z,{callback:Mn,onCancel:Xn});case pt:return ne.createElement(st,{callback:Mn,onCancel:Xn});case _t:return ne.createElement(Ct,{callback:Mn,onCancel:Xn});case"maths-latex":return ne.createElement(gn,{showSaveButton:!0,callback:Mn});case"inline-latex":return ne.createElement(nn.Z,{showSaveButton:!0,callback:Mn});default:return null}},[vt]);function Xn(){Kt("")}(0,ne.useEffect)(()=>{if(ga.current){let zt=function(Rn){mn=!0,zn=Rn.pageY},ft=function(){mn=!1},wt=function(Rn){if(mn){let An=Rn.pageY-zn;An<0&&(An=0),An>300&&(An=300);let jn=lt+An+"px";Pn(jn)}},Et=ga.current,mn=!1,zn=0;return Et.addEventListener("mousedown",zt),document.addEventListener("mousemove",wt),document.addEventListener("mouseup",ft),()=>{Et.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",ft)}}},[xe,ga]),(0,ne.useEffect)(()=>{Pn(lt)},[lt]);const ra=Nn(pe),va=Nn(Sn),pa={width:ra,height:va},Dn=(0,ne.useMemo)(()=>{if(Jt){let zt=new Date(Jt),ft=zt.getHours(),wt=zt.getMinutes(),Et=zt.getSeconds();return ft=ft<10?"0"+ft:ft,wt=wt<10?"0"+wt:wt,Et=Et<10?"0"+Et:Et,`${ft}:${wt}:${Et}`}return 0},[Jt]),Gn=zt=>{const ft=[];if(Tn){let wt=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function(Et,mn,zn){ft.push({multiLine:Et!==En})})}return ft};function la(){window.sessionStorage.removeItem(yn),Qn(!1),Ht(0)}function ya(){Qn(!1),Ht(0),xe.setValue(window.sessionStorage.getItem(yn))}(0,ne.useEffect)(()=>{na[vt]&&vt!==Rt&&vt!==pt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],ft=window.innerWidth/2-zt.offsetWidth/2,wt=window.innerHeight/2-zt.offsetHeight/2;da(ft),$n(wt)},0)},[vt]);const La=zt=>{zt.preventDefault();const ft=zt.clientX-Pa,wt=zt.clientY-Kn;document.body.onmousemove=Et=>{let mn=Et.clientX-ft,zn=Et.clientY-wt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;mn=Math.max(0,Math.min(mn,An)),zn=Math.max(0,Math.min(zn,jn)),ba(Et.clientX,Et.clientY,ft,wt)&&(da(mn),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,ft,wt,Et)=>{const mn=document.body.clientHeight,zn=document.body.clientWidth;return zt<20&&wt>zt||zt>zn-20&&wt<zt||ft<20&&Et>ft||ft>mn-20&&Et<ft?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:ia},ne.createElement("div",{className:`markdown-editor-container ${Ze} ${Bn?"on-preview":""} ${Nt?"mini":""} ${Lt?"full-screen":""}`,style:pa},ne.createElement(ge,{insertTemp:Wt,watch:Bn,fullScreen:Lt,showNullButton:qt,showNullProgramButton:Tn,onActionCallback:On,hidetoolBar:Zn,extraUse:Tt}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ta,placeholder:Ue})),Bn?ne.createElement("div",{ref:aa,className:"preview-container"},Qt==="stex"&&ne.createElement(He,{value:tn}),Qt!=="stex"&&ne.createElement(Te.Z,{disabledFill:Ye,showProgramFill:Tn,value:tn})):null))),_n?ne.createElement("a",{ref:ga,className:"editor-resize"}):null,vt===Rt&&ne.createElement(Pt,{callback:Mn,onCancel:Xn}),vt===pt&&ne.createElement(st,{callback:Mn,onCancel:Xn}),ne.createElement(ue.Z,null,na[vt]&&vt!==Rt&&vt!==pt?ne.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Kn},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[vt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:vt===pt?"1200px":null,height:vt===pt?"80vh":null,className:"markdown-popup-form"},Un):null))}},45053:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return ie},I:function(){return ue}});var ne=oe(78241),Pe=oe(8591),Xe=oe(92832),Me=oe(81327),Se=oe(5871),Fe=oe(5112),se=oe(3113),je=oe(28735),$e=oe(59301),Ne=oe(41867),Te=oe(59301),He=Object.defineProperty,Re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,be,Ge)=>be in le?He(le,be,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):le[be]=Ge,x=(le,be)=>{for(var Ge in be||(be={}))y.call(be,Ge)&&b(le,Ge,be[Ge]);if(a)for(var Ge of a(be))E.call(be,Ge)&&b(le,Ge,be[Ge]);return le},z=(le,be)=>Re(le,ae(be));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:le,onCancel:be})=>{const[Ge]=ee();let ut=(0,$e.useRef)();function rt(Oe){ut.current.width=Ge.getFieldValue("width"),ut.current.align=Ge.getFieldValue("align"),le(Oe,ut.current)}function St(Oe,Be){if(Oe.status===-1){Pe.ZP.error(Oe.message);return}Ge.setFieldsValue({src:`/api/attachments/${Oe.id}`,type:Be.type})}function me(Oe){let Be=Oe.target.files[0];ut.current=Be,ue(Be,St)}return Te.createElement(ne.default,z(x({form:Ge},re),{className:"upload-image-panel",onFinish:rt,style:{width:470,overflow:"hidden"}}),Te.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Xe.default,{style:te})),Te.createElement(ge,{onFileChange:me}))),Te.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Xe.default,{style:{width:264}})),Te.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Me.Z,null,Te.createElement(ne.default.Item,{name:"width",style:{margin:0}},Te.createElement(Se.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(se.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function ge({onFileChange:le}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:le}))}function ue(le,be){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ne.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",le),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(rt){be(JSON.parse(rt.target.responseText),le)},!1),ut.addEventListener("error",function(rt){console.error(rt)},!1),ut.open("POST",`${je.KI}/api/attachments.json`),ut.send(Ge)}},57261:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return Xe}});var ne=oe(59301),Pe=oe(4676);class Xe extends ne.Component{constructor(Se){super(Se);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,Pe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return Pe}});var ne=oe(59301);function Pe(Xe,Me){const Se=(0,ne.useRef)();(0,ne.useEffect)(()=>{Se.current=Xe}),(0,ne.useEffect)(()=>{function Fe(){Se.current()}if(Me!==null){let se=setInterval(Fe,Me);return()=>clearInterval(se)}},[Me])}},9324:function(ze,ot,oe){"use strict";oe.r(ot),oe.d(ot,{default:function(){return ge}});var ne=oe(59301),Pe=oe(65582),Xe=oe(78241),Me=oe(66104),Se=oe(92832),Fe=oe(3113),se=oe(96565),je=oe(88761),$e={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},Ne=oe(58174),Te=oe(65862),He=oe(22031),Re=oe(38147),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,le,be)=>le in ue?ae(ue,le,{enumerable:!0,configurable:!0,writable:!0,value:be}):ue[le]=be,ee=(ue,le)=>{for(var be in le||(le={}))b.call(le,be)&&z(ue,be,le[be]);if(E)for(var be of E(le))x.call(le,be)&&z(ue,be,le[be]);return ue},te=(ue,le)=>a(ue,y(le)),re=(ue,le,be)=>new Promise((Ge,ut)=>{var rt=Oe=>{try{me(be.next(Oe))}catch(Be){ut(Be)}},St=Oe=>{try{me(be.throw(Oe))}catch(Be){ut(Be)}},me=Oe=>Oe.done?Ge(Oe.value):Promise.resolve(Oe.value).then(rt,St);me((be=be.apply(ue,le)).next())});const ie=({shixunHomeworks:ue,newCourse:le,globalSetting:be,user:Ge,loading:ut,dispatch:rt})=>{var St,me,Oe;const Be=(0,Pe.useParams)(),[ke]=Xe.default.useForm(),[qe,gt]=(0,ne.useState)({}),[it,ct]=(0,ne.useState)(),yt=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:he}=ue;let[Ee,Ke]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:Je}=Be;yt.current=Be==null?void 0:Be.courseId,ct(!!yt.current),yt.current&&ht(),rt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Je,coursesId:de,type:1}})},[]);const ht=()=>re(void 0,null,function*(){const de=yield rt({type:"newCourse/getEditCourseData",payload:{id:yt.current}});de&&(ke.setFieldsValue({name:de.name}),ke.setFieldsValue({intro:de.description}),ke.setFieldsValue({notice:de.learning_notes}),gt({name:de.name,intro:de.description,notice:de.learning_notes}))}),Qe=de=>re(void 0,null,function*(){var Je,dt;const Ot=ee({},qe);Ot.attachment_ids&&(Ot.attachment_ids=(Je=Ot==null?void 0:Ot.attachment_ids)==null?void 0:Je.map(fe=>fe.response.id)),Ot.reference_attachment_ids&&(Ot.reference_attachment_ids=(dt=Ot==null?void 0:Ot.reference_attachment_ids)==null?void 0:dt.map(fe=>fe.response.id));const{coursesId:xt,categoryId:Ce}=Be,ve=yield(0,je.H1)(te(ee({coursesId:xt,category:Ce},Ot),{base_on_project:!0,type:1}));(ve==null?void 0:ve.status)===0&&(Pt(ve.homework_id),(0,Te.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),Pe.history.push(`/classrooms/${Be.coursesId}/common_homework/${ve.homework_id}/detail`))});function Pt(de){return re(this,null,function*(){if(!(Ee!=null&&Ee.ec_point_ids))return;let Je=yield(0,Re.ZP)(`/api/ec_courses/${Ee==null?void 0:Ee.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},Ee)})})}return ne.createElement("section",{className:$e.bg},he.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},he.category&&ne.createElement(Me.Z,{separator:">"},ne.createElement(Me.Z.Item,null,ne.createElement(Pe.Link,{to:`/classrooms/${he.course_id}/common_homework`},he.course_name)),ne.createElement(Me.Z.Item,null,ne.createElement(Pe.Link,{to:`/classrooms/${he.course_id}/common_homework`},he.category.category_name)),ne.createElement(Me.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(Xe.default,{form:ke,className:$e.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",ke.getFieldsValue()),gt(ee({},ke.getFieldsValue()))},onFinish:Qe},ne.createElement("div",{className:$e.fieldWrap},ne.createElement(Xe.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Se.default,{maxLength:60,suffix:`${((St=qe.name)==null?void 0:St.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:$e.mdWrap},ne.createElement(Xe.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(se.Z,{watch:!0,defaultValue:qe.intro})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"attachment_ids"},ne.createElement(Ne.Z,null)))),ne.createElement("div",{className:$e.mdWrap},ne.createElement(Xe.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(se.Z,{watch:!0,defaultValue:qe.notice})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"reference_attachment_ids"},ne.createElement(Ne.Z,null))))),ne.createElement("div",{className:$e.mdWrap,style:{display:(me=be==null?void 0:be.setting)!=null&&me.hide_ec?"none":(Oe=Ge.userInfo.course)!=null&&Oe.is_openengineering?"":"none"}},ne.createElement(He.Z,{setitem:de=>Ke(ee({},de))})),ne.createElement("div",{className:$e.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Xe.default.Item,null,ne.createElement(Fe.ZP,{size:"middle",type:"primary",className:`${$e.button} mr20`,htmlType:"submit",onClick:()=>{ke.submit()},loading:ut["newCourse/editCourse"]||ut["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(Fe.ZP,{size:"middle",type:"primary",ghost:!0,className:$e.button,onClick:()=>Pe.history.push(`/classrooms/${Be.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ge=(0,Pe.connect)(({shixunHomeworks:ue,newCourse:le,loading:be,user:Ge,globalSetting:ut})=>({shixunHomeworks:ue,newCourse:le,user:Ge,globalSetting:ut,loading:be.effects}))(ie)},80024:function(ze,ot,oe){"use strict";oe.d(ot,{$J:function(){return Xe},JZ:function(){return Se},bN:function(){return se},jP:function(){return Fe},rO:function(){return Me}});var ne=oe(38147),Pe=(je,$e,Ne)=>new Promise((Te,He)=>{var Re=y=>{try{a(Ne.next(y))}catch(E){He(E)}},ae=y=>{try{a(Ne.throw(y))}catch(E){He(E)}},a=y=>y.done?Te(y.value):Promise.resolve(y.value).then(Re,ae);a((Ne=Ne.apply(je,$e)).next())});function Xe(je){return(0,ne.U2)(`libraries/${je}.json`)}function Me(je){return(0,ne.U2)("library_tags.json",je)}function Se(je){return Pe(this,null,function*(){return(yield(0,ne.IV)(`attachments/${je}.json`)).status===0})}function Fe(je){return(0,ne.v_)("libraries.json",je)}function se(je,$e){return(0,ne.gz)(`libraries/${je}.json`,$e)}},56762:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return Pe}});var ne=oe(59301);function Pe(){const[,Xe]=ne.useReducer(Me=>Me+1,0);return Xe}},66104:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return St}});var ne=oe(92310),Pe=oe.n(ne),Xe=oe(11592),Me=oe(26112),Se=oe(59301),Fe=oe(92343),se=oe(36355),je=oe(84105),$e=oe(91857);const Ne=me=>{let{children:Oe}=me;const{getPrefixCls:Be}=Se.useContext(se.E_),ke=Be("breadcrumb");return Se.createElement("li",{className:`${ke}-separator`,"aria-hidden":"true"},Oe===""?Oe:Oe||"/")};Ne.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=Ne,He=function(me,Oe){var Be={};for(var ke in me)Object.prototype.hasOwnProperty.call(me,ke)&&Oe.indexOf(ke)<0&&(Be[ke]=me[ke]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,ke=Object.getOwnPropertySymbols(me);qe<ke.length;qe++)Oe.indexOf(ke[qe])<0&&Object.prototype.propertyIsEnumerable.call(me,ke[qe])&&(Be[ke[qe]]=me[ke[qe]]);return Be};function Re(me,Oe){if(me.title===void 0||me.title===null)return null;const Be=Object.keys(Oe).join("|");return typeof me.title=="object"?me.title:String(me.title).replace(new RegExp(`:(${Be})`,"g"),(ke,qe)=>Oe[qe]||ke)}function ae(me,Oe,Be,ke){if(Be==null)return null;const{className:qe,onClick:gt}=Oe,it=He(Oe,["className","onClick"]),ct=Object.assign(Object.assign({},(0,Me.Z)(it,{data:!0,aria:!0})),{onClick:gt});return ke!==void 0?Se.createElement("a",Object.assign({},ct,{className:Pe()(`${me}-link`,qe),href:ke}),Be):Se.createElement("span",Object.assign({},ct,{className:Pe()(`${me}-link`,qe)}),Be)}function a(me,Oe){return(ke,qe,gt,it,ct)=>{if(Oe)return Oe(ke,qe,gt,it);const yt=Re(ke,qe);return ae(me,ke,yt,ct)}}var y=function(me,Oe){var Be={};for(var ke in me)Object.prototype.hasOwnProperty.call(me,ke)&&Oe.indexOf(ke)<0&&(Be[ke]=me[ke]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,ke=Object.getOwnPropertySymbols(me);qe<ke.length;qe++)Oe.indexOf(ke[qe])<0&&Object.prototype.propertyIsEnumerable.call(me,ke[qe])&&(Be[ke[qe]]=me[ke[qe]]);return Be};const E=me=>{const{prefixCls:Oe,separator:Be="/",children:ke,menu:qe,overlay:gt,dropdownProps:it,href:ct}=me,he=(Ee=>{if(qe||gt){const Ke=Object.assign({},it);if(qe){const ht=qe||{},{items:Qe}=ht,Pt=y(ht,["items"]);Ke.menu=Object.assign(Object.assign({},Pt),{items:Qe==null?void 0:Qe.map((de,Je)=>{var{key:dt,title:Ot,label:xt,path:Ce}=de,ve=y(de,["key","title","label","path"]);let fe=xt!=null?xt:Ot;return Ce&&(fe=Se.createElement("a",{href:`${ct}${Ce}`},fe)),Object.assign(Object.assign({},ve),{key:dt!=null?dt:Je,label:fe})})})}else gt&&(Ke.overlay=gt);return Se.createElement($e.Z,Object.assign({placement:"bottom"},Ke),Se.createElement("span",{className:`${Oe}-overlay-link`},Ee,Se.createElement(je.Z,null)))}return Ee})(ke);return he!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,he),Be&&Se.createElement(Te,null,Be)):null},b=me=>{const{prefixCls:Oe,children:Be,href:ke}=me,qe=y(me,["prefixCls","children","href"]),{getPrefixCls:gt}=Se.useContext(se.E_),it=gt("breadcrumb",Oe);return Se.createElement(E,Object.assign({},qe,{prefixCls:it}),ae(it,qe,Be,ke))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=me=>{const{componentCls:Oe,iconCls:Be}=me;return{[Oe]:Object.assign(Object.assign({},(0,z.Wf)(me)),{color:me.itemColor,fontSize:me.fontSize,[Be]:{fontSize:me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:me.linkColor,transition:`color ${me.motionDurationMid}`,padding:`0 ${me.paddingXXS}px`,borderRadius:me.borderRadiusSM,height:me.lineHeight*me.fontSize,display:"inline-block",marginInline:-me.marginXXS,"&:hover":{color:me.linkHoverColor,backgroundColor:me.colorBgTextHover}},(0,z.Qy)(me)),"li:last-child":{color:me.lastItemColor},[`${Oe}-separator`]:{marginInline:me.separatorMargin,color:me.separatorColor},[`${Oe}-link`]:{[`
|
|
> ${Be} + span,
|
|
> ${Be} + a
|
|
`]:{marginInlineStart:me.marginXXS}},[`${Oe}-overlay-link`]:{borderRadius:me.borderRadiusSM,height:me.lineHeight*me.fontSize,display:"inline-block",padding:`0 ${me.paddingXXS}px`,marginInline:-me.marginXXS,[`> ${Be}`]:{marginInlineStart:me.marginXXS,fontSize:me.fontSizeIcon},"&:hover":{color:me.linkHoverColor,backgroundColor:me.colorBgTextHover,a:{color:me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${me.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",me=>{const Oe=(0,te.TS)(me,{});return[re(Oe)]},me=>({itemColor:me.colorTextDescription,lastItemColor:me.colorText,iconFontSize:me.fontSize,linkColor:me.colorTextDescription,linkHoverColor:me.colorText,separatorColor:me.colorTextDescription,separatorMargin:me.marginXS})),ge=function(me,Oe){var Be={};for(var ke in me)Object.prototype.hasOwnProperty.call(me,ke)&&Oe.indexOf(ke)<0&&(Be[ke]=me[ke]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,ke=Object.getOwnPropertySymbols(me);qe<ke.length;qe++)Oe.indexOf(ke[qe])<0&&Object.prototype.propertyIsEnumerable.call(me,ke[qe])&&(Be[ke[qe]]=me[ke[qe]]);return Be};function ue(me){const{breadcrumbName:Oe,children:Be}=me,ke=ge(me,["breadcrumbName","children"]),qe=Object.assign({title:Oe},ke);return Be&&(qe.menu={items:Be.map(gt=>{var{breadcrumbName:it}=gt,ct=ge(gt,["breadcrumbName"]);return Object.assign(Object.assign({},ct),{title:it})})}),qe}function le(me,Oe){return(0,Se.useMemo)(()=>me||(Oe?Oe.map(ue):null),[me,Oe])}var be=function(me,Oe){var Be={};for(var ke in me)Object.prototype.hasOwnProperty.call(me,ke)&&Oe.indexOf(ke)<0&&(Be[ke]=me[ke]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,ke=Object.getOwnPropertySymbols(me);qe<ke.length;qe++)Oe.indexOf(ke[qe])<0&&Object.prototype.propertyIsEnumerable.call(me,ke[qe])&&(Be[ke[qe]]=me[ke[qe]]);return Be};const Ge=(me,Oe)=>{if(Oe===void 0)return Oe;let Be=(Oe||"").replace(/^\//,"");return Object.keys(me).forEach(ke=>{Be=Be.replace(`:${ke}`,me[ke])}),Be},ut=me=>{const{prefixCls:Oe,separator:Be="/",style:ke,className:qe,rootClassName:gt,routes:it,items:ct,children:yt,itemRender:he,params:Ee={}}=me,Ke=be(me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ht,direction:Qe,breadcrumb:Pt}=Se.useContext(se.E_);let de;const Je=ht("breadcrumb",Oe),[dt,Ot]=ie(Je),xt=le(ct,it),Ce=a(Je,he);if(xt&&xt.length>0){const We=[],_e=ct||it;de=xt.map((st,Ft)=>{const{path:bt,key:Mt,type:It,menu:Ct,overlay:jt,onClick:Gt,className:Vt,separator:Ln,dropdownProps:gn}=st,nn=Ge(Ee,bt);nn!==void 0&&We.push(nn);const ye=Mt!=null?Mt:Ft;if(It==="separator")return Se.createElement(Te,{key:ye},Ln);const Ie={},Ve=Ft===xt.length-1;Ct?Ie.menu=Ct:jt&&(Ie.overlay=jt);let{href:mt}=st;return We.length&&nn!==void 0&&(mt=`#/${We.join("/")}`),Se.createElement(E,Object.assign({key:ye},Ie,(0,Me.Z)(st,{data:!0,aria:!0}),{className:Vt,dropdownProps:gn,href:mt,separator:Ve?"":Be,onClick:Gt,prefixCls:Je}),Ce(st,Ee,_e,We,mt))})}else if(yt){const We=(0,Xe.Z)(yt).length;de=(0,Xe.Z)(yt).map((_e,st)=>{if(!_e)return _e;const Ft=st===We-1;return(0,Fe.Tm)(_e,{separator:Ft?"":Be,key:st})})}const ve=Pe()(Je,Pt==null?void 0:Pt.className,{[`${Je}-rtl`]:Qe==="rtl"},qe,gt,Ot),fe=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),ke);return dt(Se.createElement("nav",Object.assign({className:ve,style:fe},Ke),Se.createElement("ol",null,de)))};ut.Item=x,ut.Separator=Te;var rt=ut,St=rt},24905:function(ze,ot,oe){"use strict";oe.d(ot,{default:function(){return ie}});var ne=oe(92310),Pe=oe.n(ne),Xe=oe(5630),Me=oe(59301),Se=oe(36355),Fe=oe(1684),se=oe(32441),$e=Me.createContext(null),Ne=oe(98447),Te=oe(14088),He=oe(4572),Re=function(ge,ue){var le={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&ue.indexOf(be)<0&&(le[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,be=Object.getOwnPropertySymbols(ge);Ge<be.length;Ge++)ue.indexOf(be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Ge])&&(le[be[Ge]]=ge[be[Ge]]);return le};const ae=(ge,ue)=>{var le;const{prefixCls:be,className:Ge,rootClassName:ut,children:rt,indeterminate:St=!1,style:me,onMouseEnter:Oe,onMouseLeave:Be,skipGroup:ke=!1,disabled:qe}=ge,gt=Re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:it,direction:ct,checkbox:yt}=Me.useContext(Se.E_),he=Me.useContext($e),{isFormItemInput:Ee}=Me.useContext(se.aM),Ke=Me.useContext(Fe.Z),ht=(le=(he==null?void 0:he.disabled)||qe)!==null&&le!==void 0?le:Ke,Qe=Me.useRef(gt.value);Me.useEffect(()=>{he==null||he.registerValue(gt.value)},[]),Me.useEffect(()=>{if(!ke)return gt.value!==Qe.current&&(he==null||he.cancelValue(Qe.current),he==null||he.registerValue(gt.value),Qe.current=gt.value),()=>he==null?void 0:he.cancelValue(gt.value)},[gt.value]);const Pt=it("checkbox",be),[de,Je]=(0,Ne.ZP)(Pt),dt=Object.assign({},gt);he&&!ke&&(dt.onChange=function(){gt.onChange&>.onChange.apply(gt,arguments),he.toggleOption&&he.toggleOption({label:rt,value:gt.value})},dt.name=he.name,dt.checked=he.value.includes(gt.value));const Ot=Pe()(`${Pt}-wrapper`,{[`${Pt}-rtl`]:ct==="rtl",[`${Pt}-wrapper-checked`]:dt.checked,[`${Pt}-wrapper-disabled`]:ht,[`${Pt}-wrapper-in-form-item`]:Ee},yt==null?void 0:yt.className,Ge,ut,Je),xt=Pe()({[`${Pt}-indeterminate`]:St},He.A,Je),Ce=St?"mixed":void 0;return de(Me.createElement(Te.Z,{component:"Checkbox",disabled:ht},Me.createElement("label",{className:Ot,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),me),onMouseEnter:Oe,onMouseLeave:Be},Me.createElement(Xe.Z,Object.assign({"aria-checked":Ce},dt,{prefixCls:Pt,className:xt,disabled:ht,ref:ue})),rt!==void 0&&Me.createElement("span",null,rt))))};var y=Me.forwardRef(ae),E=oe(94480),b=oe(2738),x=function(ge,ue){var le={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&ue.indexOf(be)<0&&(le[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,be=Object.getOwnPropertySymbols(ge);Ge<be.length;Ge++)ue.indexOf(be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Ge])&&(le[be[Ge]]=ge[be[Ge]]);return le};const z=(ge,ue)=>{const{defaultValue:le,children:be,options:Ge=[],prefixCls:ut,className:rt,rootClassName:St,style:me,onChange:Oe}=ge,Be=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ke,direction:qe}=Me.useContext(Se.E_),[gt,it]=Me.useState(Be.value||le||[]),[ct,yt]=Me.useState([]);Me.useEffect(()=>{"value"in Be&&it(Be.value||[])},[Be.value]);const he=Me.useMemo(()=>Ge.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[Ge]),Ee=ve=>{yt(fe=>fe.filter(We=>We!==ve))},Ke=ve=>{yt(fe=>[].concat((0,E.Z)(fe),[ve]))},ht=ve=>{const fe=gt.indexOf(ve.value),We=(0,E.Z)(gt);fe===-1?We.push(ve.value):We.splice(fe,1),"value"in Be||it(We),Oe==null||Oe(We.filter(_e=>ct.includes(_e)).sort((_e,st)=>{const Ft=he.findIndex(Mt=>Mt.value===_e),bt=he.findIndex(Mt=>Mt.value===st);return Ft-bt}))},Qe=ke("checkbox",ut),Pt=`${Qe}-group`,[de,Je]=(0,Ne.ZP)(Qe),dt=(0,b.Z)(Be,["value","disabled"]),Ot=Ge.length?he.map(ve=>Me.createElement(y,{prefixCls:Qe,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:Be.disabled,value:ve.value,checked:gt.includes(ve.value),onChange:ve.onChange,className:`${Pt}-item`,style:ve.style,title:ve.title},ve.label)):be,xt={toggleOption:ht,value:gt,disabled:Be.disabled,name:Be.name,registerValue:Ke,cancelValue:Ee},Ce=Pe()(Pt,{[`${Pt}-rtl`]:qe==="rtl"},rt,St,Je);return de(Me.createElement("div",Object.assign({className:Ce,style:me},dt,{ref:ue}),Me.createElement($e.Provider,{value:xt},Ot)))},ee=Me.forwardRef(z);var te=Me.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(ze,ot,oe){"use strict";oe.d(ot,{C2:function(){return Se}});var ne=oe(17313),Pe=oe(37613),Xe=oe(83116);const Me=Fe=>{const{checkboxCls:se}=Fe,je=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[je]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${je}`]:{marginInlineStart:0},[`&${je}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,ne.oN)(Fe))},[`${se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
|
|
${je}:not(${je}-disabled),
|
|
${se}:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{borderColor:Fe.colorPrimary}},[`${je}:not(${je}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
|
|
${je}-checked:not(${je}-disabled),
|
|
${se}-checked:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${je}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function Se(Fe,se){const je=(0,Pe.TS)(se,{checkboxCls:`.${Fe}`,checkboxSize:se.controlInteractiveSize});return[Me(je)]}ot.ZP=(0,Xe.Z)("Checkbox",(Fe,se)=>{let{prefixCls:je}=se;return[Se(je,Fe)]})},91857:function(ze,ot,oe){"use strict";var ne=oe(59301),Pe=oe(38819),Xe=oe(92310),Me=oe.n(Xe),Se=oe(31561),Fe=oe(70425),se=oe(18929),je=oe(2738),$e=oe(79676),Ne=oe(53487),Te=oe(92343),He=oe(36355),Re=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:ue,trigger:le,disabled:be,dropdownRender:Ge,getPopupContainer:ut,overlayClassName:rt,rootClassName:St,open:me,onOpenChange:Oe,visible:Be,onVisibleChange:ke,mouseEnterDelay:qe=.15,mouseLeaveDelay:gt=.1,autoAdjustOverflow:it=!0,placement:ct="",overlay:yt,transitionName:he}=te,{getPopupContainer:Ee,getPrefixCls:Ke,direction:ht}=ne.useContext(He.E_),Qe=ne.useMemo(()=>{const Ct=Ke();return he!==void 0?he:ct.includes("top")?`${Ct}-slide-down`:`${Ct}-slide-up`},[Ke,ct,he]),Pt=ne.useMemo(()=>ct?ct.includes("Center")?ct.slice(0,ct.indexOf("Center")):ct:ht==="rtl"?"bottomRight":"bottomLeft",[ct,ht]),de=Ke("dropdown",ge),[Je,dt]=(0,y.Z)(de),[,Ot]=(0,a.Z)(),xt=ne.Children.only(ue),Ce=(0,Te.Tm)(xt,{className:Me()(`${de}-trigger`,{[`${de}-rtl`]:ht==="rtl"},xt.props.className),disabled:be}),ve=be?[]:le;let fe;ve&&ve.includes("contextMenu")&&(fe=!0);const[We,_e]=(0,se.Z)(!1,{value:me!=null?me:Be}),st=(0,Fe.useEvent)(Ct=>{Oe==null||Oe(Ct),ke==null||ke(Ct),_e(Ct)}),Ft=Me()(rt,St,dt,{[`${de}-rtl`]:ht==="rtl"}),bt=(0,$e.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:it,offset:Ot.marginXXS,arrowWidth:ie?Ot.sizePopupArrow:0,borderRadius:Ot.borderRadius}),Mt=ne.useCallback(()=>{_e(!1)},[]),It=()=>{let Ct;return re!=null&&re.items?Ct=ne.createElement(Re.default,Object.assign({},re)):typeof yt=="function"?Ct=yt():Ct=yt,Ge&&(Ct=Ge(Ct)),Ct=ne.Children.only(typeof Ct=="string"?ne.createElement("span",null,Ct):Ct),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Pe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Mt,validator:jt=>{let{mode:Gt}=jt}},Ct)};return Je(ne.createElement(Se.Z,Object.assign({alignPoint:fe},(0,je.Z)(te,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:gt,visible:We,builtinPlacements:bt,arrow:!!ie,overlayClassName:Ft,prefixCls:de,getPopupContainer:ut||Ee,transitionName:Qe,trigger:ve,overlay:It,placement:Pt,onVisibleChange:st}),Ce))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ne.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,ot.Z=b},47211:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return Te}});var ne=oe(17313),Pe=oe(13826),Xe=oe(92899),Me=oe(29878),Se=oe(19447),Fe=oe(83116),se=oe(37613),$e=He=>{const{componentCls:Re,menuCls:ae,colorError:a,colorTextLightSolid:y}=He,E=`${ae}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ne=He=>{const{componentCls:Re,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ue,colorBgElevated:le}=He;return[{[Re]:Object.assign(Object.assign({},(0,ne.Wf)(He)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:Pe.ly}})},(0,Se.ZP)(He,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:He.borderRadiusLG,outline:"none",boxShadow:He.boxShadowSecondary},(0,ne.Qy)(He)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ue}px`,color:He.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:He.marginXS,fontSize:He.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ue}px`,color:He.colorText,fontWeight:"normal",fontSize:te,lineHeight:He.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:He.borderRadiusSM,"&:hover, &-active":{backgroundColor:He.controlItemBgHover}},(0,ne.Qy)(He)),{"&-selected":{color:He.colorPrimary,backgroundColor:He.controlItemBgActive,"&:hover, &-active":{backgroundColor:He.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${He.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:He.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:He.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:He.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${He.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ue+He.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Re}-menu-submenu-title`]:{color:He.colorPrimary}})}},[(0,Pe.oN)(He,"slide-up"),(0,Pe.oN)(He,"slide-down"),(0,Xe.Fm)(He,"move-up"),(0,Xe.Fm)(He,"move-down"),(0,Me._y)(He,"zoom-big")]]};var Te=(0,Fe.Z)("Dropdown",(He,Re)=>{let{rootPrefixCls:ae}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=He,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,Se.fS)({contentRadius:te}),ge=(0,se.TS)(He,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ne(ge),$e(ge)]},He=>({zIndexPopup:He.zIndexPopupBase+50}))},45818:function(ze,ot,oe){"use strict";oe.d(ot,{D:function(){return z},Z:function(){return re}});var ne=oe(54476),Pe=oe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Me=Xe,Se=oe(7657),Fe=function(ge,ue){return Pe.createElement(Se.Z,(0,ne.Z)({},ge,{ref:ue,icon:Me}))},se=Pe.forwardRef(Fe),je=se,$e=oe(33853),Ne=oe(38819),Te=oe(92310),He=oe.n(Te),Re=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var ue={};for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&ge.indexOf(le)<0&&(ue[le]=ie[le]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,le=Object.getOwnPropertySymbols(ie);be<le.length;be++)ge.indexOf(le[be])<0&&Object.prototype.propertyIsEnumerable.call(ie,le[be])&&(ue[le[be]]=ie[le[be]]);return ue};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Pe.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Pe.forwardRef((ie,ge)=>{const{prefixCls:ue,className:le,trigger:be,children:Ge,defaultCollapsed:ut=!1,theme:rt="dark",style:St={},collapsible:me=!1,reverseArrow:Oe=!1,width:Be=200,collapsedWidth:ke=80,zeroWidthTriggerStyle:qe,breakpoint:gt,onCollapse:it,onBreakpoint:ct}=ie,yt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:he}=(0,Pe.useContext)(E.Gs),[Ee,Ke]=(0,Pe.useState)("collapsed"in ie?ie.collapsed:ut),[ht,Qe]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in ie&&Ke(ie.collapsed)},[ie.collapsed]);const Pt=(Ce,ve)=>{"collapsed"in ie||Ke(Ce),it==null||it(Ce,ve)},de=(0,Pe.useRef)();de.current=Ce=>{Qe(Ce.matches),ct==null||ct(Ce.matches),Ee!==Ce.matches&&Pt(Ce.matches,"responsive")},(0,Pe.useEffect)(()=>{function Ce(fe){return de.current(fe)}let ve;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&>&> in x){ve=fe(`(max-width: ${x[gt]})`);try{ve.addEventListener("change",Ce)}catch(We){ve.addListener(Ce)}Ce(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",Ce)}catch(fe){ve==null||ve.removeListener(Ce)}}},[gt]),(0,Pe.useEffect)(()=>{const Ce=ee("ant-sider-");return he.addSider(Ce),()=>he.removeSider(Ce)},[]);const Je=()=>{Pt(!Ee,"clickTrigger")},{getPrefixCls:dt}=(0,Pe.useContext)(y.E_),Ot=()=>{const Ce=dt("layout-sider",ue),ve=(0,Re.Z)(yt,["collapsed"]),fe=Ee?ke:Be,We=a(fe)?`${fe}px`:String(fe),_e=parseFloat(String(ke||0))===0?Pe.createElement("span",{onClick:Je,className:He()(`${Ce}-zero-width-trigger`,`${Ce}-zero-width-trigger-${Oe?"right":"left"}`),style:qe},be||Pe.createElement(je,null)):null,bt={expanded:Oe?Pe.createElement(Ne.Z,null):Pe.createElement($e.Z,null),collapsed:Oe?Pe.createElement($e.Z,null):Pe.createElement(Ne.Z,null)}[Ee?"collapsed":"expanded"],Mt=be!==null?_e||Pe.createElement("div",{className:`${Ce}-trigger`,onClick:Je,style:{width:We}},be||bt):null,It=Object.assign(Object.assign({},St),{flex:`0 0 ${We}`,maxWidth:We,minWidth:We,width:We}),Ct=He()(Ce,`${Ce}-${rt}`,{[`${Ce}-collapsed`]:!!Ee,[`${Ce}-has-trigger`]:me&&be!==null&&!_e,[`${Ce}-below`]:!!ht,[`${Ce}-zero-width`]:parseFloat(We)===0},le);return Pe.createElement("aside",Object.assign({className:Ct},ve,{style:It,ref:ge}),Pe.createElement("div",{className:`${Ce}-children`},Ge),me||ht&&_e?Mt:null)},xt=Pe.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return Pe.createElement(z.Provider,{value:xt},Ot())})},84966:function(ze,ot,oe){"use strict";oe.d(ot,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ne=oe(94480),Pe=oe(92310),Xe=oe.n(Pe),Me=oe(2738),Se=oe(59301),Fe=oe(36355),se=oe(83116),$e=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ue,lightTriggerColor:le}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:le,background:ue},[`${re}-sider-zero-width-trigger`]:{color:le,background:ue,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ne=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ue,footerBg:le,triggerBg:be,headerHeight:Ge,headerPadding:ut,headerColor:rt,footerPadding:St,triggerHeight:me,zeroTriggerHeight:Oe,zeroTriggerWidth:Be,motionDurationMid:ke,motionDurationSlow:qe,fontSize:gt,borderRadius:it,bodyBg:ct,headerBg:yt,siderBg:he}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ct,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:he,transition:`all ${ke}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:me,color:ue,lineHeight:`${me}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${ke}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-Be,zIndex:1,width:Be,height:Oe,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:it,borderEndEndRadius:it,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Be,borderStartStartRadius:it,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:it}}}}},$e(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ge,padding:ut,color:rt,lineHeight:`${Ge}px`,background:yt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:St,color:ge,fontSize:gt,background:le},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,se.Z)("Layout",te=>[Ne(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ue,controlHeightSM:le,marginXXS:be,colorTextLightSolid:Ge,colorBgContainer:ut}=te,rt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${rt}px`,headerColor:ue,footerPadding:`${le}px ${rt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+be*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),He=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ge=Object.getOwnPropertySymbols(te);ue<ge.length;ue++)re.indexOf(ge[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[ue])&&(ie[ge[ue]]=te[ge[ue]]);return ie};const Re=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return ue=>Se.forwardRef((be,Ge)=>Se.createElement(ue,Object.assign({ref:Ge,suffixCls:re,tagName:ie},be)))}const a=Se.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:ue,tagName:le}=te,be=He(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=Se.useContext(Fe.E_),ut=Ge("layout",ie),[rt,St]=Te(ut),me=ge?`${ut}-${ge}`:ut;return rt(Se.createElement(le,Object.assign({className:Xe()(ie||me,ue,St),ref:re},be)))}),y=Se.forwardRef((te,re)=>{const{direction:ie}=Se.useContext(Fe.E_),[ge,ue]=Se.useState([]),{prefixCls:le,className:be,rootClassName:Ge,children:ut,hasSider:rt,tagName:St,style:me}=te,Oe=He(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Be=(0,Me.Z)(Oe,["suffixCls"]),{getPrefixCls:ke,layout:qe}=Se.useContext(Fe.E_),gt=ke("layout",le),[it,ct]=Te(gt),yt=Xe()(gt,{[`${gt}-has-sider`]:typeof rt=="boolean"?rt:ge.length>0,[`${gt}-rtl`]:ie==="rtl"},qe==null?void 0:qe.className,be,Ge,ct),he=Se.useMemo(()=>({siderHook:{addSider:Ee=>{ue(Ke=>[].concat((0,ne.Z)(Ke),[Ee]))},removeSider:Ee=>{ue(Ke=>Ke.filter(ht=>ht!==Ee))}}}),[]);return it(Se.createElement(Re.Provider,{value:he},Se.createElement(St,Object.assign({ref:re,className:yt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),me)},Be),ut)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(ze,ot,oe){"use strict";oe.d(ot,{J:function(){return Fe}});var ne=oe(59301),Pe=oe(33234),Xe=oe(70425),Me=function(se,je){var $e={};for(var Ne in se)Object.prototype.hasOwnProperty.call(se,Ne)&&je.indexOf(Ne)<0&&($e[Ne]=se[Ne]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ne=Object.getOwnPropertySymbols(se);Te<Ne.length;Te++)je.indexOf(Ne[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,Ne[Te])&&($e[Ne[Te]]=se[Ne[Te]]);return $e};const Se=ne.createContext(null),Fe=ne.forwardRef((se,je)=>{const{children:$e}=se,Ne=Me(se,["children"]),Te=ne.useContext(Se),He=ne.useMemo(()=>Object.assign(Object.assign({},Te),Ne),[Te,Ne.prefixCls,Ne.mode,Ne.selectable]);return ne.createElement(Se.Provider,{value:He},ne.createElement(Pe.BR,null,(0,Xe.supportNodeRef)($e)?ne.cloneElement($e,{ref:je}):$e))});ot.Z=Se},20834:function(ze,ot,oe){"use strict";oe.d(ot,{default:function(){return xt}});var ne=oe(15285),Pe=oe(59301),Xe=oe(45818),Me=oe(92310),Se=oe.n(Me),Fe=oe(36355),se=function(Ce,ve){var fe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&ve.indexOf(We)<0&&(fe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(Ce);_e<We.length;_e++)ve.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[_e])&&(fe[We[_e]]=Ce[We[_e]]);return fe},$e=Ce=>{const{prefixCls:ve,className:fe,dashed:We}=Ce,_e=se(Ce,["prefixCls","className","dashed"]),{getPrefixCls:st}=Pe.useContext(Fe.E_),Ft=st("menu",ve),bt=Se()({[`${Ft}-item-divider-dashed`]:!!We},fe);return Pe.createElement(ne.iz,Object.assign({className:bt},_e))},Ne=oe(11592),Te=oe(2738),He=oe(6848),Re=oe(92343),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ce=>{var ve;const{className:fe,children:We,icon:_e,title:st,danger:Ft}=Ce,{prefixCls:bt,firstLevel:Mt,direction:It,disableMenuItemTitleTooltip:Ct,inlineCollapsed:jt}=Pe.useContext(a),Gt=Ie=>{const Ve=Pe.createElement("span",{className:`${bt}-title-content`},We);return(!_e||(0,Re.l$)(We)&&We.type==="span")&&We&&Ie&&Mt&&typeof We=="string"?Pe.createElement("div",{className:`${bt}-inline-collapsed-noicon`},We.charAt(0)):Ve},{siderCollapsed:Vt}=Pe.useContext(Xe.D);let Ln=st;typeof st=="undefined"?Ln=Mt?We:"":st===!1&&(Ln="");const gn={title:Ln};!Vt&&!jt&&(gn.title=null,gn.open=!1);const nn=(0,Ne.Z)(We).length;let ye=Pe.createElement(ne.ck,Object.assign({},(0,Te.Z)(Ce,["title","icon","danger"]),{className:Se()({[`${bt}-item-danger`]:Ft,[`${bt}-item-only-child`]:(_e?nn+1:nn)===1},fe),title:typeof st=="string"?st:void 0}),(0,Re.Tm)(_e,{className:Se()((0,Re.l$)(_e)?(ve=_e.props)===null||ve===void 0?void 0:ve.className:"",`${bt}-item-icon`)}),Gt(jt));return Ct||(ye=Pe.createElement(He.Z,Object.assign({},gn,{placement:It==="rtl"?"left":"right",overlayClassName:`${bt}-inline-collapsed-tooltip`}),ye)),ye},x=Ce=>{var ve;const{popupClassName:fe,icon:We,title:_e,theme:st}=Ce,Ft=Pe.useContext(a),{prefixCls:bt,inlineCollapsed:Mt,theme:It}=Ft,Ct=(0,ne.Xl)();let jt;if(!We)jt=Mt&&!Ct.length&&_e&&typeof _e=="string"?Pe.createElement("div",{className:`${bt}-inline-collapsed-noicon`},_e.charAt(0)):Pe.createElement("span",{className:`${bt}-title-content`},_e);else{const Vt=(0,Re.l$)(_e)&&_e.type==="span";jt=Pe.createElement(Pe.Fragment,null,(0,Re.Tm)(We,{className:Se()((0,Re.l$)(We)?(ve=We.props)===null||ve===void 0?void 0:ve.className:"",`${bt}-item-icon`)}),Vt?_e:Pe.createElement("span",{className:`${bt}-title-content`},_e))}const Gt=Pe.useMemo(()=>Object.assign(Object.assign({},Ft),{firstLevel:!1}),[Ft]);return Pe.createElement(a.Provider,{value:Gt},Pe.createElement(ne.Wd,Object.assign({},(0,Te.Z)(Ce,["icon"]),{title:jt,popupClassName:Se()(bt,fe,`${bt}-${st||It}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(Ce,ve){var fe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&ve.indexOf(We)<0&&(fe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(Ce);_e<We.length;_e++)ve.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[_e])&&(fe[We[_e]]=Ce[We[_e]]);return fe};function ge(Ce){return(Ce||[]).map((ve,fe)=>{if(ve&&typeof ve=="object"){const We=ve,{label:_e,children:st,key:Ft,type:bt}=We,Mt=ie(We,["label","children","key","type"]),It=Ft!=null?Ft:`tmp-${fe}`;return st||bt==="group"?bt==="group"?Pe.createElement(ne.BW,Object.assign({key:It},Mt,{title:_e}),ge(st)):Pe.createElement(x,Object.assign({key:It},Mt,{title:_e}),ge(st)):bt==="divider"?Pe.createElement($e,Object.assign({key:It},Mt)):Pe.createElement(E,Object.assign({key:It},Mt),_e)}return null}).filter(ve=>ve)}function ue(Ce){return Pe.useMemo(()=>Ce&&ge(Ce),[Ce])}var le=oe(64993),be=oe(17313),Ge=oe(8378),ut=oe(13826),rt=oe(29878),St=oe(83116),me=oe(37613),Be=Ce=>{const{componentCls:ve,motionDurationSlow:fe,horizontalLineHeight:We,colorSplit:_e,lineWidth:st,lineType:Ft,itemPaddingInline:bt}=Ce;return{[`${ve}-horizontal`]:{lineHeight:We,border:0,borderBottom:`${st}px ${Ft} ${_e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:bt},[`> ${ve}-item:hover,
|
|
> ${ve}-item-active,
|
|
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},qe=Ce=>{let{componentCls:ve,menuArrowOffset:fe}=Ce;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
|
|
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const gt=Ce=>Object.assign({},(0,be.oN)(Ce));var ct=(Ce,ve)=>{const{componentCls:fe,itemColor:We,itemSelectedColor:_e,groupTitleColor:st,itemBg:Ft,subMenuItemBg:bt,itemSelectedBg:Mt,activeBarHeight:It,activeBarWidth:Ct,activeBarBorderWidth:jt,motionDurationSlow:Gt,motionEaseInOut:Vt,motionEaseOut:Ln,itemPaddingInline:gn,motionDurationMid:nn,itemHoverColor:ye,lineType:Ie,colorSplit:Ve,itemDisabledColor:mt,dangerItemColor:pt,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:$t,dangerItemSelectedBg:_t,itemHoverBg:Yt,itemActiveBg:Xt,menuSubMenuBg:en,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:dn,popupBg:an}=Ce;return{[`${fe}-${ve}, ${fe}-${ve} > ${fe}`]:{color:We,background:Ft,[`&${fe}-root:focus-visible`]:Object.assign({},gt(Ce)),[`${fe}-item-group-title`]:{color:st},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:_e}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${mt} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:ye}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Xt}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Xt}}},[`${fe}-item-danger`]:{color:pt,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Rt}},[`&${fe}-item:active`]:{background:$t}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:_e,[`&${fe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:Mt,[`&${fe}-item-danger`]:{backgroundColor:_t}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},gt(Ce))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:en},[`&${fe}-popup > ${fe}`]:{backgroundColor:an},[`&${fe}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:jt,marginTop:-jt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:gn,bottom:0,borderBottom:`${It}px solid transparent`,transition:`border-color ${Gt} ${Vt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:It,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:It,borderBottomColor:fn}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${jt}px ${Ie} ${Ve}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:bt},[`${fe}-item, ${fe}-submenu-title`]:jt&&Ct?{width:`calc(100% + ${jt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ct}px solid ${_e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${nn} ${Ln}`,`opacity ${nn} ${Ln}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${nn} ${Vt}`,`opacity ${nn} ${Vt}`].join(",")}}}}}};const yt=Ce=>{const{componentCls:ve,itemHeight:fe,itemMarginInline:We,padding:_e,menuArrowSize:st,marginXS:Ft,itemMarginBlock:bt}=Ce,Mt=_e+st+Ft;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:_e,overflow:"hidden",textOverflow:"ellipsis",marginInline:We,marginBlock:bt,width:`calc(100% - ${We*2}px)`},[`> ${ve}-item,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${ve}-item-group-list ${ve}-submenu-title,
|
|
${ve}-submenu-title`]:{paddingInlineEnd:Mt}}};var Ee=Ce=>{const{componentCls:ve,iconCls:fe,itemHeight:We,colorTextLightSolid:_e,dropdownWidth:st,controlHeightLG:Ft,motionDurationMid:bt,motionEaseOut:Mt,paddingXL:It,itemMarginInline:Ct,fontSizeLG:jt,motionDurationSlow:Gt,paddingXS:Vt,boxShadowSecondary:Ln,collapsedWidth:gn,collapsedIconSize:nn}=Ce,ye={height:We,lineHeight:`${We}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},yt(Ce))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},yt(Ce)),{boxShadow:Ln})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:st,maxHeight:`calc(100vh - ${Ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gt}`,`background ${Gt}`,`padding ${bt} ${Mt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:ye,[`& ${ve}-item-group-title`]:{paddingInlineStart:It}},[`${ve}-item`]:ye}},{[`${ve}-inline-collapsed`]:{width:gn,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:jt,textAlign:"center"}}},[`> ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${jt/2}px - ${Ct}px)`,textOverflow:"clip",[`
|
|
${ve}-submenu-arrow,
|
|
${ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ve}-item-icon, ${fe}`]:{margin:0,fontSize:nn,lineHeight:`${We}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:_e}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:Vt})}}]};const Ke=Ce=>{const{componentCls:ve,motionDurationSlow:fe,motionDurationMid:We,motionEaseInOut:_e,motionEaseOut:st,iconCls:Ft,iconSize:bt,iconMarginInlineEnd:Mt}=Ce;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${_e}`].join(","),[`${ve}-item-icon, ${Ft}`]:{minWidth:bt,fontSize:bt,transition:[`font-size ${We} ${st}`,`margin ${fe} ${_e}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${fe} ${_e}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${ve}-item-only-child`]:{[`> ${Ft}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ht=Ce=>{const{componentCls:ve,motionDurationSlow:fe,motionEaseInOut:We,borderRadius:_e,menuArrowSize:st,menuArrowOffset:Ft}=Ce;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ce.margin,width:st,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${We}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:st*.6,height:st*.15,backgroundColor:"currentcolor",borderRadius:_e,transition:[`background ${fe} ${We}`,`transform ${fe} ${We}`,`top ${fe} ${We}`,`color ${fe} ${We}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ft})`},"&::after":{transform:`rotate(-45deg) translateY(${Ft})`}}}}},Qe=Ce=>{const{antCls:ve,componentCls:fe,fontSize:We,motionDurationSlow:_e,motionDurationMid:st,motionEaseInOut:Ft,paddingXS:bt,padding:Mt,colorSplit:It,lineWidth:Ct,zIndexPopup:jt,borderRadiusLG:Gt,subMenuItemBorderRadius:Vt,menuArrowSize:Ln,menuArrowOffset:gn,lineType:nn,menuPanelMaskInset:ye,groupTitleLineHeight:Ie,groupTitleFontSize:Ve}=Ce;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(Ce)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:We,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:Ce.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${bt}px ${Mt}px`,fontSize:Ve,lineHeight:Ie,transition:`all ${_e}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${_e} ${Ft}`,`background ${_e} ${Ft}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${_e} ${Ft}`,`background ${_e} ${Ft}`,`padding ${st} ${Ft}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${_e} ${Ft}`,`padding ${_e} ${Ft}`].join(",")},[`${fe}-title-content`]:{transition:`color ${_e}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:It,borderStyle:nn,borderWidth:0,borderTopWidth:Ct,marginBlock:Ct,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ke(Ce)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${We*2}px ${Mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:jt,borderRadius:Gt,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ce.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gt},Ke(Ce)),ht(Ce)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Vt},[`${fe}-submenu-title::after`]:{transition:`transform ${_e} ${Ft}`}})}}),ht(Ce)),{[`&-inline-collapsed ${fe}-submenu-arrow,
|
|
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${gn})`},"&::after":{transform:`rotate(45deg) translateX(-${gn})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${Ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${gn})`},"&::before":{transform:`rotate(45deg) translateX(${gn})`}}})},{[`${ve}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var Pt=(Ce,ve)=>(0,St.Z)("Menu",We=>{if(ve===!1)return[];const{colorBgElevated:_e,colorPrimary:st,colorTextLightSolid:Ft,controlHeightLG:bt,fontSize:Mt,darkItemColor:It,darkDangerItemColor:Ct,darkItemBg:jt,darkSubMenuItemBg:Gt,darkItemSelectedColor:Vt,darkItemSelectedBg:Ln,darkDangerItemSelectedBg:gn,darkItemHoverBg:nn,darkGroupTitleColor:ye,darkItemHoverColor:Ie,darkItemDisabledColor:Ve,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:pt,darkDangerItemActiveBg:Rt}=We,kt=Mt/7*5,$t=(0,me.TS)(We,{menuArrowSize:kt,menuHorizontalHeight:bt*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_e}),_t=(0,me.TS)($t,{itemColor:It,itemHoverColor:Ie,groupTitleColor:ye,itemSelectedColor:Vt,itemBg:jt,popupBg:jt,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:Ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:nn,itemDisabledColor:Ve,dangerItemColor:Ct,dangerItemHoverColor:mt,dangerItemSelectedColor:pt,dangerItemActiveBg:Rt,dangerItemSelectedBg:gn,menuSubMenuBg:Gt,horizontalItemSelectedColor:Ft,horizontalItemSelectedBg:st});return[Qe($t),Be($t),Ee($t),ct($t,"light"),ct(_t,"dark"),qe($t),(0,Ge.Z)($t),(0,ut.oN)($t,"slide-up"),(0,ut.oN)($t,"slide-down"),(0,rt._y)($t,"zoom-big")]},We=>{const{colorPrimary:_e,colorError:st,colorTextDisabled:Ft,colorErrorBg:bt,colorText:Mt,colorTextDescription:It,colorBgContainer:Ct,colorFillAlter:jt,colorFillContent:Gt,lineWidth:Vt,lineWidthBold:Ln,controlItemBgActive:gn,colorBgTextHover:nn,controlHeightLG:ye,lineHeight:Ie,colorBgElevated:Ve,marginXXS:mt,padding:pt,fontSize:Rt,controlHeightSM:kt,fontSizeLG:$t,colorTextLightSolid:_t,colorErrorHover:Yt}=We,Xt=new le.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:We.zIndexPopupBase+50,radiusItem:We.borderRadiusLG,itemBorderRadius:We.borderRadiusLG,radiusSubMenuItem:We.borderRadiusSM,subMenuItemBorderRadius:We.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:_e,horizontalItemHoverColor:_e,colorGroupTitle:It,groupTitleColor:It,colorItemTextSelected:_e,itemSelectedColor:_e,colorItemTextSelectedHorizontal:_e,horizontalItemSelectedColor:_e,colorItemBg:Ct,itemBg:Ct,colorItemBgHover:nn,itemHoverBg:nn,colorItemBgActive:Gt,itemActiveBg:gn,colorSubItemBg:jt,subMenuItemBg:jt,colorItemBgSelected:gn,itemSelectedBg:gn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ln,activeBarHeight:Ln,colorActiveBarBorderSize:Vt,activeBarBorderWidth:Vt,colorItemTextDisabled:Ft,itemDisabledColor:Ft,colorDangerItemText:st,dangerItemColor:st,colorDangerItemTextHover:st,dangerItemHoverColor:st,colorDangerItemTextSelected:st,dangerItemSelectedColor:st,colorDangerItemBgActive:bt,dangerItemActiveBg:bt,colorDangerItemBgSelected:bt,dangerItemSelectedBg:bt,itemMarginInline:We.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Ie,collapsedWidth:ye*2,popupBg:Ve,itemMarginBlock:mt,itemPaddingInline:pt,horizontalLineHeight:`${ye*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:$t,groupTitleFontSize:Rt,darkItemDisabledColor:new le.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Xt,darkDangerItemColor:st,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:_e,darkDangerItemSelectedBg:st,darkItemHoverBg:"transparent",darkGroupTitleColor:Xt,darkItemHoverColor:_t,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:st}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ce),de=function(Ce,ve){var fe={};for(var We in Ce)Object.prototype.hasOwnProperty.call(Ce,We)&&ve.indexOf(We)<0&&(fe[We]=Ce[We]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(Ce);_e<We.length;_e++)ve.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ce,We[_e])&&(fe[We[_e]]=Ce[We[_e]]);return fe},dt=(0,Pe.forwardRef)((Ce,ve)=>{var fe,We;const _e=Pe.useContext(re.Z),st=_e||{},{getPrefixCls:Ft,getPopupContainer:bt,direction:Mt,menu:It}=Pe.useContext(Fe.E_),Ct=Ft(),{prefixCls:jt,className:Gt,style:Vt,theme:Ln="light",expandIcon:gn,_internalDisableMenuItemTitleTooltip:nn,inlineCollapsed:ye,siderCollapsed:Ie,items:Ve,children:mt,rootClassName:pt,mode:Rt,selectable:kt,onClick:$t,overflowedIndicatorPopupClassName:_t}=Ce,Yt=de(Ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xt=(0,Te.Z)(Yt,["collapsedWidth"]),en=ue(Ve)||mt;(fe=st.validator)===null||fe===void 0||fe.call(st,{mode:Rt});const fn=(0,ee.useEvent)(function(){var In;$t==null||$t.apply(void 0,arguments),(In=st.onClick)===null||In===void 0||In.call(st)}),pn=st.mode||Rt,Fn=kt!=null?kt:st.selectable,dn=Pe.useMemo(()=>Ie!==void 0?Ie:ye,[ye,Ie]),an={horizontal:{motionName:`${Ct}-slide-up`},inline:(0,te.Z)(Ct),other:{motionName:`${Ct}-zoom-big`}},vn=Ft("menu",jt||st.prefixCls),[En,xn]=Pt(vn,!_e),un=Se()(`${vn}-${Ln}`,It==null?void 0:It.className,Gt);let Nn;if(typeof gn=="function")Nn=gn;else if(gn===null||gn===!1)Nn=null;else if(st.expandIcon===null||st.expandIcon===!1)Nn=null;else{const In=gn!=null?gn:st.expandIcon;Nn=(0,Re.Tm)(In,{className:Se()(`${vn}-submenu-expand-icon`,(0,Re.l$)(In)?(We=In.props)===null||We===void 0?void 0:We.className:"")})}const Yn=Pe.useMemo(()=>({prefixCls:vn,inlineCollapsed:dn||!1,direction:Mt,firstLevel:!0,theme:Ln,mode:pn,disableMenuItemTitleTooltip:nn}),[vn,dn,Mt,nn,Ln]);return En(Pe.createElement(re.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Yn},Pe.createElement(ne.ZP,Object.assign({getPopupContainer:bt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(vn,`${vn}-${Ln}`,_t),mode:pn,selectable:Fn,onClick:fn},Xt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},It==null?void 0:It.style),Vt),className:un,prefixCls:vn,direction:Mt,defaultMotions:an,expandIcon:Nn,ref:ve,rootClassName:Se()(pt,xn)}),en))))});const Ot=(0,Pe.forwardRef)((Ce,ve)=>{const fe=(0,Pe.useRef)(null),We=Pe.useContext(Xe.D);return(0,Pe.useImperativeHandle)(ve,()=>({menu:fe.current,focus:_e=>{var st;(st=fe.current)===null||st===void 0||st.focus(_e)}})),Pe.createElement(dt,Object.assign({ref:fe},Ce,We))});Ot.Item=E,Ot.SubMenu=x,Ot.Divider=$e,Ot.ItemGroup=ne.BW;var xt=Ot},93948:function(ze,ot,oe){"use strict";oe.d(ot,{Z:function(){return nn}});var ne=oe(59301),Pe=oe(29679),Xe=oe(40001),Me=oe(19248),Se=oe(99267),Fe=oe(92310),se=oe.n(Fe),je=oe(2738),$e=oe(36355),Ne=oe(54476),Te=oe(33885),He=oe(75931),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ie=(0,ne.useRef)([]),Ve=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),pt=!1;Ie.current.forEach(function(Rt){if(Rt){pt=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Ve.current&&mt-Ve.current<100&&(kt.transitionDuration="0s, 0s")}}),pt&&(Ve.current=Date.now())}),Ie.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ie){var Ve=(0,Te.Z)((0,Te.Z)({},Re),Ie),mt=Ve.className,pt=Ve.percent,Rt=Ve.prefixCls,kt=Ve.strokeColor,$t=Ve.strokeLinecap,_t=Ve.strokeWidth,Yt=Ve.style,Xt=Ve.trailColor,en=Ve.trailWidth,fn=Ve.transition,pn=(0,He.Z)(Ve,a);delete pn.gapPosition;var Fn=Array.isArray(pt)?pt:[pt],dn=Array.isArray(kt)?kt:[kt],an=ae(),vn=_t/2,En=100-_t/2,xn="M ".concat($t==="round"?vn:0,",").concat(vn,`
|
|
L `).concat($t==="round"?En:100,",").concat(vn),un="0 0 100 ".concat(_t),Nn=0;return ne.createElement("svg",(0,Ne.Z)({className:se()("".concat(Rt,"-line"),mt),viewBox:un,preserveAspectRatio:"none",style:Yt},pn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:xn,strokeLinecap:$t,stroke:Xt,strokeWidth:en||_t,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch($t){case"round":Wn=1-_t/100;break;case"square":Wn=1-_t/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:fn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[In]||dn[dn.length-1];return Nn+=Yn,ne.createElement("path",{key:In,className:"".concat(Rt,"-line-path"),d:xn,strokeLinecap:$t,stroke:Jn,strokeWidth:_t,fillOpacity:"0",ref:function(we){an[In]=we},style:na})}))},E=y,b=oe(76190),x=oe(42978),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var ye;return te?(ye=ee,ee+=1):ye="TEST_OR_SSR",ye}var ie=function(ye){var Ie=ne.useState(),Ve=(0,x.Z)(Ie,2),mt=Ve[0],pt=Ve[1];return ne.useEffect(function(){pt("rc_progress_".concat(re()))},[]),ye||mt},ge=function(Ie){var Ve=Ie.bg,mt=Ie.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Ve}},mt)};function ue(ye,Ie){return Object.keys(ye).map(function(Ve){var mt=parseFloat(Ve),pt="".concat(Math.floor(mt*Ie),"%");return"".concat(ye[Ve]," ").concat(pt)})}var le=ne.forwardRef(function(ye,Ie){var Ve=ye.prefixCls,mt=ye.color,pt=ye.gradientId,Rt=ye.radius,kt=ye.style,$t=ye.ptg,_t=ye.strokeLinecap,Yt=ye.strokeWidth,Xt=ye.size,en=ye.gapDegree,fn=mt&&(0,b.Z)(mt)==="object",pn=fn?"#FFF":void 0,Fn=Xt/2,dn=ne.createElement("circle",{className:"".concat(Ve,"-circle-path"),r:Rt,cx:Fn,cy:Fn,stroke:pn,strokeLinecap:_t,strokeWidth:Yt,opacity:$t===0?0:1,style:kt,ref:Ie});if(!fn)return dn;var an="".concat(pt,"-conic"),vn=en?"".concat(180+en/2,"deg"):"0deg",En=ue(mt,(360-en)/360),xn=ue(mt,1),un="conic-gradient(from ".concat(vn,", ").concat(En.join(", "),")"),Nn="linear-gradient(to ".concat(en?"bottom":"top",", ").concat(xn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:an},dn),ne.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(an,")")},ne.createElement(ge,{bg:Nn},ne.createElement(ge,{bg:un}))))}),be=le,Ge=100,ut=function(Ie,Ve,mt,pt,Rt,kt,$t,_t,Yt,Xt){var en=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fn=mt/100*360*((360-kt)/360),pn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[$t],Fn=(100-pt)/100*Ve;Yt==="round"&&pt!==100&&(Fn+=Xt/2,Fn>=Ve&&(Fn=Ve-.01));var dn=Ge/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(Ve,"px ").concat(Ie),strokeDashoffset:Fn+en,transform:"rotate(".concat(Rt+fn+pn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function St(ye){var Ie=ye!=null?ye:[];return Array.isArray(Ie)?Ie:[Ie]}var me=function(Ie){var Ve=(0,Te.Z)((0,Te.Z)({},Re),Ie),mt=Ve.id,pt=Ve.prefixCls,Rt=Ve.steps,kt=Ve.strokeWidth,$t=Ve.trailWidth,_t=Ve.gapDegree,Yt=_t===void 0?0:_t,Xt=Ve.gapPosition,en=Ve.trailColor,fn=Ve.strokeLinecap,pn=Ve.style,Fn=Ve.className,dn=Ve.strokeColor,an=Ve.percent,vn=(0,He.Z)(Ve,rt),En=Ge/2,xn=ie(mt),un="".concat(xn,"-gradient"),Nn=En-kt/2,Yn=Math.PI*2*Nn,In=Yt>0?90+Yt/2:-90,Wn=Yn*((360-Yt)/360),na=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Jn=na.count,Le=na.space,we=St(an),pe=St(dn),lt=pe.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Nt=lt&&(0,b.Z)(lt)==="object",Bt=Nt?"butt":fn,ln=ut(Yn,Wn,0,100,In,Yt,Xt,en,Bt,kt),Wt=ae(),Qt=function(){var at=0;return we.map(function(qt,Tn){var Zn=pe[Tn]||pe[pe.length-1],Cn=ut(Yn,Wn,at,qt,In,Yt,Xt,Zn,Bt,kt);return at+=qt,ne.createElement(be,{key:Tn,color:Zn,ptg:qt,radius:Nn,prefixCls:pt,gradientId:un,style:Cn,strokeLinecap:Bt,strokeWidth:kt,gapDegree:Yt,ref:function(Ae){Wt[Tn]=Ae},size:Ge})}).reverse()},yn=function(){var at=Math.round(Jn*(we[0]/100)),qt=100/Jn,Tn=0;return new Array(Jn).fill(null).map(function(Zn,Cn){var ce=Cn<=at-1?pe[0]:en,Ae=ce&&(0,b.Z)(ce)==="object"?"url(#".concat(un,")"):void 0,De=ut(Yn,Wn,Tn,qt,In,Yt,Xt,ce,"butt",kt,Le);return Tn+=(Wn-De.strokeDashoffset+Le)*100/Wn,ne.createElement("circle",{key:Cn,className:"".concat(pt,"-circle-path"),r:Nn,cx:En,cy:En,stroke:Ae,strokeWidth:kt,opacity:1,style:De,ref:function(et){Wt[Cn]=et}})})};return ne.createElement("svg",(0,Ne.Z)({className:se()("".concat(pt,"-circle"),Fn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:pn,id:mt,role:"presentation"},vn),!Jn&&ne.createElement("circle",{className:"".concat(pt,"-circle-trail"),r:Nn,cx:En,cy:En,stroke:en,strokeLinecap:Bt,strokeWidth:$t||kt,style:ln}),Jn?yn():Qt())},Oe=me,Be={Line:E,Circle:Oe},ke=oe(6848),qe=oe(30071);function gt(ye){return!ye||ye<0?0:ye>100?100:ye}function it(ye){let{success:Ie,successPercent:Ve}=ye,mt=Ve;return Ie&&"progress"in Ie&&(mt=Ie.progress),Ie&&"percent"in Ie&&(mt=Ie.percent),mt}const ct=ye=>{let{percent:Ie,success:Ve,successPercent:mt}=ye;const pt=gt(it({success:Ve,successPercent:mt}));return[pt,gt(gt(Ie)-pt)]},yt=ye=>{let{success:Ie={},strokeColor:Ve}=ye;const{strokeColor:mt}=Ie;return[mt||qe.presetPrimaryColors.green,Ve||null]},he=(ye,Ie,Ve)=>{var mt,pt,Rt,kt;let $t=-1,_t=-1;if(Ie==="step"){const Yt=Ve.steps,Xt=Ve.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?($t=ye==="small"?2:14,_t=Xt!=null?Xt:8):typeof ye=="number"?[$t,_t]=[ye,ye]:[$t=14,_t=8]=ye,$t*=Yt}else if(Ie==="line"){const Yt=Ve==null?void 0:Ve.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?_t=Yt||(ye==="small"?6:8):typeof ye=="number"?[$t,_t]=[ye,ye]:[$t=-1,_t=8]=ye}else(Ie==="circle"||Ie==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[$t,_t]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[$t,_t]=[ye,ye]:($t=(pt=(mt=ye[0])!==null&&mt!==void 0?mt:ye[1])!==null&&pt!==void 0?pt:120,_t=(kt=(Rt=ye[0])!==null&&Rt!==void 0?Rt:ye[1])!==null&&kt!==void 0?kt:120));return[$t,_t]},Ee=3,Ke=ye=>Ee/ye*100;var Qe=ye=>{const{prefixCls:Ie,trailColor:Ve=null,strokeLinecap:mt="round",gapPosition:pt,gapDegree:Rt,width:kt=120,type:$t,children:_t,success:Yt,size:Xt=kt}=ye,[en,fn]=he(Xt,"circle");let{strokeWidth:pn}=ye;pn===void 0&&(pn=Math.max(Ke(en),6));const Fn={width:en,height:fn,fontSize:en*.15+6},dn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if($t==="dashboard")return 75},[Rt,$t]),an=pt||$t==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",En=yt({success:Yt,strokeColor:ye.strokeColor}),xn=se()(`${Ie}-inner`,{[`${Ie}-circle-gradient`]:vn}),un=ne.createElement(Oe,{percent:ct(ye),strokeWidth:pn,trailWidth:pn,strokeColor:En,strokeLinecap:mt,trailColor:Ve,prefixCls:Ie,gapDegree:dn,gapPosition:an});return ne.createElement("div",{className:xn,style:Fn},en<=20?ne.createElement(ke.Z,{title:_t},ne.createElement("span",null,un)):ne.createElement(ne.Fragment,null,un,_t))},Pt=function(ye,Ie){var Ve={};for(var mt in ye)Object.prototype.hasOwnProperty.call(ye,mt)&&Ie.indexOf(mt)<0&&(Ve[mt]=ye[mt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ye);pt<mt.length;pt++)Ie.indexOf(mt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,mt[pt])&&(Ve[mt[pt]]=ye[mt[pt]]);return Ve};const de=ye=>{let Ie=[];return Object.keys(ye).forEach(Ve=>{const mt=parseFloat(Ve.replace(/%/g,""));isNaN(mt)||Ie.push({key:mt,value:ye[Ve]})}),Ie=Ie.sort((Ve,mt)=>Ve.key-mt.key),Ie.map(Ve=>{let{key:mt,value:pt}=Ve;return`${pt} ${mt}%`}).join(", ")},Je=(ye,Ie)=>{const{from:Ve=qe.presetPrimaryColors.blue,to:mt=qe.presetPrimaryColors.blue,direction:pt=Ie==="rtl"?"to left":"to right"}=ye,Rt=Pt(ye,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${pt}, ${kt})`}}return{backgroundImage:`linear-gradient(${pt}, ${Ve}, ${mt})`}};var Ot=ye=>{const{prefixCls:Ie,direction:Ve,percent:mt,size:pt,strokeWidth:Rt,strokeColor:kt,strokeLinecap:$t="round",children:_t,trailColor:Yt=null,success:Xt}=ye,en=kt&&typeof kt!="string"?Je(kt,Ve):{backgroundColor:kt},fn=$t==="square"||$t==="butt"?0:void 0,pn={backgroundColor:Yt||void 0,borderRadius:fn},Fn=pt!=null?pt:[-1,Rt||(pt==="small"?6:8)],[dn,an]=he(Fn,"line",{strokeWidth:Rt}),vn=Object.assign({width:`${gt(mt)}%`,height:an,borderRadius:fn},en),En=it(ye),xn={width:`${gt(En)}%`,height:an,borderRadius:fn,backgroundColor:Xt==null?void 0:Xt.strokeColor},un={width:dn<0?"100%":dn,height:an};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Ie}-outer`,style:un},ne.createElement("div",{className:`${Ie}-inner`,style:pn},ne.createElement("div",{className:`${Ie}-bg`,style:vn}),En!==void 0?ne.createElement("div",{className:`${Ie}-success-bg`,style:xn}):null)),_t)},Ce=ye=>{const{size:Ie,steps:Ve,percent:mt=0,strokeWidth:pt=8,strokeColor:Rt,trailColor:kt=null,prefixCls:$t,children:_t}=ye,Yt=Math.round(Ve*(mt/100)),Xt=Ie==="small"?2:14,en=Ie!=null?Ie:[Xt,pt],[fn,pn]=he(en,"step",{steps:Ve,strokeWidth:pt}),Fn=fn/Ve,dn=new Array(Ve);for(let an=0;an<Ve;an++){const vn=Array.isArray(Rt)?Rt[an]:Rt;dn[an]=ne.createElement("div",{key:an,className:se()(`${$t}-steps-item`,{[`${$t}-steps-item-active`]:an<=Yt-1}),style:{backgroundColor:an<=Yt-1?vn:kt,width:Fn,height:pn}})}return ne.createElement("div",{className:`${$t}-steps-outer`},dn,_t)},ve=oe(36237),fe=oe(17313),We=oe(83116),_e=oe(37613);const st=ye=>{const Ie=ye?"100%":"-100%";return new ve.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ie}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ie}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ft=ye=>{const{componentCls:Ie,iconCls:Ve}=ye;return{[Ie]:Object.assign(Object.assign({},(0,fe.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Ie}-outer`]:{display:"inline-block",width:"100%"},[`&${Ie}-show-info`]:{[`${Ie}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Ie}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Ie}-inner:not(${Ie}-circle-gradient)`]:{[`${Ie}-circle-path`]:{stroke:ye.defaultColor}},[`${Ie}-success-bg, ${Ie}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Ie}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Ie}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ve]:{fontSize:ye.fontSize}},[`&${Ie}-status-active`]:{[`${Ie}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:st(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ie}-rtl${Ie}-status-active`]:{[`${Ie}-bg::before`]:{animationName:st(!0)}},[`&${Ie}-status-exception`]:{[`${Ie}-bg`]:{backgroundColor:ye.colorError},[`${Ie}-text`]:{color:ye.colorError}},[`&${Ie}-status-exception ${Ie}-inner:not(${Ie}-circle-gradient)`]:{[`${Ie}-circle-path`]:{stroke:ye.colorError}},[`&${Ie}-status-success`]:{[`${Ie}-bg`]:{backgroundColor:ye.colorSuccess},[`${Ie}-text`]:{color:ye.colorSuccess}},[`&${Ie}-status-success ${Ie}-inner:not(${Ie}-circle-gradient)`]:{[`${Ie}-circle-path`]:{stroke:ye.colorSuccess}}})}},bt=ye=>{const{componentCls:Ie,iconCls:Ve}=ye;return{[Ie]:{[`${Ie}-circle-trail`]:{stroke:ye.remainingColor},[`&${Ie}-circle ${Ie}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ie}-circle ${Ie}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ve]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Ie}-circle&-status-exception`]:{[`${Ie}-text`]:{color:ye.colorError}},[`${Ie}-circle&-status-success`]:{[`${Ie}-text`]:{color:ye.colorSuccess}}},[`${Ie}-inline-circle`]:{lineHeight:1,[`${Ie}-inner`]:{verticalAlign:"bottom"}}}},Mt=ye=>{const{componentCls:Ie}=ye;return{[Ie]:{[`${Ie}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},It=ye=>{const{componentCls:Ie,iconCls:Ve}=ye;return{[Ie]:{[`${Ie}-small&-line, ${Ie}-small&-line ${Ie}-text ${Ve}`]:{fontSize:ye.fontSizeSM}}}};var Ct=(0,We.Z)("Progress",ye=>{const Ie=ye.marginXXS/2,Ve=(0,_e.TS)(ye,{progressStepMarginInlineEnd:Ie,progressStepMinWidth:Ie,progressActiveMotionDuration:"2.4s"});return[Ft(Ve),bt(Ve),Mt(Ve),It(Ve)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),jt=function(ye,Ie){var Ve={};for(var mt in ye)Object.prototype.hasOwnProperty.call(ye,mt)&&Ie.indexOf(mt)<0&&(Ve[mt]=ye[mt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ye);pt<mt.length;pt++)Ie.indexOf(mt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,mt[pt])&&(Ve[mt[pt]]=ye[mt[pt]]);return Ve};const Gt=null,Vt=["normal","exception","active","success"];var gn=ne.forwardRef((ye,Ie)=>{const{prefixCls:Ve,className:mt,rootClassName:pt,steps:Rt,strokeColor:kt,percent:$t=0,size:_t="default",showInfo:Yt=!0,type:Xt="line",status:en,format:fn,style:pn}=ye,Fn=jt(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ne.useMemo(()=>{var we,pe;const lt=it(ye);return parseInt(lt!==void 0?(we=lt!=null?lt:0)===null||we===void 0?void 0:we.toString():(pe=$t!=null?$t:0)===null||pe===void 0?void 0:pe.toString(),10)},[$t,ye.success,ye.successPercent]),an=ne.useMemo(()=>!Vt.includes(en)&&dn>=100?"success":en||"normal",[en,dn]),{getPrefixCls:vn,direction:En,progress:xn}=ne.useContext($e.E_),un=vn("progress",Ve),[Nn,Yn]=Ct(un),In=ne.useMemo(()=>{if(!Yt)return null;const we=it(ye);let pe;const lt=fn||(Bt=>`${Bt}%`),Nt=Xt==="line";return fn||an!=="exception"&&an!=="success"?pe=lt(gt($t),gt(we)):an==="exception"?pe=Nt?ne.createElement(Me.Z,null):ne.createElement(Se.Z,null):an==="success"&&(pe=Nt?ne.createElement(Pe.Z,null):ne.createElement(Xe.Z,null)),ne.createElement("span",{className:`${un}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Yt,$t,dn,an,Xt,un,fn]),Wn=Array.isArray(kt)?kt[0]:kt,na=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Jn;Xt==="line"?Jn=Rt?ne.createElement(Ce,Object.assign({},ye,{strokeColor:na,prefixCls:un,steps:Rt}),In):ne.createElement(Ot,Object.assign({},ye,{strokeColor:Wn,prefixCls:un,direction:En}),In):(Xt==="circle"||Xt==="dashboard")&&(Jn=ne.createElement(Qe,Object.assign({},ye,{strokeColor:Wn,prefixCls:un,progressStatus:an}),In));const Le=se()(un,`${un}-status-${an}`,`${un}-${Xt==="dashboard"&&"circle"||Rt&&"steps"||Xt}`,{[`${un}-inline-circle`]:Xt==="circle"&&he(_t,"circle")[0]<=20,[`${un}-show-info`]:Yt,[`${un}-${_t}`]:typeof _t=="string",[`${un}-rtl`]:En==="rtl"},xn==null?void 0:xn.className,mt,pt,Yn);return Nn(ne.createElement("div",Object.assign({ref:Ie,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),pn),className:Le,role:"progressbar","aria-valuenow":dn},(0,je.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),nn=gn},54580:function(ze,ot,oe){"use strict";oe.d(ot,{default:function(){return Cn}});var ne=oe(59301),Pe=oe(94480),Xe=oe(92310),Me=oe.n(Xe),Se=oe(54476),Fe=oe(67732),se=oe(83652),je=oe(42403),$e=oe(158),Ne=oe(20068),Te=oe(75931),He=oe(75044),Re=oe(76190),ae=oe(3202),a=oe(26112);function y(ce,Ae){var De="cannot ".concat(ce.method," ").concat(ce.action," ").concat(Ae.status,"'"),Ze=new Error(De);return Ze.status=Ae.status,Ze.method=ce.method,Ze.url=ce.action,Ze}function E(ce){var Ae=ce.responseText||ce.response;if(!Ae)return Ae;try{return JSON.parse(Ae)}catch(De){return Ae}}function b(ce){var Ae=new XMLHttpRequest;ce.onProgress&&Ae.upload&&(Ae.upload.onprogress=function(nt){nt.total>0&&(nt.percent=nt.loaded/nt.total*100),ce.onProgress(nt)});var De=new FormData;ce.data&&Object.keys(ce.data).forEach(function(et){var nt=ce.data[et];if(Array.isArray(nt)){nt.forEach(function(Ye){De.append("".concat(et,"[]"),Ye)});return}De.append(et,nt)}),ce.file instanceof Blob?De.append(ce.filename,ce.file,ce.file.name):De.append(ce.filename,ce.file),Ae.onerror=function(nt){ce.onError(nt)},Ae.onload=function(){return Ae.status<200||Ae.status>=300?ce.onError(y(ce,Ae),E(Ae)):ce.onSuccess(E(Ae),Ae)},Ae.open(ce.method,ce.action,!0),ce.withCredentials&&"withCredentials"in Ae&&(Ae.withCredentials=!0);var Ze=ce.headers||{};return Ze["X-Requested-With"]!==null&&Ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ze).forEach(function(et){Ze[et]!==null&&Ae.setRequestHeader(et,Ze[et])}),Ae.send(De),{abort:function(){Ae.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ce,Ae){if(ce&&Ae){var De=Array.isArray(Ae)?Ae:Ae.split(","),Ze=ce.name||"",et=ce.type||"",nt=et.replace(/\/.*$/,"");return De.some(function(Ye){var Ue=Ye.trim();if(/^\*(\/\*)?$/.test(Ye))return!0;if(Ue.charAt(0)==="."){var At=Ze.toLowerCase(),Tt=Ue.toLowerCase(),xe=[Tt];return(Tt===".jpg"||Tt===".jpeg")&&(xe=[".jpg",".jpeg"]),xe.some(function(on){return At.endsWith(on)})}return/\/\*$/.test(Ue)?nt===Ue.replace(/\/.*$/,""):et===Ue?!0:/^\w+$/.test(Ue)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ue,"'.Skip for check.")),!0):!1})}return!0};function ie(ce,Ae){var De=ce.createReader(),Ze=[];function et(){De.readEntries(function(nt){var Ye=Array.prototype.slice.apply(nt);Ze=Ze.concat(Ye);var Ue=!Ye.length;Ue?Ae(Ze):et()})}et()}var ge=function(Ae,De,Ze){var et=function nt(Ye,Ue){Ye&&(Ye.path=Ue||"",Ye.isFile?Ye.file(function(At){Ze(At)&&(Ye.fullPath&&!At.webkitRelativePath&&(Object.defineProperties(At,{webkitRelativePath:{writable:!0}}),At.webkitRelativePath=Ye.fullPath.replace(/^\//,""),Object.defineProperties(At,{webkitRelativePath:{writable:!1}})),De([At]))}):Ye.isDirectory&&ie(Ye,function(At){At.forEach(function(Tt){nt(Tt,"".concat(Ue).concat(Ye.name,"/"))})}))};Ae.forEach(function(nt){et(nt.webkitGetAsEntry())})},ue=ge,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],be=function(ce){(0,je.Z)(De,ce);var Ae=(0,$e.Z)(De);function De(){var Ze;(0,Fe.Z)(this,De);for(var et=arguments.length,nt=new Array(et),Ye=0;Ye<et;Ye++)nt[Ye]=arguments[Ye];return Ze=Ae.call.apply(Ae,[this].concat(nt)),Ze.state={uid:ee()},Ze.reqs={},Ze.fileInput=void 0,Ze._isMounted=void 0,Ze.onChange=function(Ue){var At=Ze.props,Tt=At.accept,xe=At.directory,on=Ue.target.files,tn=(0,Pe.Z)(on).filter(function(hn){return!xe||re(hn,Tt)});Ze.uploadFiles(tn),Ze.reset()},Ze.onClick=function(Ue){var At=Ze.fileInput;if(At){var Tt=Ue.target,xe=Ze.props.onClick;if(Tt&&Tt.tagName==="BUTTON"){var on=At.parentNode;on.focus(),Tt.blur()}At.click(),xe&&xe(Ue)}},Ze.onKeyDown=function(Ue){Ue.key==="Enter"&&Ze.onClick(Ue)},Ze.onFileDrop=function(Ue){var At=Ze.props.multiple;if(Ue.preventDefault(),Ue.type!=="dragover")if(Ze.props.directory)ue(Array.prototype.slice.call(Ue.dataTransfer.items),Ze.uploadFiles,function(xe){return re(xe,Ze.props.accept)});else{var Tt=(0,Pe.Z)(Ue.dataTransfer.files).filter(function(xe){return re(xe,Ze.props.accept)});At===!1&&(Tt=Tt.slice(0,1)),Ze.uploadFiles(Tt)}},Ze.uploadFiles=function(Ue){var At=(0,Pe.Z)(Ue),Tt=At.map(function(xe){return xe.uid=ee(),Ze.processFile(xe,At)});Promise.all(Tt).then(function(xe){var on=Ze.props.onBatchStart;on==null||on(xe.map(function(tn){var hn=tn.origin,Bn=tn.parsedFile;return{file:hn,parsedFile:Bn}})),xe.filter(function(tn){return tn.parsedFile!==null}).forEach(function(tn){Ze.post(tn)})})},Ze.processFile=function(){var Ue=(0,ae.Z)((0,He.Z)().mark(function At(Tt,xe){var on,tn,hn,Bn,tt,Lt,Dt,vt,Kt;return(0,He.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(on=Ze.props.beforeUpload,tn=Tt,!on){Ht.next=14;break}return Ht.prev=3,Ht.next=6,on(Tt,xe);case 6:tn=Ht.sent,Ht.next=12;break;case 9:Ht.prev=9,Ht.t0=Ht.catch(3),tn=!1;case 12:if(tn!==!1){Ht.next=14;break}return Ht.abrupt("return",{origin:Tt,parsedFile:null,action:null,data:null});case 14:if(hn=Ze.props.action,typeof hn!="function"){Ht.next=21;break}return Ht.next=18,hn(Tt);case 18:Bn=Ht.sent,Ht.next=22;break;case 21:Bn=hn;case 22:if(tt=Ze.props.data,typeof tt!="function"){Ht.next=29;break}return Ht.next=26,tt(Tt);case 26:Lt=Ht.sent,Ht.next=30;break;case 29:Lt=tt;case 30:return Dt=((0,Re.Z)(tn)==="object"||typeof tn=="string")&&tn?tn:Tt,Dt instanceof File?vt=Dt:vt=new File([Dt],Tt.name,{type:Tt.type}),Kt=vt,Kt.uid=Tt.uid,Ht.abrupt("return",{origin:Tt,data:Lt,parsedFile:Kt,action:Bn});case 35:case"end":return Ht.stop()}},At,null,[[3,9]])}));return function(At,Tt){return Ue.apply(this,arguments)}}(),Ze.saveFileInput=function(Ue){Ze.fileInput=Ue},Ze}return(0,se.Z)(De,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(et){var nt=this,Ye=et.data,Ue=et.origin,At=et.action,Tt=et.parsedFile;if(this._isMounted){var xe=this.props,on=xe.onStart,tn=xe.customRequest,hn=xe.name,Bn=xe.headers,tt=xe.withCredentials,Lt=xe.method,Dt=Ue.uid,vt=tn||b,Kt={action:At,filename:hn,data:Ye,file:Tt,headers:Bn,withCredentials:tt,method:Lt||"post",onProgress:function(Ht){var Sn=nt.props.onProgress;Sn==null||Sn(Ht,Tt)},onSuccess:function(Ht,Sn){var Pn=nt.props.onSuccess;Pn==null||Pn(Ht,Tt,Sn),delete nt.reqs[Dt]},onError:function(Ht,Sn){var Pn=nt.props.onError;Pn==null||Pn(Ht,Sn,Tt),delete nt.reqs[Dt]}};on(Ue),this.reqs[Dt]=vt(Kt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(et){var nt=this.reqs;if(et){var Ye=et.uid?et.uid:et;nt[Ye]&&nt[Ye].abort&&nt[Ye].abort(),delete nt[Ye]}else Object.keys(nt).forEach(function(Ue){nt[Ue]&&nt[Ue].abort&&nt[Ue].abort(),delete nt[Ue]})}},{key:"render",value:function(){var et=this.props,nt=et.component,Ye=et.prefixCls,Ue=et.className,At=et.disabled,Tt=et.id,xe=et.style,on=et.multiple,tn=et.accept,hn=et.capture,Bn=et.children,tt=et.directory,Lt=et.openFileDialogOnClick,Dt=et.onMouseEnter,vt=et.onMouseLeave,Kt=(0,Te.Z)(et,le),Jt=Me()((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},Ye,!0),"".concat(Ye,"-disabled"),At),Ue,Ue)),Ht=tt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=At?{}:{onClick:Lt?this.onClick:function(){},onKeyDown:Lt?this.onKeyDown:function(){},onMouseEnter:Dt,onMouseLeave:vt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(nt,(0,Se.Z)({},Sn,{className:Jt,role:"button",style:xe}),ne.createElement("input",(0,Se.Z)({},(0,a.Z)(Kt,{aria:!0,data:!0}),{id:Tt,disabled:At,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:tn},Ht,{multiple:on,onChange:this.onChange},hn!=null?{capture:hn}:{})),Bn)}}]),De}(ne.Component),Ge=be;function ut(){}var rt=function(ce){(0,je.Z)(De,ce);var Ae=(0,$e.Z)(De);function De(){var Ze;(0,Fe.Z)(this,De);for(var et=arguments.length,nt=new Array(et),Ye=0;Ye<et;Ye++)nt[Ye]=arguments[Ye];return Ze=Ae.call.apply(Ae,[this].concat(nt)),Ze.uploader=void 0,Ze.saveUploader=function(Ue){Ze.uploader=Ue},Ze}return(0,se.Z)(De,[{key:"abort",value:function(et){this.uploader.abort(et)}},{key:"render",value:function(){return ne.createElement(Ge,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),De}(ne.Component);rt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ut,onError:ut,onSuccess:ut,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var St=rt,me=St,Oe=oe(18929),Be=oe(4676),ke=oe(36355),qe=oe(1684),gt=oe(9763),it=oe(31724),ct={icon:function(Ae,De){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:De}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ae}}]}},name:"file",theme:"twotone"},yt=ct,he=oe(7657),Ee=function(Ae,De){return ne.createElement(he.Z,(0,Se.Z)({},Ae,{ref:De,icon:yt}))},Ke=ne.forwardRef(Ee),ht=Ke,Qe=oe(58617),Pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=Pt,Je=function(Ae,De){return ne.createElement(he.Z,(0,Se.Z)({},Ae,{ref:De,icon:de}))},dt=ne.forwardRef(Je),Ot=dt,xt={icon:function(Ae,De){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ae}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:De}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:De}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:De}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ae}}]}},name:"picture",theme:"twotone"},Ce=xt,ve=function(Ae,De){return ne.createElement(he.Z,(0,Se.Z)({},Ae,{ref:De,icon:Ce}))},fe=ne.forwardRef(ve),We=fe,_e=oe(77900),st=oe(56762),Ft=oe(62892),bt=oe(92343),Mt=oe(3113);function It(ce){return Object.assign(Object.assign({},ce),{lastModified:ce.lastModified,lastModifiedDate:ce.lastModifiedDate,name:ce.name,size:ce.size,type:ce.type,uid:ce.uid,percent:0,originFileObj:ce})}function Ct(ce,Ae){const De=(0,Pe.Z)(Ae),Ze=De.findIndex(et=>{let{uid:nt}=et;return nt===ce.uid});return Ze===-1?De.push(ce):De[Ze]=ce,De}function jt(ce,Ae){const De=ce.uid!==void 0?"uid":"name";return Ae.filter(Ze=>Ze[De]===ce[De])[0]}function Gt(ce,Ae){const De=ce.uid!==void 0?"uid":"name",Ze=Ae.filter(et=>et[De]!==ce[De]);return Ze.length===Ae.length?null:Ze}const Vt=function(){const Ae=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ze=Ae[Ae.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ze)||[""])[0]},Ln=ce=>ce.indexOf("image/")===0,gn=ce=>{if(ce.type&&!ce.thumbUrl)return Ln(ce.type);const Ae=ce.thumbUrl||ce.url||"",De=Vt(Ae);return/^data:image\//.test(Ae)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(De)?!0:!(/^data:/.test(Ae)||De)},nn=200;function ye(ce){return new Promise(Ae=>{if(!ce.type||!Ln(ce.type)){Ae("");return}const De=document.createElement("canvas");De.width=nn,De.height=nn,De.style.cssText=`position: fixed; left: 0; top: 0; width: ${nn}px; height: ${nn}px; z-index: 9999; display: none;`,document.body.appendChild(De);const Ze=De.getContext("2d"),et=new Image;if(et.onload=()=>{const{width:nt,height:Ye}=et;let Ue=nn,At=nn,Tt=0,xe=0;nt>Ye?(At=Ye*(nn/nt),xe=-(At-Ue)/2):(Ue=nt*(nn/Ye),Tt=-(Ue-At)/2),Ze.drawImage(et,Tt,xe,Ue,At);const on=De.toDataURL();document.body.removeChild(De),window.URL.revokeObjectURL(et.src),Ae(on)},et.crossOrigin="anonymous",ce.type.startsWith("image/svg+xml")){const nt=new FileReader;nt.onload=()=>{nt.result&&(et.src=nt.result)},nt.readAsDataURL(ce)}else if(ce.type.startsWith("image/gif")){const nt=new FileReader;nt.onload=()=>{nt.result&&Ae(nt.result)},nt.readAsDataURL(ce)}else et.src=window.URL.createObjectURL(ce)})}var Ie=oe(26227),Ve=oe(41464),mt=oe(15277),pt=oe(93948),Rt=oe(6848),$t=ne.forwardRef((ce,Ae)=>{let{prefixCls:De,className:Ze,style:et,locale:nt,listType:Ye,file:Ue,items:At,progress:Tt,iconRender:xe,actionIconRender:on,itemRender:tn,isImgUrl:hn,showPreviewIcon:Bn,showRemoveIcon:tt,showDownloadIcon:Lt,previewIcon:Dt,removeIcon:vt,downloadIcon:Kt,onPreview:Jt,onDownload:Ht,onClose:Sn}=ce;var Pn,oa;const{status:Qn}=Ue,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const Dn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Dn)}},[]);const da=xe(Ue);let Kn=ne.createElement("div",{className:`${De}-icon`},da);if(Ye==="picture"||Ye==="picture-card"||Ye==="picture-circle")if(qn==="uploading"||!Ue.thumbUrl&&!Ue.url){const Dn=Me()(`${De}-list-item-thumbnail`,{[`${De}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:Dn},da)}else{const Dn=hn!=null&&hn(Ue)?ne.createElement("img",{src:Ue.thumbUrl||Ue.url,alt:Ue.name,className:`${De}-list-item-image`,crossOrigin:Ue.crossOrigin}):da,Gn=Me()(`${De}-list-item-thumbnail`,{[`${De}-list-item-file`]:hn&&!hn(Ue)});Kn=ne.createElement("a",{className:Gn,onClick:la=>Jt(Ue,la),href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dn)}const $n=Me()(`${De}-list-item`,`${De}-list-item-${qn}`),ta=typeof Ue.linkProps=="string"?JSON.parse(Ue.linkProps):Ue.linkProps,ia=tt?on((typeof vt=="function"?vt(Ue):vt)||ne.createElement(Ie.Z,null),()=>Sn(Ue),De,nt.removeFile):null,ga=Lt&&qn==="done"?on((typeof Kt=="function"?Kt(Ue):Kt)||ne.createElement(Ve.Z,null),()=>Ht(Ue),De,nt.downloadFile):null,aa=Ye!=="picture-card"&&Ye!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Me()(`${De}-list-item-actions`,{picture:Ye==="picture"})},ga,ia),ea=Me()(`${De}-list-item-name`),fa=Ue.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Ue.name},ta,{href:Ue.url,onClick:Dn=>Jt(Ue,Dn)}),Ue.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:Dn=>Jt(Ue,Dn),title:Ue.name},Ue.name),aa],Zt={pointerEvents:"none",opacity:.5},On=Bn?ne.createElement("a",{href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ue.url||Ue.thumbUrl?void 0:Zt,onClick:Dn=>Jt(Ue,Dn),title:nt.previewFile},typeof Dt=="function"?Dt(Ue):Dt||ne.createElement(mt.Z,null)):null,Mn=(Ye==="picture-card"||Ye==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${De}-list-item-actions`},On,qn==="done"&&ga,ia),{getPrefixCls:Un}=ne.useContext(ke.E_),Xn=Un(),ra=ne.createElement("div",{className:$n},Kn,fa,Mn,Sa&&ne.createElement(_e.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Dn=>{let{className:Gn}=Dn;const la="percent"in Ue?ne.createElement(pt.Z,Object.assign({},Tt,{type:"line",percent:Ue.percent,"aria-label":Ue["aria-label"],"aria-labelledby":Ue["aria-labelledby"]})):null;return ne.createElement("div",{className:Me()(`${De}-list-item-progress`,Gn)},la)})),va=Ue.response&&typeof Ue.response=="string"?Ue.response:((Pn=Ue.error)===null||Pn===void 0?void 0:Pn.statusText)||((oa=Ue.error)===null||oa===void 0?void 0:oa.message)||nt.uploadError,pa=qn==="error"?ne.createElement(Rt.Z,{title:va,getPopupContainer:Dn=>Dn.parentNode},ra):ra;return ne.createElement("div",{className:Me()(`${De}-list-item-container`,Ze),style:et,ref:Ae},tn?tn(pa,Ue,At,{download:Ht.bind(null,Ue),preview:Jt.bind(null,Ue),remove:Sn.bind(null,Ue)}):pa)});const _t=(ce,Ae)=>{const{listType:De="text",previewFile:Ze=ye,onPreview:et,onDownload:nt,onRemove:Ye,locale:Ue,iconRender:At,isImageUrl:Tt=gn,prefixCls:xe,items:on=[],showPreviewIcon:tn=!0,showRemoveIcon:hn=!0,showDownloadIcon:Bn=!1,removeIcon:tt,previewIcon:Lt,downloadIcon:Dt,progress:vt={size:[-1,2],showInfo:!1},appendAction:Kt,appendActionVisible:Jt=!0,itemRender:Ht,disabled:Sn}=ce,Pn=(0,st.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{De!=="picture"&&De!=="picture-card"&&De!=="picture-circle"||(on||[]).forEach(Zt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Zt.originFileObj instanceof File||Zt.originFileObj instanceof Blob)||Zt.thumbUrl!==void 0||(Zt.thumbUrl="",Ze&&Ze(Zt.originFileObj).then(On=>{Zt.thumbUrl=On||"",Pn()}))})},[De,on,Ze]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Zt,On)=>{if(et)return On==null||On.preventDefault(),et(Zt)},ca=Zt=>{typeof nt=="function"?nt(Zt):Zt.url&&window.open(Zt.url)},Sa=Zt=>{Ye==null||Ye(Zt)},Pa=Zt=>{if(At)return At(Zt,De);const On=Zt.status==="uploading",Mn=Tt&&Tt(Zt)?ne.createElement(We,null):ne.createElement(ht,null);let Un=On?ne.createElement(Qe.Z,null):ne.createElement(Ot,null);return De==="picture"?Un=On?ne.createElement(Qe.Z,null):Mn:(De==="picture-card"||De==="picture-circle")&&(Un=On?Ue.uploading:Mn),Un},da=(Zt,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,bt.l$)(Zt)&&Zt.props.onClick&&Zt.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:Sn};if((0,bt.l$)(Zt)){const ra=(0,bt.Tm)(Zt,Object.assign(Object.assign({},Zt.props),{onClick:()=>{}}));return ne.createElement(Mt.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(Mt.ZP,Object.assign({},Xn),ne.createElement("span",null,Zt))};ne.useImperativeHandle(Ae,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(ke.E_),$n=Kn("upload",xe),ta=Kn(),ia=Me()(`${$n}-list`,`${$n}-list-${De}`),ga=(0,Pe.Z)(on.map(Zt=>({key:Zt.uid,file:Zt})));let ea={motionDeadline:2e3,motionName:`${$n}-${De==="picture-card"||De==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ne.useMemo(()=>{const Zt=Object.assign({},(0,Ft.Z)(ta));return delete Zt.onAppearEnd,delete Zt.onEnterEnd,delete Zt.onLeaveEnd,Zt},[ta]);return De!=="picture-card"&&De!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ia},ne.createElement(_e.CSSMotionList,Object.assign({},ea,{component:!1}),Zt=>{let{key:On,file:Mn,className:Un,style:Xn}=Zt;return ne.createElement($t,{key:On,locale:Ue,prefixCls:$n,className:Un,style:Xn,file:Mn,items:on,progress:vt,listType:De,isImgUrl:Tt,showPreviewIcon:tn,showRemoveIcon:hn,showDownloadIcon:Bn,removeIcon:tt,previewIcon:Lt,downloadIcon:Dt,iconRender:Pa,actionIconRender:da,itemRender:Ht,onPreview:qn,onDownload:ca,onClose:Sa})}),Kt&&ne.createElement(_e.default,Object.assign({},ea,{visible:Jt,forceRender:!0}),Zt=>{let{className:On,style:Mn}=Zt;return(0,bt.Tm)(Kt,Un=>({className:Me()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Xt=ne.forwardRef(_t),en=oe(17313),fn=oe(8378),pn=oe(83116),Fn=oe(37613),an=ce=>{const{componentCls:Ae,iconCls:De}=ce;return{[`${Ae}-wrapper`]:{[`${Ae}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ce.colorFillAlter,border:`${ce.lineWidth}px dashed ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,cursor:"pointer",transition:`border-color ${ce.motionDurationSlow}`,[Ae]:{padding:`${ce.padding}px 0`},[`${Ae}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ae}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ae}-disabled):hover`]:{borderColor:ce.colorPrimaryHover},[`p${Ae}-drag-icon`]:{marginBottom:ce.margin,[De]:{color:ce.colorPrimary,fontSize:ce.uploadThumbnailSize}},[`p${Ae}-text`]:{margin:`0 0 ${ce.marginXXS}px`,color:ce.colorTextHeading,fontSize:ce.fontSizeLG},[`p${Ae}-hint`]:{color:ce.colorTextDescription,fontSize:ce.fontSize},[`&${Ae}-disabled`]:{cursor:"not-allowed",[`p${Ae}-drag-icon ${De},
|
|
p${Ae}-text,
|
|
p${Ae}-hint
|
|
`]:{color:ce.colorTextDisabled}}}}}},En=ce=>{const{componentCls:Ae,antCls:De,iconCls:Ze,fontSize:et,lineHeight:nt}=ce,Ye=`${Ae}-list-item`,Ue=`${Ye}-actions`,At=`${Ye}-action`,Tt=Math.round(et*nt);return{[`${Ae}-wrapper`]:{[`${Ae}-list`]:Object.assign(Object.assign({},(0,en.dF)()),{lineHeight:ce.lineHeight,[Ye]:{position:"relative",height:ce.lineHeight*et,marginTop:ce.marginXS,fontSize:et,display:"flex",alignItems:"center",transition:`background-color ${ce.motionDurationSlow}`,"&:hover":{backgroundColor:ce.controlItemBgHover},[`${Ye}-name`]:Object.assign(Object.assign({},en.vS),{padding:`0 ${ce.paddingXS}px`,lineHeight:nt,flex:"auto",transition:`all ${ce.motionDurationSlow}`}),[Ue]:{[At]:{opacity:0},[`${At}${De}-btn-sm`]:{height:Tt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${At}:focus-visible,
|
|
&.picture ${At}
|
|
`]:{opacity:1},[Ze]:{color:ce.actionsColor,transition:`all ${ce.motionDurationSlow}`},[`&:hover ${Ze}`]:{color:ce.colorText}},[`${Ae}-icon ${Ze}`]:{color:ce.colorTextDescription,fontSize:et},[`${Ye}-progress`]:{position:"absolute",bottom:-ce.uploadProgressOffset,width:"100%",paddingInlineStart:et+ce.paddingXS,fontSize:et,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ye}:hover ${At}`]:{opacity:1,color:ce.colorText},[`${Ye}-error`]:{color:ce.colorError,[`${Ye}-name, ${Ae}-icon ${Ze}`]:{color:ce.colorError},[Ue]:{[`${Ze}, ${Ze}:hover`]:{color:ce.colorError},[At]:{opacity:1}}},[`${Ae}-list-item-container`]:{transition:`opacity ${ce.motionDurationSlow}, height ${ce.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=oe(36237),un=oe(1950);const Nn=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=ce=>{const{componentCls:Ae}=ce,De=`${Ae}-animate-inline`;return[{[`${Ae}-wrapper`]:{[`${De}-appear, ${De}-enter, ${De}-leave`]:{animationDuration:ce.motionDurationSlow,animationTimingFunction:ce.motionEaseInOutCirc,animationFillMode:"forwards"},[`${De}-appear, ${De}-enter`]:{animationName:Nn},[`${De}-leave`]:{animationName:Yn}}},{[`${Ae}-wrapper`]:(0,un.J$)(ce)},Nn,Yn]},na=oe(30071),Jn=oe(64993);const Le=ce=>{const{componentCls:Ae,iconCls:De,uploadThumbnailSize:Ze,uploadProgressOffset:et}=ce,nt=`${Ae}-list`,Ye=`${nt}-item`;return{[`${Ae}-wrapper`]:{[`
|
|
${nt}${nt}-picture,
|
|
${nt}${nt}-picture-card,
|
|
${nt}${nt}-picture-circle
|
|
`]:{[Ye]:{position:"relative",height:Ze+ce.lineWidth*2+ce.paddingXS*2,padding:ce.paddingXS,border:`${ce.lineWidth}px ${ce.lineType} ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ye}-thumbnail`]:Object.assign(Object.assign({},en.vS),{width:Ze,height:Ze,lineHeight:`${Ze+ce.paddingSM}px`,textAlign:"center",flex:"none",[De]:{fontSize:ce.fontSizeHeading2,color:ce.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ye}-progress`]:{bottom:et,width:`calc(100% - ${ce.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ze+ce.paddingXS}},[`${Ye}-error`]:{borderColor:ce.colorError,[`${Ye}-thumbnail ${De}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ce.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ce.colorError}}},[`${Ye}-uploading`]:{borderStyle:"dashed",[`${Ye}-name`]:{marginBottom:et}}},[`${nt}${nt}-picture-circle ${Ye}`]:{[`&, &::before, ${Ye}-thumbnail`]:{borderRadius:"50%"}}}}},we=ce=>{const{componentCls:Ae,iconCls:De,fontSizeLG:Ze,colorTextLightSolid:et}=ce,nt=`${Ae}-list`,Ye=`${nt}-item`,Ue=ce.uploadPicCardSize;return{[`
|
|
${Ae}-wrapper${Ae}-picture-card-wrapper,
|
|
${Ae}-wrapper${Ae}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,en.dF)()),{display:"inline-block",width:"100%",[`${Ae}${Ae}-select`]:{width:Ue,height:Ue,marginInlineEnd:ce.marginXS,marginBottom:ce.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ce.colorFillAlter,border:`${ce.lineWidth}px dashed ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,cursor:"pointer",transition:`border-color ${ce.motionDurationSlow}`,[`> ${Ae}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ae}-disabled):hover`]:{borderColor:ce.colorPrimary}},[`${nt}${nt}-picture-card, ${nt}${nt}-picture-circle`]:{[`${nt}-item-container`]:{display:"inline-block",width:Ue,height:Ue,marginBlock:`0 ${ce.marginXS}px`,marginInline:`0 ${ce.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ye]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ce.paddingXS*2}px)`,height:`calc(100% - ${ce.paddingXS*2}px)`,backgroundColor:ce.colorBgMask,opacity:0,transition:`all ${ce.motionDurationSlow}`,content:'" "'}},[`${Ye}:hover`]:{[`&::before, ${Ye}-actions`]:{opacity:1}},[`${Ye}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ce.motionDurationSlow}`,[`${De}-eye, ${De}-download, ${De}-delete`]:{zIndex:10,width:Ze,margin:`0 ${ce.marginXXS}px`,fontSize:Ze,cursor:"pointer",transition:`all ${ce.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ye}-actions, ${Ye}-actions:hover`]:{[`${De}-eye, ${De}-download, ${De}-delete`]:{color:new Jn.C(et).setAlpha(.65).toRgbString(),"&:hover":{color:et}}},[`${Ye}-thumbnail, ${Ye}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ye}-name`]:{display:"none",textAlign:"center"},[`${Ye}-file + ${Ye}-name`]:{position:"absolute",bottom:ce.margin,display:"block",width:`calc(100% - ${ce.paddingXS*2}px)`},[`${Ye}-uploading`]:{[`&${Ye}`]:{backgroundColor:ce.colorFillAlter},[`&::before, ${De}-eye, ${De}-download, ${De}-delete`]:{display:"none"}},[`${Ye}-progress`]:{bottom:ce.marginXL,width:`calc(100% - ${ce.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ae}-wrapper${Ae}-picture-circle-wrapper`]:{[`${Ae}${Ae}-select`]:{borderRadius:"50%"}}}};var lt=ce=>{const{componentCls:Ae}=ce;return{[`${Ae}-rtl`]:{direction:"rtl"}}};const Nt=ce=>{const{componentCls:Ae,colorTextDisabled:De}=ce;return{[`${Ae}-wrapper`]:Object.assign(Object.assign({},(0,en.Wf)(ce)),{[Ae]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ae}-select`]:{display:"inline-block"},[`${Ae}-disabled`]:{color:De,cursor:"not-allowed"}})}};var Bt=(0,pn.Z)("Upload",ce=>{const{fontSizeHeading3:Ae,fontSize:De,lineHeight:Ze,lineWidth:et,controlHeightLG:nt}=ce,Ye=Math.round(De*Ze),Ue=(0,Fn.TS)(ce,{uploadThumbnailSize:Ae*2,uploadProgressOffset:Ye/2+et,uploadPicCardSize:nt*2.55});return[Nt(Ue),an(Ue),Le(Ue),we(Ue),En(Ue),Wn(Ue),lt(Ue),(0,fn.Z)(Ue)]},ce=>({actionsColor:ce.colorTextDescription})),ln=function(ce,Ae,De,Ze){function et(nt){return nt instanceof De?nt:new De(function(Ye){Ye(nt)})}return new(De||(De=Promise))(function(nt,Ye){function Ue(xe){try{Tt(Ze.next(xe))}catch(on){Ye(on)}}function At(xe){try{Tt(Ze.throw(xe))}catch(on){Ye(on)}}function Tt(xe){xe.done?nt(xe.value):et(xe.value).then(Ue,At)}Tt((Ze=Ze.apply(ce,Ae||[])).next())})};const Wt=`__LIST_IGNORE_${Date.now()}__`,Qt=(ce,Ae)=>{const{fileList:De,defaultFileList:Ze,onRemove:et,showUploadList:nt=!0,listType:Ye="text",onPreview:Ue,onDownload:At,onChange:Tt,onDrop:xe,previewFile:on,disabled:tn,locale:hn,iconRender:Bn,isImageUrl:tt,progress:Lt,prefixCls:Dt,className:vt,type:Kt="select",children:Jt,style:Ht,itemRender:Sn,maxCount:Pn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ce,da=ne.useContext(qe.Z),Kn=tn!=null?tn:da,[$n,ta]=(0,Oe.Z)(Ze||[],{value:De,postState:Ut=>Ut!=null?Ut:[]}),[ia,ga]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Ut=Date.now();(De||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Ut}_${bn}__`)})},[De]);const ea=(Ut,sn,bn)=>{let rn=(0,Pe.Z)(sn),cn=!1;Pn===1?rn=rn.slice(-1):Pn&&(cn=rn.length>Pn,rn=rn.slice(0,Pn)),(0,Be.flushSync)(()=>{ta(rn)});const Hn={file:Ut,fileList:rn};bn&&(Hn.event=bn),(!cn||rn.some(wn=>wn.uid===Ut.uid))&&(0,Be.flushSync)(()=>{Tt==null||Tt(Hn)})},fa=(Ut,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:rn}=ce;let cn=Ut;if(bn){const Hn=yield bn(Ut,sn);if(Hn===!1)return!1;if(delete Ut[Wt],Hn===Wt)return Object.defineProperty(Ut,Wt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(cn=Hn)}return rn&&(cn=yield rn(cn)),cn}),Zt=Ut=>{const sn=Ut.filter(cn=>!cn.file[Wt]);if(!sn.length)return;const bn=sn.map(cn=>It(cn.file));let rn=(0,Pe.Z)($n);bn.forEach(cn=>{rn=Ct(cn,rn)}),bn.forEach((cn,Hn)=>{let wn=cn;if(sn[Hn].parsedFile)cn.status="uploading";else{const{originFileObj:ha}=cn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=cn.uid,wn=ua}ea(wn,rn)})},On=(Ut,sn,bn)=>{try{typeof Ut=="string"&&(Ut=JSON.parse(Ut))}catch(Hn){}if(!jt(sn,$n))return;const rn=It(sn);rn.status="done",rn.percent=100,rn.response=Ut,rn.xhr=bn;const cn=Ct(rn,$n);ea(rn,cn)},Mn=(Ut,sn)=>{if(!jt(sn,$n))return;const bn=It(sn);bn.status="uploading",bn.percent=Ut.percent;const rn=Ct(bn,$n);ea(bn,rn,Ut)},Un=(Ut,sn,bn)=>{if(!jt(bn,$n))return;const rn=It(bn);rn.error=Ut,rn.response=sn,rn.status="error";const cn=Ct(rn,$n);ea(rn,cn)},Xn=Ut=>{let sn;Promise.resolve(typeof et=="function"?et(Ut):et).then(bn=>{var rn;if(bn===!1)return;const cn=Gt(Ut,$n);cn&&(sn=Object.assign(Object.assign({},Ut),{status:"removed"}),$n==null||$n.forEach(Hn=>{const wn=sn.uid!==void 0?"uid":"name";Hn[wn]===sn[wn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(rn=aa.current)===null||rn===void 0||rn.abort(sn),ea(sn,cn))})},ra=Ut=>{ga(Ut.type),Ut.type==="drop"&&(xe==null||xe(Ut))};ne.useImperativeHandle(Ae,()=>({onBatchStart:Zt,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Dn}=ne.useContext(ke.E_),Gn=va("upload",Dt),la=Object.assign(Object.assign({onBatchStart:Zt,onError:Un,onProgress:Mn,onSuccess:On},ce),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Jt||Kn)&&delete la.id;const[ya,La]=Bt(Gn),[ba]=(0,gt.Z)("Upload",it.Z.Upload),{showRemoveIcon:zt,showPreviewIcon:ft,showDownloadIcon:wt,removeIcon:Et,previewIcon:mn,downloadIcon:zn}=typeof nt=="boolean"?{}:nt,Rn=(Ut,sn)=>nt?ne.createElement(Xt,{prefixCls:Gn,listType:Ye,items:$n,previewFile:on,onPreview:Ue,onDownload:At,onRemove:Xn,showRemoveIcon:!Kn&&zt,showPreviewIcon:ft,showDownloadIcon:wt,removeIcon:Et,previewIcon:mn,downloadIcon:zn,iconRender:Bn,locale:Object.assign(Object.assign({},ba),hn),isImageUrl:tt,progress:Lt,appendAction:Ut,appendActionVisible:sn,itemRender:Sn,disabled:Kn}):Ut,An=Me()(`${Gn}-wrapper`,vt,Pa,La,Dn==null?void 0:Dn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:Ye==="picture-card",[`${Gn}-picture-circle-wrapper`]:Ye==="picture-circle"}),jn=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),Ht);if(Kt==="drag"){const Ut=Me()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(sn=>sn.status==="uploading"),[`${Gn}-drag-hover`]:ia==="dragover",[`${Gn}-disabled`]:Kn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ne.createElement("span",{className:An},ne.createElement("div",{className:Ut,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(me,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ne.createElement("div",{className:`${Gn}-drag-container`},Jt))),Rn()))}const kn=Me()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Kn}),Vn=(Ut=>ne.createElement("div",{className:kn,style:Ut},ne.createElement(me,Object.assign({},la,{ref:aa}))))(Jt?void 0:{display:"none"});return ya(Ye==="picture-card"||Ye==="picture-circle"?ne.createElement("span",{className:An},Rn(Vn,!!Jt)):ne.createElement("span",{className:An},Vn,Rn()))};var _n=ne.forwardRef(Qt),at=function(ce,Ae){var De={};for(var Ze in ce)Object.prototype.hasOwnProperty.call(ce,Ze)&&Ae.indexOf(Ze)<0&&(De[Ze]=ce[Ze]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ze=Object.getOwnPropertySymbols(ce);et<Ze.length;et++)Ae.indexOf(Ze[et])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ze[et])&&(De[Ze[et]]=ce[Ze[et]]);return De},Tn=ne.forwardRef((ce,Ae)=>{var{style:De,height:Ze}=ce,et=at(ce,["style","height"]);return ne.createElement(_n,Object.assign({ref:Ae},et,{type:"drag",style:Object.assign(Object.assign({},De),{height:Ze})}))});const Zn=_n;Zn.Dragger=Tn,Zn.LIST_IGNORE=Wt;var Cn=Zn}}]);
|