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.
NewEduCoderBuild/p__Classrooms__Lists__Group...

167 lines
426 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1582],{84249:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},90674:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},33859:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},22751:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},24018:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},40043:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},91034:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},71736:function(Ie,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ie(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(Ie.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(Ie.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(Ie.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(Ie.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 Ie))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 gt=[];function oe(ae,a){var y=gt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=gt.pop();return ae===void 0?new go.Point:ae}function ce(ae){gt.push(ae)}function We(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 se=(x-ee)/ie,ze=x-se*b;ge=ae,ue=se*ge+ze}else if(ie===0){var Ae=(a-E)/re,pt=a-Ae*ae;ge=b,ue=Ae*ge+pt}else{var Ae=(a-E)/re,se=(x-ee)/ie,pt=a-Ae*ae,ze=x-se*b;ge=(ze-pt)/(Ae-se),ue=Ae*ge+pt}return te.x=ge,te.y=ue,te}function Me(ae,a,y,E,b,x,z,ee,te,re,ie,ge,ue,se){var ze=1-te,Ae=te,pt=ae*ze+y*Ae,At=a*ze+E*Ae,Zt=y*ze+b*Ae,be=E*ze+x*Ae,Ne=b*ze+z*Ae,Ce=x*ze+ee*Ae,tt=pt*ze+Zt*Ae,it=At*ze+be*Ae,Ue=Zt*ze+Ne*Ae,Ye=be*ze+Ce*Ae,nt=tt*ze+Ue*Ae,Lt=it*ze+Ye*Ae;re.x=pt,re.y=At,ie.x=tt,ie.y=it,ge.x=nt,ge.y=Lt,ue.x=Ue,ue.y=Ye,se.x=Ne,se.y=Ce}var me=new go.Spot(.156,.156),Le=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ie("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*le,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=me,b.spot2=Le,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,le*a,0,a,(1-le)*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,le*y,(1-le)*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,le*y,le*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-le)*a,0,0,(1-le)*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 Ie("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 Ie("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 Ie("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 Ie("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 Ie("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 He=[];function Oe(){var ae=He.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,He.push(ae)}function Ke(ae){for(var a=Oe(),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 ke(ae){var a=je(ae),y=Oe();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 De(a),y}function je(ae){for(var a=Ke(ae),y=Oe(),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]=We(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],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ke(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()),De(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=Ke(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()),De(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=Ke(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()),De(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=Ke(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()),De(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=Ke(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()),De(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=Ke(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()),De(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=Ke(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()),De(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=je(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()),De(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=je(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()),De(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=je(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()),De(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=je(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()),De(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=je(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()),De(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=je(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()),De(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=ke(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(),De(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=ke(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(),De(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=ke(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(),De(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=ke(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(),De(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=ke(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(),De(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=ke(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(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ie("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ie("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 Ie("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=me,x.spot2=Le,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 Ie("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ie("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=le/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 Ie("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 Ie("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 Ie("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 Ie("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 Ie("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 Ie("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,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*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*le;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*le,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*le,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=le*.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=le*.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 se=ne(),ze=ne(),Ae=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ue,ue,Ae,se,ze);var pt=ne(),At=ne(),Zt=ne();Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,pt,At,Zt,ue,ue);var be=ne(),Ne=ne(),Ce=ne();return Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ue,ue,Ce,be,Ne),te.add(new go.PathSegment(go.PathSegment.Move,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,be.x*a,be.y*y,Ne.x*a,Ne.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,Ce.x*a,Ce.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,ze.x*a,ze.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,Zt.x*a,Zt.y*y,pt.x*a,pt.y*y,At.x*a,At.y*y).close()),ce(re),ce(ie),ce(ge),ce(ue),ce(se),ce(ze),ce(Ae),ce(pt),ce(At),ce(Zt),ce(be),ce(Ne),ce(Ce),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 Ie("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=le*.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 se=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 ze=oe(re.x,re.y);ue.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.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,(ze.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.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=le*.35;var Ae=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ae.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 pt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(pt),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(ze),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*le,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*le;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 Ie("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ie("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=We(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ie("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ie("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=We(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(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 Ie("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=We(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ie("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ie("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=We(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=We(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ie("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=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ie("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ie("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=We(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ie("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=We(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ie("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=We(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ie("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=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ie("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=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ie("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=le*.5,x=le*.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=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*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-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*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-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*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=le*.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,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*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-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*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-le*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-le*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=le*.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-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*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+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*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=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*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-le*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-le*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=le*b,ee=le*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=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+ue)*a,(re-ge)*y,(te+ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ue=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ue=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ue=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ue=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-ue)*y,(te-ue)*a,(re-ge)*y)),se.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 Ie("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=le*.5,x=le*.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=le*.5,x=le*.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=le*.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=le*.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=le*.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=le*.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=le*.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=le*.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=le*.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=le*.5,x=le*.4,z=le*.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=le*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=le*.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=le*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=le*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=le*.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=le*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=le*.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=le*.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=le*.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=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.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)),se.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)),se.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)),se.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=le*.2,ee=.2,te=.5,re=.5;var ze=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(ze),ze.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)),ze.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)),ze.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)),ze.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=le*.4,ee=.4,te=.8,re=.5;var Ae=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ae),Ae.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)),Ae.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)),Ae.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)),Ae.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=le*.8,ee=.8,te=1,re=.5;var pt=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(pt),pt.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)),pt.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)),pt.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)),pt.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=le*.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),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.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),se.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=le*.3,x=.3,Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.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),se.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 se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(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*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ue=.5,se=0,ze=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.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)),ze.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)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.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,se=z,ze=ie*ue,Ae=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(ze+ue)/2)*a,(te+(se+Ae)/2)*y,(ee-ue)*a,(te+Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ue)*a,(te-Ae)*y,(ee-ze)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+ze)*a,(te-se)*y,(ee+ue)*a,(te-Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+Ae)*y,(ee+(ze+ue)/2)*a,(te+(se+Ae)/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 pt=new go.PathFigure(.2*a,y,!1);E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var At=new go.PathFigure(.8*a,y,!1);return E.add(At),At.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=le*.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=le*.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=le*.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=le*.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=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.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=le*.05,ue=.175,se=.95,ee=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ue=.375,se=.95,te=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ue=.625,se=.95,re=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ue=.825,se=.95,ze=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y).close());var Ae=new go.PathFigure(0,y,!1);return E.add(Ae),Ae.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=le*.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=le*.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=le*.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=le*.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=le*.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*le,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*le,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*le,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")},61016: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 Ie={},gt="5.0",oe={},ne=null,ce=!1,We=!1,Me=null,me=!1,Le=null,le=null,He=0;He<arguments.length;He++){var Oe=arguments[He];if(Oe!==null)switch(typeof Oe){case"number":gt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Oe:Me=Oe;break;case"object":typeof Oe.is3D!="undefined"?ne=Oe:oe=Oe;break;case"boolean":ce=Oe,We=!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&&!We&&(ce=!0)),Me!==null&&oe.id===void 0&&(oe.id=Me);var De="",Ke="",ke=!1,je=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(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};Ie.setHTML5Codebase=function(Pe,$e){le=Pe,Ye(Pe,$e)},Ie.setJavaCodebase=Ie.setJavaCodebaseVersion=Ie.isCompiledInstalled=Ie.setPreCompiledScriptPath=Ie.setPreCompiledResourcePath=function(){},Ie.setHTML5CodebaseVersion=function(Pe,$e){var qe=parseFloat(Pe);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}Le=Pe,Ue(Pe,$e)},Ie.getHTML5CodebaseVersion=function(){return ae},Ie.getParameters=function(){return oe},Ie.setFontsCSSURL=function(Pe){z=Pe},Ie.setGiacJSURL=function(Pe){},Ie.setJNLPFile=function(Pe){De=Pe},Ie.setJNLPBaseDir=function(Pe){},Ie.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",qe=oe.id,bt,_e=!1,at=0;at<arguments.length;at++){var de=arguments[at];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=de:qe=arguments[at]):typeof de=="boolean"?_e=de:de instanceof HTMLElement&&(bt=de)}et();function et(){if(!me){setTimeout(et,200);return}$e=tt($e);var ht=bt||document.getElementById(qe);if(!ht){console.log("possibly bug on ajax loading? ");return}if(Ie.removeExistingApplet(ht,!1),oe.width===void 0&&ht.clientWidth&&(oe.width=ht.clientWidth),oe.height===void 0&&ht.clientHeight&&(oe.height=ht.clientHeight),!(oe.width&&oe.height)&&$e==="html5"&&(delete oe.width,delete oe.height),je=$e,$e==="screenshot")At(ht,oe);else{var kt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?kt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(kt=(!re()||Pe())&&ie()),kt?(je="screenshot",be(ht,oe,_e,$e)):pt(ht,oe,_e)}}};function re(){try{return window.self!==window.top}catch(Pe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ie.getViews=function(){return ne},Ie.isJavaInstalled=function(){return!1};var ge=function(Pe){var $e=function(at){var de=JSON.parse(at),et=function(ct){return ct.type=="G"||ct.type=="E"},ht=de.elements?de.elements.filter(et)[0]:de;if(!ht||!ht.url){qe();return}oe.fileName=ht.url,ue(ht.settings||{}),ne.is3D=!0;var kt="https://www.geogebra.org/images/";Ie.setPreviewImage(E||ht.previewUrl,kt+"GeoGebra_loading.png",kt+"applet_play.png"),Pe()},qe=function(){oe.onError&&oe.onError(),nt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",_e="/materials/"+oe.material_id+"?scope=basic";se("https://"+bt+"/api/proxy.php?path="+encodeURIComponent(_e),$e,qe)};function ue(Pe){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){Pe[qe]=!!Pe[qe]}),$e.forEach(function(qe){oe[qe]===void 0&&Pe[qe]!==void 0&&(oe[qe]=Pe[qe])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(Pe,$e,qe){var bt=new XMLHttpRequest;bt.open("GET",Pe),bt.onload=function(){$e(bt.responseText)},bt.onerror=qe,bt.send()}Ie.isHTML5Installed=function(){return!0},Ie.getLoadedAppletType=function(){return je},Ie.setPreviewImage=function(Pe,$e,qe){E=Pe,b=$e,x=qe},Ie.removeExistingApplet=function(Pe,$e){var qe;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),je=null;var bt=null;for(qe=0;qe<Pe.childNodes.length;qe++){var _e=Pe.childNodes[qe],at=_e.className;at==="applet_screenshot"?$e?(_e.style.display="block",je="screenshot"):_e.style.display="none":at!=="applet_scaler prerender"&&(Pe.removeChild(_e),bt=at&&at.indexOf("appletParameters")!=-1?_e.id:null,qe--)}var de=oe.id!==void 0?oe.id:bt,et=window[de];et&&typeof et.getBase64=="function"&&(et.remove(),window[de]=null)},Ie.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=Ie.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},Ie.startAnimation=function(){var Pe=Ie.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},Ie.stopAnimation=function(){var Pe=Ie.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},Ie.getAppletObject=function(){var Pe=oe.id!==void 0?oe.id:"ggbApplet";return window[Pe]},Ie.resize=function(){};var ze=function(Pe,$e,qe){var bt=document.createElement("param");bt.setAttribute("name",$e),bt.setAttribute("value",qe),Pe.appendChild(bt)},Ae=function(Pe){return Pe&&Pe!=="false"},pt=function(Pe,$e,qe){te(ae)<=4.2&&(qe=!0);var bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var _e=document.createElement("div");_e.classList.add("appletParameters","notranslate");var at=$e.width,de=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(te(ae)<=4.4)Ae($e.showToolBar)&&($e.height-=7),Ae($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Ae($e.showToolBar)&&($e.width=605,at=605);else{var et=100;(Ae($e.showToolBar)||Ae($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),et=Ae($e.showMenuBar)?245:155),at<et&&($e.width=et,at=et)}_e.style.border="none",_e.style.display="inline-block";for(var ht in $e)$e.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&_e.setAttribute("data-param-"+ht,$e[ht]);z&&_e.setAttribute("data-param-fontscssurl",z),Ie.resize=function(){GGBAppletUtils.responsiveResize(Pe,$e)},window.addEventListener("resize",function(jt){Ie.resize()});var kt=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!qe&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||_e.setAttribute("data-param-showSplash","false");var ct=Pe.querySelector(".applet_scaler.prerender"),Be=ct!==null;if(Be)var we=ct.querySelector(".ggb_preview");else{var we=Ce(at,de,$e.borderColor,!1);ct=document.createElement("div"),ct.className="applet_scaler",ct.style.position="relative",ct.style.display="block",ct.style.width=at+"px",ct.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ct,"66%"),te(ae)>=5?($e.appletOnLoad=function(jt){var Et=Pe.querySelector(".ggb_preview");Et&&Et.parentNode.removeChild(Et),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ct),window.GGBT_wsf_view&&$(window).trigger("resize"),kt(jt)},Be||ct.appendChild(we)):_e.appendChild(we),ct.appendChild(_e),Be||Pe.appendChild(ct),setTimeout(function(){Ie.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(_e),Pe.appendChild(he),$e.appletOnLoad=function(jt){Ie.resize(),kt(jt)}}function ve(jt,Et){Et&&typeof Et.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Et.appletOnLoad):renderGGBElement(jt),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Et)}function Ee(jt,Et){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Et}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(wt){ve(wt.article,wt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):ve(jt,Et)}if(bt){scriptLoadStarted=!0;for(var Xe=0;Xe<_e.childNodes.length;Xe++){var st=_e.childNodes[Xe].tagName;st==="TABLE"&&(_e.removeChild(_e.childNodes[Xe]),Xe--)}if(ggbHTML5LoadedScript!==null){var St=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');St!=null&&St.parentNode.removeChild(St)}var vt=document.createElement("script"),Ot=function(){Ee(_e,$e)};vt.src=Ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=vt.src,nt("GeoGebra HTML5 codebase loaded: '"+Ke+"'.",$e),!le&&(!Le||Le=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):Ke.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];Ot.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(vt.onload=Ot,Pe.appendChild(vt))}else Ee(_e,$e);$e.height=de,$e.width=at},At=function(Pe,$e,qe){var bt=Ce($e.width,$e.height,$e.borderColor,qe),_e=document.createElement("div");_e.style.position="relative",_e.style.display="block",_e.style.width=$e.width+"px",_e.style.height=$e.height+"px",_e.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),_e.appendChild(bt);var at=GGBAppletUtils.getScale($e,Pe,qe);qe?(Pe.appendChild(Ne()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Pe.appendChild(_e),at!==1&&!isNaN(at)&&(GGBAppletUtils.scaleElement(_e,at),_e.style.width=$e.width+"px",_e.style.height=$e.height+"px",_e.parentNode.style.width=$e.width*at+"px",_e.parentNode.style.height=$e.height*at+"px"),Ie.resize=function(){Zt(Pe,bt,_e,qe)},window.addEventListener("resize",function(de){Ie.resize()}),Ie.resize()};function Zt(Pe,$e,qe,bt){if(Pe.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var _e=GGBAppletUtils.getScale(oe,Pe,bt);qe.parentNode!==null&&(!isNaN(_e)&&_e!==1?(GGBAppletUtils.scaleElement(qe,_e),qe.parentNode.style.width=oe.width*_e+"px",qe.parentNode.style.height=oe.height*_e+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=oe.width+"px",qe.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ie.onExitFullscreen=function(Pe,$e){$e.appendChild(Pe)};var be=function(Pe,$e,qe,bt){At(Pe,$e,!0);for(var _e=function(){var et=[];for(de=0;de<Pe.childNodes.length;de++)et.push(Pe.childNodes[de]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(Pe,$e.id),kt=document.getElementById("fullscreencontainer"),ct=jQuery(Pe).find(".fullscreencontent");ct.length>0?(ht.remove(),ct.attr("id","fullscreencontent").show(),jQuery(kt).append(ct),window.dispatchEvent(new Event("resize"))):pt(ht,$e,!1),window.GGBT_wsf_view.launchFullScreen(kt)}else je=bt,pt(Pe,$e,!1);if(!window.GGBT_wsf_view)for(de=0;de<et.length;de++)Pe.removeChild(et[de])},at=Pe.getElementsByClassName("ggb_preview_play"),de=0;de<at.length;de++)at[de].addEventListener("click",_e,!1),at[de].addEventListener("ontouchstart",_e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var Pe=document.createElement("div");if(Pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.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");}',qe=document.createElement("style");qe.styleSheet?qe.styleSheet.cssText=$e:qe.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(qe)}return Pe},Ce=function(Pe,$e,qe,bt){var _e=document.createElement("div");_e.className="ggb_preview",_e.style.position="absolute",_e.style.zIndex="90",_e.style.width=Pe-2+"px",_e.style.height=$e-2+"px",_e.style.top="0px",_e.style.left="0px",_e.style.overflow="hidden",_e.style.backgroundColor="white";var at="lightgrey";qe!==void 0&&(qe==="none"?at="transparent":at=qe),_e.style.border="1px solid "+at;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 et,ht,kt;if(!bt){et=document.createElement("img"),et.style.position="absolute",et.style.zIndex="1001",et.style.opacity=1,de.style.opacity=.3,ht=360,ht>Pe/4*3&&(ht=Pe/4*3),kt=ht/5.8,et.setAttribute("src",b),et.setAttribute("width",ht),et.setAttribute("height",kt);var ct=(Pe-ht)/2,Be=($e-kt)/2;et.style.left=ct+"px",et.style.top=Be+"px",_e.appendChild(et)}}return _e.appendChild(de),_e},tt=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],Ue=function(Pe,$e){if(ae=Pe,$e){Ye(ae,!0);return}var qe=!ce;if(qe){var bt=te(ae);!isNaN(bt)&&bt<4.4&&(qe=!1)}var _e,at;window.location.protocol.substr(0,4)==="http"?_e=window.location.protocol:_e="http:";var de=ae.indexOf("//");de>0?at=ae:de===0?at=_e+ae:at="https://www.geogebra.org/apps/5.2.814.0/";for(var et in it)if(ae.slice(it[et].length*-1)===it[et]||ae.slice((it[et].length+1)*-1)===it[et]+"/"){Ye(at,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ae(oe.showToolBar)&&!Ae(oe.showMenuBar)&&!Ae(oe.showAlgebraInput)&&!Ae(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?at+="webSimple/":at+="web3d/",Ye(at,!1)},Ye=function(Pe,$e){if(Pe.requirejs){Ke=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),Ke=Pe,$e===null&&($e=Pe.indexOf("http")===-1),ke=$e,a="web.nocache.js",y=!1;var qe=Ke.split("/");qe.length>1&&(!$e&&qe[qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(qe[qe.length-2])>=0&&(a=qe[qe.length-2]+".nocache.js")),qe=Pe.split("/"),ae=qe[qe.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 bt=parseFloat(ae);bt!==NaN&&bt<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+bt+" is deprecated. Using version latest instead."),Ue("5.0",$e))},nt=function(Pe,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(Pe)};oe.material_id!==void 0?ge(Lt):Lt();function Lt(){var Pe=gt;Le!==null?Pe=Le:parseFloat(Pe)<5&&(Pe="5.0"),Ue(Pe,!1),le!==null&&Ye(le,ke),me=!0}return Ie},GGBAppletUtils=function(){"use strict";function Ie(){return window.GGBT_wsf_edit!==void 0}function gt(me,Le){Le!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+Le+","+Le+")",me.style.webkitTransform="scale("+Le+","+Le+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function oe(me,Le,le,He,Oe,De){var Ke=null;if(De!=null&&De!="")for(var ke=me.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+De+" ")>-1){Ke=ke;break}else ke=ke.parentNode;var je=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ke)je=Ke.offsetWidth,ae=Math.max(He?Ke.offsetWidth:0,Ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=je):(je=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),me){var z=me.getBoundingClientRect();z.left>0&&z.left<=je&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=je-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return me&&((le===void 0||!le)&&Le>0&&Le+y<je?je=Le:je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:je,height:ae}}function ne(me,Le,le,He,Oe){if(me.isScreenshoGenerator)return 1;var De=He!==void 0&&He,Ke=me.noScaleMargin!=null&&me.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},je=ke(me.autoHeight),ae=oe(Le,me.width,le,je,De&&window.GGBT_wsf_view||Ke,Oe),a=parseInt(ae.width),y=me.width,E=me.height;if(y===void 0){var b=Le.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=De?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(me,Le,le){var He=1,Oe,De=!1;if(me.hasOwnProperty("allowUpscale")&&(De=me.allowUpscale),me.hasOwnProperty("scale")&&(He=parseFloat(me.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(De=!0)),Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))Oe=ne(me,Le,De,le,me.scaleContainerClass);else return He;return De&&(!me.hasOwnProperty("scale")||He===1)?Oe:Math.min(He,Oe)}function We(me){var Le=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),He=me.getBoundingClientRect(),Oe=(Le-He.width)/2,De=(le-He.height)/2;De<0&&(De=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?me.style.left="40px":me.style.left=Oe+"px",me.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?me.style.top="40px":me.style.top=De+"px",me.style.left=Oe+"px")}function Me(me,Le){var le=me.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var He=ce(Le,me);Ie()&&le.setAttribute("data-param-scale",He);for(var Oe=null,De=0;De<me.childNodes.length;De++)if(me.childNodes[De].className!==void 0&&me.childNodes[De].className.match(/^applet_scaler/)){Oe=me.childNodes[De];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ke=Le.id!==void 0?Le.id:"ggbApplet",ke=window[Ke];(ke==null||!ke.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(He)&&He!==1?(Oe.parentNode.style.width=Le.width*He+"px",Oe.parentNode.style.height=Le.height*He+"px",gt(Oe,He)):(gt(Oe,1),Oe.parentNode.style.width=Le.width+"px",Oe.parentNode.style.height=Le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:Ie,positionCenter:We,getScale:ce,scaleElement:gt}}();__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 Ie=n.location.search;return Ie.indexOf(J)!=-1||Ie.indexOf(K)!=-1}function q(Ie,gt){}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(Ie){var gt=s[L].bindings;s[L].bindings=function(){for(var oe=gt?gt():{},ne=Ie[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var We=ne[ce];oe[We[O]]=We[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ie=o.createElement(Q);if(Ie.id=L,Ie.style.cssText=R+S,Ie.tabIndex=-1,o.body.appendChild(Ie),t=Ie.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Ie){function gt(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=ce();if(We){ne();return}function Me(){if(!We){if(!ce())return;We=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var me=setInterval(function(){Me()},$)}function oe(ne){var ce=u(),We=ce.body,Me=ce.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=ne,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),We.appendChild(Me)}gt(function(){oe(Ie)})}webModule.__startLoadingFragment=function(Ie){return C(Ie)},webModule.__installRunAsyncCode=function(Ie){var gt=u(),oe=gt.body,ne=gt.createElement(_);ne.language=ab,ne.text=Ie,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(Ie){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ie){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ie){var gt=c[Ie];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Ie(me){var Le=me.lastIndexOf(rb);Le==-1&&(Le=me.length);var le=me.indexOf(sb);le==-1&&(le=me.length);var He=me.lastIndexOf(tb,Math.min(le,Le));return He>=O?me.substring(O,He+P):W}function gt(me){if(!me.match(/^\w+:\/\//)){var Le=o.createElement(ub);Le.src=me+vb,me=Ie(Le.src)}return me}function oe(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function ne(){for(var me=o.getElementsByTagName(_),Le=O;Le<me.length;++Le)if(me[Le].src.indexOf(xb)!=-1)return Ie(me[Le].src);return W}function ce(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function We(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var Me=oe();return Me==W&&(Me=ne()),Me==W&&(Me=ce()),Me==W&&We()&&(Me=Ie(o.location.href)),Me=gt(Me),Me}function C(Ie){return Ie.match(/^\//)||Ie.match(/^[a-zA-Z]+:\/\//)?Ie:webModule.__moduleBase+Ie}function D(){var Ie=[],gt=O,oe=[],ne=[];function ce(me){var Le=ne[me](),le=oe[me];if(Le in le)return Le;var He=[];for(var Oe in le)He[le[Oe]]=Oe;throw r&&r(me,He,Le),null}if(__gwt_isKnownPropertyValue=function(me,Le){return Le in oe[me]},webModule.__getPropMap=function(){var me={};for(var Le in oe)oe.hasOwnProperty(Le)&&(me[Le]=ce(Le));return me},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Me=We.indexOf(Db);Me!=-1&&(gt=parseInt(We.substring(Me+P),$),We=We.substring(O,Me))}catch(me){}return webModule.__softPermutationId=gt,C(We+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})()},15476:function(Ie,gt,oe){"use strict";oe.d(gt,{Ax:function(){return Me},Ds:function(){return me},KI:function(){return le},SI:function(){return We},f1:function(){return ce}});var ne=oe(11320);function ce(He){let Oe=!0;if(He.length>0){for(let De=0;De<He.length;De++)if(He[De].compile_success==0||!He[De].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function We(He,Oe=""){let De=[];for(let Ke=0;Ke<He.length;Ke++){let ke=He[Ke],je=Oe?`${Oe}/${ke.name}`:`${ke.name}`;De.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:je})}return De}function Me(He,Oe,De){for(let Ke=0;Ke<He.length;Ke++){let ke=He[Ke];if(ke.key===Oe){ke.children=De;break}ke.children&&Me(ke.children,Oe,De)}return He}function me(He,Oe,De){let Ke;return function(){let ke=this,je=arguments,ae=function(){Ke=null,De||He.apply(ke,je)},a=De&&!Ke;clearTimeout(Ke),Ke=setTimeout(ae,Oe),a&&He.apply(ke,je)}}const Le=!0,le=ne.Z.API_SERVER},10191:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Zt}});var ne=oe(67294),ce=oe(35973),We=oe(84567),Me=oe(24018),me=oe(40043),Le=oe(33170),le=oe(22150),He=oe(11713),Oe={},De=Object.defineProperty,Ke=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ae=(be,Ne,Ce)=>Ne in be?De(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[Ne]=Ce,a=(be,Ne)=>{for(var Ce in Ne||(Ne={}))ke.call(Ne,Ce)&&ae(be,Ce,Ne[Ce]);if(Ke)for(var Ce of Ke(Ne))je.call(Ne,Ce)&&ae(be,Ce,Ne[Ce]);return be},y=(be,Ne,Ce)=>new Promise((tt,it)=>{var Ue=Lt=>{try{nt(Ce.next(Lt))}catch(Pe){it(Pe)}},Ye=Lt=>{try{nt(Ce.throw(Lt))}catch(Pe){it(Pe)}},nt=Lt=>Lt.done?tt(Lt.value):Promise.resolve(Lt.value).then(Ue,Ye);nt((Ce=Ce.apply(be,Ne)).next())});const E=We.default.Group,b=({classroomList:be,loading:Ne,user:Ce,exercise_id:tt=null,homework_common_id:it=null,setitem:Ue,item:Ye,type:nt,rz:Lt,dispatch:Pe})=>{var $e,qe,bt,_e,at,de,et,ht;const[kt,ct]=(0,ne.useState)([]);let[Be,we]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const he=(0,ce.useParams)(),[ve,Ee]=(0,ne.useState)(!1),[Xe,st]=(0,ne.useState)(!1),[St]=le.default.useForm();(0,ne.useEffect)(()=>{Lt&&(Be.zydatas=Lt,we(a({},Be)),Ye!=null&&Ye.ec_course_id&&vt())},[Ye,Lt]);function vt(){return y(this,null,function*(){console.log("----",Ye),yield Ot(Ye==null?void 0:Ye.ec_major_school_id),yield jt(Ye==null?void 0:Ye.ec_year_id),yield Et(Ye==null?void 0:Ye.ec_course_id),St.setFieldsValue({ec_course_id:Ye==null?void 0:Ye.ec_course_id,ec_major_school_id:Ye==null?void 0:Ye.ec_major_school_id,ec_point_ids:Ye==null?void 0:Ye.ec_point_ids,ec_year_id:Ye==null?void 0:Ye.ec_year_id})})}function Ot(wt){return y(this,null,function*(){const zt=yield(0,Le.ZP)(`/api/ec_major_schools/${wt}/ec_years/get_year_list.json`,{method:"get"});Be.jbdatas=zt==null?void 0:zt.data,we(a({},Be)),St.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function jt(wt){return y(this,null,function*(){const zt=yield(0,Le.ZP)(`/api/ec_years/${wt}/ec_courses/get_courses.json`,{method:"get"});Be.kcdatas=zt==null?void 0:zt.data,we(a({},Be)),St.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Et=wt=>y(void 0,null,function*(){const zt=yield(0,Le.ZP)(`/api/ec_courses/${wt}/ec_points.json`,{method:"get",params:{ec_course_id:wt}});Be.zsdatas=zt==null?void 0:zt.data,we(a({},Be))});return ne.createElement("div",{className:Oe.from},ne.createElement(le.default,{form:St,layout:"inline",onValuesChange:wt=>{console.log("----",wt),wt.ec_major_school_id&&(Be.jbdatas=[],Be.kcdatas=[],Be.zsdatas=[],we(a({},Be)),Ot(wt.ec_major_school_id)),wt.ec_year_id&&(Be.kcdatas=[],Be.zsdatas=[],we(a({},Be)),jt(wt.ec_year_id)),wt.ec_course_id&&(Be.zsdatas=[],we(a({},Be)),Et(wt.ec_course_id))},onFinish:wt=>y(void 0,null,function*(){Ue(wt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(He.default,{style:{width:150},disabled:(($e=Be.zydatas)==null?void 0:$e.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(qe=Be==null?void 0:Be.zydatas)==null?void 0:qe.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.ec_major_school_id},wt==null?void 0:wt.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(He.default,{style:{width:150},disabled:((bt=Be.jbdatas)==null?void 0:bt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(_e=Be==null?void 0:Be.jbdatas)==null?void 0:_e.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.ec_year_id},wt==null?void 0:wt.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(He.default,{style:{width:150},disabled:((at=Be.kcdatas)==null?void 0:at.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Be==null?void 0:Be.kcdatas)==null?void 0:de.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.id},wt==null?void 0:wt.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(He.default,{onChange:()=>{St.submit()},style:{width:150},mode:"multiple",disabled:((et=Be.zsdatas)==null?void 0:et.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ht=Be==null?void 0:Be.zsdatas)==null?void 0:ht.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.id},wt==null?void 0:wt.name))))))};var x=(0,ce.connect)(({classroomList:be,loading:Ne,globalSetting:Ce,user:tt})=>({classroomList:be,globalSetting:Ce,loading:Ne.effects,user:tt}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ue=(be,Ne,Ce)=>Ne in be?z(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[Ne]=Ce,se=(be,Ne)=>{for(var Ce in Ne||(Ne={}))ie.call(Ne,Ce)&&ue(be,Ce,Ne[Ce]);if(re)for(var Ce of re(Ne))ge.call(Ne,Ce)&&ue(be,Ce,Ne[Ce]);return be},ze=(be,Ne)=>ee(be,te(Ne)),Ae=(be,Ne,Ce)=>new Promise((tt,it)=>{var Ue=Lt=>{try{nt(Ce.next(Lt))}catch(Pe){it(Pe)}},Ye=Lt=>{try{nt(Ce.throw(Lt))}catch(Pe){it(Pe)}},nt=Lt=>Lt.done?tt(Lt.value):Promise.resolve(Lt.value).then(Ue,Ye);nt((Ce=Ce.apply(be,Ne)).next())});const pt=We.default.Group,At=({classroomList:be,loading:Ne,user:Ce,exercise_id:tt=null,homework_common_id:it=null,setitem:Ue,type:Ye,dispatch:nt})=>{var Lt,Pe;let[$e,qe]=(0,ne.useState)([{}]),[bt,_e]=(0,ne.useState)([]);function at(){return Ae(this,null,function*(){var et,ht,kt;let ct=yield(0,Le.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:tt,homework_common_id:it}});if(((et=ct==null?void 0:ct.data)==null?void 0:et.length)>0){let Be=[];(ht=ct==null?void 0:ct.data)==null||ht.map(we=>{var he;(he=we==null?void 0:we.ec_point_ids)==null||he.map(ve=>{Be.push(ve)})}),Ue(ze(se({},(kt=ct==null?void 0:ct.data)==null?void 0:kt[0]),{ec_point_ids:Be})),qe(ct==null?void 0:ct.data)}})}(0,ne.useEffect)(()=>{var et,ht;(ht=(et=Ce==null?void 0:Ce.userInfo)==null?void 0:et.course)!=null&&ht.course_school_id&&de()},[(Pe=(Lt=Ce==null?void 0:Ce.userInfo)==null?void 0:Lt.course)==null?void 0:Pe.course_school_id]);function de(){return Ae(this,null,function*(){var et,ht;const kt=yield(0,Le.ZP)(`/api/schools/${(ht=(et=Ce==null?void 0:Ce.userInfo)==null?void 0:et.course)==null?void 0:ht.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});_e(kt==null?void 0:kt.data),(it||tt)&&at()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),$e==null?void 0:$e.map((et,ht)=>ne.createElement("div",{key:ht,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:bt,item:et,type:ht,setitem:kt=>{$e.splice(ht,1,kt),qe([...$e]);let ct=[];$e==null||$e.map(Be=>{var we;(we=Be==null?void 0:Be.ec_point_ids)==null||we.map(he=>{ct.push(he)})}),Ue(ze(se({},kt),{ec_point_ids:ct}))}}),ht!=0&&ne.createElement(Me.Z,{onClick:()=>{$e.splice(ht,1),qe([...$e])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(me.Z,{onClick:()=>{$e.push({}),qe([...$e])},style:{marginLeft:10,fontSize:"20px"}}))))};var Zt=(0,ce.connect)(({classroomList:be,loading:Ne,globalSetting:Ce,user:tt})=>({classroomList:be,globalSetting:Ce,loading:Ne.effects,user:tt}))(At)},63205:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ke}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=oe(94184),Me=oe.n(We),me=oe(57953),Le=oe(15979),le=oe(33170),He=oe(28706),Oe=(ke,je,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(ke,je)).next())}),Ke=({data:ke,className:je,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,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&ze()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const ze=()=>Oe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,He.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=be,z.current.onload=function(){Zt()},ge(!1),se("")}),Ae=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},pt=be=>Oe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ne=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:be.dataUrl}});Ne!=null&&Ne.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ne==null?void 0:Ne.id,settings:JSON.stringify(be.state)}})).status===0&&E():Ne!=null&&Ne.id&&E(Ne),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),At=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.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(Ce=>{const tt=document.querySelector(Ce.name);tt&&tt.setAttribute("title",Ce.title)})},Zt=()=>{ee.current=new Le.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",pt),ee.current.addEventListener("beforeclose",Ae),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(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),At()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(me.Z,{spinning:ie,tip:ue,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Me()(ce.imageDimensions,je,ae?ce.fullWidth:""),style:a},ne.createElement("img",{className:ce.img,ref:z}))))}},36527:function(Ie,gt,oe){"use strict";var ne=oe(67294),ce=oe(71230),We=oe(15746),Me=oe(66368),me=oe(71577),Le=oe(85725),le=oe(71736),He=oe(84279),Oe=oe(67294);const De=(0,ne.forwardRef)(({callback:Ke,showSaveButton:ke,value:je=""},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:Oe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(We.Z,{flex:"110px",className:le.Z.item},Oe.createElement("div",null,Oe.createElement(Le.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Oe.createElement("div",{key:ie},Oe.createElement("h1",null,re.name),Oe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,ue)=>Oe.createElement(We.Z,{key:ue,onClick:()=>b(ge),className:le.Z.diamond},Oe.createElement(Le.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Oe.createElement(We.Z,{flex:"110px",className:le.Z.item},Oe.createElement("div",null,Oe.createElement(Le.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Oe.createElement("div",{key:ie},re.name&&Oe.createElement("h1",null,re.name),Oe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,ue)=>Oe.createElement(We.Z,{key:ue,onClick:()=>b(ge),className:le.Z.diamond},Oe.createElement(Le.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ke&&Ke(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Oe.createElement("div",{className:le.Z.mathWrap},Oe.createElement(Me.default,{defaultActiveKey:"1",items:x}),Oe.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},je||""),ke&&Oe.createElement("div",{className:le.Z.button},Oe.createElement(me.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=De},65866:function(Ie,gt,oe){"use strict";oe.d(gt,{z:function(){return tt},Z:function(){return it}});var ne=oe(67294),ce=oe(59810),We=oe(2453),Me=oe(14446),me=oe(71577),Le=oe(11320),le=oe(4440),He=Object.defineProperty,Oe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ke=(Ue,Ye,nt)=>Ye in Ue?He(Ue,Ye,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ue[Ye]=nt,je=(Ue,Ye)=>{for(var nt in Ye||(Ye={}))De.call(Ye,nt)&&ke(Ue,nt,Ye[nt]);if(Oe)for(var nt of Oe(Ye))Ke.call(Ye,nt)&&ke(Ue,nt,Ye[nt]);return Ue},ae=(Ue,Ye,nt)=>new Promise((Lt,Pe)=>{var $e=_e=>{try{bt(nt.next(_e))}catch(at){Pe(at)}},qe=_e=>{try{bt(nt.throw(_e))}catch(at){Pe(at)}},bt=_e=>_e.done?Lt(_e.value):Promise.resolve(_e.value).then($e,qe);bt((nt=nt.apply(Ue,Ye)).next())});const a="\u3000\u3000";function y(Ue){var Ye=["Bytes","KB","MB","GB","TB"];if(Ue==0)return"0 Byte";var nt=parseInt(""+Math.floor(Math.log(Ue)/Math.log(1024)),10);return(Ue/Math.pow(1024,nt)).toFixed(1)+" "+Ye[nt]}var E=({value:Ue=[],action:Ye,onChange:nt,className:Lt,maxSize:Pe=150,title:$e="\u6587\u4EF6\u4E0A\u4F20",accept:qe=null})=>{const bt={multiple:!1,fileList:Ue,accept:qe,withCredentials:!0,beforeUpload:at=>at.size/1024/1024<Pe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Pe}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(at){var de,et,ht,kt;let ct=[...at.fileList];if(ct=ct.map(Be=>(Be.name.indexOf(a)===-1&&(Be.name=`${Be.name}${a}${y(Be.size)}`),je({},Be))),at.file.status==="done"&&((et=(de=at.file)==null?void 0:de.response)==null?void 0:et.status)===-1){message.error((kt=(ht=at.file)==null?void 0:ht.response)==null?void 0:kt.message),nt([]);return}nt(ct)},onRemove:at=>ae(void 0,null,function*(){const de=at.size/1024/1024;return at.status==="uploading"?!0:de<Pe&&(at.response?at.response.id:at.uid)?yield removeAttachment(at.response?at.response.id:at.id):!0})};function _e(at){at.preventDefault(),at.stopPropagation()}return React.createElement("div",{className:`single-upload ${Lt||""}`},React.createElement(Upload,je({},bt),React.createElement(Button,{type:"primary",title:Ue.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:Ue.length>0,ghost:!0},$e),React.createElement("span",{onClick:_e,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Pe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ue,Ye,nt)=>Ye in Ue?z(Ue,Ye,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ue[Ye]=nt,ge=(Ue,Ye)=>{for(var nt in Ye||(Ye={}))te.call(Ye,nt)&&ie(Ue,nt,Ye[nt]);if(ee)for(var nt of ee(Ye))re.call(Ye,nt)&&ie(Ue,nt,Ye[nt]);return Ue};const ue=Ue=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ue),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"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ze=Object.defineProperty,Ae=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Zt=(Ue,Ye,nt)=>Ye in Ue?ze(Ue,Ye,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ue[Ye]=nt,be=(Ue,Ye)=>{for(var nt in Ye||(Ye={}))pt.call(Ye,nt)&&Zt(Ue,nt,Ye[nt]);if(Ae)for(var nt of Ae(Ye))At.call(Ye,nt)&&Zt(Ue,nt,Ye[nt]);return Ue},Ne=(Ue,Ye,nt)=>new Promise((Lt,Pe)=>{var $e=_e=>{try{bt(nt.next(_e))}catch(at){Pe(at)}},qe=_e=>{try{bt(nt.throw(_e))}catch(at){Pe(at)}},bt=_e=>_e.done?Lt(_e.value):Promise.resolve(_e.value).then($e,qe);bt((nt=nt.apply(Ue,Ye)).next())});const{Dragger:Ce}=ce.default;function tt(Ue){let Ye=[];return Ue&&Ue.length>0&&(Ye=Ue.map(nt=>({uid:nt.id,id:nt.id,name:nt.title+a+nt.filesize,url:nt.url,filesize:nt.filesize,status:"done",response:{id:nt.id}}))),Ye}var it=({value:Ue,onChange:Ye,action:nt,data:Lt,className:Pe,maxSize:$e=150,title:qe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:bt=!1,accept:_e="",additionalText:at,isDragger:de,number:et=1e3,aloneClear:ht=!1,realTimeRemove:kt=!0,uploadText:ct,setFileProgress:Be,showFileProgress:we})=>{const[he,ve]=(0,ne.useState)(!1);let[Ee,Xe]=(0,ne.useState)(Ue||[]),[st,St]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Ue&&(st===1&&Xe([...Ue]),St(2),et===(Ue==null?void 0:Ue.length)&&ve(!0))},[Ue]);const vt=()=>{setTimeout(()=>{Ee.pop(),Xe([...Ee])},500)};we&&Be(Ee.some(Et=>Et.status==="uploading"));const Ot={multiple:!0,disabled:he,accept:_e,withCredentials:!0,fileList:Ee,beforeUpload:(Et,wt)=>{const zt=Et.size/1024/1024;return Ee.concat(wt).length>et?(Ee.pop(),Xe([...Ee]),We.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${et}\u4E2A\u6587\u4EF6`),ht?Promise.reject():(vt(),!1)):zt<$e?!0:(We.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${$e}MB).`),ht?Promise.reject():(vt(),!1))},data:Lt,action:nt||`${Le.Z.API_SERVER}/api/attachments.json`,onChange(Et){var wt,zt,Vt,_t;if(Et.file.status==="removed"?Ee=Et.fileList:Ee=(0,x.uniqBy)([...Et.fileList,...Ee],"uid"),Et.file.status==="done"&&((zt=(wt=Et.file)==null?void 0:wt.response)==null?void 0:zt.status)===-1){We.ZP.error((_t=(Vt=Et.file)==null?void 0:Vt.response)==null?void 0:_t.message);return}Ee.length>=et?ve(!0):ve(!1),Xe([...Ee]),Ee=Ee.map(Jt=>{var ye,Ge;return(ye=Jt==null?void 0:Jt.response)!=null&&ye.id&&(Jt.url=(Ge=Jt==null?void 0:Jt.response)==null?void 0:Ge.url),Jt.name.indexOf(a)===-1&&(Jt.name=`${Jt.name}${a}${y(Jt.size)}`),be({},Jt)}),console.log("info:",Et,Ee),Ye(Ee)},onRemove:Et=>Ne(void 0,null,function*(){if(!kt)return!0;const wt=()=>Ne(void 0,null,function*(){if(Et.response?Et.response.id:Et.id){let Vt=yield(0,le.JZ)(Et.response?Et.response.id:Et.uid);return Promise.resolve(Vt)}else return!0});return bt?new Promise((zt,Vt)=>{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:()=>Ne(void 0,null,function*(){const _t=yield wt();We.ZP.success("\u5220\u9664\u6210\u529F"),zt(!0)}),onCancel:()=>zt(!1)})}):yield wt()})};function jt(Et){Et.preventDefault(),Et.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Pe||""}`},de&&ne.createElement(Ce,be({},Ot),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",$e,"MB)"," "),at),!de&&ne.createElement(ce.default,be({},Ot),ne.createElement(me.ZP,{disabled:he,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),qe),ne.createElement("span",{onClick:jt,className:"upload_text"},ct||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${$e}MB)`)))}},57444:function(Ie,gt,oe){"use strict";oe.d(gt,{h:function(){return ee}});var ne=oe(67294),ce=oe(11713),We=oe(22150),Me=oe(71577),me=oe(4631),Le=oe.n(me),le=oe(71749),He=oe(30483),Oe=Object.defineProperty,De=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Oe(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))je.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>De(te,Ke(re));const b=ce.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"]};gt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function ue(ze){ge(z[ze][1])}function se(ze){te(ze)}return ne.createElement(We.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(ce.default,{getPopupContainer:ze=>ze.parentNode,onChange:ue},Object.keys(z).map(ze=>ne.createElement(b,{key:ze,value:ze},z[ze][0])))),ne.createElement(We.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)(),[se,ze]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Ae=function(pt){const At=pt.getValue();re&&re(At)};return se.on("change",Ae),()=>{se.off("change",Ae)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(ue.current&&!se){const Ae=Le().fromTextArea(ue.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));ze(Ae)}},[ue.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ue}))}},35567:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Zn}});var ne=oe(67294),ce=oe(4631),We=oe.n(ce),Me=oe(91033),me=oe(71749),Le=oe(57341),le=oe(82801),He=oe(88386),Oe=oe(49047),De=oe(80785),Ke=oe(85725),ke=({value:fe="",className:Fe,showTextOnly:pe,showLines:dt,style:Bt={}})=>{const Gt=(0,ne.useMemo)(()=>"",[fe]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},je=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(fe,Fe,pe)=>Fe in fe?ae(fe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):fe[Fe]=pe,ee=(fe,Fe)=>{for(var pe in Fe||(Fe={}))b.call(Fe,pe)&&z(fe,pe,Fe[pe]);if(E)for(var pe of E(Fe))x.call(Fe,pe)&&z(fe,pe,Fe[pe]);return fe},te=(fe,Fe)=>a(fe,y(Fe));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:fe,title:Fe,icon:pe,actionName:dt,className:Bt="",children:Gt}){function Pn(){fe(dt)}return je.createElement("a",{title:Fe,className:Bt,onClick:Pn},je.createElement("i",{className:`${pe}`}),Gt)}var ge=({watch:fe,showNullButton:Fe,showNullProgramButton:pe,onActionCallback:dt,fullScreen:Bt,insertTemp:Gt,hidetoolBar:Pn,extraUse:Qt})=>{const sn=[...re,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Pn&&sn.map((Fn,Un)=>je.createElement("li",{key:Un},Fn.actionName?je.createElement(ie,te(ee({},Fn),{onActionCallback:dt})):je.createElement("span",{className:"v-line"}))),Fe?je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gt}`,onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qt&&je.createElement("li",null,Qt),je.createElement("li",{className:"btn-full-screen"},je.createElement(ie,{icon:`${Bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},ue=oe(76621),se=oe(22150),ze=oe(69677),Ae=oe(71577),pt=Object.defineProperty,At=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,tt=(fe,Fe,pe)=>Fe in fe?pt(fe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):fe[Fe]=pe,it=(fe,Fe)=>{for(var pe in Fe||(Fe={}))Ne.call(Fe,pe)&&tt(fe,pe,Fe[pe]);if(be)for(var pe of be(Fe))Ce.call(Fe,pe)&&tt(fe,pe,Fe[pe]);return fe},Ue=(fe,Fe)=>At(fe,Zt(Fe));const Ye={labelCol:{span:4},wrapperCol:{span:20}};var nt=({callback:fe,onCancel:Fe})=>{function pe(dt){fe(dt)}return ne.createElement(se.default,Ue(it({},Ye),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(ze.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(ze.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ae.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},Lt=oe(57444),Pe=oe(70859),$e=oe(14446),qe=oe(71230),bt=oe(63205),_e=oe(67294),at=({callback:fe,onCancel:Fe})=>{const pe=document.createElement("canvas"),dt=pe.getContext("2d");pe.width=1e3,pe.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,pe.width,pe.height);const Bt=pe.toDataURL("image/png");return _e.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},_e.createElement(qe.Z,{style:{height:"100vh"}},_e.createElement(bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bt,visible:!0,title:String(Date.now())},onOk:Gt=>{fe({src:Gt.url})},onClose:Fe})))},de=oe(23495);function et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(et,go.CommandHandler),et.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},et.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var Fe=1/0;fe.selection.each(function(pe){pe instanceof go.Link||(Fe=Math.min(pe.position.x,Fe))}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Fe,pe.position.y))}),fe.commitTransaction("aligning left")},et.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var Fe=-1/0;fe.selection.each(function(pe){if(!(pe instanceof go.Link)){var dt=pe.actualBounds.x+pe.actualBounds.width;Fe=Math.max(dt,Fe)}}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Fe-pe.actualBounds.width,pe.position.y))}),fe.commitTransaction("aligning right")},et.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var Fe=1/0;fe.selection.each(function(pe){pe instanceof go.Link||(Fe=Math.min(pe.position.y,Fe))}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,Fe))}),fe.commitTransaction("alignTop")},et.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var Fe=-1/0;fe.selection.each(function(pe){if(!(pe instanceof go.Link)){var dt=pe.actualBounds.y+pe.actualBounds.height;Fe=Math.max(dt,Fe)}}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,Fe-pe.actualBounds.height))}),fe.commitTransaction("aligning bottom")},et.prototype.alignCenterX=function(){var fe=this.diagram,Fe=fe.selection.first();if(Fe){fe.startTransaction("aligning Center X");var pe=Fe.actualBounds.x+Fe.actualBounds.width/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(pe-dt.actualBounds.width/2,dt.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},et.prototype.alignCenterY=function(){var fe=this.diagram,Fe=fe.selection.first();if(Fe){fe.startTransaction("aligning Center Y");var pe=Fe.actualBounds.y+Fe.actualBounds.height/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,pe-dt.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},et.prototype.alignColumn=function(fe){var Fe=this.diagram;Fe.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var pe=new Array;Fe.selection.each(function(Qt){Qt instanceof go.Link||pe.push(Qt)});for(var dt=0;dt<pe.length-1;dt++){var Bt=pe[dt],Gt=Bt.actualBounds.y+Bt.actualBounds.height+fe,Pn=pe[dt+1];Pn.move(new go.Point(Bt.actualBounds.x,Gt))}Fe.commitTransaction("align Column")},et.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var Fe=this.diagram;Fe.startTransaction("align Row");var pe=new Array;Fe.selection.each(function(Qt){Qt instanceof go.Link||pe.push(Qt)});for(var dt=0;dt<pe.length-1;dt++){var Bt=pe[dt],Gt=Bt.actualBounds.x+Bt.actualBounds.width+fe,Pn=pe[dt+1];Pn.move(new go.Point(Gt,Bt.actualBounds.y))}Fe.commitTransaction("align Row")},et.prototype.canRotate=function(fe){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<1)},et.prototype.rotate=function(fe){fe===void 0&&(fe=90);var Fe=this.diagram;Fe.startTransaction("rotate "+fe.toString());var Fe=this.diagram;Fe.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=fe)}),Fe.commitTransaction("rotate "+fe.toString())},et.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var Fe=new go.Map;fe.selection.each(function(pe){Fe.set(pe.layer,0)}),Fe.iteratorKeys.each(function(pe){var dt=0;pe.parts.each(function(Bt){if(!Bt.isSelected){var Gt=Bt.zOrder;isNaN(Gt)?Bt.zOrder=0:dt=Math.max(dt,Gt)}}),Fe.set(pe,dt)}),fe.selection.each(function(pe){et._assignZOrder(pe,Fe.get(pe.layer)+1)}),fe.commitTransaction("pullToFront")},et.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var Fe=new go.Map;fe.selection.each(function(pe){Fe.set(pe.layer,0)}),Fe.iteratorKeys.each(function(pe){var dt=0;pe.parts.each(function(Bt){if(!Bt.isSelected){var Gt=Bt.zOrder;isNaN(Gt)?Bt.zOrder=0:dt=Math.min(dt,Gt)}}),Fe.set(pe,dt)}),fe.selection.each(function(pe){et._assignZOrder(pe,Fe.get(pe.layer)-1-et._findGroupDepth(pe))}),fe.commitTransaction("pushToBack")},et._assignZOrder=function(fe,Fe,pe){pe===void 0&&(pe=fe),fe.layer===pe.layer&&(fe.zOrder=Fe),fe instanceof go.Group&&fe.memberParts.each(function(dt){et._assignZOrder(dt,Fe+1,pe)})},et._findGroupDepth=function(fe){if(fe instanceof go.Group){var Fe=0;return fe.memberParts.each(function(pe){Fe=Math.max(Fe,et._findGroupDepth(pe))}),Fe+1}else return 0},et.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var Fe=fe.lastInput;if(Fe.key==="Up"||Fe.key==="Down"||Fe.key==="Left"||Fe.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)}},et.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(Fe){fe.push(Fe)}),this.diagram.parts.each(function(Fe){fe.push(Fe)}),fe},et.prototype._arrowKeyMove=function(){var fe=this.diagram,Fe=fe.lastInput,pe=0,dt=0;if(Fe.control||Fe.meta)pe=1,dt=1;else if(fe.grid!==null){var Bt=fe.grid.gridCellSize;dt=Bt.width,pe=Bt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(Gt){Fe.key==="Up"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y-pe)):Fe.key==="Down"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y+pe)):Fe.key==="Left"?Gt.move(new go.Point(Gt.actualBounds.x-dt,Gt.actualBounds.y)):Fe.key==="Right"&&Gt.move(new go.Point(Gt.actualBounds.x+dt,Gt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},et.prototype._arrowKeySelect=function(){var fe=this.diagram,Fe=fe.lastInput,pe=null;Fe.key==="Up"?pe=this._findNearestPartTowards(270):Fe.key==="Down"?pe=this._findNearestPartTowards(90):Fe.key==="Left"?pe=this._findNearestPartTowards(180):Fe.key==="Right"&&(pe=this._findNearestPartTowards(0)),pe!==null&&(Fe.shift?pe.isSelected=!0:Fe.control||Fe.meta?pe.isSelected=!pe.isSelected:fe.select(pe))},et.prototype._findNearestPartTowards=function(fe){var Fe=this.diagram.selection.first();if(Fe===null)return null;for(var pe=Fe.actualBounds.center,dt=this._getAllParts(),Bt=1/0,Gt=Fe,Pn=0;Pn<dt.length;Pn++){var Qt=dt[Pn];if(Qt!==Fe&&Qt.canSelect()){var sn=Qt.actualBounds.center,Fn=pe.directionPoint(sn),Un=this._angleCloseness(Fn,fe);if(Un<=45){var lt=pe.distanceSquaredPoint(sn);lt*=1+Math.sin(Un*Math.PI/180),lt<Bt&&(Bt=lt,Gt=Qt)}}}return Gt},et.prototype._angleCloseness=function(fe,Fe){return Math.min(Math.abs(Fe-fe),Math.min(Math.abs(Fe+360-fe),Math.abs(Fe-360-fe)))},et.prototype._arrowKeyTree=function(){var fe=this.diagram,Fe=fe.selection.first();if(Fe instanceof go.Node){var pe=fe.lastInput;if(pe.key==="Right"){if(!Fe.isTreeLeaf)if(!Fe.isTreeExpanded)fe.commandHandler.canExpandTree(Fe)&&fe.commandHandler.expandTree(Fe);else{var dt=this._sortTreeChildrenByY(Fe).first();dt!==null&&fe.select(dt)}}else if(pe.key==="Left")if(!Fe.isTreeLeaf&&Fe.isTreeExpanded)fe.commandHandler.canCollapseTree(Fe)&&fe.commandHandler.collapseTree(Fe);else{var Bt=Fe.findTreeParentNode();Bt!==null&&fe.select(Bt)}else if(pe.key==="Up"){var Bt=Fe.findTreeParentNode();if(Bt!==null){var Gt=this._sortTreeChildrenByY(Bt),Pn=Gt.indexOf(Fe);if(Pn>0){for(var Qt=Gt.elt(Pn-1);Qt!==null&&Qt.isTreeExpanded&&!Qt.isTreeLeaf;){var sn=this._sortTreeChildrenByY(Qt);Qt=sn.last()}Qt!==null&&fe.select(Qt)}else fe.select(Bt)}}else if(pe.key==="Down")if(Fe.isTreeExpanded&&!Fe.isTreeLeaf){var dt=this._sortTreeChildrenByY(Fe).first();dt!==null&&fe.select(dt)}else for(;Fe!==null;){var Bt=Fe.findTreeParentNode();if(Bt===null)break;var Gt=this._sortTreeChildrenByY(Bt),Pn=Gt.indexOf(Fe);if(Pn<Gt.length-1){fe.select(Gt.elt(Pn+1));break}else Fe=Bt}var Fn=fe.selection.first();Fn!==null&&fe.scrollToRect(Fn.actualBounds)}},et.prototype._sortTreeChildrenByY=function(fe){var Fe=new go.List().addAll(fe.findTreeChildrenNodes());return Fe.sort(function(pe,dt){var Bt=pe.location,Gt=dt.location;return Bt.y<Gt.y?-1:Bt.y>Gt.y?1:Bt.x<Gt.x?-1:Bt.x>Gt.x?1:0}),Fe},et.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},et.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var ht=et,kt=oe(18023),ct=oe(15746),Be=oe(33170),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=oe(67294),ve=(fe,Fe,pe)=>new Promise((dt,Bt)=>{var Gt=sn=>{try{Qt(pe.next(sn))}catch(Fn){Bt(Fn)}},Pn=sn=>{try{Qt(pe.throw(sn))}catch(Fn){Bt(Fn)}},Qt=sn=>sn.done?dt(sn.value):Promise.resolve(sn.value).then(Gt,Pn);Qt((pe=pe.apply(fe,Fe)).next())});function Ee({onCancel:fe,callback:Fe}){let pe=(0,ne.useRef)(),dt=(0,ne.useRef)(),Bt=(0,ne.useRef)(),Gt=(0,ne.useRef)(!1);const Pn=(0,ne.useRef)(!1),[Qt,sn]=(0,ne.useState)(0);function Fn(){const lt=de.bx.make,gn={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(dt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:rt=>{var Ft=rt.diagram.commandHandler.addTopLevelParts(rt.diagram.selection,!0);Ft||rt.diagram.currentTool.doCancel()},commandHandler:lt(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:rt=>{var Ft=rt.subject;Ft.location=Ft.location.copy().snapToGridPoint(rt.diagram.grid.gridOrigin,rt.diagram.grid.gridCellSize),setTimeout(()=>{rt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:rt=>{var Ft=rt.subject;setTimeout(()=>{rt.diagram.commandHandler.editTextBlock()})},LinkRelinked:rt=>{var Ft=rt.parameter.part;Ft.invalidateConnectedLinks();var Rt=rt.subject;rt.diagram.toolManager.linkingTool.isForwards?Rt.toNode.invalidateConnectedLinks():Rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=lt(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),lt(de.bn,{name:"SHAPE",fill:gn.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")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(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=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Se(rt,Ft){var Rt=(ut,tn)=>{ut.handled=!0,ut.diagram.model.commit(nn=>{var Cn=tn.part.adornedPart,Bn=new de.E9().setRectSpot(Cn.actualBounds,rt);Bn.subtract(Cn.location),Bn.scale(2,2),Bn.x+=Math.sign(Bn.x)*130,Bn.y+=Math.sign(Bn.y)*130,Bn.add(Cn.location),Bn.snapToGridPoint(ut.diagram.grid.gridOrigin,ut.diagram.grid.gridCellSize);var xn=nn.copyNodeData(Cn.data);nn.setGroupKeyForNodeData(xn,nn.getGroupKeyForNodeData(Cn.data)),nn.addNodeData(xn);var ga={from:Cn.key,to:nn.getKeyForNodeData(xn)};nn.addLinkData(ga);var ta=ut.diagram.findNodeForData(xn);ta.location=Bn,ut.diagram.select(ta),setTimeout(()=>{ut.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ft,alignment:rt,alignmentFocus:rt.opposite(),width:rt.equals(de.z6.Top)||rt.equals(de.z6.Bottom)?25:18,height:rt.equals(de.z6.Top)||rt.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:gn.white,strokeWidth:4,mouseEnter:(ut,tn)=>tn.fill="dodgerblue",mouseLeave:(ut,tn)=>tn.fill="orange",isActionable:!0,click:Rt,contextClick:Rt})}function Te(rt){return lt(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:(Ft,Rt)=>Rt.fill="dodgerblue",mouseLeave:(Ft,Rt)=>Rt.fill="orange",click:(Ft,Rt)=>{Ft.diagram.commandHandler.showContextMenu(Rt.part.adornedPart)}},rt||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Se(de.z6.Top,"TriangleUp"),Se(de.z6.Left,"TriangleLeft"),Se(de.z6.Right,"TriangleRight"),Se(de.z6.Bottom,"TriangleDown"),Te({alignment:new de.z6(.75,0)}));function xe(rt,Ft){return(Rt,ut)=>{Rt.handled=!0,Rt.diagram.model.commit(tn=>{tn.set(ut.part.adornedPart.data,rt,Ft)})}}function Re(rt,Ft){return Ft||(Ft="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:rt,margin:1,background:"transparent",mouseEnter:(Rt,ut)=>ut.stroke="dodgerblue",mouseLeave:(Rt,ut)=>ut.stroke="lightgray",click:xe(Ft,rt),contextClick:xe(Ft,rt)})}function mt(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.white,"fill"),Re(gn.beige,"fill"),Re(gn.extralightblue,"fill"),Re(gn.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.lightgray,"fill"),Re(gn.lightgreen,"fill"),Re(gn.lightblue,"fill"),Re(gn.lightred,"fill")))]}function Je(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.black),Re(gn.green),Re(gn.blue),Re(gn.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.white),Re(gn.magenta),Re(gn.purple),Re(gn.orange)))]}function ot(rt,Ft){return Ft||(Ft="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:rt,margin:1,background:"transparent",mouseEnter:(Rt,ut)=>ut.background="dodgerblue",mouseLeave:(Rt,ut)=>ut.background="transparent",click:xe(Ft,rt),contextClick:xe(Ft,rt)})}function Ve(rt,Ft){return Ft||(Ft="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:rt,margin:1,background:"transparent",mouseEnter:(Rt,ut)=>ut.background="dodgerblue",mouseLeave:(Rt,ut)=>ut.background="transparent",click:xe(Ft,rt),contextClick:xe(Ft,rt)})}function Ht(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",ot(1),ot(2),ot(3),ot(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function $t(rt,Ft){return Ft||(Ft="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:rt,margin:1,background:"transparent",mouseEnter:(Rt,ut)=>ut.fill="dodgerblue",mouseLeave:(Rt,ut)=>ut.fill="lightgray",click:xe(Ft,rt),contextClick:xe(Ft,rt)})}pe.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Rectangle"),$t("RoundedRectangle"),$t("Ellipse"),$t("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Parallelogram2"),$t("ManualOperation"),$t("Procedure"),$t("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Terminator"),$t("CreateRequest"),$t("Document"),$t("TriangleDown"))),mt(),Je(),Ht()),pe.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(rt,Ft)=>{var Rt=Ft.addMembers(Ft.diagram.selection,!0);Rt||Ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill:gn.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")),lt(de.Vm,{background:"transparent",margin:20})),lt(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=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),Te({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=lt("ContextMenu",mt(),Je(),Ht()),pe.current.linkTemplate=lt(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",rt=>rt>=1?10:0),new de.KX("toShortLength","dir",rt=>rt>=1?10:0),new de.KX("points").makeTwoWay(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(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",rt=>rt===1)),lt(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",rt=>rt>=1),new de.KX("width","thickness",rt=>7+3*rt),new de.KX("height","thickness",rt=>7+3*rt),new de.KX("segmentOffset","thickness",rt=>new de.E9(-15,4+1.5*rt))),lt(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",rt=>rt===2),new de.KX("width","thickness",rt=>7+3*rt),new de.KX("height","thickness",rt=>7+3*rt),new de.KX("segmentOffset","thickness",rt=>new de.E9(-15,4+1.5*rt))),lt(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=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ut(2)},new de.KX("pathPattern","thickness",Ut)),Te({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ut(rt){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(rt+4).toString()+" H3"})}function en(rt){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return rt===0?Ft="M0 0 M16 16 M0 8 L16 8":rt===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(Rt,ut)=>ut.background="dodgerblue",mouseLeave:(Rt,ut)=>ut.background="transparent",click:xe("dir",rt),contextClick:xe("dir",rt)})}function mn(rt){var Ft=(Rt,ut)=>{Rt.handled=!0,Rt.diagram.model.commit(tn=>{var nn=ut.part.adornedPart;tn.set(nn.data,rt?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(rt?nn.toNode:nn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rt,ut)=>ut.background="dodgerblue",mouseLeave:(Rt,ut)=>ut.background="transparent",click:Ft,contextClick:Ft})}function Ze(rt,Ft){var Rt=0,ut=de.z6.RightSide;rt.equals(de.z6.Top)?(Rt=270,ut=de.z6.TopSide):rt.equals(de.z6.Left)?(Rt=180,ut=de.z6.LeftSide):rt.equals(de.z6.Bottom)&&(Rt=90,ut=de.z6.BottomSide),Ft||(Rt-=180);var tn=(nn,Cn)=>{nn.handled=!0,nn.diagram.model.commit(Bn=>{var xn=Cn.part.adornedPart;Bn.set(xn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(ut)),(Ft?xn.toNode:xn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:rt,alignmentFocus:rt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rt,background:"transparent",mouseEnter:(nn,Cn)=>Cn.background="dodgerblue",mouseLeave:(nn,Cn)=>Cn.background="transparent",click:tn,contextClick:tn})}pe.current.linkTemplate.contextMenu=lt("ContextMenu",Je(),Ht(),lt("ContextMenuButton",lt(de.s_,"Horizontal",en(0),en(1),en(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",mn(!1),Ze(de.z6.Top,!1),Ze(de.z6.Left,!1),Ze(de.z6.Right,!1),Ze(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},mn(!0),Ze(de.z6.Top,!0),Ze(de.z6.Left,!0),Ze(de.z6.Right,!0),Ze(de.z6.Bottom,!0)))));const Hn=`{ "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 In=["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 Wn(rt){return console.log("shapeName:",rt),In.indexOf(rt)>=0}var wn=new de.YI(Bt.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(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(rt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:rt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(rt){var Ft;const Rt=rt.subject.part;var ut=(Ft=document.activeElement)==null?void 0:Ft.value;typeof ut=="string"&&ut.trim()===""&&pe.current.model.commit(function(tn){tn.set(Rt.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(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")),lt(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=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(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 Un=()=>ve(this,null,function*(){var lt=pe.current.makeImage();const gn=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});Fe({src:gn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Fn()},500),sn(Qt+1),()=>{pe.current=null}),[]),he.createElement("div",{ref:Pn,className:Gt.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement($e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(qe.Z,null,he.createElement(ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(ct.Z,{onClick:()=>{var lt,gn,Se=pe.current.selection.first();if(Gt.current=!Gt.current,document.activeElement&&Se){let Te=(gn=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:gn.trim();typeof Te=="string"&&pe.current.model.commit(function(xe){xe.set(Se.data,"text",Te||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}sn(Qt+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:we.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:we.myPaletteDiv,ref:Bt})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:dt,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(Ae.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Xe=Ee,st=oe(78045),St=oe(31795);const vt=st.ZP.Group,Ot={margin:"0 8px"};var jt=({callback:fe,onCancel:Fe})=>{function pe(dt){fe(dt)}return ne.createElement(se.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:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:Ot},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(St.Z,null)),ne.createElement("span",{style:Ot},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(St.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(vt,null,ne.createElement(st.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(st.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(st.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(st.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ae.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},Et=oe(47897),wt=oe(61016),zt=oe.n(wt),_t=(0,ne.forwardRef)(({use3d:fe,width:Fe,height:pe,callback:dt,showSaveButton:Bt},Gt)=>{const Pn=(0,ne.useRef)(),Qt=(0,ne.useRef)(),[sn,Fn]=(0,ne.useState)(!1),Un=(0,ne.useRef)({id:Pn,appName:"graphing",width:Fe||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)(()=>{Qt.current=new(zt())(Un.current,!0),window.onload=function(){Qt.current.inject("applet_container")}},[]);const lt=()=>{var gn=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(gn),gn};return(0,ne.useEffect)(()=>{Un.current.appName=sn?"3D":"graphing",Qt.current.inject("applet_container")},[sn]),(0,ne.useEffect)(()=>{Fn(fe)},[fe]),(0,ne.useImperativeHandle)(Gt,()=>({getImgData:lt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Pn}),ne.createElement(qe.Z,{align:"middle"},ne.createElement(ct.Z,{flex:1},ne.createElement(Et.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:sn,onChange:gn=>Fn(gn)})),ne.createElement(ct.Z,null,ne.createElement(Ae.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Jt=oe(36527),ye=oe(25934),Ge=oe(2453);const Qe="link",ft="upload-image",Pt="add-flowchart",Tt="draw-image",Dt="add-flowchart",xt="code-block",Mt="add-table",Kt="------------",Xt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var rn=oe(99914),on=(fe,Fe,pe)=>new Promise((dt,Bt)=>{var Gt=sn=>{try{Qt(pe.next(sn))}catch(Fn){Bt(Fn)}},Pn=sn=>{try{Qt(pe.throw(sn))}catch(Fn){Bt(Fn)}},Qt=sn=>sn.done?dt(sn.value):Promise.resolve(sn.value).then(Gt,Pn);Qt((pe=pe.apply(fe,Fe)).next())});function hn(){}let vn=0;const an=1e4,qt="\u2581",Sn="@\u2581\u2581@",pn="@\u2581@",yn=`
**\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`,cn=["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 En(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"},Kn={[Qe]:"\u6DFB\u52A0\u94FE\u63A5",[xt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ft]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Mt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:fe="",onChange:Fe,width:pe="100%",height:dt=400,miniToolbar:Bt=!1,isFocus:Gt=!1,watch:Pn,insertTemp:Qt,mode:sn="markdown",id:Fn="markdown-editor-id",showResizeBar:Un=!1,noStorage:lt=!1,showNullButton:gn=!1,showNullProgramButton:Se=!1,hidetoolBar:Te=!1,fullScreen:xe=!1,onBlur:Re,onCMBeforeChange:mt,onFullScreen:Je,className:ot="",disablePaste:Ve=!1,disabled:Ht=!1,disabledFill:$t=!1,placeholder:Ut="",values:en="",extraUse:mn})=>{const[Ze,Hn]=(0,ne.useState)(null),[In,Wn]=(0,ne.useState)(fe),[wn,rt]=(0,ne.useState)(Pn),[Ft,Rt]=(0,ne.useState)(xe),[ut,tn]=(0,ne.useState)(""),[nn,Cn]=(0,ne.useState)(0),[Bn,xn]=(0,ne.useState)(dt),[ga,ta]=(0,ne.useState)(!1),ca=(0,ne.useRef)((0,ye.Z)()),da=(0,ne.useRef)(!1),Yn=(0,ne.useRef)(),[$n,la]=(0,ne.useState)(0),[sa,ma]=(0,ne.useState)(0),Qn=(0,ne.useRef)(),_n=(0,ne.useRef)(),oa=(0,ne.useRef)(),Yt=(0,ne.useRef)(),zn=()=>on(void 0,null,function*(){var It;const yt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(It=yt==null?void 0:yt.attachments)!=null&&It.length&&(console.log("cm:",Ze,Qn),yt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?Ze.replaceSelection(`![,](/api/attachments/${Ct.id}?type=${Ct.content_type})`):Ct.content_type.indexOf("video")>-1?Ze.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?Ze.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):Ze.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ne.useEffect)(()=>{const It=window.scrollY||window.pageYOffset;Wn(en),Ze==null||Ze.setValue(en),window.scrollTo(0,It)},[en]),(0,ne.useEffect)(()=>{Je==null||Je(Ft)},[Ft]),(0,ne.useEffect)(()=>{if(Qn.current){let It=function(Ct,Nt){var fn;if(Ve){Nt.preventDefault();return}const Gn=Nt.clipboardData;if(Gn){const Xn=Gn.types.toString(),Tn=Gn.items;if(Xn==="Files"||Gn.types.indexOf("Files")>-1){if(Nt.preventDefault(),sn=="stex")return;try{let Dn=Tn[1];((fn=Tn[0])==null?void 0:fn.kind)==="file"&&(Dn=Tn[0]);const Wt=Dn.getAsFile(),dn=Wt.name.split(".").pop();(0,Pe.I)(Wt,un=>{var ln,Ln,Rn;un.id?((ln=Wt==null?void 0:Wt.type)==null?void 0:ln.indexOf("image"))>-1?yt.replaceSelection(`<img width="100%" src="/api/attachments/${un.id}?type=${un.content_type})" alt="" />`):((Ln=Wt==null?void 0:Wt.type)==null?void 0:Ln.indexOf("video"))>-1?yt.replaceSelection(`<video width="100%" controls src="/api/attachments/${un.id}"></video>`):((Rn=Wt==null?void 0:Wt.type)==null?void 0:Rn.indexOf("pdf"))>-1?yt.replaceSelection(`<a href="/api/attachments/${un.id}?type=${Wt.type}&disposition=inline" target="_blank">${Wt.name}</a>`):cn.includes(dn)?yt.replaceSelection(`<a href="/api/attachments/${un.id}?type=office&disposition=inline" target="_blank">${Wt.name}</a>`):yt.replaceSelection(`[${Wt.name}](/api/attachments/${un.id}?type=${un.content_type})`):(un==null?void 0:un.status)===401&&(Ge.ZP.warning((un==null?void 0:un.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Dn){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yt=We().fromTextArea(Qn.current,{mode:sn,lineNumbers:!Bt,lineWrapping:!0,value:fe,autoCloseTags:!Se,autoCloseBrackets:!0});return yt.on("keyup",function(Ct,Nt){Nt.keyCode===8&&(Ct.getValue()==""?yt.setOption("placeholder",Ut):yt.setOption("placeholder",null))}),yt.on("keydown",function(Ct,Nt){if(Nt.keyCode===8){var fn=Vn(Ct);fn&&Nt.preventDefault()}}),Gt&&yt.focus(),yt.on("paste",It),yt.on("dragleave",function(Ct,Nt){_n.current.classList.remove("mouse-hover-md")}),Ht&&yt.on("beforeChange",function(Ct,Nt){(Nt.origin==="paste"||Nt.origin==="+input")&&Nt.cancel()}),Hn(yt),()=>{yt.off("paste",It)}}},[]);const Jn=(0,ne.useCallback)(()=>{if(_n.current)try{}catch(It){console.log(It,"---- to set md editor body height")}},[Bn,_n,Ft]);(0,ne.useEffect)(()=>{function It(){let yt=new Me.Z(Ct=>{for(let Nt of Ct)(Nt.target.offsetHeight>0||Nt.target.offsetWidth>0)&&(Jn(),Ze.setSize("100%","100%"),Ze.refresh())});return yt.observe(Qn.current.parentElement),yt}if(Ze){const yt=It();return()=>{var Ct,Nt;(Ct=Qn.current)!=null&&Ct.parentElement&&yt.unobserve((Nt=Qn.current)==null?void 0:Nt.parentElement)}}},[Ze,Jn]),(0,ne.useEffect)(()=>{if(Ze){let It=[];for(const[yt,Ct]of Object.entries(Mn)){let Nt={[yt]:()=>{na(Ct)}};It.push(Nt),Ze.addKeyMap(Nt)}return Yn.current=setInterval(()=>{da.current&&zn()},4e3),()=>{clearInterval(Yn.current);for(let yt of It)Ze.removeKeyMap(yt)}}},[Ze]),(0,ne.useEffect)(()=>{xe!==Ft&&Rt(xe)},[xe]),(0,rn.Z)(()=>{if(!lt&&nn>0){let It=new Date().getTime(),yt=window.sessionStorage.getItem(Fn);It>=nn+an&&(!yt||yt!==In)&&(window.sessionStorage.setItem(Fn,In),ta(!0))}},an),(0,ne.useEffect)(()=>{rt(Pn)},[Ze,Pn]),(0,ne.useEffect)(()=>{Ze&&Gt&&Ze.focus()},[Ze,Gt]),(0,ne.useEffect)(()=>{if(wn&&Ze){let It=function(Ct){let Nt=Ct.target;if(Yt.current){let fn=Nt.scrollTop/Nt.scrollHeight;Yt.current.scrollTop=Yt.current.scrollHeight*fn}};const yt=Ze.getScrollerElement();return yt.addEventListener("scroll",It),()=>{yt.removeEventListener("scroll",It)}}},[Ze,wn]),(0,ne.useEffect)(()=>{if(Ze&&mt){let It=function(yt,Ct){mt(yt,Ct)};return Ze.on("beforeChange",It),()=>{Ze.off("beforeChange",It)}}},[Ze,mt]),(0,ne.useEffect)(()=>{if(Ze&&Re){let It=function(){Re(Ze.getValue())};return Ze.on("blur",It),()=>{Ze.off("blur",It)}}},[Ze,Re]);function Vn(It,yt){var Ct=It.getDoc(),Nt=Ct.getCursor(),fn=Ct.getLine(Nt.line),Gn=fn.charAt(Nt.ch-1),Xn=fn.lastIndexOf("@\u2581@",Nt.ch),Tn=fn.lastIndexOf("@\u2581\u2581@",Nt.ch),Dn=Xn>Tn?Xn:Tn,Wt=Xn>Tn?3:4;if(Sn.indexOf(Gn)===-1)return null;if(console.log("change1:",yt,It,fn,Nt,Dn,Xn,Tn,Gn),Dn>=0&&Nt.ch-Dn<5){var dn=Dn+Wt;return Ct.replaceRange("",{line:Nt.line,ch:Dn},{line:Nt.line,ch:dn}),{line:Nt.line,ch:dn}}return null}(0,ne.useEffect)(()=>{if(Ze){let It=function(yt,Ct){const Nt=yt.getValue();Wn(Nt),Cn(new Date().getTime()),yt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Fe&&(Se?Fe(Nt,Pa(Nt)):Fe(Nt))};return Ze.on("change",It),()=>{Ze.off("change",It)}}},[Ze,Fe]),(0,ne.useEffect)(()=>{if(Ze)if(fe==null)Ze.setValue(""),Wn("");else{const It=window.scrollY||window.pageYOffset;fe!==Ze.getValue()&&(Ze.setValue(fe),Wn(fe),Ze.setCursor(Ht?1:Ze.lineCount(),0),window.scrollTo(0,It))}},[Ze,fe]);const na=(0,ne.useCallback)(It=>{const yt=Ze.getCursor(),Ct=Ze.getSelection();let Nt=Ct.split(`
`);switch(It){case"bold":return Ze.replaceSelection("**"+Ct+"**"),Ct===""&&Ze.setCursor(yt.line,yt.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+Ct+"*"),Ct===""&&Ze.setCursor(yt.line,yt.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+Ct+"`"),Ct===""&&Ze.setCursor(yt.line,yt.ch+1),Ze.focus();case"inline-latex":return tn("inline-latex"),Ze.focus();case"latex":return Ze.replaceSelection("```latex\n"+Ct+"\n```"),Ze.setCursor(yt.line+1,Ct.length+1),Ze.focus();case"line-break":return Ze.replaceSelection(`<br/>
`),Ze.focus();case"list-ul":return Ct===""?Ze.replaceSelection("- "+Ct):Ze.replaceSelection(Nt.map(fn=>fn===""?"":`- ${fn}`).join(`
`)),Ze.focus();case"list-ol":return Ct===""?Ze.replaceSelection("1. "+Ct):Ze.replaceSelection(Nt.map((fn,Gn)=>fn===""?"":`${Gn+1}. ${fn}`).join(`
`)),Ze.focus();case"add-null-ch":return Ct===""&&Ze.setCursor(yt.line,yt.ch),Ze.replaceSelection(qt),Ze.focus();case"add-signal":return Ct===""&&Ze.setCursor(yt.line,yt.ch),Ze.replaceSelection(pn),Ze.focus();case"add-multiple":return Ct===""&&Ze.setCursor(yt.line,yt.ch),Ze.replaceSelection(Sn),Ze.focus();case"inster-template-1":return Ct===""&&Ze.setCursor(yt.line,yt.ch),Ze.replaceSelection(yn),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return rt(!wn),Ze.focus();case"trigger-full-screen":return Rt(!Ft),Ze.focus();case Qe:tn(Qe);return;case xt:tn(xt);return;case ft:tn(ft);return;case Tt:tn(Tt);return;case"maths-latex":tn("maths-latex");return;case Pt:tn(Pt);return;case Mt:tn(Mt);return;default:throw new Error}},[Ze,wn,Ft]),An=(0,ne.useCallback)((It,yt)=>{var Ct,Nt,fn,Gn,Xn,Tn;switch(tn(""),ut){case Qe:const{title:ln,link:Ln}=It;return Ze.replaceSelection(`[${ln}](${Ln})`),Ze.focus();case xt:const{language:Rn,content:ua}=It;return Ze.replaceSelection(["```"+Rn,ua,"```"].join(`
`)),Ze.focus();case"maths-latex":for(var Dn=atob(It),Wt=new Uint8Array(Dn.length),dn=0;dn<Dn.length;dn++)Wt[dn]=Dn.charCodeAt(dn);var un=new Blob([Wt],{type:"image/png"});(0,Pe.I)(un,ia=>{ia.id?Ze.replaceSelection(`![,](/api/attachments/${ia.id}?type=${ia.content_type})`):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ze.replaceSelection("`$$"+It+"$$`");break;case ft:case Tt:case Dt:const{src:ea,alt:ra}=It,jn=yt,Ca=(fn=(Nt=(Ct=jn==null?void 0:jn.name)==null?void 0:Ct.split("."))==null?void 0:Nt.pop)==null?void 0:fn.call(Nt);return((Gn=jn==null?void 0:jn.type)==null?void 0:Gn.indexOf("image"))>-1||!(jn!=null&&jn.type)?jn.align||jn.width?Ze.replaceSelection(`<p style="text-align:${jn.align||"initial"}"><img width="${jn.width?jn.width+"%":"initial"}" src="${ea}" alt="${ra||""}" /></p>`):Ze.replaceSelection(`<img width="100%" src="${ea}" alt="${ra||""}" />`):((Xn=jn==null?void 0:jn.type)==null?void 0:Xn.indexOf("video"))>-1?Ze.replaceSelection(`<video width="100%" controls src="${ea}"></video>`):((Tn=jn==null?void 0:jn.type)==null?void 0:Tn.indexOf("pdf"))>-1?Ze.replaceSelection(`<a href="${ea}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):cn.includes(Ca)?Ze.replaceSelection(`<a href="${ea}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):Ze.replaceSelection(`[${jn.name}](${ea})`),Ze.focus();case Mt:const{row:Ba,col:ba,align:xa}=It;let va=`
`;for(let ia=0;ia<Ba;ia++){let wa=[],Ea=[];for(let Fa=0;Fa<ba;Fa++)ia===1&&Ea.push(Xt[xa]),wa.push(" ");ia===1&&(va+=`| ${Ea.join(" | ")} |
`),va+=`| ${wa.join(ba===1?"":" | ")} |
`}return Ze.replaceSelection(va+`
`),Ze.focus();default:throw new Error}},[Ze,ut]),Sa=(0,ne.useMemo)(()=>{switch(ut){case Qe:return ne.createElement(nt,{callback:An,onCancel:qn});case xt:return ne.createElement(Lt.Z,{callback:An,onCancel:qn});case ft:return ne.createElement(Pe.Z,{callback:An,onCancel:qn});case Pt:return ne.createElement(Xe,{callback:An,onCancel:qn});case Mt:return ne.createElement(jt,{callback:An,onCancel:qn});case"maths-latex":return ne.createElement(_t,{showSaveButton:!0,callback:An});case"inline-latex":return ne.createElement(Jt.Z,{showSaveButton:!0,callback:An});default:return null}},[ut]);function qn(){tn("")}(0,ne.useEffect)(()=>{if(oa.current){let It=function(Xn){fn=!0,Gn=Xn.pageY},yt=function(){fn=!1},Ct=function(Xn){if(fn){let Tn=Xn.pageY-Gn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let Dn=dt+Tn+"px";xn(Dn)}},Nt=oa.current,fn=!1,Gn=0;return Nt.addEventListener("mousedown",It),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",yt),()=>{Nt.removeEventListener("mousedown",It),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",yt)}}},[Ze,oa]),(0,ne.useEffect)(()=>{xn(dt)},[dt]);const On=En(pe),Nn=En(Bn),aa={width:On,height:Nn},fa=(0,ne.useMemo)(()=>{if(nn){let It=new Date(nn),yt=It.getHours(),Ct=It.getMinutes(),Nt=It.getSeconds();return yt=yt<10?"0"+yt:yt,Ct=Ct<10?"0"+Ct:Ct,Nt=Nt<10?"0"+Nt:Nt,`${yt}:${Ct}:${Nt}`}return 0},[nn]),Pa=It=>{const yt=[];if(Se){let Ct=-1;It=It.replace(/(@▁▁@|@▁@)/g,function(Nt,fn,Gn){yt.push({multiLine:Nt!==pn})})}return yt};function ya(){window.sessionStorage.removeItem(Fn),ta(!1),Cn(0)}function La(){ta(!1),Cn(0),Ze.setValue(window.sessionStorage.getItem(Fn))}(0,ne.useEffect)(()=>{Kn[ut]&&ut!==Tt&&ut!==Pt&&setTimeout(()=>{const It=document.getElementsByClassName("markdown-popup-form")[0],yt=window.innerWidth/2-It.offsetWidth/2,Ct=window.innerHeight/2-It.offsetHeight/2;la(yt),ma(Ct)},0)},[ut]);const ha=It=>{It.preventDefault();const yt=It.clientX-$n,Ct=It.clientY-sa;document.body.onmousemove=Nt=>{let fn=Nt.clientX-yt,Gn=Nt.clientY-Ct;const Xn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Xn.offsetWidth,Dn=window.innerHeight-Xn.offsetHeight;fn=Math.max(0,Math.min(fn,Tn)),Gn=Math.max(0,Math.min(Gn,Dn)),pa(Nt.clientX,Nt.clientY,yt,Ct)&&(la(fn),ma(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(It,yt,Ct,Nt)=>{const fn=document.body.clientHeight,Gn=document.body.clientWidth;return It<20&&Ct>It||It>Gn-20&&Ct<It||yt<20&&Nt>yt||yt>fn-20&&Nt<yt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:_n},ne.createElement("div",{className:`markdown-editor-container ${ot} ${wn?"on-preview":""} ${Bt?"mini":""} ${Ft?"full-screen":""}`,style:aa},ne.createElement(ge,{insertTemp:Qt,watch:wn,fullScreen:Ft,showNullButton:gn,showNullProgramButton:Se,onActionCallback:na,hidetoolBar:Te,extraUse:mn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Qn,placeholder:Ut})),wn?ne.createElement("div",{ref:Yt,className:"preview-container"},sn==="stex"&&ne.createElement(ke,{value:In}),sn!=="stex"&&ne.createElement(Ke.Z,{disabledFill:$t,showProgramFill:Se,value:In})):null))),Un?ne.createElement("a",{ref:oa,className:"editor-resize"}):null,ut===Tt&&ne.createElement(at,{callback:An,onCancel:qn}),ut===Pt&&ne.createElement(Xe,{callback:An,onCancel:qn}),ne.createElement(ue.Z,null,Kn[ut]&&ut!==Tt&&ut!==Pt?ne.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:sa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Kn[ut]),open:!0,onCancel:qn,footer:null,destroyOnClose:!0,width:ut===Pt?"1200px":null,height:ut===Pt?"80vh":null,className:"markdown-popup-form"},Sa):null))}},70859:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ie},I:function(){return ue}});var ne=oe(22150),ce=oe(2453),We=oe(69677),Me=oe(93421),me=oe(31795),Le=oe(78045),le=oe(71577),He=oe(15476),Oe=oe(67294),De=oe(52262),Ke=oe(67294),ke=Object.defineProperty,je=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,ze,Ae)=>ze in se?ke(se,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):se[ze]=Ae,x=(se,ze)=>{for(var Ae in ze||(ze={}))y.call(ze,Ae)&&b(se,Ae,ze[Ae]);if(a)for(var Ae of a(ze))E.call(ze,Ae)&&b(se,Ae,ze[Ae]);return se},z=(se,ze)=>je(se,ae(ze));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:ze})=>{const[Ae]=ee();let pt=(0,Oe.useRef)();function At(Ne){pt.current.width=Ae.getFieldValue("width"),pt.current.align=Ae.getFieldValue("align"),se(Ne,pt.current)}function Zt(Ne,Ce){if(Ne.status===-1){ce.ZP.error(Ne.message);return}Ae.setFieldsValue({src:`/api/attachments/${Ne.id}`,type:Ce.type})}function be(Ne){let Ce=Ne.target.files[0];pt.current=Ce,ue(Ce,Zt)}return Ke.createElement(ne.default,z(x({form:Ae},re),{className:"upload-image-panel",onFinish:At,style:{width:470,overflow:"hidden"}}),Ke.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ke.createElement("div",{className:"flex-container"},Ke.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ke.createElement(We.default,{style:te})),Ke.createElement(ge,{onFileChange:be}))),Ke.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ke.createElement(We.default,{style:{width:264}})),Ke.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ke.createElement(Me.Z,null,Ke.createElement(ne.default.Item,{name:"width",style:{margin:0}},Ke.createElement(me.Z,{style:{width:264}})),Ke.createElement("span",{className:"ml8"},"%"))),Ke.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ke.createElement(Le.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"}]})),Ke.createElement("aside",null,Ke.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ke.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ke.createElement(le.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return Ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ke.createElement("input",{type:"file",onChange:se}))}function ue(se,ze){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",se),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(At){ze(JSON.parse(At.target.responseText),se)},!1),pt.addEventListener("error",function(At){console.error(At)},!1),pt.open("POST",`${He.KI}/api/attachments.json`),pt.send(Ae)}},76621:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return We}});var ne=oe(67294),ce=oe(73935);class We extends ne.Component{constructor(me){super(me);const Le=window.document;this.node=Le.createElement("div"),Le.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,ce.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(We,Me){const me=(0,ne.useRef)();(0,ne.useEffect)(()=>{me.current=We}),(0,ne.useEffect)(()=>{function Le(){me.current()}if(Me!==null){let le=setInterval(Le,Me);return()=>clearInterval(le)}},[Me])}},40980:function(Ie,gt,oe){"use strict";oe.r(gt),oe.d(gt,{default:function(){return Zt}});var ne=oe(67294),ce=oe(35973),We=oe(22150),Me=oe(2453),me=oe(85673),Le=oe(69677),le=oe(78045),He=oe(71230),Oe=oe(31795),De=oe(15746),Ke=oe(84567),ke=oe(71577),je=oe(28706),ae=oe(35567),a=oe(86763),y={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},E=oe(65866),b=oe(10191),x=oe(33170),z=oe(97436),ee=Object.defineProperty,te=Object.defineProperties,re=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,se=(be,Ne,Ce)=>Ne in be?ee(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[Ne]=Ce,ze=(be,Ne)=>{for(var Ce in Ne||(Ne={}))ge.call(Ne,Ce)&&se(be,Ce,Ne[Ce]);if(ie)for(var Ce of ie(Ne))ue.call(Ne,Ce)&&se(be,Ce,Ne[Ce]);return be},Ae=(be,Ne)=>te(be,re(Ne)),pt=(be,Ne,Ce)=>new Promise((tt,it)=>{var Ue=Lt=>{try{nt(Ce.next(Lt))}catch(Pe){it(Pe)}},Ye=Lt=>{try{nt(Ce.throw(Lt))}catch(Pe){it(Pe)}},nt=Lt=>Lt.done?tt(Lt.value):Promise.resolve(Lt.value).then(Ue,Ye);nt((Ce=Ce.apply(be,Ne)).next())});const At=({shixunHomeworks:be,newCourse:Ne,globalSetting:Ce,loading:tt,user:it,dispatch:Ue})=>{var Ye,nt,Lt,Pe;const $e=(0,ce.useParams)(),[qe]=We.default.useForm(),bt=We.default.useWatch("group_type",qe),[_e,at]=(0,ne.useState)({}),de=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:et}=be;let[ht,kt]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:we,categoryId:he}=$e;Ue({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:he,coursesId:we,type:3}})},[]);const ct=we=>pt(void 0,null,function*(){var he,ve;if(_e.min_num>_e.max_num){Me.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Ee=ze({},_e);Ee.attachment_ids&&(Ee.attachment_ids=(he=Ee==null?void 0:Ee.attachment_ids)==null?void 0:he.map(vt=>vt.response.id)),Ee.reference_attachment_ids&&(Ee.reference_attachment_ids=(ve=Ee==null?void 0:Ee.reference_attachment_ids)==null?void 0:ve.map(vt=>vt.response.id));const{coursesId:Xe,categoryId:st}=$e,St=yield(0,a.H1)(Ae(ze({coursesId:Xe,category:st},Ee),{type:3}));St.status===0&&(Be(St.homework_id),(0,je.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),ce.history.push(`/classrooms/${Xe}/group_homework/${St.homework_id}/detail`))});function Be(we){return pt(this,null,function*(){if(!(ht!=null&&ht.ec_point_ids))return;let he=yield(0,x.ZP)(`/api/ec_courses/${ht==null?void 0:ht.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ze({homework_common_id:we},ht)})})}return ne.createElement("section",{className:y.bg},et.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},et.category&&ne.createElement(me.Z,{separator:">"},ne.createElement(me.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${et.course_id}/group_homework`},et.course_name)),ne.createElement(me.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${et.course_id}/group_homework`},et.category.category_name)),ne.createElement(me.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(We.default,{form:qe,className:y.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{at(ze({},qe.getFieldsValue()))},initialValues:{base_on_project:!1,group_type:z.YT.STUDENT_SELF},onFinish:ct},ne.createElement("div",{className:y.fieldWrap},ne.createElement(We.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Le.default,{maxLength:60,suffix:`${((Ye=_e.name)==null?void 0:Ye.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:y.mdWrap},ne.createElement(We.default.Item,{name:"description",label:"\u5185\u5BB9:",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(ae.Z,{watch:!0,defaultValue:_e.intro})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"attachment_ids"},ne.createElement(E.Z,null))),ne.createElement("div",{className:"mb-16px"},ne.createElement("span",{className:"c-red-e53 px-6px"},"*"),"\u5206\u7EC4\u8BBE\u7F6E"),ne.createElement("div",{className:"flex"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u7EC4\u961F\u65B9\u5F0F :"),ne.createElement(We.default.Item,{name:"group_type"},ne.createElement(le.ZP.Group,{options:[{value:z.YT.STUDENT_SELF,label:"\u5B66\u751F\u81EA\u4E3B\u7EC4\u961F"},{value:z.YT.TEACHER_ASSIGN,label:ne.createElement(ne.Fragment,null,"\u6559\u5E08\u5206\u914D\u5C0F\u7EC4",ne.createElement("span",{className:"c-grey-666"},"\uFF08\u5C0F\u7EC4\u53EA\u80FD\u7531\u6559\u5E08\u521B\u5EFA\uFF09"))}]}))),bt==z.YT.STUDENT_SELF&&ne.createElement(He.Z,{gutter:[20,20]},ne.createElement("div",{className:"flex ml10"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u4EBA\u6570\u8BBE\u7F6E :"),ne.createElement(We.default.Item,{name:"min_num",normalize:we=>Math.round(we),required:!1,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Oe.Z,{style:{width:200,marginRight:10},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement(De.Z,null,ne.createElement(We.default.Item,{name:"max_num",normalize:we=>Math.round(we),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Oe.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement(De.Z,null,ne.createElement("div",{className:"c-grey-666",style:{lineHeight:"30px"}},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(He.Z,{style:{display:(nt=Ce==null?void 0:Ce.setting)!=null&&nt.hide_project?"none":""}},ne.createElement("div",{className:"flex gap-10px"},ne.createElement(We.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(Ke.default,{value:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black",style:{lineHeight:"32px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:y.mdWrap},ne.createElement(We.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(ae.Z,{watch:!0,defaultValue:_e.notice})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"reference_attachment_ids"},ne.createElement(E.Z,null))))),ne.createElement("div",{className:y.mdWrap,style:{display:(Lt=Ce==null?void 0:Ce.setting)!=null&&Lt.hide_ec?"none":(Pe=it.userInfo.course)!=null&&Pe.is_openengineering?"":"none"}},ne.createElement(b.Z,{setitem:we=>kt(ze({},we))})),ne.createElement("div",{className:y.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(We.default.Item,null,ne.createElement(ke.ZP,{size:"middle",type:"primary",onClick:()=>{qe.submit()},className:`${y.button} mr20`,htmlType:"submit",loading:tt["newCourse/editCourse"]||tt["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(ke.ZP,{size:"middle",type:"primary",ghost:!0,className:y.button,onClick:()=>ce.history.push(`/classrooms/${$e.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var Zt=(0,ce.connect)(({shixunHomeworks:be,newCourse:Ne,loading:Ce,user:tt,globalSetting:it})=>({shixunHomeworks:be,newCourse:Ne,globalSetting:it,user:tt,loading:Ce.effects}))(At)},97436:function(Ie,gt,oe){"use strict";oe.d(gt,{$s:function(){return ce},Kc:function(){return me},Um:function(){return Me},YT:function(){return ne},ck:function(){return We}});var ne=(Le=>(Le.STUDENT_SELF="student_self",Le.TEACHER_ASSIGN="teacher_assign",Le))(ne||{}),ce=(Le=>(Le.BY_PERSON="by_person",Le.BY_GROUP="by_group",Le.BY_FILE="by_file",Le))(ce||{}),We=(Le=>(Le.BY_CLASS="by_class",Le.BY_RANDOM="by_random",Le))(We||{}),Me=(Le=>(Le.BY_SCORE="by_score",Le.BY_HEADCOUNT="by_headcount",Le.BY_RULE_RANDOM="by_rule_random",Le))(Me||{}),me=(Le=>(Le.BY_RULE="by_rule",Le.BY_LEADER="by_leader",Le))(me||{})},4440:function(Ie,gt,oe){"use strict";oe.d(gt,{$J:function(){return We},JZ:function(){return me},bN:function(){return le},jP:function(){return Le},rO:function(){return Me}});var ne=oe(33170),ce=(He,Oe,De)=>new Promise((Ke,ke)=>{var je=y=>{try{a(De.next(y))}catch(E){ke(E)}},ae=y=>{try{a(De.throw(y))}catch(E){ke(E)}},a=y=>y.done?Ke(y.value):Promise.resolve(y.value).then(je,ae);a((De=De.apply(He,Oe)).next())});function We(He){return(0,ne.U2)(`libraries/${He}.json`)}function Me(He){return(0,ne.U2)("library_tags.json",He)}function me(He){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${He}.json`)).status===0})}function Le(He){return(0,ne.v_)("libraries.json",He)}function le(He,Oe){return(0,ne.gz)(`libraries/${He}.json`,Oe)}},57838:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,We]=ne.useReducer(Me=>Me+1,0);return We}},85673:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Zt}});var ne=oe(94184),ce=oe.n(ne),We=oe(37419),Me=oe(1337),me=oe(67294),Le=oe(96159),le=oe(53124),He=oe(42922),Oe=oe(35874);const De=be=>{let{children:Ne}=be;const{getPrefixCls:Ce}=me.useContext(le.E_),tt=Ce("breadcrumb");return me.createElement("li",{className:`${tt}-separator`,"aria-hidden":"true"},Ne===""?Ne:Ne||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Ke=De,ke=function(be,Ne){var Ce={};for(var tt in be)Object.prototype.hasOwnProperty.call(be,tt)&&Ne.indexOf(tt)<0&&(Ce[tt]=be[tt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(be);it<tt.length;it++)Ne.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(be,tt[it])&&(Ce[tt[it]]=be[tt[it]]);return Ce};function je(be,Ne){if(be.title===void 0||be.title===null)return null;const Ce=Object.keys(Ne).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${Ce})`,"g"),(tt,it)=>Ne[it]||tt)}function ae(be,Ne,Ce,tt){if(Ce==null)return null;const{className:it,onClick:Ue}=Ne,Ye=ke(Ne,["className","onClick"]),nt=Object.assign(Object.assign({},(0,Me.Z)(Ye,{data:!0,aria:!0})),{onClick:Ue});return tt!==void 0?me.createElement("a",Object.assign({},nt,{className:ce()(`${be}-link`,it),href:tt}),Ce):me.createElement("span",Object.assign({},nt,{className:ce()(`${be}-link`,it)}),Ce)}function a(be,Ne){return(tt,it,Ue,Ye,nt)=>{if(Ne)return Ne(tt,it,Ue,Ye);const Lt=je(tt,it);return ae(be,tt,Lt,nt)}}var y=function(be,Ne){var Ce={};for(var tt in be)Object.prototype.hasOwnProperty.call(be,tt)&&Ne.indexOf(tt)<0&&(Ce[tt]=be[tt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(be);it<tt.length;it++)Ne.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(be,tt[it])&&(Ce[tt[it]]=be[tt[it]]);return Ce};const E=be=>{const{prefixCls:Ne,separator:Ce="/",children:tt,menu:it,overlay:Ue,dropdownProps:Ye,href:nt}=be,Pe=($e=>{if(it||Ue){const qe=Object.assign({},Ye);if(it){const bt=it||{},{items:_e}=bt,at=y(bt,["items"]);qe.menu=Object.assign(Object.assign({},at),{items:_e==null?void 0:_e.map((de,et)=>{var{key:ht,title:kt,label:ct,path:Be}=de,we=y(de,["key","title","label","path"]);let he=ct!=null?ct:kt;return Be&&(he=me.createElement("a",{href:`${nt}${Be}`},he)),Object.assign(Object.assign({},we),{key:ht!=null?ht:et,label:he})})})}else Ue&&(qe.overlay=Ue);return me.createElement(Oe.Z,Object.assign({placement:"bottom"},qe),me.createElement("span",{className:`${Ne}-overlay-link`},$e,me.createElement(He.Z,null)))}return $e})(tt);return Pe!=null?me.createElement(me.Fragment,null,me.createElement("li",null,Pe),Ce&&me.createElement(Ke,null,Ce)):null},b=be=>{const{prefixCls:Ne,children:Ce,href:tt}=be,it=y(be,["prefixCls","children","href"]),{getPrefixCls:Ue}=me.useContext(le.E_),Ye=Ue("breadcrumb",Ne);return me.createElement(E,Object.assign({},it,{prefixCls:Ye}),ae(Ye,it,Ce,tt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=be=>{const{componentCls:Ne,iconCls:Ce}=be;return{[Ne]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[Ce]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Ne}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Ne}-link`]:{[`
> ${Ce} + span,
> ${Ce} + a
`]:{marginInlineStart:be.marginXXS}},[`${Ne}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${Ce}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",be=>{const Ne=(0,te.TS)(be,{});return[re(Ne)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ge=function(be,Ne){var Ce={};for(var tt in be)Object.prototype.hasOwnProperty.call(be,tt)&&Ne.indexOf(tt)<0&&(Ce[tt]=be[tt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(be);it<tt.length;it++)Ne.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(be,tt[it])&&(Ce[tt[it]]=be[tt[it]]);return Ce};function ue(be){const{breadcrumbName:Ne,children:Ce}=be,tt=ge(be,["breadcrumbName","children"]),it=Object.assign({title:Ne},tt);return Ce&&(it.menu={items:Ce.map(Ue=>{var{breadcrumbName:Ye}=Ue,nt=ge(Ue,["breadcrumbName"]);return Object.assign(Object.assign({},nt),{title:Ye})})}),it}function se(be,Ne){return(0,me.useMemo)(()=>be||(Ne?Ne.map(ue):null),[be,Ne])}var ze=function(be,Ne){var Ce={};for(var tt in be)Object.prototype.hasOwnProperty.call(be,tt)&&Ne.indexOf(tt)<0&&(Ce[tt]=be[tt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,tt=Object.getOwnPropertySymbols(be);it<tt.length;it++)Ne.indexOf(tt[it])<0&&Object.prototype.propertyIsEnumerable.call(be,tt[it])&&(Ce[tt[it]]=be[tt[it]]);return Ce};const Ae=(be,Ne)=>{if(Ne===void 0)return Ne;let Ce=(Ne||"").replace(/^\//,"");return Object.keys(be).forEach(tt=>{Ce=Ce.replace(`:${tt}`,be[tt])}),Ce},pt=be=>{const{prefixCls:Ne,separator:Ce="/",style:tt,className:it,rootClassName:Ue,routes:Ye,items:nt,children:Lt,itemRender:Pe,params:$e={}}=be,qe=ze(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:bt,direction:_e,breadcrumb:at}=me.useContext(le.E_);let de;const et=bt("breadcrumb",Ne),[ht,kt]=ie(et),ct=se(nt,Ye),Be=a(et,Pe);if(ct&&ct.length>0){const ve=[],Ee=nt||Ye;de=ct.map((Xe,st)=>{const{path:St,key:vt,type:Ot,menu:jt,overlay:Et,onClick:wt,className:zt,separator:Vt,dropdownProps:_t}=Xe,Jt=Ae($e,St);Jt!==void 0&&ve.push(Jt);const ye=vt!=null?vt:st;if(Ot==="separator")return me.createElement(Ke,{key:ye},Vt);const Ge={},Qe=st===ct.length-1;jt?Ge.menu=jt:Et&&(Ge.overlay=Et);let{href:ft}=Xe;return ve.length&&Jt!==void 0&&(ft=`#/${ve.join("/")}`),me.createElement(E,Object.assign({key:ye},Ge,(0,Me.Z)(Xe,{data:!0,aria:!0}),{className:zt,dropdownProps:_t,href:ft,separator:Qe?"":Ce,onClick:wt,prefixCls:et}),Be(Xe,$e,Ee,ve,ft))})}else if(Lt){const ve=(0,We.Z)(Lt).length;de=(0,We.Z)(Lt).map((Ee,Xe)=>{if(!Ee)return Ee;const st=Xe===ve-1;return(0,Le.Tm)(Ee,{separator:st?"":Ce,key:Xe})})}const we=ce()(et,at==null?void 0:at.className,{[`${et}-rtl`]:_e==="rtl"},it,Ue,kt),he=Object.assign(Object.assign({},at==null?void 0:at.style),tt);return ht(me.createElement("nav",Object.assign({className:we,style:he},qe),me.createElement("ol",null,de)))};pt.Item=x,pt.Separator=Ke;var At=pt,Zt=At},84567:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),We=oe(95860),Me=oe(67294),me=oe(53124),Le=oe(98866),le=oe(65223),Oe=Me.createContext(null),De=oe(63185),Ke=oe(45353),ke=oe(92429),je=function(ge,ue){var se={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&ue.indexOf(ze)<0&&(se[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ze=Object.getOwnPropertySymbols(ge);Ae<ze.length;Ae++)ue.indexOf(ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[Ae])&&(se[ze[Ae]]=ge[ze[Ae]]);return se};const ae=(ge,ue)=>{var se;const{prefixCls:ze,className:Ae,rootClassName:pt,children:At,indeterminate:Zt=!1,style:be,onMouseEnter:Ne,onMouseLeave:Ce,skipGroup:tt=!1,disabled:it}=ge,Ue=je(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ye,direction:nt,checkbox:Lt}=Me.useContext(me.E_),Pe=Me.useContext(Oe),{isFormItemInput:$e}=Me.useContext(le.aM),qe=Me.useContext(Le.Z),bt=(se=(Pe==null?void 0:Pe.disabled)||it)!==null&&se!==void 0?se:qe,_e=Me.useRef(Ue.value);Me.useEffect(()=>{Pe==null||Pe.registerValue(Ue.value)},[]),Me.useEffect(()=>{if(!tt)return Ue.value!==_e.current&&(Pe==null||Pe.cancelValue(_e.current),Pe==null||Pe.registerValue(Ue.value),_e.current=Ue.value),()=>Pe==null?void 0:Pe.cancelValue(Ue.value)},[Ue.value]);const at=Ye("checkbox",ze),[de,et]=(0,De.ZP)(at),ht=Object.assign({},Ue);Pe&&!tt&&(ht.onChange=function(){Ue.onChange&&Ue.onChange.apply(Ue,arguments),Pe.toggleOption&&Pe.toggleOption({label:At,value:Ue.value})},ht.name=Pe.name,ht.checked=Pe.value.includes(Ue.value));const kt=ce()(`${at}-wrapper`,{[`${at}-rtl`]:nt==="rtl",[`${at}-wrapper-checked`]:ht.checked,[`${at}-wrapper-disabled`]:bt,[`${at}-wrapper-in-form-item`]:$e},Lt==null?void 0:Lt.className,Ae,pt,et),ct=ce()({[`${at}-indeterminate`]:Zt},ke.A,et),Be=Zt?"mixed":void 0;return de(Me.createElement(Ke.Z,{component:"Checkbox",disabled:bt},Me.createElement("label",{className:kt,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),be),onMouseEnter:Ne,onMouseLeave:Ce},Me.createElement(We.Z,Object.assign({"aria-checked":Be},ht,{prefixCls:at,className:ct,disabled:bt,ref:ue})),At!==void 0&&Me.createElement("span",null,At))))};var y=Me.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,ue){var se={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&ue.indexOf(ze)<0&&(se[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ze=Object.getOwnPropertySymbols(ge);Ae<ze.length;Ae++)ue.indexOf(ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[Ae])&&(se[ze[Ae]]=ge[ze[Ae]]);return se};const z=(ge,ue)=>{const{defaultValue:se,children:ze,options:Ae=[],prefixCls:pt,className:At,rootClassName:Zt,style:be,onChange:Ne}=ge,Ce=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:tt,direction:it}=Me.useContext(me.E_),[Ue,Ye]=Me.useState(Ce.value||se||[]),[nt,Lt]=Me.useState([]);Me.useEffect(()=>{"value"in Ce&&Ye(Ce.value||[])},[Ce.value]);const Pe=Me.useMemo(()=>Ae.map(we=>typeof we=="string"||typeof we=="number"?{label:we,value:we}:we),[Ae]),$e=we=>{Lt(he=>he.filter(ve=>ve!==we))},qe=we=>{Lt(he=>[].concat((0,E.Z)(he),[we]))},bt=we=>{const he=Ue.indexOf(we.value),ve=(0,E.Z)(Ue);he===-1?ve.push(we.value):ve.splice(he,1),"value"in Ce||Ye(ve),Ne==null||Ne(ve.filter(Ee=>nt.includes(Ee)).sort((Ee,Xe)=>{const st=Pe.findIndex(vt=>vt.value===Ee),St=Pe.findIndex(vt=>vt.value===Xe);return st-St}))},_e=tt("checkbox",pt),at=`${_e}-group`,[de,et]=(0,De.ZP)(_e),ht=(0,b.Z)(Ce,["value","disabled"]),kt=Ae.length?Pe.map(we=>Me.createElement(y,{prefixCls:_e,key:we.value.toString(),disabled:"disabled"in we?we.disabled:Ce.disabled,value:we.value,checked:Ue.includes(we.value),onChange:we.onChange,className:`${at}-item`,style:we.style,title:we.title},we.label)):ze,ct={toggleOption:bt,value:Ue,disabled:Ce.disabled,name:Ce.name,registerValue:qe,cancelValue:$e},Be=ce()(at,{[`${at}-rtl`]:it==="rtl"},At,Zt,et);return de(Me.createElement("div",Object.assign({className:Be,style:be},ht,{ref:ue}),Me.createElement(Oe.Provider,{value:ct},kt)))},ee=Me.forwardRef(z);var te=Me.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Ie,gt,oe){"use strict";oe.d(gt,{C2:function(){return me}});var ne=oe(14747),ce=oe(45503),We=oe(67968);const Me=Le=>{const{checkboxCls:le}=Le,He=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{display:"inline-flex",flexWrap:"wrap",columnGap:Le.marginXS,[`> ${Le.antCls}-row`]:{flex:1}}),[He]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${He}`]:{marginInlineStart:0},[`&${He}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Le.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Le))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Le.checkboxSize,height:Le.checkboxSize,direction:"ltr",backgroundColor:Le.colorBgContainer,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,borderCollapse:"separate",transition:`all ${Le.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Le.checkboxSize/14*5,height:Le.checkboxSize/14*8,border:`${Le.lineWidthBold}px solid ${Le.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Le.motionDurationFast} ${Le.motionEaseInBack}, opacity ${Le.motionDurationFast}`}},"& + span":{paddingInlineStart:Le.paddingXS,paddingInlineEnd:Le.paddingXS}})},{[`
${He}:not(${He}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Le.colorPrimary}},[`${He}:not(${He}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Le.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Le.colorPrimary,borderColor:Le.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Le.motionDurationMid} ${Le.motionEaseOutBack} ${Le.motionDurationFast}`}}},[`
${He}-checked:not(${He}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Le.colorBgContainer,borderColor:Le.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Le.fontSizeLG/2,height:Le.fontSizeLG/2,backgroundColor:Le.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${He}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,"&:after":{borderColor:Le.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Le.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Le.colorTextDisabled}}}]};function me(Le,le){const He=(0,ce.TS)(le,{checkboxCls:`.${Le}`,checkboxSize:le.controlInteractiveSize});return[Me(He)]}gt.ZP=(0,We.Z)("Checkbox",(Le,le)=>{let{prefixCls:He}=le;return[me(He,Le)]})},35874:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return he}});var ne=oe(67294),ce=oe(91034),We=oe(94184),Me=oe.n(We),me=oe(87462),Le=oe(4942),le=oe(97685),He=oe(45987),Oe=oe(62709),De=oe(71002),Ke=oe(12060);function ke(ve,Ee,Xe){var st=React.useRef({});return(!("value"in st.current)||Xe(st.current.condition,Ee))&&(st.current.value=ve(),st.current.condition=Ee),st.current.value}function je(ve,Ee){typeof ve=="function"?ve(Ee):(0,De.Z)(ve)==="object"&&ve&&"current"in ve&&(ve.current=Ee)}function ae(){for(var ve=arguments.length,Ee=new Array(ve),Xe=0;Xe<ve;Xe++)Ee[Xe]=arguments[Xe];var st=Ee.filter(function(St){return St});return st.length<=1?st[0]:function(St){Ee.forEach(function(vt){je(vt,St)})}}function a(){for(var ve=arguments.length,Ee=new Array(ve),Xe=0;Xe<ve;Xe++)Ee[Xe]=arguments[Xe];return useMemo(function(){return ae.apply(void 0,Ee)},Ee,function(st,St){return st.length===St.length&&st.every(function(vt,Ot){return vt===St[Ot]})})}function y(ve){var Ee,Xe,st=(0,Ke.isMemo)(ve)?ve.type.type:ve.type;return!(typeof st=="function"&&!((Ee=st.prototype)!==null&&Ee!==void 0&&Ee.render)||typeof ve=="function"&&!((Xe=ve.prototype)!==null&&Xe!==void 0&&Xe.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ee){var Xe=Ee.keyCode;if(Ee.altKey&&!Ee.ctrlKey||Ee.metaKey||Xe>=E.F1&&Xe<=E.F12)return!1;switch(Xe){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=E.ZERO&&Ee<=E.NINE||Ee>=E.NUM_ZERO&&Ee<=E.NUM_MULTIPLY||Ee>=E.A&&Ee<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Ee){return+setTimeout(Ee,16)},z=function(Ee){return clearTimeout(Ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Ee){return window.requestAnimationFrame(Ee)},z=function(Ee){return window.cancelAnimationFrame(Ee)});var ee=0,te=new Map;function re(ve){te.delete(ve)}var ie=function(Ee){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var st=ee;function St(vt){if(vt===0)re(st),Ee();else{var Ot=x(function(){St(vt-1)});te.set(st,Ot)}}return St(Xe),st};ie.cancel=function(ve){var Ee=te.get(ve);return re(Ee),z(Ee)};var ge=ie,ue=b.ESC,se=b.TAB;function ze(ve){var Ee=ve.visible,Xe=ve.triggerRef,st=ve.onVisibleChange,St=ve.autoFocus,vt=ve.overlayRef,Ot=ne.useRef(!1),jt=function(){if(Ee){var Vt,_t;(Vt=Xe.current)===null||Vt===void 0||(_t=Vt.focus)===null||_t===void 0||_t.call(Vt),st==null||st(!1)}},Et=function(){var Vt;return(Vt=vt.current)!==null&&Vt!==void 0&&Vt.focus?(vt.current.focus(),Ot.current=!0,!0):!1},wt=function(Vt){switch(Vt.keyCode){case ue:jt();break;case se:{var _t=!1;Ot.current||(_t=Et()),_t?Vt.preventDefault():jt();break}}};ne.useEffect(function(){return Ee?(window.addEventListener("keydown",wt),St&&ge(Et,3),function(){window.removeEventListener("keydown",wt),Ot.current=!1}):function(){Ot.current=!1}},[Ee])}var Ae=(0,ne.forwardRef)(function(ve,Ee){var Xe=ve.overlay,st=ve.arrow,St=ve.prefixCls,vt=(0,ne.useMemo)(function(){var jt;return typeof Xe=="function"?jt=Xe():jt=Xe,jt},[Xe]),Ot=ae(Ee,vt==null?void 0:vt.ref);return ne.createElement(ne.Fragment,null,st&&ne.createElement("div",{className:"".concat(St,"-arrow")}),ne.cloneElement(vt,{ref:y(vt)?Ot:void 0}))}),pt=Ae,At={adjustX:1,adjustY:1},Zt=[0,0],be={topLeft:{points:["bl","tl"],overflow:At,offset:[0,-4],targetOffset:Zt},top:{points:["bc","tc"],overflow:At,offset:[0,-4],targetOffset:Zt},topRight:{points:["br","tr"],overflow:At,offset:[0,-4],targetOffset:Zt},bottomLeft:{points:["tl","bl"],overflow:At,offset:[0,4],targetOffset:Zt},bottom:{points:["tc","bc"],overflow:At,offset:[0,4],targetOffset:Zt},bottomRight:{points:["tr","br"],overflow:At,offset:[0,4],targetOffset:Zt}},Ne=be,Ce=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tt(ve,Ee){var Xe,st=ve.arrow,St=st===void 0?!1:st,vt=ve.prefixCls,Ot=vt===void 0?"rc-dropdown":vt,jt=ve.transitionName,Et=ve.animation,wt=ve.align,zt=ve.placement,Vt=zt===void 0?"bottomLeft":zt,_t=ve.placements,Jt=_t===void 0?Ne:_t,ye=ve.getPopupContainer,Ge=ve.showAction,Qe=ve.hideAction,ft=ve.overlayClassName,Pt=ve.overlayStyle,Tt=ve.visible,Dt=ve.trigger,xt=Dt===void 0?["hover"]:Dt,Mt=ve.autoFocus,Kt=ve.overlay,Xt=ve.children,rn=ve.onVisibleChange,on=(0,He.Z)(ve,Ce),hn=ne.useState(),vn=(0,le.Z)(hn,2),an=vn[0],qt=vn[1],Sn="visible"in ve?Tt:an,pn=ne.useRef(null),yn=ne.useRef(null),cn=ne.useRef(null);ne.useImperativeHandle(Ee,function(){return pn.current});var En=function(dt){qt(dt),rn==null||rn(dt)};ze({visible:Sn,triggerRef:cn,onVisibleChange:En,autoFocus:Mt,overlayRef:yn});var kn=function(dt){var Bt=ve.onOverlayClick;qt(!1),Bt&&Bt(dt)},bn=function(){return ne.createElement(pt,{ref:yn,overlay:Kt,prefixCls:Ot,arrow:St})},Mn=function(){return typeof Kt=="function"?bn:bn()},Kn=function(){var dt=ve.minOverlayWidthMatchTrigger,Bt=ve.alignPoint;return"minOverlayWidthMatchTrigger"in ve?dt:!Bt},Zn=function(){var dt=ve.openClassName;return dt!==void 0?dt:"".concat(Ot,"-open")},fe=ne.cloneElement(Xt,{className:Me()((Xe=Xt.props)===null||Xe===void 0?void 0:Xe.className,Sn&&Zn()),ref:y(Xt)?ae(cn,Xt.ref):void 0}),Fe=Qe;return!Fe&&xt.indexOf("contextMenu")!==-1&&(Fe=["click"]),ne.createElement(Oe.Z,(0,me.Z)({builtinPlacements:Jt},on,{prefixCls:Ot,ref:pn,popupClassName:Me()(ft,(0,Le.Z)({},"".concat(Ot,"-show-arrow"),St)),popupStyle:Pt,action:xt,showAction:Ge,hideAction:Fe,popupPlacement:Vt,popupAlign:wt,popupTransitionName:jt,popupAnimation:Et,popupVisible:Sn,stretch:Kn()?"minWidth":"",popup:Mn(),onPopupVisibleChange:En,onPopupClick:kn,getPopupContainer:ye}),fe)}var it=ne.forwardRef(tt),Ue=it,Ye=oe(60276),nt=oe(5663),Lt=oe(10366),Pe=oe(80636),$e=oe(8745),qe=oe(96159),bt=oe(53124),_e=oe(68508),at=oe(76529),de=oe(46605),et=oe(66748);const ht=null,kt=ve=>{const{menu:Ee,arrow:Xe,prefixCls:st,children:St,trigger:vt,disabled:Ot,dropdownRender:jt,getPopupContainer:Et,overlayClassName:wt,rootClassName:zt,open:Vt,onOpenChange:_t,visible:Jt,onVisibleChange:ye,mouseEnterDelay:Ge=.15,mouseLeaveDelay:Qe=.1,autoAdjustOverflow:ft=!0,placement:Pt="",overlay:Tt,transitionName:Dt}=ve,{getPopupContainer:xt,getPrefixCls:Mt,direction:Kt}=ne.useContext(bt.E_),Xt=ne.useMemo(()=>{const fe=Mt();return Dt!==void 0?Dt:Pt.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[Mt,Pt,Dt]),rn=ne.useMemo(()=>Pt?Pt.includes("Center")?Pt.slice(0,Pt.indexOf("Center")):Pt:Kt==="rtl"?"bottomRight":"bottomLeft",[Pt,Kt]),on=Mt("dropdown",st),[hn,vn]=(0,et.Z)(on),[,an]=(0,de.Z)(),qt=ne.Children.only(St),Sn=(0,qe.Tm)(qt,{className:Me()(`${on}-trigger`,{[`${on}-rtl`]:Kt==="rtl"},qt.props.className),disabled:Ot}),pn=Ot?[]:vt;let yn;pn&&pn.includes("contextMenu")&&(yn=!0);const[cn,En]=(0,nt.Z)(!1,{value:Vt!=null?Vt:Jt}),kn=(0,Ye.useEvent)(fe=>{_t==null||_t(fe),ye==null||ye(fe),En(fe)}),bn=Me()(wt,zt,vn,{[`${on}-rtl`]:Kt==="rtl"}),Mn=(0,Pe.Z)({arrowPointAtCenter:typeof Xe=="object"&&Xe.pointAtCenter,autoAdjustOverflow:ft,offset:an.marginXXS,arrowWidth:Xe?an.sizePopupArrow:0,borderRadius:an.borderRadius}),Kn=ne.useCallback(()=>{En(!1)},[]),Zn=()=>{let fe;return Ee!=null&&Ee.items?fe=ne.createElement(_e.default,Object.assign({},Ee)):typeof Tt=="function"?fe=Tt():fe=Tt,jt&&(fe=jt(fe)),fe=ne.Children.only(typeof fe=="string"?ne.createElement("span",null,fe):fe),ne.createElement(at.J,{prefixCls:`${on}-menu`,expandIcon:ne.createElement("span",{className:`${on}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kn,validator:Fe=>{let{mode:pe}=Fe}},fe)};return hn(ne.createElement(Ue,Object.assign({alignPoint:yn},(0,Lt.Z)(ve,["rootClassName"]),{mouseEnterDelay:Ge,mouseLeaveDelay:Qe,visible:cn,builtinPlacements:Mn,arrow:!!Xe,overlayClassName:bn,prefixCls:on,getPopupContainer:Et||xt,transitionName:Xt,trigger:pn,overlay:Zn,placement:rn,onVisibleChange:kn}),Sn))};function ct(ve){return Object.assign(Object.assign({},ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Be=(0,$e.Z)(kt,"dropdown",ve=>ve,ct),we=ve=>ne.createElement(Be,Object.assign({},ve),ne.createElement("span",null));kt._InternalPanelDoNotUseOrYouWillBeFired=we;var he=kt},66748:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ke}});var ne=oe(14747),ce=oe(67771),We=oe(33297),Me=oe(50438),me=oe(97414),Le=oe(67968),le=oe(45503),Oe=ke=>{const{componentCls:je,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${je}, ${je}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=ke=>{const{componentCls:je,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:se}=ke;return[{[je]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{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}},[`${je}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${je}-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${je}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topRight`]:{animationName:ce.ly}})},(0,me.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${je} ${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}},[`${je}, ${je}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ue}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.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:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ue+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${je}-menu-submenu-title`]:{[`&, ${je}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${je}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,ce.oN)(ke,"slide-up"),(0,ce.oN)(ke,"slide-down"),(0,We.Fm)(ke,"move-up"),(0,We.Fm)(ke,"move-down"),(0,Me._y)(ke,"zoom-big")]]};var Ke=(0,Le.Z)("Dropdown",(ke,je)=>{let{rootPrefixCls:ae}=je;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,me.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ge),Oe(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},71322:function(Ie,gt,oe){"use strict";oe.d(gt,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),We={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=We,me=oe(74643),Le=function(ie,ge){return ce.createElement(me.Z,(0,ne.Z)({},ie,{ref:ge,icon:Me}))},le=ce.forwardRef(Le),He=oe(22751),Oe=oe(91034),De=oe(94184),Ke=oe.n(De),ke=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var ue in re)Object.prototype.hasOwnProperty.call(re,ue)&&ie.indexOf(ue)<0&&(ge[ue]=re[ue]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(re);se<ue.length;se++)ie.indexOf(ue[se])<0&&Object.prototype.propertyIsEnumerable.call(re,ue[se])&&(ge[ue[se]]=re[ue[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:ue,trigger:se,children:ze,defaultCollapsed:Ae=!1,theme:pt="dark",style:At={},collapsible:Zt=!1,reverseArrow:be=!1,width:Ne=200,collapsedWidth:Ce=80,zeroWidthTriggerStyle:tt,breakpoint:it,onCollapse:Ue,onBreakpoint:Ye}=re,nt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Lt}=(0,ce.useContext)(y.Gs),[Pe,$e]=(0,ce.useState)("collapsed"in re?re.collapsed:Ae),[qe,bt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&$e(re.collapsed)},[re.collapsed]);const _e=(ct,Be)=>{"collapsed"in re||$e(ct),Ue==null||Ue(ct,Be)},at=(0,ce.useRef)();at.current=ct=>{bt(ct.matches),Ye==null||Ye(ct.matches),Pe!==ct.matches&&_e(ct.matches,"responsive")},(0,ce.useEffect)(()=>{function ct(we){return at.current(we)}let Be;if(typeof window!="undefined"){const{matchMedia:we}=window;if(we&&it&&it in b){Be=we(`(max-width: ${b[it]})`);try{Be.addEventListener("change",ct)}catch(he){Be.addListener(ct)}ct(Be)}}return()=>{try{Be==null||Be.removeEventListener("change",ct)}catch(we){Be==null||Be.removeListener(ct)}}},[it]),(0,ce.useEffect)(()=>{const ct=z("ant-sider-");return Lt.addSider(ct),()=>Lt.removeSider(ct)},[]);const de=()=>{_e(!Pe,"clickTrigger")},{getPrefixCls:et}=(0,ce.useContext)(a.E_),ht=()=>{const ct=et("layout-sider",ge),Be=(0,ke.Z)(nt,["collapsed"]),we=Pe?Ce:Ne,he=ae(we)?`${we}px`:String(we),ve=parseFloat(String(Ce||0))===0?ce.createElement("span",{onClick:de,className:Ke()(`${ct}-zero-width-trigger`,`${ct}-zero-width-trigger-${be?"right":"left"}`),style:tt},se||ce.createElement(le,null)):null,st={expanded:be?ce.createElement(Oe.Z,null):ce.createElement(He.Z,null),collapsed:be?ce.createElement(He.Z,null):ce.createElement(Oe.Z,null)}[Pe?"collapsed":"expanded"],St=se!==null?ve||ce.createElement("div",{className:`${ct}-trigger`,onClick:de,style:{width:he}},se||st):null,vt=Object.assign(Object.assign({},At),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),Ot=Ke()(ct,`${ct}-${pt}`,{[`${ct}-collapsed`]:!!Pe,[`${ct}-has-trigger`]:Zt&&se!==null&&!ve,[`${ct}-below`]:!!qe,[`${ct}-zero-width`]:parseFloat(he)===0},ue);return ce.createElement("aside",Object.assign({className:Ot},Be,{style:vt,ref:ie}),ce.createElement("div",{className:`${ct}-children`},ze),Zt||qe&&ve?St:null)},kt=ce.useMemo(()=>({siderCollapsed:Pe}),[Pe]);return ce.createElement(x.Provider,{value:kt},ht())})},84321:function(Ie,gt,oe){"use strict";oe.d(gt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return je},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),We=oe.n(ce),Me=oe(10366),me=oe(67294),Le=oe(53124),le=oe(67968),Oe=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ue,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:ue},[`${re}-sider-zero-width-trigger`]:{color:se,background:ue,border:`1px solid ${ie}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ue,footerBg:se,triggerBg:ze,headerHeight:Ae,headerPadding:pt,headerColor:At,footerPadding:Zt,triggerHeight:be,zeroTriggerHeight:Ne,zeroTriggerWidth:Ce,motionDurationMid:tt,motionDurationSlow:it,fontSize:Ue,borderRadius:Ye,bodyBg:nt,headerBg:Lt,siderBg:Pe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nt,"&, *":{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:Pe,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:ue,lineHeight:`${be}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-Ce,zIndex:1,width:Ce,height:Ne,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Pe,borderStartStartRadius:0,borderStartEndRadius:Ye,borderEndEndRadius:Ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ce,borderStartStartRadius:Ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ye}}}}},Oe(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ae,padding:pt,color:At,lineHeight:`${Ae}px`,background:Lt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Zt,color:ge,fontSize:Ue,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ke=(0,le.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ue,controlHeightSM:se,marginXXS:ze,colorTextLightSolid:Ae,colorBgContainer:pt}=te,At=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${At}px`,headerColor:ue,footerPadding:`${se}px ${At}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+ze*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=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 je=me.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return ue=>me.forwardRef((ze,Ae)=>me.createElement(ue,Object.assign({ref:Ae,suffixCls:re,tagName:ie},ze)))}const a=me.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:ue,tagName:se}=te,ze=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=me.useContext(Le.E_),pt=Ae("layout",ie),[At,Zt]=Ke(pt),be=ge?`${pt}-${ge}`:pt;return At(me.createElement(se,Object.assign({className:We()(ie||be,ue,Zt),ref:re},ze)))}),y=me.forwardRef((te,re)=>{const{direction:ie}=me.useContext(Le.E_),[ge,ue]=me.useState([]),{prefixCls:se,className:ze,rootClassName:Ae,children:pt,hasSider:At,tagName:Zt,style:be}=te,Ne=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ce=(0,Me.Z)(Ne,["suffixCls"]),{getPrefixCls:tt,layout:it}=me.useContext(Le.E_),Ue=tt("layout",se),[Ye,nt]=Ke(Ue),Lt=We()(Ue,{[`${Ue}-has-sider`]:typeof At=="boolean"?At:ge.length>0,[`${Ue}-rtl`]:ie==="rtl"},it==null?void 0:it.className,ze,Ae,nt),Pe=me.useMemo(()=>({siderHook:{addSider:$e=>{ue(qe=>[].concat((0,ne.Z)(qe),[$e]))},removeSider:$e=>{ue(qe=>qe.filter(bt=>bt!==$e))}}}),[]);return Ye(me.createElement(je.Provider,{value:Pe},me.createElement(Zt,Object.assign({ref:re,className:Lt,style:Object.assign(Object.assign({},it==null?void 0:it.style),be)},Ce),pt)))}),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},76529:function(Ie,gt,oe){"use strict";oe.d(gt,{J:function(){return Le}});var ne=oe(67294),ce=oe(4173),We=oe(60276),Me=function(le,He){var Oe={};for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&He.indexOf(De)<0&&(Oe[De]=le[De]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,De=Object.getOwnPropertySymbols(le);Ke<De.length;Ke++)He.indexOf(De[Ke])<0&&Object.prototype.propertyIsEnumerable.call(le,De[Ke])&&(Oe[De[Ke]]=le[De[Ke]]);return Oe};const me=ne.createContext(null),Le=ne.forwardRef((le,He)=>{const{children:Oe}=le,De=Me(le,["children"]),Ke=ne.useContext(me),ke=ne.useMemo(()=>Object.assign(Object.assign({},Ke),De),[Ke,De.prefixCls,De.mode,De.selectable]);return ne.createElement(me.Provider,{value:ke},ne.createElement(ce.BR,null,(0,We.supportNodeRef)(Oe)?ne.cloneElement(Oe,{ref:He}):Oe))});gt.Z=me},68508:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return ct}});var ne=oe(78595),ce=oe(67294),We=oe(71322),Me=oe(94184),me=oe.n(Me),Le=oe(53124),le=function(Be,we){var he={};for(var ve in Be)Object.prototype.hasOwnProperty.call(Be,ve)&&we.indexOf(ve)<0&&(he[ve]=Be[ve]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(Be);Ee<ve.length;Ee++)we.indexOf(ve[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Be,ve[Ee])&&(he[ve[Ee]]=Be[ve[Ee]]);return he},Oe=Be=>{const{prefixCls:we,className:he,dashed:ve}=Be,Ee=le(Be,["prefixCls","className","dashed"]),{getPrefixCls:Xe}=ce.useContext(Le.E_),st=Xe("menu",we),St=me()({[`${st}-item-divider-dashed`]:!!ve},he);return ce.createElement(ne.iz,Object.assign({className:St},Ee))},De=oe(37419),Ke=oe(10366),ke=oe(83062),je=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Be=>{var we;const{className:he,children:ve,icon:Ee,title:Xe,danger:st}=Be,{prefixCls:St,firstLevel:vt,direction:Ot,disableMenuItemTitleTooltip:jt,inlineCollapsed:Et}=ce.useContext(a),wt=Ge=>{const Qe=ce.createElement("span",{className:`${St}-title-content`},ve);return(!Ee||(0,je.l$)(ve)&&ve.type==="span")&&ve&&Ge&&vt&&typeof ve=="string"?ce.createElement("div",{className:`${St}-inline-collapsed-noicon`},ve.charAt(0)):Qe},{siderCollapsed:zt}=ce.useContext(We.D);let Vt=Xe;typeof Xe=="undefined"?Vt=vt?ve:"":Xe===!1&&(Vt="");const _t={title:Vt};!zt&&!Et&&(_t.title=null,_t.open=!1);const Jt=(0,De.Z)(ve).length;let ye=ce.createElement(ne.ck,Object.assign({},(0,Ke.Z)(Be,["title","icon","danger"]),{className:me()({[`${St}-item-danger`]:st,[`${St}-item-only-child`]:(Ee?Jt+1:Jt)===1},he),title:typeof Xe=="string"?Xe:void 0}),(0,je.Tm)(Ee,{className:me()((0,je.l$)(Ee)?(we=Ee.props)===null||we===void 0?void 0:we.className:"",`${St}-item-icon`)}),wt(Et));return jt||(ye=ce.createElement(ke.Z,Object.assign({},_t,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${St}-inline-collapsed-tooltip`}),ye)),ye},x=Be=>{var we;const{popupClassName:he,icon:ve,title:Ee,theme:Xe}=Be,st=ce.useContext(a),{prefixCls:St,inlineCollapsed:vt,theme:Ot}=st,jt=(0,ne.Xl)();let Et;if(!ve)Et=vt&&!jt.length&&Ee&&typeof Ee=="string"?ce.createElement("div",{className:`${St}-inline-collapsed-noicon`},Ee.charAt(0)):ce.createElement("span",{className:`${St}-title-content`},Ee);else{const zt=(0,je.l$)(Ee)&&Ee.type==="span";Et=ce.createElement(ce.Fragment,null,(0,je.Tm)(ve,{className:me()((0,je.l$)(ve)?(we=ve.props)===null||we===void 0?void 0:we.className:"",`${St}-item-icon`)}),zt?Ee:ce.createElement("span",{className:`${St}-title-content`},Ee))}const wt=ce.useMemo(()=>Object.assign(Object.assign({},st),{firstLevel:!1}),[st]);return ce.createElement(a.Provider,{value:wt},ce.createElement(ne.Wd,Object.assign({},(0,Ke.Z)(Be,["icon"]),{title:Et,popupClassName:me()(St,he,`${St}-${Xe||Ot}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(Be,we){var he={};for(var ve in Be)Object.prototype.hasOwnProperty.call(Be,ve)&&we.indexOf(ve)<0&&(he[ve]=Be[ve]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(Be);Ee<ve.length;Ee++)we.indexOf(ve[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Be,ve[Ee])&&(he[ve[Ee]]=Be[ve[Ee]]);return he};function ge(Be){return(Be||[]).map((we,he)=>{if(we&&typeof we=="object"){const ve=we,{label:Ee,children:Xe,key:st,type:St}=ve,vt=ie(ve,["label","children","key","type"]),Ot=st!=null?st:`tmp-${he}`;return Xe||St==="group"?St==="group"?ce.createElement(ne.BW,Object.assign({key:Ot},vt,{title:Ee}),ge(Xe)):ce.createElement(x,Object.assign({key:Ot},vt,{title:Ee}),ge(Xe)):St==="divider"?ce.createElement(Oe,Object.assign({key:Ot},vt)):ce.createElement(E,Object.assign({key:Ot},vt),Ee)}return null}).filter(we=>we)}function ue(Be){return ce.useMemo(()=>Be&&ge(Be),[Be])}var se=oe(84780),ze=oe(14747),Ae=oe(33507),pt=oe(67771),At=oe(50438),Zt=oe(67968),be=oe(45503),Ce=Be=>{const{componentCls:we,motionDurationSlow:he,horizontalLineHeight:ve,colorSplit:Ee,lineWidth:Xe,lineType:st,itemPaddingInline:St}=Be;return{[`${we}-horizontal`]:{lineHeight:ve,border:0,borderBottom:`${Xe}px ${st} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:St},[`> ${we}-item:hover,
> ${we}-item-active,
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},it=Be=>{let{componentCls:we,menuArrowOffset:he}=Be;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const Ue=Be=>Object.assign({},(0,ze.oN)(Be));var nt=(Be,we)=>{const{componentCls:he,itemColor:ve,itemSelectedColor:Ee,groupTitleColor:Xe,itemBg:st,subMenuItemBg:St,itemSelectedBg:vt,activeBarHeight:Ot,activeBarWidth:jt,activeBarBorderWidth:Et,motionDurationSlow:wt,motionEaseInOut:zt,motionEaseOut:Vt,itemPaddingInline:_t,motionDurationMid:Jt,itemHoverColor:ye,lineType:Ge,colorSplit:Qe,itemDisabledColor:ft,dangerItemColor:Pt,dangerItemHoverColor:Tt,dangerItemSelectedColor:Dt,dangerItemActiveBg:xt,dangerItemSelectedBg:Mt,itemHoverBg:Kt,itemActiveBg:Xt,menuSubMenuBg:rn,horizontalItemSelectedColor:on,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:an,popupBg:qt}=Be;return{[`${he}-${we}, ${he}-${we} > ${he}`]:{color:ve,background:st,[`&${he}-root:focus-visible`]:Object.assign({},Ue(Be)),[`${he}-item-group-title`]:{color:Xe},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:Ee}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${ft} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:ye}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Xt}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Xt}}},[`${he}-item-danger`]:{color:Pt,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Tt}},[`&${he}-item:active`]:{background:xt}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:Ee,[`&${he}-item-danger`]:{color:Dt},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:vt,[`&${he}-item-danger`]:{backgroundColor:Mt}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},Ue(Be))},[`&${he}-submenu > ${he}`]:{backgroundColor:rn},[`&${he}-popup > ${he}`]:{backgroundColor:qt},[`&${he}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:Et,marginTop:-Et,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:_t,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${wt} ${zt}`,content:'""'},"&:hover, &-active, &-open":{background:an,"&::after":{borderBottomWidth:Ot,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:on}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${Et}px ${Ge} ${Qe}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:St},[`${he}-item, ${he}-submenu-title`]:Et&&jt?{width:`calc(100% + ${Et}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Jt} ${Vt}`,`opacity ${Jt} ${Vt}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:Dt}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Jt} ${zt}`,`opacity ${Jt} ${zt}`].join(",")}}}}}};const Lt=Be=>{const{componentCls:we,itemHeight:he,itemMarginInline:ve,padding:Ee,menuArrowSize:Xe,marginXS:st,itemMarginBlock:St}=Be,vt=Ee+Xe+st;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:Ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:ve,marginBlock:St,width:`calc(100% - ${ve*2}px)`},[`> ${we}-item,
> ${we}-submenu > ${we}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${we}-item-group-list ${we}-submenu-title,
${we}-submenu-title`]:{paddingInlineEnd:vt}}};var $e=Be=>{const{componentCls:we,iconCls:he,itemHeight:ve,colorTextLightSolid:Ee,dropdownWidth:Xe,controlHeightLG:st,motionDurationMid:St,motionEaseOut:vt,paddingXL:Ot,itemMarginInline:jt,fontSizeLG:Et,motionDurationSlow:wt,paddingXS:zt,boxShadowSecondary:Vt,collapsedWidth:_t,collapsedIconSize:Jt}=Be,ye={height:ve,lineHeight:`${ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},Lt(Be))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},Lt(Be)),{boxShadow:Vt})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:Xe,maxHeight:`calc(100vh - ${st*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wt}`,`background ${wt}`,`padding ${St} ${vt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:ye,[`& ${we}-item-group-title`]:{paddingInlineStart:Ot}},[`${we}-item`]:ye}},{[`${we}-inline-collapsed`]:{width:_t,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:Et,textAlign:"center"}}},[`> ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et/2}px - ${jt}px)`,textOverflow:"clip",[`
${we}-submenu-arrow,
${we}-submenu-expand-icon
`]:{opacity:0},[`${we}-item-icon, ${he}`]:{margin:0,fontSize:Jt,lineHeight:`${ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${we}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:zt})}}]};const qe=Be=>{const{componentCls:we,motionDurationSlow:he,motionDurationMid:ve,motionEaseInOut:Ee,motionEaseOut:Xe,iconCls:st,iconSize:St,iconMarginInlineEnd:vt}=Be;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${Ee}`].join(","),[`${we}-item-icon, ${st}`]:{minWidth:St,fontSize:St,transition:[`font-size ${ve} ${Xe}`,`margin ${he} ${Ee}`,`color ${he}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${he} ${Ee}`,`margin ${he}`,`color ${he}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${we}-item-only-child`]:{[`> ${st}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},bt=Be=>{const{componentCls:we,motionDurationSlow:he,motionEaseInOut:ve,borderRadius:Ee,menuArrowSize:Xe,menuArrowOffset:st}=Be;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Be.margin,width:Xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${ve}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Xe*.6,height:Xe*.15,backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${he} ${ve}`,`transform ${he} ${ve}`,`top ${he} ${ve}`,`color ${he} ${ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${st})`},"&::after":{transform:`rotate(-45deg) translateY(${st})`}}}}},_e=Be=>{const{antCls:we,componentCls:he,fontSize:ve,motionDurationSlow:Ee,motionDurationMid:Xe,motionEaseInOut:st,paddingXS:St,padding:vt,colorSplit:Ot,lineWidth:jt,zIndexPopup:Et,borderRadiusLG:wt,subMenuItemBorderRadius:zt,menuArrowSize:Vt,menuArrowOffset:_t,lineType:Jt,menuPanelMaskInset:ye,groupTitleLineHeight:Ge,groupTitleFontSize:Qe}=Be;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(Be)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:Be.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${St}px ${vt}px`,fontSize:Qe,lineHeight:Ge,transition:`all ${Ee}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${Ee} ${st}`,`background ${Ee} ${st}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${Ee} ${st}`,`background ${Ee} ${st}`,`padding ${Xe} ${st}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${st}`,`padding ${Ee} ${st}`].join(",")},[`${he}-title-content`]:{transition:`color ${Ee}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:Jt,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(Be)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${ve*2}px ${vt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Et,borderRadius:wt,boxShadow:"none",transformOrigin:"0 0",[`&${he}-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:Be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Be.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:wt},qe(Be)),bt(Be)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:zt},[`${he}-submenu-title::after`]:{transition:`transform ${Ee} ${st}`}})}}),bt(Be)),{[`&-inline-collapsed ${he}-submenu-arrow,
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_t})`},"&::after":{transform:`rotate(45deg) translateX(-${_t})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${Vt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_t})`},"&::before":{transform:`rotate(45deg) translateX(${_t})`}}})},{[`${we}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var at=(Be,we)=>(0,Zt.Z)("Menu",ve=>{if(we===!1)return[];const{colorBgElevated:Ee,colorPrimary:Xe,colorTextLightSolid:st,controlHeightLG:St,fontSize:vt,darkItemColor:Ot,darkDangerItemColor:jt,darkItemBg:Et,darkSubMenuItemBg:wt,darkItemSelectedColor:zt,darkItemSelectedBg:Vt,darkDangerItemSelectedBg:_t,darkItemHoverBg:Jt,darkGroupTitleColor:ye,darkItemHoverColor:Ge,darkItemDisabledColor:Qe,darkDangerItemHoverColor:ft,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Tt}=ve,Dt=vt/7*5,xt=(0,be.TS)(ve,{menuArrowSize:Dt,menuHorizontalHeight:St*1.15,menuArrowOffset:`${Dt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ee}),Mt=(0,be.TS)(xt,{itemColor:Ot,itemHoverColor:Ge,groupTitleColor:ye,itemSelectedColor:zt,itemBg:Et,popupBg:Et,subMenuItemBg:wt,itemActiveBg:"transparent",itemSelectedBg:Vt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Jt,itemDisabledColor:Qe,dangerItemColor:jt,dangerItemHoverColor:ft,dangerItemSelectedColor:Pt,dangerItemActiveBg:Tt,dangerItemSelectedBg:_t,menuSubMenuBg:wt,horizontalItemSelectedColor:st,horizontalItemSelectedBg:Xe});return[_e(xt),Ce(xt),$e(xt),nt(xt,"light"),nt(Mt,"dark"),it(xt),(0,Ae.Z)(xt),(0,pt.oN)(xt,"slide-up"),(0,pt.oN)(xt,"slide-down"),(0,At._y)(xt,"zoom-big")]},ve=>{const{colorPrimary:Ee,colorError:Xe,colorTextDisabled:st,colorErrorBg:St,colorText:vt,colorTextDescription:Ot,colorBgContainer:jt,colorFillAlter:Et,colorFillContent:wt,lineWidth:zt,lineWidthBold:Vt,controlItemBgActive:_t,colorBgTextHover:Jt,controlHeightLG:ye,lineHeight:Ge,colorBgElevated:Qe,marginXXS:ft,padding:Pt,fontSize:Tt,controlHeightSM:Dt,fontSizeLG:xt,colorTextLightSolid:Mt,colorErrorHover:Kt}=ve,Xt=new se.C(Mt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ve.zIndexPopupBase+50,radiusItem:ve.borderRadiusLG,itemBorderRadius:ve.borderRadiusLG,radiusSubMenuItem:ve.borderRadiusSM,subMenuItemBorderRadius:ve.borderRadiusSM,colorItemText:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Ee,itemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:jt,itemBg:jt,colorItemBgHover:Jt,itemHoverBg:Jt,colorItemBgActive:wt,itemActiveBg:_t,colorSubItemBg:Et,subMenuItemBg:Et,colorItemBgSelected:_t,itemSelectedBg:_t,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Vt,activeBarHeight:Vt,colorActiveBarBorderSize:zt,activeBarBorderWidth:zt,colorItemTextDisabled:st,itemDisabledColor:st,colorDangerItemText:Xe,dangerItemColor:Xe,colorDangerItemTextHover:Xe,dangerItemHoverColor:Xe,colorDangerItemTextSelected:Xe,dangerItemSelectedColor:Xe,colorDangerItemBgActive:St,dangerItemActiveBg:St,colorDangerItemBgSelected:St,dangerItemSelectedBg:St,itemMarginInline:ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Ge,collapsedWidth:ye*2,popupBg:Qe,itemMarginBlock:ft,itemPaddingInline:Pt,horizontalLineHeight:`${ye*1.15}px`,iconSize:Tt,iconMarginInlineEnd:Dt-Tt,collapsedIconSize:xt,groupTitleFontSize:Tt,darkItemDisabledColor:new se.C(Mt).setAlpha(.25).toRgbString(),darkItemColor:Xt,darkDangerItemColor:Xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:Xe,darkItemHoverBg:"transparent",darkGroupTitleColor:Xt,darkItemHoverColor:Mt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:Xe}},{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"]]})(Be),de=function(Be,we){var he={};for(var ve in Be)Object.prototype.hasOwnProperty.call(Be,ve)&&we.indexOf(ve)<0&&(he[ve]=Be[ve]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(Be);Ee<ve.length;Ee++)we.indexOf(ve[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Be,ve[Ee])&&(he[ve[Ee]]=Be[ve[Ee]]);return he},ht=(0,ce.forwardRef)((Be,we)=>{var he,ve;const Ee=ce.useContext(re.Z),Xe=Ee||{},{getPrefixCls:st,getPopupContainer:St,direction:vt,menu:Ot}=ce.useContext(Le.E_),jt=st(),{prefixCls:Et,className:wt,style:zt,theme:Vt="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:Jt,inlineCollapsed:ye,siderCollapsed:Ge,items:Qe,children:ft,rootClassName:Pt,mode:Tt,selectable:Dt,onClick:xt,overflowedIndicatorPopupClassName:Mt}=Be,Kt=de(Be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xt=(0,Ke.Z)(Kt,["collapsedWidth"]),rn=ue(Qe)||ft;(he=Xe.validator)===null||he===void 0||he.call(Xe,{mode:Tt});const on=(0,ee.useEvent)(function(){var bn;xt==null||xt.apply(void 0,arguments),(bn=Xe.onClick)===null||bn===void 0||bn.call(Xe)}),hn=Xe.mode||Tt,vn=Dt!=null?Dt:Xe.selectable,an=ce.useMemo(()=>Ge!==void 0?Ge:ye,[ye,Ge]),qt={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},Sn=st("menu",Et||Xe.prefixCls),[pn,yn]=at(Sn,!Ee),cn=me()(`${Sn}-${Vt}`,Ot==null?void 0:Ot.className,wt);let En;if(typeof _t=="function")En=_t;else if(_t===null||_t===!1)En=null;else if(Xe.expandIcon===null||Xe.expandIcon===!1)En=null;else{const bn=_t!=null?_t:Xe.expandIcon;En=(0,je.Tm)(bn,{className:me()(`${Sn}-submenu-expand-icon`,(0,je.l$)(bn)?(ve=bn.props)===null||ve===void 0?void 0:ve.className:"")})}const kn=ce.useMemo(()=>({prefixCls:Sn,inlineCollapsed:an||!1,direction:vt,firstLevel:!0,theme:Vt,mode:hn,disableMenuItemTitleTooltip:Jt}),[Sn,an,vt,Jt,Vt]);return pn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:kn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:St,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:me()(Sn,`${Sn}-${Vt}`,Mt),mode:hn,selectable:vn,onClick:on},Xt,{inlineCollapsed:an,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),zt),className:cn,prefixCls:Sn,direction:vt,defaultMotions:qt,expandIcon:En,ref:we,rootClassName:me()(Pt,yn)}),rn))))});const kt=(0,ce.forwardRef)((Be,we)=>{const he=(0,ce.useRef)(null),ve=ce.useContext(We.D);return(0,ce.useImperativeHandle)(we,()=>({menu:he.current,focus:Ee=>{var Xe;(Xe=he.current)===null||Xe===void 0||Xe.focus(Ee)}})),ce.createElement(ht,Object.assign({ref:he},Be,ve))});kt.Item=E,kt.SubMenu=x,kt.Divider=Oe,kt.ItemGroup=ne.BW;var ct=kt},38703:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Jt}});var ne=oe(67294),ce=oe(87725),We=oe(18299),Me=oe(16646),me=oe(73475),Le=oe(94184),le=oe.n(Le),He=oe(10366),Oe=oe(53124),De=oe(87462),Ke=oe(1413),ke=oe(45987),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ge=(0,ne.useRef)([]),Qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ft=Date.now(),Pt=!1;Ge.current.forEach(function(Tt){if(Tt){Pt=!0;var Dt=Tt.style;Dt.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&ft-Qe.current<100&&(Dt.transitionDuration="0s, 0s")}}),Pt&&(Qe.current=Date.now())}),Ge.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ge){var Qe=(0,Ke.Z)((0,Ke.Z)({},je),Ge),ft=Qe.className,Pt=Qe.percent,Tt=Qe.prefixCls,Dt=Qe.strokeColor,xt=Qe.strokeLinecap,Mt=Qe.strokeWidth,Kt=Qe.style,Xt=Qe.trailColor,rn=Qe.trailWidth,on=Qe.transition,hn=(0,ke.Z)(Qe,a);delete hn.gapPosition;var vn=Array.isArray(Pt)?Pt:[Pt],an=Array.isArray(Dt)?Dt:[Dt],qt=ae(),Sn=Mt/2,pn=100-Mt/2,yn="M ".concat(xt==="round"?Sn:0,",").concat(Sn,`
L `).concat(xt==="round"?pn:100,",").concat(Sn),cn="0 0 100 ".concat(Mt),En=0;return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Tt,"-line"),ft),viewBox:cn,preserveAspectRatio:"none",style:Kt},hn),ne.createElement("path",{className:"".concat(Tt,"-line-trail"),d:yn,strokeLinecap:xt,stroke:Xt,strokeWidth:rn||Mt,fillOpacity:"0"}),vn.map(function(kn,bn){var Mn=1;switch(xt){case"round":Mn=1-Mt/100;break;case"square":Mn=1-Mt/2/100;break;default:Mn=1;break}var Kn={strokeDasharray:"".concat(kn*Mn,"px, 100px"),strokeDashoffset:"-".concat(En,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=an[bn]||an[an.length-1];return En+=kn,ne.createElement("path",{key:bn,className:"".concat(Tt,"-line-path"),d:yn,strokeLinecap:xt,stroke:Zn,strokeWidth:Mt,fillOpacity:"0",ref:function(Fe){qt[bn]=Fe},style:Kn})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),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 Ge=ne.useState(),Qe=(0,x.Z)(Ge,2),ft=Qe[0],Pt=Qe[1];return ne.useEffect(function(){Pt("rc_progress_".concat(re()))},[]),ye||ft},ge=function(Ge){var Qe=Ge.bg,ft=Ge.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},ft)};function ue(ye,Ge){return Object.keys(ye).map(function(Qe){var ft=parseFloat(Qe),Pt="".concat(Math.floor(ft*Ge),"%");return"".concat(ye[Qe]," ").concat(Pt)})}var se=ne.forwardRef(function(ye,Ge){var Qe=ye.prefixCls,ft=ye.color,Pt=ye.gradientId,Tt=ye.radius,Dt=ye.style,xt=ye.ptg,Mt=ye.strokeLinecap,Kt=ye.strokeWidth,Xt=ye.size,rn=ye.gapDegree,on=ft&&(0,b.Z)(ft)==="object",hn=on?"#FFF":void 0,vn=Xt/2,an=ne.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:Tt,cx:vn,cy:vn,stroke:hn,strokeLinecap:Mt,strokeWidth:Kt,opacity:xt===0?0:1,style:Dt,ref:Ge});if(!on)return an;var qt="".concat(Pt,"-conic"),Sn=rn?"".concat(180+rn/2,"deg"):"0deg",pn=ue(ft,(360-rn)/360),yn=ue(ft,1),cn="conic-gradient(from ".concat(Sn,", ").concat(pn.join(", "),")"),En="linear-gradient(to ".concat(rn?"bottom":"top",", ").concat(yn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:qt},an),ne.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(qt,")")},ne.createElement(ge,{bg:En},ne.createElement(ge,{bg:cn}))))}),ze=se,Ae=100,pt=function(Ge,Qe,ft,Pt,Tt,Dt,xt,Mt,Kt,Xt){var rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=ft/100*360*((360-Dt)/360),hn=Dt===0?0:{bottom:0,top:180,left:90,right:-90}[xt],vn=(100-Pt)/100*Qe;Kt==="round"&&Pt!==100&&(vn+=Xt/2,vn>=Qe&&(vn=Qe-.01));var an=Ae/2;return{stroke:typeof Mt=="string"?Mt:void 0,strokeDasharray:"".concat(Qe,"px ").concat(Ge),strokeDashoffset:vn+rn,transform:"rotate(".concat(Tt+on+hn,"deg)"),transformOrigin:"".concat(an,"px ").concat(an,"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}},At=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(ye){var Ge=ye!=null?ye:[];return Array.isArray(Ge)?Ge:[Ge]}var be=function(Ge){var Qe=(0,Ke.Z)((0,Ke.Z)({},je),Ge),ft=Qe.id,Pt=Qe.prefixCls,Tt=Qe.steps,Dt=Qe.strokeWidth,xt=Qe.trailWidth,Mt=Qe.gapDegree,Kt=Mt===void 0?0:Mt,Xt=Qe.gapPosition,rn=Qe.trailColor,on=Qe.strokeLinecap,hn=Qe.style,vn=Qe.className,an=Qe.strokeColor,qt=Qe.percent,Sn=(0,ke.Z)(Qe,At),pn=Ae/2,yn=ie(ft),cn="".concat(yn,"-gradient"),En=pn-Dt/2,kn=Math.PI*2*En,bn=Kt>0?90+Kt/2:-90,Mn=kn*((360-Kt)/360),Kn=(0,b.Z)(Tt)==="object"?Tt:{count:Tt,space:2},Zn=Kn.count,fe=Kn.space,Fe=Zt(qt),pe=Zt(an),dt=pe.find(function(Un){return Un&&(0,b.Z)(Un)==="object"}),Bt=dt&&(0,b.Z)(dt)==="object",Gt=Bt?"butt":on,Pn=pt(kn,Mn,0,100,bn,Kt,Xt,rn,Gt,Dt),Qt=ae(),sn=function(){var lt=0;return Fe.map(function(gn,Se){var Te=pe[Se]||pe[pe.length-1],xe=pt(kn,Mn,lt,gn,bn,Kt,Xt,Te,Gt,Dt);return lt+=gn,ne.createElement(ze,{key:Se,color:Te,ptg:gn,radius:En,prefixCls:Pt,gradientId:cn,style:xe,strokeLinecap:Gt,strokeWidth:Dt,gapDegree:Kt,ref:function(mt){Qt[Se]=mt},size:Ae})}).reverse()},Fn=function(){var lt=Math.round(Zn*(Fe[0]/100)),gn=100/Zn,Se=0;return new Array(Zn).fill(null).map(function(Te,xe){var Re=xe<=lt-1?pe[0]:rn,mt=Re&&(0,b.Z)(Re)==="object"?"url(#".concat(cn,")"):void 0,Je=pt(kn,Mn,Se,gn,bn,Kt,Xt,Re,"butt",Dt,fe);return Se+=(Mn-Je.strokeDashoffset+fe)*100/Mn,ne.createElement("circle",{key:xe,className:"".concat(Pt,"-circle-path"),r:En,cx:pn,cy:pn,stroke:mt,strokeWidth:Dt,opacity:1,style:Je,ref:function(Ve){Qt[xe]=Ve}})})};return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Pt,"-circle"),vn),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:hn,id:ft,role:"presentation"},Sn),!Zn&&ne.createElement("circle",{className:"".concat(Pt,"-circle-trail"),r:En,cx:pn,cy:pn,stroke:rn,strokeLinecap:Gt,strokeWidth:xt||Dt,style:Pn}),Zn?Fn():sn())},Ne=be,Ce={Line:E,Circle:Ne},tt=oe(83062),it=oe(47448);function Ue(ye){return!ye||ye<0?0:ye>100?100:ye}function Ye(ye){let{success:Ge,successPercent:Qe}=ye,ft=Qe;return Ge&&"progress"in Ge&&(ft=Ge.progress),Ge&&"percent"in Ge&&(ft=Ge.percent),ft}const nt=ye=>{let{percent:Ge,success:Qe,successPercent:ft}=ye;const Pt=Ue(Ye({success:Qe,successPercent:ft}));return[Pt,Ue(Ue(Ge)-Pt)]},Lt=ye=>{let{success:Ge={},strokeColor:Qe}=ye;const{strokeColor:ft}=Ge;return[ft||it.presetPrimaryColors.green,Qe||null]},Pe=(ye,Ge,Qe)=>{var ft,Pt,Tt,Dt;let xt=-1,Mt=-1;if(Ge==="step"){const Kt=Qe.steps,Xt=Qe.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(xt=ye==="small"?2:14,Mt=Xt!=null?Xt:8):typeof ye=="number"?[xt,Mt]=[ye,ye]:[xt=14,Mt=8]=ye,xt*=Kt}else if(Ge==="line"){const Kt=Qe==null?void 0:Qe.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?Mt=Kt||(ye==="small"?6:8):typeof ye=="number"?[xt,Mt]=[ye,ye]:[xt=-1,Mt=8]=ye}else(Ge==="circle"||Ge==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[xt,Mt]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[xt,Mt]=[ye,ye]:(xt=(Pt=(ft=ye[0])!==null&&ft!==void 0?ft:ye[1])!==null&&Pt!==void 0?Pt:120,Mt=(Dt=(Tt=ye[0])!==null&&Tt!==void 0?Tt:ye[1])!==null&&Dt!==void 0?Dt:120));return[xt,Mt]},$e=3,qe=ye=>$e/ye*100;var _e=ye=>{const{prefixCls:Ge,trailColor:Qe=null,strokeLinecap:ft="round",gapPosition:Pt,gapDegree:Tt,width:Dt=120,type:xt,children:Mt,success:Kt,size:Xt=Dt}=ye,[rn,on]=Pe(Xt,"circle");let{strokeWidth:hn}=ye;hn===void 0&&(hn=Math.max(qe(rn),6));const vn={width:rn,height:on,fontSize:rn*.15+6},an=ne.useMemo(()=>{if(Tt||Tt===0)return Tt;if(xt==="dashboard")return 75},[Tt,xt]),qt=Pt||xt==="dashboard"&&"bottom"||void 0,Sn=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",pn=Lt({success:Kt,strokeColor:ye.strokeColor}),yn=le()(`${Ge}-inner`,{[`${Ge}-circle-gradient`]:Sn}),cn=ne.createElement(Ne,{percent:nt(ye),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:ft,trailColor:Qe,prefixCls:Ge,gapDegree:an,gapPosition:qt});return ne.createElement("div",{className:yn,style:vn},rn<=20?ne.createElement(tt.Z,{title:Mt},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,Mt))},at=function(ye,Ge){var Qe={};for(var ft in ye)Object.prototype.hasOwnProperty.call(ye,ft)&&Ge.indexOf(ft)<0&&(Qe[ft]=ye[ft]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ft=Object.getOwnPropertySymbols(ye);Pt<ft.length;Pt++)Ge.indexOf(ft[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,ft[Pt])&&(Qe[ft[Pt]]=ye[ft[Pt]]);return Qe};const de=ye=>{let Ge=[];return Object.keys(ye).forEach(Qe=>{const ft=parseFloat(Qe.replace(/%/g,""));isNaN(ft)||Ge.push({key:ft,value:ye[Qe]})}),Ge=Ge.sort((Qe,ft)=>Qe.key-ft.key),Ge.map(Qe=>{let{key:ft,value:Pt}=Qe;return`${Pt} ${ft}%`}).join(", ")},et=(ye,Ge)=>{const{from:Qe=it.presetPrimaryColors.blue,to:ft=it.presetPrimaryColors.blue,direction:Pt=Ge==="rtl"?"to left":"to right"}=ye,Tt=at(ye,["from","to","direction"]);if(Object.keys(Tt).length!==0){const Dt=de(Tt);return{backgroundImage:`linear-gradient(${Pt}, ${Dt})`}}return{backgroundImage:`linear-gradient(${Pt}, ${Qe}, ${ft})`}};var kt=ye=>{const{prefixCls:Ge,direction:Qe,percent:ft,size:Pt,strokeWidth:Tt,strokeColor:Dt,strokeLinecap:xt="round",children:Mt,trailColor:Kt=null,success:Xt}=ye,rn=Dt&&typeof Dt!="string"?et(Dt,Qe):{backgroundColor:Dt},on=xt==="square"||xt==="butt"?0:void 0,hn={backgroundColor:Kt||void 0,borderRadius:on},vn=Pt!=null?Pt:[-1,Tt||(Pt==="small"?6:8)],[an,qt]=Pe(vn,"line",{strokeWidth:Tt}),Sn=Object.assign({width:`${Ue(ft)}%`,height:qt,borderRadius:on},rn),pn=Ye(ye),yn={width:`${Ue(pn)}%`,height:qt,borderRadius:on,backgroundColor:Xt==null?void 0:Xt.strokeColor},cn={width:an<0?"100%":an,height:qt};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Ge}-outer`,style:cn},ne.createElement("div",{className:`${Ge}-inner`,style:hn},ne.createElement("div",{className:`${Ge}-bg`,style:Sn}),pn!==void 0?ne.createElement("div",{className:`${Ge}-success-bg`,style:yn}):null)),Mt)},Be=ye=>{const{size:Ge,steps:Qe,percent:ft=0,strokeWidth:Pt=8,strokeColor:Tt,trailColor:Dt=null,prefixCls:xt,children:Mt}=ye,Kt=Math.round(Qe*(ft/100)),Xt=Ge==="small"?2:14,rn=Ge!=null?Ge:[Xt,Pt],[on,hn]=Pe(rn,"step",{steps:Qe,strokeWidth:Pt}),vn=on/Qe,an=new Array(Qe);for(let qt=0;qt<Qe;qt++){const Sn=Array.isArray(Tt)?Tt[qt]:Tt;an[qt]=ne.createElement("div",{key:qt,className:le()(`${xt}-steps-item`,{[`${xt}-steps-item-active`]:qt<=Kt-1}),style:{backgroundColor:qt<=Kt-1?Sn:Dt,width:vn,height:hn}})}return ne.createElement("div",{className:`${xt}-steps-outer`},an,Mt)},we=oe(45930),he=oe(14747),ve=oe(67968),Ee=oe(45503);const Xe=ye=>{const Ge=ye?"100%":"-100%";return new we.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},st=ye=>{const{componentCls:Ge,iconCls:Qe}=ye;return{[Ge]:Object.assign(Object.assign({},(0,he.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Ge}-outer`]:{display:"inline-block",width:"100%"},[`&${Ge}-show-info`]:{[`${Ge}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Ge}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ye.defaultColor}},[`${Ge}-success-bg, ${Ge}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Ge}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Ge}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:ye.fontSize}},[`&${Ge}-status-active`]:{[`${Ge}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:Xe(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ge}-rtl${Ge}-status-active`]:{[`${Ge}-bg::before`]:{animationName:Xe(!0)}},[`&${Ge}-status-exception`]:{[`${Ge}-bg`]:{backgroundColor:ye.colorError},[`${Ge}-text`]:{color:ye.colorError}},[`&${Ge}-status-exception ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ye.colorError}},[`&${Ge}-status-success`]:{[`${Ge}-bg`]:{backgroundColor:ye.colorSuccess},[`${Ge}-text`]:{color:ye.colorSuccess}},[`&${Ge}-status-success ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ye.colorSuccess}}})}},St=ye=>{const{componentCls:Ge,iconCls:Qe}=ye;return{[Ge]:{[`${Ge}-circle-trail`]:{stroke:ye.remainingColor},[`&${Ge}-circle ${Ge}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ge}-circle ${Ge}-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%)",[Qe]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Ge}-circle&-status-exception`]:{[`${Ge}-text`]:{color:ye.colorError}},[`${Ge}-circle&-status-success`]:{[`${Ge}-text`]:{color:ye.colorSuccess}}},[`${Ge}-inline-circle`]:{lineHeight:1,[`${Ge}-inner`]:{verticalAlign:"bottom"}}}},vt=ye=>{const{componentCls:Ge}=ye;return{[Ge]:{[`${Ge}-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}}}}}},Ot=ye=>{const{componentCls:Ge,iconCls:Qe}=ye;return{[Ge]:{[`${Ge}-small&-line, ${Ge}-small&-line ${Ge}-text ${Qe}`]:{fontSize:ye.fontSizeSM}}}};var jt=(0,ve.Z)("Progress",ye=>{const Ge=ye.marginXXS/2,Qe=(0,Ee.TS)(ye,{progressStepMarginInlineEnd:Ge,progressStepMinWidth:Ge,progressActiveMotionDuration:"2.4s"});return[st(Qe),St(Qe),vt(Qe),Ot(Qe)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Et=function(ye,Ge){var Qe={};for(var ft in ye)Object.prototype.hasOwnProperty.call(ye,ft)&&Ge.indexOf(ft)<0&&(Qe[ft]=ye[ft]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ft=Object.getOwnPropertySymbols(ye);Pt<ft.length;Pt++)Ge.indexOf(ft[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,ft[Pt])&&(Qe[ft[Pt]]=ye[ft[Pt]]);return Qe};const wt=null,zt=["normal","exception","active","success"];var _t=ne.forwardRef((ye,Ge)=>{const{prefixCls:Qe,className:ft,rootClassName:Pt,steps:Tt,strokeColor:Dt,percent:xt=0,size:Mt="default",showInfo:Kt=!0,type:Xt="line",status:rn,format:on,style:hn}=ye,vn=Et(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),an=ne.useMemo(()=>{var Fe,pe;const dt=Ye(ye);return parseInt(dt!==void 0?(Fe=dt!=null?dt:0)===null||Fe===void 0?void 0:Fe.toString():(pe=xt!=null?xt:0)===null||pe===void 0?void 0:pe.toString(),10)},[xt,ye.success,ye.successPercent]),qt=ne.useMemo(()=>!zt.includes(rn)&&an>=100?"success":rn||"normal",[rn,an]),{getPrefixCls:Sn,direction:pn,progress:yn}=ne.useContext(Oe.E_),cn=Sn("progress",Qe),[En,kn]=jt(cn),bn=ne.useMemo(()=>{if(!Kt)return null;const Fe=Ye(ye);let pe;const dt=on||(Gt=>`${Gt}%`),Bt=Xt==="line";return on||qt!=="exception"&&qt!=="success"?pe=dt(Ue(xt),Ue(Fe)):qt==="exception"?pe=Bt?ne.createElement(Me.Z,null):ne.createElement(me.Z,null):qt==="success"&&(pe=Bt?ne.createElement(ce.Z,null):ne.createElement(We.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Kt,xt,an,qt,Xt,cn,on]),Mn=Array.isArray(Dt)?Dt[0]:Dt,Kn=typeof Dt=="string"||Array.isArray(Dt)?Dt:void 0;let Zn;Xt==="line"?Zn=Tt?ne.createElement(Be,Object.assign({},ye,{strokeColor:Kn,prefixCls:cn,steps:Tt}),bn):ne.createElement(kt,Object.assign({},ye,{strokeColor:Mn,prefixCls:cn,direction:pn}),bn):(Xt==="circle"||Xt==="dashboard")&&(Zn=ne.createElement(_e,Object.assign({},ye,{strokeColor:Mn,prefixCls:cn,progressStatus:qt}),bn));const fe=le()(cn,`${cn}-status-${qt}`,`${cn}-${Xt==="dashboard"&&"circle"||Tt&&"steps"||Xt}`,{[`${cn}-inline-circle`]:Xt==="circle"&&Pe(Mt,"circle")[0]<=20,[`${cn}-show-info`]:Kt,[`${cn}-${Mt}`]:typeof Mt=="string",[`${cn}-rtl`]:pn==="rtl"},yn==null?void 0:yn.className,ft,Pt,kn);return En(ne.createElement("div",Object.assign({ref:Ge,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),hn),className:fe,role:"progressbar","aria-valuenow":an},(0,He.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zn))}),Jt=_t},59810:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return gn}});var ne=oe(67294),ce=oe(74902),We=oe(94184),Me=oe.n(We),me=oe(87462),Le=oe(15671),le=oe(43144),He=oe(60136),Oe=oe(51630),De=oe(4942),Ke=oe(45987),ke=oe(74165),je=oe(71002),ae=oe(15861),a=oe(64217);function y(Se,Te){var xe="cannot ".concat(Se.method," ").concat(Se.action," ").concat(Te.status,"'"),Re=new Error(xe);return Re.status=Te.status,Re.method=Se.method,Re.url=Se.action,Re}function E(Se){var Te=Se.responseText||Se.response;if(!Te)return Te;try{return JSON.parse(Te)}catch(xe){return Te}}function b(Se){var Te=new XMLHttpRequest;Se.onProgress&&Te.upload&&(Te.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),Se.onProgress(Je)});var xe=new FormData;Se.data&&Object.keys(Se.data).forEach(function(mt){var Je=Se.data[mt];if(Array.isArray(Je)){Je.forEach(function(ot){xe.append("".concat(mt,"[]"),ot)});return}xe.append(mt,Je)}),Se.file instanceof Blob?xe.append(Se.filename,Se.file,Se.file.name):xe.append(Se.filename,Se.file),Te.onerror=function(Je){Se.onError(Je)},Te.onload=function(){return Te.status<200||Te.status>=300?Se.onError(y(Se,Te),E(Te)):Se.onSuccess(E(Te),Te)},Te.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in Te&&(Te.withCredentials=!0);var Re=Se.headers||{};return Re["X-Requested-With"]!==null&&Te.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Re).forEach(function(mt){Re[mt]!==null&&Te.setRequestHeader(mt,Re[mt])}),Te.send(xe),{abort:function(){Te.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(Se,Te){if(Se&&Te){var xe=Array.isArray(Te)?Te:Te.split(","),Re=Se.name||"",mt=Se.type||"",Je=mt.replace(/\/.*$/,"");return xe.some(function(ot){var Ve=ot.trim();if(/^\*(\/\*)?$/.test(ot))return!0;if(Ve.charAt(0)==="."){var Ht=Re.toLowerCase(),$t=Ve.toLowerCase(),Ut=[$t];return($t===".jpg"||$t===".jpeg")&&(Ut=[".jpg",".jpeg"]),Ut.some(function(en){return Ht.endsWith(en)})}return/\/\*$/.test(Ve)?Je===Ve.replace(/\/.*$/,""):mt===Ve?!0:/^\w+$/.test(Ve)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ve,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,Te){var xe=Se.createReader(),Re=[];function mt(){xe.readEntries(function(Je){var ot=Array.prototype.slice.apply(Je);Re=Re.concat(ot);var Ve=!ot.length;Ve?Te(Re):mt()})}mt()}var ge=function(Te,xe,Re){var mt=function Je(ot,Ve){ot&&(ot.path=Ve||"",ot.isFile?ot.file(function(Ht){Re(Ht)&&(ot.fullPath&&!Ht.webkitRelativePath&&(Object.defineProperties(Ht,{webkitRelativePath:{writable:!0}}),Ht.webkitRelativePath=ot.fullPath.replace(/^\//,""),Object.defineProperties(Ht,{webkitRelativePath:{writable:!1}})),xe([Ht]))}):ot.isDirectory&&ie(ot,function(Ht){Ht.forEach(function($t){Je($t,"".concat(Ve).concat(ot.name,"/"))})}))};Te.forEach(function(Je){mt(Je.webkitGetAsEntry())})},ue=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(Se){(0,He.Z)(xe,Se);var Te=(0,Oe.Z)(xe);function xe(){var Re;(0,Le.Z)(this,xe);for(var mt=arguments.length,Je=new Array(mt),ot=0;ot<mt;ot++)Je[ot]=arguments[ot];return Re=Te.call.apply(Te,[this].concat(Je)),Re.state={uid:ee()},Re.reqs={},Re.fileInput=void 0,Re._isMounted=void 0,Re.onChange=function(Ve){var Ht=Re.props,$t=Ht.accept,Ut=Ht.directory,en=Ve.target.files,mn=(0,ce.Z)(en).filter(function(Ze){return!Ut||re(Ze,$t)});Re.uploadFiles(mn),Re.reset()},Re.onClick=function(Ve){var Ht=Re.fileInput;if(Ht){var $t=Re.props,Ut=$t.children,en=$t.onClick;if(Ut&&Ut.type==="button"){var mn=Ht.parentNode;mn.focus(),mn.querySelector("button").blur()}Ht.click(),en&&en(Ve)}},Re.onKeyDown=function(Ve){Ve.key==="Enter"&&Re.onClick(Ve)},Re.onFileDrop=function(Ve){var Ht=Re.props.multiple;if(Ve.preventDefault(),Ve.type!=="dragover")if(Re.props.directory)ue(Array.prototype.slice.call(Ve.dataTransfer.items),Re.uploadFiles,function(Ut){return re(Ut,Re.props.accept)});else{var $t=(0,ce.Z)(Ve.dataTransfer.files).filter(function(Ut){return re(Ut,Re.props.accept)});Ht===!1&&($t=$t.slice(0,1)),Re.uploadFiles($t)}},Re.uploadFiles=function(Ve){var Ht=(0,ce.Z)(Ve),$t=Ht.map(function(Ut){return Ut.uid=ee(),Re.processFile(Ut,Ht)});Promise.all($t).then(function(Ut){var en=Re.props.onBatchStart;en==null||en(Ut.map(function(mn){var Ze=mn.origin,Hn=mn.parsedFile;return{file:Ze,parsedFile:Hn}})),Ut.filter(function(mn){return mn.parsedFile!==null}).forEach(function(mn){Re.post(mn)})})},Re.processFile=function(){var Ve=(0,ae.Z)((0,ke.Z)().mark(function Ht($t,Ut){var en,mn,Ze,Hn,In,Wn,wn,rt,Ft;return(0,ke.Z)().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(en=Re.props.beforeUpload,mn=$t,!en){ut.next=14;break}return ut.prev=3,ut.next=6,en($t,Ut);case 6:mn=ut.sent,ut.next=12;break;case 9:ut.prev=9,ut.t0=ut.catch(3),mn=!1;case 12:if(mn!==!1){ut.next=14;break}return ut.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(Ze=Re.props.action,typeof Ze!="function"){ut.next=21;break}return ut.next=18,Ze($t);case 18:Hn=ut.sent,ut.next=22;break;case 21:Hn=Ze;case 22:if(In=Re.props.data,typeof In!="function"){ut.next=29;break}return ut.next=26,In($t);case 26:Wn=ut.sent,ut.next=30;break;case 29:Wn=In;case 30:return wn=((0,je.Z)(mn)==="object"||typeof mn=="string")&&mn?mn:$t,wn instanceof File?rt=wn:rt=new File([wn],$t.name,{type:$t.type}),Ft=rt,Ft.uid=$t.uid,ut.abrupt("return",{origin:$t,data:Wn,parsedFile:Ft,action:Hn});case 35:case"end":return ut.stop()}},Ht,null,[[3,9]])}));return function(Ht,$t){return Ve.apply(this,arguments)}}(),Re.saveFileInput=function(Ve){Re.fileInput=Ve},Re}return(0,le.Z)(xe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(mt){var Je=this,ot=mt.data,Ve=mt.origin,Ht=mt.action,$t=mt.parsedFile;if(this._isMounted){var Ut=this.props,en=Ut.onStart,mn=Ut.customRequest,Ze=Ut.name,Hn=Ut.headers,In=Ut.withCredentials,Wn=Ut.method,wn=Ve.uid,rt=mn||b,Ft={action:Ht,filename:Ze,data:ot,file:$t,headers:Hn,withCredentials:In,method:Wn||"post",onProgress:function(ut){var tn=Je.props.onProgress;tn==null||tn(ut,$t)},onSuccess:function(ut,tn){var nn=Je.props.onSuccess;nn==null||nn(ut,$t,tn),delete Je.reqs[wn]},onError:function(ut,tn){var nn=Je.props.onError;nn==null||nn(ut,tn,$t),delete Je.reqs[wn]}};en(Ve),this.reqs[wn]=rt(Ft)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(mt){var Je=this.reqs;if(mt){var ot=mt.uid?mt.uid:mt;Je[ot]&&Je[ot].abort&&Je[ot].abort(),delete Je[ot]}else Object.keys(Je).forEach(function(Ve){Je[Ve]&&Je[Ve].abort&&Je[Ve].abort(),delete Je[Ve]})}},{key:"render",value:function(){var mt,Je=this.props,ot=Je.component,Ve=Je.prefixCls,Ht=Je.className,$t=Je.disabled,Ut=Je.id,en=Je.style,mn=Je.multiple,Ze=Je.accept,Hn=Je.capture,In=Je.children,Wn=Je.directory,wn=Je.openFileDialogOnClick,rt=Je.onMouseEnter,Ft=Je.onMouseLeave,Rt=(0,Ke.Z)(Je,se),ut=Me()((mt={},(0,De.Z)(mt,Ve,!0),(0,De.Z)(mt,"".concat(Ve,"-disabled"),$t),(0,De.Z)(mt,Ht,Ht),mt)),tn=Wn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},nn=$t?{}:{onClick:wn?this.onClick:function(){},onKeyDown:wn?this.onKeyDown:function(){},onMouseEnter:rt,onMouseLeave:Ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(ot,(0,me.Z)({},nn,{className:ut,role:"button",style:en}),ne.createElement("input",(0,me.Z)({},(0,a.Z)(Rt,{aria:!0,data:!0}),{id:Ut,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function(Bn){return Bn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ze},tn,{multiple:mn,onChange:this.onChange},Hn!=null?{capture:Hn}:{})),In)}}]),xe}(ne.Component),Ae=ze;function pt(){}var At=function(Se){(0,He.Z)(xe,Se);var Te=(0,Oe.Z)(xe);function xe(){var Re;(0,Le.Z)(this,xe);for(var mt=arguments.length,Je=new Array(mt),ot=0;ot<mt;ot++)Je[ot]=arguments[ot];return Re=Te.call.apply(Te,[this].concat(Je)),Re.uploader=void 0,Re.saveUploader=function(Ve){Re.uploader=Ve},Re}return(0,le.Z)(xe,[{key:"abort",value:function(mt){this.uploader.abort(mt)}},{key:"render",value:function(){return ne.createElement(Ae,(0,me.Z)({},this.props,{ref:this.saveUploader}))}}]),xe}(ne.Component);At.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pt,onError:pt,onSuccess:pt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Zt=At,be=Zt,Ne=oe(5663),Ce=oe(73935),tt=oe(53124),it=oe(98866),Ue=oe(10110),Ye=oe(24457),nt={icon:function(Te,xe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:xe}},{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:Te}}]}},name:"file",theme:"twotone"},Lt=nt,Pe=oe(74643),$e=function(Te,xe){return ne.createElement(Pe.Z,(0,me.Z)({},Te,{ref:xe,icon:Lt}))},qe=ne.forwardRef($e),bt=oe(3407),_e={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"},at=_e,de=function(Te,xe){return ne.createElement(Pe.Z,(0,me.Z)({},Te,{ref:xe,icon:at}))},et=ne.forwardRef(de),ht={icon:function(Te,xe){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:Te}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:xe}},{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:xe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:xe}},{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:Te}}]}},name:"picture",theme:"twotone"},kt=ht,ct=function(Te,xe){return ne.createElement(Pe.Z,(0,me.Z)({},Te,{ref:xe,icon:kt}))},Be=ne.forwardRef(ct),we=oe(38379),he=oe(57838),ve=oe(33603),Ee=oe(96159),Xe=oe(71577);function st(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function St(Se,Te){const xe=(0,ce.Z)(Te),Re=xe.findIndex(mt=>{let{uid:Je}=mt;return Je===Se.uid});return Re===-1?xe.push(Se):xe[Re]=Se,xe}function vt(Se,Te){const xe=Se.uid!==void 0?"uid":"name";return Te.filter(Re=>Re[xe]===Se[xe])[0]}function Ot(Se,Te){const xe=Se.uid!==void 0?"uid":"name",Re=Te.filter(mt=>mt[xe]!==Se[xe]);return Re.length===Te.length?null:Re}const jt=function(){const Te=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Re=Te[Te.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Re)||[""])[0]},Et=Se=>Se.indexOf("image/")===0,wt=Se=>{if(Se.type&&!Se.thumbUrl)return Et(Se.type);const Te=Se.thumbUrl||Se.url||"",xe=jt(Te);return/^data:image\//.test(Te)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(xe)?!0:!(/^data:/.test(Te)||xe)},zt=200;function Vt(Se){return new Promise(Te=>{if(!Se.type||!Et(Se.type)){Te("");return}const xe=document.createElement("canvas");xe.width=zt,xe.height=zt,xe.style.cssText=`position: fixed; left: 0; top: 0; width: ${zt}px; height: ${zt}px; z-index: 9999; display: none;`,document.body.appendChild(xe);const Re=xe.getContext("2d"),mt=new Image;if(mt.onload=()=>{const{width:Je,height:ot}=mt;let Ve=zt,Ht=zt,$t=0,Ut=0;Je>ot?(Ht=ot*(zt/Je),Ut=-(Ht-Ve)/2):(Ve=Je*(zt/ot),$t=-(Ve-Ht)/2),Re.drawImage(mt,$t,Ut,Ve,Ht);const en=xe.toDataURL();document.body.removeChild(xe),window.URL.revokeObjectURL(mt.src),Te(en)},mt.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(mt.src=Je.result)},Je.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&Te(Je.result)},Je.readAsDataURL(Se)}else mt.src=window.URL.createObjectURL(Se)})}var _t=oe(84249),Jt=oe(90674),ye=oe(99569),Ge=oe(38703),Qe=oe(83062),Pt=ne.forwardRef((Se,Te)=>{let{prefixCls:xe,className:Re,style:mt,locale:Je,listType:ot,file:Ve,items:Ht,progress:$t,iconRender:Ut,actionIconRender:en,itemRender:mn,isImgUrl:Ze,showPreviewIcon:Hn,showRemoveIcon:In,showDownloadIcon:Wn,previewIcon:wn,removeIcon:rt,downloadIcon:Ft,onPreview:Rt,onDownload:ut,onClose:tn}=Se;var nn,Cn;const{status:Bn}=Ve,[xn,ga]=ne.useState(Bn);ne.useEffect(()=>{Bn!=="removed"&&ga(Bn)},[Bn]);const[ta,ca]=ne.useState(!1);ne.useEffect(()=>{const On=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(On)}},[]);const da=Ut(Ve);let Yn=ne.createElement("div",{className:`${xe}-icon`},da);if(ot==="picture"||ot==="picture-card"||ot==="picture-circle")if(xn==="uploading"||!Ve.thumbUrl&&!Ve.url){const On=Me()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:xn!=="uploading"});Yn=ne.createElement("div",{className:On},da)}else{const On=Ze!=null&&Ze(Ve)?ne.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${xe}-list-item-image`,crossOrigin:Ve.crossOrigin}):da,Nn=Me()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:Ze&&!Ze(Ve)});Yn=ne.createElement("a",{className:Nn,onClick:aa=>Rt(Ve,aa),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},On)}const $n=Me()(`${xe}-list-item`,`${xe}-list-item-${xn}`),la=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,sa=In?en((typeof rt=="function"?rt(Ve):rt)||ne.createElement(_t.Z,null),()=>tn(Ve),xe,Je.removeFile):null,ma=Wn&&xn==="done"?en((typeof Ft=="function"?Ft(Ve):Ft)||ne.createElement(Jt.Z,null),()=>ut(Ve),xe,Je.downloadFile):null,Qn=ot!=="picture-card"&&ot!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Me()(`${xe}-list-item-actions`,{picture:ot==="picture"})},ma,sa),_n=Me()(`${xe}-list-item-name`),oa=Ve.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_n,title:Ve.name},la,{href:Ve.url,onClick:On=>Rt(Ve,On)}),Ve.name),Qn]:[ne.createElement("span",{key:"view",className:_n,onClick:On=>Rt(Ve,On),title:Ve.name},Ve.name),Qn],Yt={pointerEvents:"none",opacity:.5},zn=Hn?ne.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ve.url||Ve.thumbUrl?void 0:Yt,onClick:On=>Rt(Ve,On),title:Je.previewFile},typeof wn=="function"?wn(Ve):wn||ne.createElement(ye.Z,null)):null,Jn=(ot==="picture-card"||ot==="picture-circle")&&xn!=="uploading"&&ne.createElement("span",{className:`${xe}-list-item-actions`},zn,xn==="done"&&ma,sa),{getPrefixCls:Vn}=ne.useContext(tt.E_),na=Vn(),An=ne.createElement("div",{className:$n},Yn,oa,Jn,ta&&ne.createElement(we.default,{motionName:`${na}-fade`,visible:xn==="uploading",motionDeadline:2e3},On=>{let{className:Nn}=On;const aa="percent"in Ve?ne.createElement(Ge.Z,Object.assign({},$t,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return ne.createElement("div",{className:Me()(`${xe}-list-item-progress`,Nn)},aa)})),Sa=Ve.response&&typeof Ve.response=="string"?Ve.response:((nn=Ve.error)===null||nn===void 0?void 0:nn.statusText)||((Cn=Ve.error)===null||Cn===void 0?void 0:Cn.message)||Je.uploadError,qn=xn==="error"?ne.createElement(Qe.Z,{title:Sa,getPopupContainer:On=>On.parentNode},An):An;return ne.createElement("div",{className:Me()(`${xe}-list-item-container`,Re),style:mt,ref:Te},mn?mn(qn,Ve,Ht,{download:ut.bind(null,Ve),preview:Rt.bind(null,Ve),remove:tn.bind(null,Ve)}):qn)});const Tt=(Se,Te)=>{const{listType:xe="text",previewFile:Re=Vt,onPreview:mt,onDownload:Je,onRemove:ot,locale:Ve,iconRender:Ht,isImageUrl:$t=wt,prefixCls:Ut,items:en=[],showPreviewIcon:mn=!0,showRemoveIcon:Ze=!0,showDownloadIcon:Hn=!1,removeIcon:In,previewIcon:Wn,downloadIcon:wn,progress:rt={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:Rt=!0,itemRender:ut,disabled:tn}=Se,nn=(0,he.Z)(),[Cn,Bn]=ne.useState(!1);ne.useEffect(()=>{xe!=="picture"&&xe!=="picture-card"&&xe!=="picture-circle"||(en||[]).forEach(Yt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Yt.originFileObj instanceof File||Yt.originFileObj instanceof Blob)||Yt.thumbUrl!==void 0||(Yt.thumbUrl="",Re&&Re(Yt.originFileObj).then(zn=>{Yt.thumbUrl=zn||"",nn()}))})},[xe,en,Re]),ne.useEffect(()=>{Bn(!0)},[]);const xn=(Yt,zn)=>{if(mt)return zn==null||zn.preventDefault(),mt(Yt)},ga=Yt=>{typeof Je=="function"?Je(Yt):Yt.url&&window.open(Yt.url)},ta=Yt=>{ot==null||ot(Yt)},ca=Yt=>{if(Ht)return Ht(Yt,xe);const zn=Yt.status==="uploading",Jn=$t&&$t(Yt)?ne.createElement(Be,null):ne.createElement(qe,null);let Vn=zn?ne.createElement(bt.Z,null):ne.createElement(et,null);return xe==="picture"?Vn=zn?ne.createElement(bt.Z,null):Jn:(xe==="picture-card"||xe==="picture-circle")&&(Vn=zn?Ve.uploading:Jn),Vn},da=(Yt,zn,Jn,Vn)=>{const na={type:"text",size:"small",title:Vn,onClick:An=>{zn(),(0,Ee.l$)(Yt)&&Yt.props.onClick&&Yt.props.onClick(An)},className:`${Jn}-list-item-action`,disabled:tn};if((0,Ee.l$)(Yt)){const An=(0,Ee.Tm)(Yt,Object.assign(Object.assign({},Yt.props),{onClick:()=>{}}));return ne.createElement(Xe.ZP,Object.assign({},na,{icon:An}))}return ne.createElement(Xe.ZP,Object.assign({},na),ne.createElement("span",null,Yt))};ne.useImperativeHandle(Te,()=>({handlePreview:xn,handleDownload:ga}));const{getPrefixCls:Yn}=ne.useContext(tt.E_),$n=Yn("upload",Ut),la=Yn(),sa=Me()(`${$n}-list`,`${$n}-list-${xe}`),ma=(0,ce.Z)(en.map(Yt=>({key:Yt.uid,file:Yt})));let _n={motionDeadline:2e3,motionName:`${$n}-${xe==="picture-card"||xe==="picture-circle"?"animate-inline":"animate"}`,keys:ma,motionAppear:Cn};const oa=ne.useMemo(()=>{const Yt=Object.assign({},(0,ve.Z)(la));return delete Yt.onAppearEnd,delete Yt.onEnterEnd,delete Yt.onLeaveEnd,Yt},[la]);return xe!=="picture-card"&&xe!=="picture-circle"&&(_n=Object.assign(Object.assign({},oa),_n)),ne.createElement("div",{className:sa},ne.createElement(we.CSSMotionList,Object.assign({},_n,{component:!1}),Yt=>{let{key:zn,file:Jn,className:Vn,style:na}=Yt;return ne.createElement(Pt,{key:zn,locale:Ve,prefixCls:$n,className:Vn,style:na,file:Jn,items:en,progress:rt,listType:xe,isImgUrl:$t,showPreviewIcon:mn,showRemoveIcon:Ze,showDownloadIcon:Hn,removeIcon:In,previewIcon:Wn,downloadIcon:wn,iconRender:ca,actionIconRender:da,itemRender:ut,onPreview:xn,onDownload:ga,onClose:ta})}),Ft&&ne.createElement(we.default,Object.assign({},_n,{visible:Rt,forceRender:!0}),Yt=>{let{className:zn,style:Jn}=Yt;return(0,Ee.Tm)(Ft,Vn=>({className:Me()(Vn.className,zn),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:zn?"none":void 0}),Vn.style)}))}))};var xt=ne.forwardRef(Tt),Mt=oe(14747),Kt=oe(33507),Xt=oe(67968),rn=oe(45503),hn=Se=>{const{componentCls:Te,iconCls:xe}=Se;return{[`${Te}-wrapper`]:{[`${Te}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[Te]:{padding:`${Se.padding}px 0`},[`${Te}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Te}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimaryHover},[`p${Te}-drag-icon`]:{marginBottom:Se.margin,[xe]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${Te}-text`]:{margin:`0 0 ${Se.marginXXS}px`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${Te}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${Te}-disabled`]:{cursor:"not-allowed",[`p${Te}-drag-icon ${xe},
p${Te}-text,
p${Te}-hint
`]:{color:Se.colorTextDisabled}}}}}},an=Se=>{const{componentCls:Te,antCls:xe,iconCls:Re,fontSize:mt,lineHeight:Je}=Se,ot=`${Te}-list-item`,Ve=`${ot}-actions`,Ht=`${ot}-action`,$t=Math.round(mt*Je);return{[`${Te}-wrapper`]:{[`${Te}-list`]:Object.assign(Object.assign({},(0,Mt.dF)()),{lineHeight:Se.lineHeight,[ot]:{position:"relative",height:Se.lineHeight*mt,marginTop:Se.marginXS,fontSize:mt,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${ot}-name`]:Object.assign(Object.assign({},Mt.vS),{padding:`0 ${Se.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Ve]:{[Ht]:{opacity:0},[`${Ht}${xe}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Ht}:focus-visible,
&.picture ${Ht}
`]:{opacity:1},[Re]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`&:hover ${Re}`]:{color:Se.colorText}},[`${Te}-icon ${Re}`]:{color:Se.colorTextDescription,fontSize:mt},[`${ot}-progress`]:{position:"absolute",bottom:-Se.uploadProgressOffset,width:"100%",paddingInlineStart:mt+Se.paddingXS,fontSize:mt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ot}:hover ${Ht}`]:{opacity:1,color:Se.colorText},[`${ot}-error`]:{color:Se.colorError,[`${ot}-name, ${Te}-icon ${Re}`]:{color:Se.colorError},[Ve]:{[`${Re}, ${Re}:hover`]:{color:Se.colorError},[Ht]:{opacity:1}}},[`${Te}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},qt=oe(45930),Sn=oe(16932);const pn=new qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var En=Se=>{const{componentCls:Te}=Se,xe=`${Te}-animate-inline`;return[{[`${Te}-wrapper`]:{[`${xe}-appear, ${xe}-enter, ${xe}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${xe}-appear, ${xe}-enter`]:{animationName:pn},[`${xe}-leave`]:{animationName:yn}}},{[`${Te}-wrapper`]:(0,Sn.J$)(Se)},pn,yn]},kn=oe(47448),bn=oe(84780);const Mn=Se=>{const{componentCls:Te,iconCls:xe,uploadThumbnailSize:Re,uploadProgressOffset:mt}=Se,Je=`${Te}-list`,ot=`${Je}-item`;return{[`${Te}-wrapper`]:{[`
${Je}${Je}-picture,
${Je}${Je}-picture-card,
${Je}${Je}-picture-circle
`]:{[ot]:{position:"relative",height:Re+Se.lineWidth*2+Se.paddingXS*2,padding:Se.paddingXS,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${ot}-thumbnail`]:Object.assign(Object.assign({},Mt.vS),{width:Re,height:Re,lineHeight:`${Re+Se.paddingSM}px`,textAlign:"center",flex:"none",[xe]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ot}-progress`]:{bottom:mt,width:`calc(100% - ${Se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Re+Se.paddingXS}},[`${ot}-error`]:{borderColor:Se.colorError,[`${ot}-thumbnail ${xe}`]:{[`svg path[fill='${kn.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${kn.blue.primary}']`]:{fill:Se.colorError}}},[`${ot}-uploading`]:{borderStyle:"dashed",[`${ot}-name`]:{marginBottom:mt}}},[`${Je}${Je}-picture-circle ${ot}`]:{[`&, &::before, ${ot}-thumbnail`]:{borderRadius:"50%"}}}}},Kn=Se=>{const{componentCls:Te,iconCls:xe,fontSizeLG:Re,colorTextLightSolid:mt}=Se,Je=`${Te}-list`,ot=`${Je}-item`,Ve=Se.uploadPicCardSize;return{[`
${Te}-wrapper${Te}-picture-card-wrapper,
${Te}-wrapper${Te}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Mt.dF)()),{display:"inline-block",width:"100%",[`${Te}${Te}-select`]:{width:Ve,height:Ve,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${Te}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:Ve,height:Ve,marginBlock:`0 ${Se.marginXS}px`,marginInline:`0 ${Se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ot]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Se.paddingXS*2}px)`,height:`calc(100% - ${Se.paddingXS*2}px)`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${ot}:hover`]:{[`&::before, ${ot}-actions`]:{opacity:1}},[`${ot}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{zIndex:10,width:Re,margin:`0 ${Se.marginXXS}px`,fontSize:Re,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ot}-actions, ${ot}-actions:hover`]:{[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{color:new bn.C(mt).setAlpha(.65).toRgbString(),"&:hover":{color:mt}}},[`${ot}-thumbnail, ${ot}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ot}-name`]:{display:"none",textAlign:"center"},[`${ot}-file + ${ot}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${Se.paddingXS*2}px)`},[`${ot}-uploading`]:{[`&${ot}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${xe}-eye, ${xe}-download, ${xe}-delete`]:{display:"none"}},[`${ot}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${Se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Te}-wrapper${Te}-picture-circle-wrapper`]:{[`${Te}${Te}-select`]:{borderRadius:"50%"}}}};var fe=Se=>{const{componentCls:Te}=Se;return{[`${Te}-rtl`]:{direction:"rtl"}}};const Fe=Se=>{const{componentCls:Te,colorTextDisabled:xe}=Se;return{[`${Te}-wrapper`]:Object.assign(Object.assign({},(0,Mt.Wf)(Se)),{[Te]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Te}-select`]:{display:"inline-block"},[`${Te}-disabled`]:{color:xe,cursor:"not-allowed"}})}};var pe=(0,Xt.Z)("Upload",Se=>{const{fontSizeHeading3:Te,fontSize:xe,lineHeight:Re,lineWidth:mt,controlHeightLG:Je}=Se,ot=Math.round(xe*Re),Ve=(0,rn.TS)(Se,{uploadThumbnailSize:Te*2,uploadProgressOffset:ot/2+mt,uploadPicCardSize:Je*2.55});return[Fe(Ve),hn(Ve),Mn(Ve),Kn(Ve),an(Ve),En(Ve),fe(Ve),(0,Kt.Z)(Ve)]},Se=>({actionsColor:Se.colorTextDescription})),dt=function(Se,Te,xe,Re){function mt(Je){return Je instanceof xe?Je:new xe(function(ot){ot(Je)})}return new(xe||(xe=Promise))(function(Je,ot){function Ve(Ut){try{$t(Re.next(Ut))}catch(en){ot(en)}}function Ht(Ut){try{$t(Re.throw(Ut))}catch(en){ot(en)}}function $t(Ut){Ut.done?Je(Ut.value):mt(Ut.value).then(Ve,Ht)}$t((Re=Re.apply(Se,Te||[])).next())})};const Bt=`__LIST_IGNORE_${Date.now()}__`,Gt=(Se,Te)=>{const{fileList:xe,defaultFileList:Re,onRemove:mt,showUploadList:Je=!0,listType:ot="text",onPreview:Ve,onDownload:Ht,onChange:$t,onDrop:Ut,previewFile:en,disabled:mn,locale:Ze,iconRender:Hn,isImageUrl:In,progress:Wn,prefixCls:wn,className:rt,type:Ft="select",children:Rt,style:ut,itemRender:tn,maxCount:nn,data:Cn={},multiple:Bn=!1,action:xn="",accept:ga="",supportServerRender:ta=!0,rootClassName:ca}=Se,da=ne.useContext(it.Z),Yn=mn!=null?mn:da,[$n,la]=(0,Ne.Z)(Re||[],{value:xe,postState:Wt=>Wt!=null?Wt:[]}),[sa,ma]=ne.useState("drop"),Qn=ne.useRef(null);ne.useMemo(()=>{const Wt=Date.now();(xe||[]).forEach((dn,un)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${Wt}_${un}__`)})},[xe]);const _n=(Wt,dn,un)=>{let ln=(0,ce.Z)(dn),Ln=!1;nn===1?ln=ln.slice(-1):nn&&(Ln=ln.length>nn,ln=ln.slice(0,nn)),(0,Ce.flushSync)(()=>{la(ln)});const Rn={file:Wt,fileList:ln};un&&(Rn.event=un),(!Ln||ln.some(ua=>ua.uid===Wt.uid))&&(0,Ce.flushSync)(()=>{$t==null||$t(Rn)})},oa=(Wt,dn)=>dt(void 0,void 0,void 0,function*(){const{beforeUpload:un,transformFile:ln}=Se;let Ln=Wt;if(un){const Rn=yield un(Wt,dn);if(Rn===!1)return!1;if(delete Wt[Bt],Rn===Bt)return Object.defineProperty(Wt,Bt,{value:!0,configurable:!0}),!1;typeof Rn=="object"&&Rn&&(Ln=Rn)}return ln&&(Ln=yield ln(Ln)),Ln}),Yt=Wt=>{const dn=Wt.filter(Ln=>!Ln.file[Bt]);if(!dn.length)return;const un=dn.map(Ln=>st(Ln.file));let ln=(0,ce.Z)($n);un.forEach(Ln=>{ln=St(Ln,ln)}),un.forEach((Ln,Rn)=>{let ua=Ln;if(dn[Rn].parsedFile)Ln.status="uploading";else{const{originFileObj:ea}=Ln;let ra;try{ra=new File([ea],ea.name,{type:ea.type})}catch(jn){ra=new Blob([ea],{type:ea.type}),ra.name=ea.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=Ln.uid,ua=ra}_n(ua,ln)})},zn=(Wt,dn,un)=>{try{typeof Wt=="string"&&(Wt=JSON.parse(Wt))}catch(Rn){}if(!vt(dn,$n))return;const ln=st(dn);ln.status="done",ln.percent=100,ln.response=Wt,ln.xhr=un;const Ln=St(ln,$n);_n(ln,Ln)},Jn=(Wt,dn)=>{if(!vt(dn,$n))return;const un=st(dn);un.status="uploading",un.percent=Wt.percent;const ln=St(un,$n);_n(un,ln,Wt)},Vn=(Wt,dn,un)=>{if(!vt(un,$n))return;const ln=st(un);ln.error=Wt,ln.response=dn,ln.status="error";const Ln=St(ln,$n);_n(ln,Ln)},na=Wt=>{let dn;Promise.resolve(typeof mt=="function"?mt(Wt):mt).then(un=>{var ln;if(un===!1)return;const Ln=Ot(Wt,$n);Ln&&(dn=Object.assign(Object.assign({},Wt),{status:"removed"}),$n==null||$n.forEach(Rn=>{const ua=dn.uid!==void 0?"uid":"name";Rn[ua]===dn[ua]&&!Object.isFrozen(Rn)&&(Rn.status="removed")}),(ln=Qn.current)===null||ln===void 0||ln.abort(dn),_n(dn,Ln))})},An=Wt=>{ma(Wt.type),Wt.type==="drop"&&(Ut==null||Ut(Wt))};ne.useImperativeHandle(Te,()=>({onBatchStart:Yt,onSuccess:zn,onProgress:Jn,onError:Vn,fileList:$n,upload:Qn.current}));const{getPrefixCls:Sa,direction:qn,upload:On}=ne.useContext(tt.E_),Nn=Sa("upload",wn),aa=Object.assign(Object.assign({onBatchStart:Yt,onError:Vn,onProgress:Jn,onSuccess:zn},Se),{data:Cn,multiple:Bn,action:xn,accept:ga,supportServerRender:ta,prefixCls:Nn,disabled:Yn,beforeUpload:oa,onChange:void 0});delete aa.className,delete aa.style,(!Rt||Yn)&&delete aa.id;const[fa,Pa]=pe(Nn),[ya]=(0,Ue.Z)("Upload",Ye.Z.Upload),{showRemoveIcon:La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:It,previewIcon:yt,downloadIcon:Ct}=typeof Je=="boolean"?{}:Je,Nt=(Wt,dn)=>Je?ne.createElement(xt,{prefixCls:Nn,listType:ot,items:$n,previewFile:en,onPreview:Ve,onDownload:Ht,onRemove:na,showRemoveIcon:!Yn&&La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:It,previewIcon:yt,downloadIcon:Ct,iconRender:Hn,locale:Object.assign(Object.assign({},ya),Ze),isImageUrl:In,progress:Wn,appendAction:Wt,appendActionVisible:dn,itemRender:tn,disabled:Yn}):Wt,fn=Me()(`${Nn}-wrapper`,rt,ca,Pa,On==null?void 0:On.className,{[`${Nn}-rtl`]:qn==="rtl",[`${Nn}-picture-card-wrapper`]:ot==="picture-card",[`${Nn}-picture-circle-wrapper`]:ot==="picture-circle"}),Gn=Object.assign(Object.assign({},On==null?void 0:On.style),ut);if(Ft==="drag"){const Wt=Me()(Pa,Nn,`${Nn}-drag`,{[`${Nn}-drag-uploading`]:$n.some(dn=>dn.status==="uploading"),[`${Nn}-drag-hover`]:sa==="dragover",[`${Nn}-disabled`]:Yn,[`${Nn}-rtl`]:qn==="rtl"});return fa(ne.createElement("span",{className:fn},ne.createElement("div",{className:Wt,style:Gn,onDrop:An,onDragOver:An,onDragLeave:An},ne.createElement(be,Object.assign({},aa,{ref:Qn,className:`${Nn}-btn`}),ne.createElement("div",{className:`${Nn}-drag-container`},Rt))),Nt()))}const Xn=Me()(Nn,`${Nn}-select`,{[`${Nn}-disabled`]:Yn}),Dn=(Wt=>ne.createElement("div",{className:Xn,style:Wt},ne.createElement(be,Object.assign({},aa,{ref:Qn}))))(Rt?void 0:{display:"none"});return fa(ot==="picture-card"||ot==="picture-circle"?ne.createElement("span",{className:fn},Nt(Dn,!!Rt)):ne.createElement("span",{className:fn},Dn,Nt()))};var Qt=ne.forwardRef(Gt),sn=function(Se,Te){var xe={};for(var Re in Se)Object.prototype.hasOwnProperty.call(Se,Re)&&Te.indexOf(Re)<0&&(xe[Re]=Se[Re]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Re=Object.getOwnPropertySymbols(Se);mt<Re.length;mt++)Te.indexOf(Re[mt])<0&&Object.prototype.propertyIsEnumerable.call(Se,Re[mt])&&(xe[Re[mt]]=Se[Re[mt]]);return xe},Un=ne.forwardRef((Se,Te)=>{var{style:xe,height:Re}=Se,mt=sn(Se,["style","height"]);return ne.createElement(Qt,Object.assign({ref:Te},mt,{type:"drag",style:Object.assign(Object.assign({},xe),{height:Re})}))});const lt=Qt;lt.Dragger=Un,lt.LIST_IGNORE=Bt;var gn=lt},72665:function(Ie,gt){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,We=ne?Symbol.for("react.portal"):60106,Me=ne?Symbol.for("react.fragment"):60107,me=ne?Symbol.for("react.strict_mode"):60108,Le=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,He=ne?Symbol.for("react.context"):60110,Oe=ne?Symbol.for("react.async_mode"):60111,De=ne?Symbol.for("react.concurrent_mode"):60111,Ke=ne?Symbol.for("react.forward_ref"):60112,ke=ne?Symbol.for("react.suspense"):60113,je=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case Oe:case De:case Me:case Le:case me:case ke:return te;default:switch(te=te&&te.$$typeof,te){case He:case Ke:case a:case ae:case le:return te;default:return re}}case We:return re}}}function ee(te){return z(te)===De}oe=Oe,oe=De,oe=He,oe=le,oe=ce,oe=Ke,oe=Me,oe=a,oe=ae,oe=We,oe=Le,oe=me,oe=ke,oe=function(te){return ee(te)||z(te)===Oe},oe=ee,oe=function(te){return z(te)===He},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===Ke},oe=function(te){return z(te)===Me},oe=function(te){return z(te)===a},gt.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===We},oe=function(te){return z(te)===Le},oe=function(te){return z(te)===me},oe=function(te){return z(te)===ke},oe=function(te){return typeof te=="string"||typeof te=="function"||te===Me||te===De||te===Le||te===me||te===ke||te===je||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===He||te.$$typeof===Ke||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(Ie,gt,oe){"use strict";Ie.exports=oe(72665)},64217:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return He}});var ne=oe(1413),ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,We=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Me="".concat(ce," ").concat(We).split(/[\s\n]+/),me="aria-",Le="data-";function le(Oe,De){return Oe.indexOf(De)===0}function He(Oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke;De===!1?Ke={aria:!0,data:!0,attr:!0}:De===!0?Ke={aria:!0}:Ke=(0,ne.Z)({},De);var ke={};return Object.keys(Oe).forEach(function(je){(Ke.aria&&(je==="role"||le(je,me))||Ke.data&&le(je,Le)||Ke.attr&&Me.includes(je))&&(ke[je]=Oe[je])}),ke}}}]);