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.
171 lines
468 KiB
171 lines
468 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5888],{84249:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},90674:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},33859:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},22751:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},24018:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},40043:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},91034:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return me}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ge}))},me=Pe.forwardRef(Fe)},71736:function(De,mt){"use strict";mt.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 De(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(De.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(De.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(De.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(De.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 De))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 mt=[];function oe(ae,a){var y=mt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=mt.pop();return ae===void 0?new go.Point:ae}function Pe(ae){mt.push(ae)}function Ye(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ge=b-z,de=NaN,Se=NaN;if(re===0)if(ge===0)ae===y&&(de=ae,Se=a);else{var ce=(x-ee)/ge,Ne=x-ce*b;de=ae,Se=ce*de+Ne}else if(ge===0){var Re=(a-E)/re,yt=a-Re*ae;de=b,Se=Re*de+yt}else{var Re=(a-E)/re,ce=(x-ee)/ge,yt=a-Re*ae,Ne=x-ce*b;de=(Ne-yt)/(Re-ce),Se=Re*de+yt}return ne.x=de,ne.y=Se,ne}function Ge(ae,a,y,E,b,x,z,ee,ne,re,ge,de,Se,ce){var Ne=1-ne,Re=ne,yt=ae*Ne+y*Re,Ut=a*Ne+E*Re,dn=y*Ne+b*Re,Ce=E*Ne+x*Re,We=b*Ne+z*Re,Ie=x*Ne+ee*Re,gt=yt*Ne+dn*Re,ct=Ut*Ne+Ce*Re,Qe=dn*Ne+We*Re,tt=Ce*Ne+Ie*Re,st=gt*Ne+Qe*Re,Mt=ct*Ne+tt*Re;re.x=yt,re.y=Ut,ge.x=gt,ge.y=ct,de.x=st,de.y=Mt,Se.x=Qe,Se.y=tt,ce.x=We,ce.y=Ie}var fe=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new De("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*me,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=fe,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*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,me*y,(1-me)*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,me*y,me*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-me)*a,0,0,(1-me)*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 De("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 De("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 De("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 De("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 De("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 Me=[];function Oe(){var ae=Me.pop();return ae===void 0?[]:ae}function xe(ae){ae.length=0,Me.push(ae)}function Ve(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 je(ae){var a=Ze(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 xe(a),y}function Ze(ae){for(var a=Ve(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],ne=a[z+1],re=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ye(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],xe(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ve(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()),xe(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=Ve(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()),xe(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=Ve(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()),xe(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=Ve(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()),xe(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=Ve(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()),xe(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=Ve(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()),xe(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=Ve(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()),xe(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=Ze(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()),xe(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=Ze(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()),xe(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=Ze(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()),xe(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=Ze(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()),xe(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=Ze(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()),xe(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=Ze(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()),xe(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=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<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(),xe(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=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<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(),xe(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=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<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(),xe(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=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<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(),xe(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=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<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(),xe(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=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<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(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new De("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new De("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 De("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=fe,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new De("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new De("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=me/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 De("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 De("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 De("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),ne=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new De("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 De("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 De("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,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*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,ne=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+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=me*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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=me*.4;var re=te(),ge=te(),de=te(),Se=te();Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,Se,Se);var ce=te(),Ne=te(),Re=te();Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Se,Se,Re,ce,Ne);var yt=te(),Ut=te(),dn=te();Ge(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,yt,Ut,dn,Se,Se);var Ce=te(),We=te(),Ie=te();return Ge(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Se,Se,Ie,Ce,We),ne.add(new go.PathSegment(go.PathSegment.Move,Ie.x*a,Ie.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Ce.x*a,Ce.y*y,We.x*a,We.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,dn.x*a,dn.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,Ne.x*a,Ne.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,dn.x*a,dn.y*y,yt.x*a,yt.y*y,Ut.x*a,Ut.y*y).close()),Pe(re),Pe(ge),Pe(de),Pe(Se),Pe(ce),Pe(Ne),Pe(Re),Pe(yt),Pe(Ut),Pe(dn),Pe(Ce),Pe(We),Pe(Ie),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 De("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=me*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),Se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Se),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)),Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),Se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var ce=oe(re.x,re.y);Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var Ne=oe(re.x,re.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*a,(Ne.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.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)),x=.35,b=me*.35;var Re=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Re),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)),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));var yt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(yt),Pe(ne),Pe(re),Pe(ge),Pe(de),Pe(ce),Pe(Ne),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*me,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.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)),ne.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)),ne.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)),ne.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)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*me;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.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)),ne.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)),ne.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)),ne.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 ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),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 De("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new De("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,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var ge=Ye(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Pe(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new De("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new De("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,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var ge=Ye(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Pe(ge),ne}),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 De("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 ne=Ye(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ye(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new De("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new De("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,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=Ye(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(de.x,de.y),de=Ye(.7,ne/y,1,.5,0,z/y,1,z/y,de),re.spot2=new go.Spot(de.x,de.y),Pe(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new De("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 ne=Ye(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new De("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new De("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,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var de=Ye(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(de.x,de.y),Pe(de),re}),go.Shape.setFigureParameter("Pointer",0,new De("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=Ye(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new De("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=Ye(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new De("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 ne=Ye(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new De("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 ne=Ye(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new De("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=me*.5,x=me*.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=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*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-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*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-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*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=me*.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,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*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-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*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-me*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-me*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=me*.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-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*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+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*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=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*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-me*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-me*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=me*b,ee=me*x,ne=.5,re=.1,ge=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-ee)*y,(ne-z)*a,(re-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+ee)*y,(ne+z)*a,(re+x)*y));var de=.05,Se=me*de;ne=.05,re=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,re*y,(ne+Se)*a,(re-de)*y,(ne+de)*a,(re-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,Se=me*de,ne=.825,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Se)*y,(ne+Se)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Se)*a,(re-de)*y,(ne-de)*a,(re-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,Se=me*de,ne=.5,re=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Se)*y,(ne+Se)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Se)*a,(re-de)*y,(ne-de)*a,(re-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,Se=me*de,ne=.175,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Se)*y,(ne+Se)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Se)*a,(re-de)*y,(ne-de)*a,(re-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,Se=me*de,ne=.05,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne-de)*a,(re-Se)*y,(ne-Se)*a,(re-de)*y)),ce.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 De("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=me*.5,x=me*.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=me*.5,x=me*.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=me*.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=me*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.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=me*.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=me*.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=me*.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=me*.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 ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.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=me*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.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=me*.5,x=me*.4,z=me*.1,ee=.1,ne=.9,re=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var de=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,re*y,(ne+z)*a,(re-ee)*y,(ne+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=me*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.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=me*.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=me*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.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=me*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.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=me*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.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=me*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.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=me*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.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=me*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.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=me*.8,ee=.8,ne=0,re=.5,ge=(b-a)/2,de=(x-y)/2,Se=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=me*.4,ee=.4,ne=.2,re=.5;var ce=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=me*.2,ee=.2,ne=.5,re=.5;var Ne=new go.PathFigure((ne-ee)*a+ge,re*y+de,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),z=me*.4,ee=.4,ne=.8,re=.5;var Re=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),z=me*.8,ee=.8,ne=1,re=.5;var yt=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);return E.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).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=me*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var Se=oe(re.x,re.y),ce=new go.PathFigure(re.x*a,re.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ge(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=me*.3,x=.3,Ge(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(ne),Pe(re),Pe(ge),Pe(de),Pe(Se),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,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*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*me,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,Se=.5,ce=0,Ne=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ne.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)),Ne.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)),Ne.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ne.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,ne=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ge*.5,Se=z,ce=z,Ne=ge*Se,Re=ge*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,ne*y,(ee-(Ne+Se)/2)*a,(ne+(ce+Re)/2)*y,(ee-Se)*a,(ne+Re)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-Se)*a,(ne-Re)*y,(ee-Ne)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,ne*y,(ee+Ne)*a,(ne-ce)*y,(ee+Se)*a,(ne-Re)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(ne+Re)*y,(ee+(Ne+Se)/2)*a,(ne+(ce+Re)/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 yt=new go.PathFigure(.2*a,y,!1);E.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ut=new go.PathFigure(.8*a,y,!1);return E.add(Ut),Ut.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=me*.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=me*.1,ne=.2,re=.9,ge=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),z=.1,ee=me*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-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 ne=.1,re=me*.1,ge=.1,de=.9,Se=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+re)*y)),ne=.1,re=me*.1,ge=.4,de=.9;var ce=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+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 ge=.05,de=me*.05,Se=.175,ce=.95,ee=new go.PathFigure((Se-ge)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-ge)*y,(Se-ge)*a,(ce-de)*y,(Se-de)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,ce*y,(Se+de)*a,(ce-ge)*y,(Se+ge)*a,(ce-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+ge)*y,(Se+ge)*a,(ce+de)*y,(Se+de)*a,(ce+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,ce*y,(Se-de)*a,(ce+ge)*y,(Se-ge)*a,(ce+de)*y));var ge=.05,de=me*.05,Se=.375,ce=.95,ne=new go.PathFigure((Se-ge)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-ge)*y,(Se-ge)*a,(ce-de)*y,(Se-de)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,ce*y,(Se+de)*a,(ce-ge)*y,(Se+ge)*a,(ce-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+ge)*y,(Se+ge)*a,(ce+de)*y,(Se+de)*a,(ce+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,ce*y,(Se-de)*a,(ce+ge)*y,(Se-ge)*a,(ce+de)*y));var ge=.05,de=me*.05,Se=.625,ce=.95,re=new go.PathFigure((Se-ge)*a,ce*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-ge)*y,(Se-ge)*a,(ce-de)*y,(Se-de)*a,(ce-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,ce*y,(Se+de)*a,(ce-ge)*y,(Se+ge)*a,(ce-de)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+ge)*y,(Se+ge)*a,(ce+de)*y,(Se+de)*a,(ce+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,ce*y,(Se-de)*a,(ce+ge)*y,(Se-ge)*a,(ce+de)*y));var ge=.05,de=me*.05,Se=.825,ce=.95,Ne=new go.PathFigure((Se-ge)*a,ce*y,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-ge)*y,(Se-ge)*a,(ce-de)*y,(Se-de)*a,(ce-ge)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,ce*y,(Se+de)*a,(ce-ge)*y,(Se+ge)*a,(ce-de)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+ge)*y,(Se+ge)*a,(ce+de)*y,(Se+de)*a,(ce+ge)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,ce*y,(Se-de)*a,(ce+ge)*y,(Se-ge)*a,(ce+de)*y).close());var Re=new go.PathFigure(0,y,!1);return E.add(Re),Re.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,ne=me*.05,re=.35,ge=.775,de=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-ne)*y,(re-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+ne)*a,(ge-ee)*y,(re+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+ne)*y,(re+ne)*a,(ge+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ge*y,(re-ne)*a,(ge+ee)*y,(re-ee)*a,(ge+ne)*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=me*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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=me*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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=me*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.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=me*.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 ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.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 ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.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 ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.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 ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.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*me,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 ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.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*me,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*me,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 De={},mt="5.0",oe={},te=null,Pe=!1,Ye=!1,Ge=null,fe=!1,Fe=null,me=null,Me=0;Me<arguments.length;Me++){var Oe=arguments[Me];if(Oe!==null)switch(typeof Oe){case"number":mt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?mt=Oe:Ge=Oe;break;case"object":typeof Oe.is3D!="undefined"?te=Oe:oe=Oe;break;case"boolean":Pe=Oe,Ye=!0;break}}te===null&&(te={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&&!Ye&&(Pe=!0)),Ge!==null&&oe.id===void 0&&(oe.id=Ge);var xe="",Ve="",je=!1,Ze=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 ne=function(pe){return parseFloat(pe)>4?parseFloat(pe):5};De.setHTML5Codebase=function(pe,Te){me=pe,tt(pe,Te)},De.setJavaCodebase=De.setJavaCodebaseVersion=De.isCompiledInstalled=De.setPreCompiledScriptPath=De.setPreCompiledResourcePath=function(){},De.setHTML5CodebaseVersion=function(pe,Te){var rt=parseFloat(pe);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Fe=pe,Qe(pe,Te)},De.getHTML5CodebaseVersion=function(){return ae},De.getParameters=function(){return oe},De.setFontsCSSURL=function(pe){z=pe},De.setGiacJSURL=function(pe){},De.setJNLPFile=function(pe){xe=pe},De.setJNLPBaseDir=function(pe){},De.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Te="auto",rt=oe.id,xt,nt=!1,dt=0;dt<arguments.length;dt++){var ue=arguments[dt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Te=ue:rt=arguments[dt]):typeof ue=="boolean"?nt=ue:ue instanceof HTMLElement&&(xt=ue)}it();function it(){if(!fe){setTimeout(it,200);return}Te=gt(Te);var Ct=xt||document.getElementById(rt);if(!Ct){console.log("possibly bug on ajax loading? ");return}if(De.removeExistingApplet(Ct,!1),oe.width===void 0&&Ct.clientWidth&&(oe.width=Ct.clientWidth),oe.height===void 0&&Ct.clientHeight&&(oe.height=Ct.clientHeight),!(oe.width&&oe.height)&&Te==="html5"&&(delete oe.width,delete oe.height),Ze=Te,Te==="screenshot")Ut(Ct,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())&&ge()),Kt?(Ze="screenshot",Ce(Ct,oe,nt,Te)):yt(Ct,oe,nt)}}};function re(){try{return window.self!==window.top}catch(pe){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}De.getViews=function(){return te},De.isJavaInstalled=function(){return!1};var de=function(pe){var Te=function(dt){var ue=JSON.parse(dt),it=function(Pt){return Pt.type=="G"||Pt.type=="E"},Ct=ue.elements?ue.elements.filter(it)[0]:ue;if(!Ct||!Ct.url){rt();return}oe.fileName=Ct.url,Se(Ct.settings||{}),te.is3D=!0;var Kt="https://www.geogebra.org/images/";De.setPreviewImage(E||Ct.previewUrl,Kt+"GeoGebra_loading.png",Kt+"applet_play.png"),pe()},rt=function(){oe.onError&&oe.onError(),st("Error: Fetching material (id "+oe.material_id+") failed.",oe)},xt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nt="/materials/"+oe.material_id+"?scope=basic";ce("https://"+xt+"/api/proxy.php?path="+encodeURIComponent(nt),Te,rt)};function Se(pe){var Te=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){pe[rt]=!!pe[rt]}),Te.forEach(function(rt){oe[rt]===void 0&&pe[rt]!==void 0&&(oe[rt]=pe[rt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ce(pe,Te,rt){var xt=new XMLHttpRequest;xt.open("GET",pe),xt.onload=function(){Te(xt.responseText)},xt.onerror=rt,xt.send()}De.isHTML5Installed=function(){return!0},De.getLoadedAppletType=function(){return Ze},De.setPreviewImage=function(pe,Te,rt){E=pe,b=Te,x=rt},De.removeExistingApplet=function(pe,Te){var rt;typeof pe=="string"&&(pe=document.getElementById(pe)),Ze=null;var xt=null;for(rt=0;rt<pe.childNodes.length;rt++){var nt=pe.childNodes[rt],dt=nt.className;dt==="applet_screenshot"?Te?(nt.style.display="block",Ze="screenshot"):nt.style.display="none":dt!=="applet_scaler prerender"&&(pe.removeChild(nt),xt=dt&&dt.indexOf("appletParameters")!=-1?nt.id:null,rt--)}var ue=oe.id!==void 0?oe.id:xt,it=window[ue];it&&typeof it.getBase64=="function"&&(it.remove(),window[ue]=null)},De.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=De.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},De.startAnimation=function(){var pe=De.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},De.stopAnimation=function(){var pe=De.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},De.getAppletObject=function(){var pe=oe.id!==void 0?oe.id:"ggbApplet";return window[pe]},De.resize=function(){};var Ne=function(pe,Te,rt){var xt=document.createElement("param");xt.setAttribute("name",Te),xt.setAttribute("value",rt),pe.appendChild(xt)},Re=function(pe){return pe&&pe!=="false"},yt=function(pe,Te,rt){ne(ae)<=4.2&&(rt=!0);var xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var dt=Te.width,ue=Te.height;if(Te.disableAutoScale=Te.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Te.disableAutoScale,Te.width!==void 0)if(ne(ae)<=4.4)Re(Te.showToolBar)&&(Te.height-=7),Re(Te.showAlgebraInput)&&(Te.height-=37),Te.width<605&&Re(Te.showToolBar)&&(Te.width=605,dt=605);else{var it=100;(Re(Te.showToolBar)||Re(Te.showMenuBar))&&(Te.hasOwnProperty("customToolBar")&&(Te.customToolbar=Te.customToolBar),it=Re(Te.showMenuBar)?245:155),dt<it&&(Te.width=it,dt=it)}nt.style.border="none",nt.style.display="inline-block";for(var Ct in Te)Te.hasOwnProperty(Ct)&&Ct!=="appletOnLoad"&&nt.setAttribute("data-param-"+Ct,Te[Ct]);z&&nt.setAttribute("data-param-fontscssurl",z),De.resize=function(){GGBAppletUtils.responsiveResize(pe,Te)},window.addEventListener("resize",function(sn){De.resize()});var Kt=typeof Te.appletOnLoad=="function"?Te.appletOnLoad:function(){};if(!rt&&Te.width!==void 0){Te.hasOwnProperty("showSplash")||nt.setAttribute("data-param-showSplash","false");var Pt=pe.querySelector(".applet_scaler.prerender"),Ae=Pt!==null;if(Ae)var Ee=Pt.querySelector(".ggb_preview");else{var Ee=Ie(dt,ue,Te.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=dt+"px",Pt.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),ne(ae)>=5?(Te.appletOnLoad=function(sn){var zt=pe.querySelector(".ggb_preview");zt&&zt.parentNode.removeChild(zt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Kt(sn)},Ae||Pt.appendChild(Ee)):nt.appendChild(Ee),Pt.appendChild(nt),Ae||pe.appendChild(Pt),setTimeout(function(){De.resize()},1)}else{var Le=document.createElement("div");Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.appendChild(nt),pe.appendChild(Le),Te.appletOnLoad=function(sn){De.resize(),Kt(sn)}}function Je(sn,zt){zt&&typeof zt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,zt.appletOnLoad):renderGGBElement(sn),st("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",zt)}function et(sn,zt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:zt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ot){Je(Ot.article,Ot.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(sn.className+=" geogebraweb")):Je(sn,zt)}if(xt){scriptLoadStarted=!0;for(var bt=0;bt<nt.childNodes.length;bt++){var Dt=nt.childNodes[bt].tagName;Dt==="TABLE"&&(nt.removeChild(nt.childNodes[bt]),bt--)}if(ggbHTML5LoadedScript!==null){var Tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Tt!=null&&Tt.parentNode.removeChild(Tt)}var qt=document.createElement("script"),ln=function(){et(nt,Te)};qt.src=Ve+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=qt.src,st("GeoGebra HTML5 codebase loaded: '"+Ve+"'.",Te),!me&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ln()):Ve.requirejs?__webpack_require__.e(12).then(function(){var sn=[__webpack_require__(12)];ln.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(qt.onload=ln,pe.appendChild(qt))}else et(nt,Te);Te.height=ue,Te.width=dt},Ut=function(pe,Te,rt){var xt=Ie(Te.width,Te.height,Te.borderColor,rt),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=Te.width+"px",nt.style.height=Te.height+"px",nt.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),nt.appendChild(xt);var dt=GGBAppletUtils.getScale(Te,pe,rt);rt?(pe.appendChild(We()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),pe.appendChild(nt),dt!==1&&!isNaN(dt)&&(GGBAppletUtils.scaleElement(nt,dt),nt.style.width=Te.width+"px",nt.style.height=Te.height+"px",nt.parentNode.style.width=Te.width*dt+"px",nt.parentNode.style.height=Te.height*dt+"px"),De.resize=function(){dn(pe,xt,nt,rt)},window.addEventListener("resize",function(ue){De.resize()}),De.resize()};function dn(pe,Te,rt,xt){if(pe.contains(Te)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var nt=GGBAppletUtils.getScale(oe,pe,xt);rt.parentNode!==null&&(!isNaN(nt)&&nt!==1?(GGBAppletUtils.scaleElement(rt,nt),rt.parentNode.style.width=oe.width*nt+"px",rt.parentNode.style.height=oe.height*nt+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=oe.width+"px",rt.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()}}De.onExitFullscreen=function(pe,Te){Te.appendChild(pe)};var Ce=function(pe,Te,rt,xt){Ut(pe,Te,!0);for(var nt=function(){var it=[];for(ue=0;ue<pe.childNodes.length;ue++)it.push(pe.childNodes[ue]);if(window.GGBT_wsf_view){var Ct=window.GGBT_wsf_view.renderFullScreen(pe,Te.id),Kt=document.getElementById("fullscreencontainer"),Pt=jQuery(pe).find(".fullscreencontent");Pt.length>0?(Ct.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Kt).append(Pt),window.dispatchEvent(new Event("resize"))):yt(Ct,Te,!1),window.GGBT_wsf_view.launchFullScreen(Kt)}else Ze=xt,yt(pe,Te,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<it.length;ue++)pe.removeChild(it[ue])},dt=pe.getElementsByClassName("ggb_preview_play"),ue=0;ue<dt.length;ue++)dt[ue].addEventListener("click",nt,!1),dt[ue].addEventListener("ontouchstart",nt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},We=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Te='.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");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=Te:rt.appendChild(document.createTextNode(Te)),document.getElementsByTagName("head")[0].appendChild(rt)}return pe},Ie=function(pe,Te,rt,xt){var nt=document.createElement("div");nt.className="ggb_preview",nt.style.position="absolute",nt.style.zIndex="90",nt.style.width=pe-2+"px",nt.style.height=Te-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var dt="lightgrey";rt!==void 0&&(rt==="none"?dt="transparent":dt=rt),nt.style.border="1px solid "+dt;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,b!==null){var it,Ct,Kt;if(!xt){it=document.createElement("img"),it.style.position="absolute",it.style.zIndex="1001",it.style.opacity=1,ue.style.opacity=.3,Ct=360,Ct>pe/4*3&&(Ct=pe/4*3),Kt=Ct/5.8,it.setAttribute("src",b),it.setAttribute("width",Ct),it.setAttribute("height",Kt);var Pt=(pe-Ct)/2,Ae=(Te-Kt)/2;it.style.left=Pt+"px",it.style.top=Ae+"px",nt.appendChild(it)}}return nt.appendChild(ue),nt},gt=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},ct=["web","webSimple","web3d","tablet","tablet3d","phone"],Qe=function(pe,Te){if(ae=pe,Te){tt(ae,!0);return}var rt=!Pe;if(rt){var xt=ne(ae);!isNaN(xt)&&xt<4.4&&(rt=!1)}var nt,dt;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var ue=ae.indexOf("//");ue>0?dt=ae:ue===0?dt=nt+ae:dt="https://www.geogebra.org/apps/5.2.814.0/";for(var it in ct)if(ae.slice(ct[it].length*-1)===ct[it]||ae.slice((ct[it].length+1)*-1)===ct[it]+"/"){tt(dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Re(oe.showToolBar)&&!Re(oe.showMenuBar)&&!Re(oe.showAlgebraInput)&&!Re(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?dt+="webSimple/":dt+="web3d/",tt(dt,!1)},tt=function(pe,Te){if(pe.requirejs){Ve=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),Ve=pe,Te===null&&(Te=pe.indexOf("http")===-1),je=Te,a="web.nocache.js",y=!1;var rt=Ve.split("/");rt.length>1&&(!Te&&rt[rt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ct.indexOf(rt[rt.length-2])>=0&&(a=rt[rt.length-2]+".nocache.js")),rt=pe.split("/"),ae=rt[rt.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 xt=parseFloat(ae);xt!==NaN&&xt<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead."),Qe("5.0",Te))},st=function(pe,Te){window.console&&window.console.log&&(!Te||typeof Te.showLogging=="undefined"||Te.showLogging&&Te.showLogging!=="false")&&console.log(pe)};oe.material_id!==void 0?de(Mt):Mt();function Mt(){var pe=mt;Fe!==null?pe=Fe:parseFloat(pe)<5&&(pe="5.0"),Qe(pe,!1),me!==null&&tt(me,je),fe=!0}return De},GGBAppletUtils=function(){"use strict";function De(){return window.GGBT_wsf_edit!==void 0}function mt(fe,Fe){Fe!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Fe+","+Fe+")",fe.style.webkitTransform="scale("+Fe+","+Fe+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function oe(fe,Fe,me,Me,Oe,xe){var Ve=null;if(xe!=null&&xe!="")for(var je=fe.parentNode;je!=null;)if((" "+je.className+" ").indexOf(" "+xe+" ")>-1){Ve=je;break}else je=je.parentNode;var Ze=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ve)Ze=Ve.offsetWidth,ae=Math.max(Me?Ve.offsetWidth:0,Ve.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ze):(Ze=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=Ze&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=Ze-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((me===void 0||!me)&&Fe>0&&Fe+y<Ze?Ze=Fe:Ze-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ae-=x)),{width:Ze,height:ae}}function te(fe,Fe,me,Me,Oe){if(fe.isScreenshoGenerator)return 1;var xe=Me!==void 0&&Me,Ve=fe.noScaleMargin!=null&&fe.noScaleMargin,je=function(ee){return ee&&ee!=="false"},Ze=je(fe.autoHeight),ae=oe(Fe,fe.width,me,Ze,xe&&window.GGBT_wsf_view||Ve,Oe),a=parseInt(ae.width),y=fe.width,E=fe.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=xe?1:ae.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(fe,Fe,me){var Me=1,Oe,xe=!1;if(fe.hasOwnProperty("allowUpscale")&&(xe=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Me=parseFloat(fe.scale),(isNaN(Me)||Me===null||Me===0)&&(Me=1),Me>1&&(xe=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xe=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Oe=te(fe,Fe,xe,me,fe.scaleContainerClass);else return Me;return xe&&(!fe.hasOwnProperty("scale")||Me===1)?Oe:Math.min(Me,Oe)}function Ye(fe){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=fe.getBoundingClientRect(),Oe=(Fe-Me.width)/2,xe=(me-Me.height)/2;xe<0&&(xe=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?fe.style.left="40px":fe.style.left=Oe+"px",fe.style.top=xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe<40?fe.style.top="40px":fe.style.top=xe+"px",fe.style.left=Oe+"px")}function Ge(fe,Fe){var me=fe.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Me=Pe(Fe,fe);De()&&me.setAttribute("data-param-scale",Me);for(var Oe=null,xe=0;xe<fe.childNodes.length;xe++)if(fe.childNodes[xe].className!==void 0&&fe.childNodes[xe].className.match(/^applet_scaler/)){Oe=fe.childNodes[xe];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ve=Fe.id!==void 0?Fe.id:"ggbApplet",je=window[Ve];(je==null||!je.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Me)&&Me!==1?(Oe.parentNode.style.width=Fe.width*Me+"px",Oe.parentNode.style.height=Fe.height*Me+"px",mt(Oe,Me)):(mt(Oe,1),Oe.parentNode.style.width=Fe.width+"px",Oe.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ye(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:De,positionCenter:Ye,getScale:Pe,scaleElement:mt}}();__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 De=n.location.search;return De.indexOf(J)!=-1||De.indexOf(K)!=-1}function q(De,mt){}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(De){var mt=s[L].bindings;s[L].bindings=function(){for(var oe=mt?mt():{},te=De[webModule.__softPermutationId],Pe=O;Pe<te.length;Pe++){var Ye=te[Pe];oe[Ye[O]]=Ye[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var De=o.createElement(Q);if(De.id=L,De.style.cssText=R+S,De.tabIndex=-1,o.body.appendChild(De),t=De.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var mt=document.compatMode==U?V:W;t.write(mt+X),t.close()}}}function w(De){function mt(te){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ye=Pe();if(Ye){te();return}function Ge(){if(!Ye){if(!Pe())return;Ye=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var fe=setInterval(function(){Ge()},$)}function oe(te){var Pe=u(),Ye=Pe.body,Ge=Pe.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=te,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ye.appendChild(Ge)}mt(function(){oe(De)})}webModule.__startLoadingFragment=function(De){return C(De)},webModule.__installRunAsyncCode=function(De){var mt=u(),oe=mt.body,te=mt.createElement(_);te.language=ab,te.text=De,oe.appendChild(te),oe.removeChild(te)};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(De){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(De){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(De){var mt=c[De];return mt==null?null:mt},r=d,webModule.__errFn=e}function B(){function De(fe){var Fe=fe.lastIndexOf(rb);Fe==-1&&(Fe=fe.length);var me=fe.indexOf(sb);me==-1&&(me=fe.length);var Me=fe.lastIndexOf(tb,Math.min(me,Fe));return Me>=O?fe.substring(O,Me+P):W}function mt(fe){if(!fe.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=fe+vb,fe=De(Fe.src)}return fe}function oe(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function te(){for(var fe=o.getElementsByTagName(_),Fe=O;Fe<fe.length;++Fe)if(fe[Fe].src.indexOf(xb)!=-1)return De(fe[Fe].src);return W}function Pe(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Ye(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var Ge=oe();return Ge==W&&(Ge=te()),Ge==W&&(Ge=Pe()),Ge==W&&Ye()&&(Ge=De(o.location.href)),Ge=mt(Ge),Ge}function C(De){return De.match(/^\//)||De.match(/^[a-zA-Z]+:\/\//)?De:webModule.__moduleBase+De}function D(){var De=[],mt=O,oe=[],te=[];function Pe(fe){var Fe=te[fe](),me=oe[fe];if(Fe in me)return Fe;var Me=[];for(var Oe in me)Me[me[Oe]]=Oe;throw r&&r(fe,Me,Fe),null}if(__gwt_isKnownPropertyValue=function(fe,Fe){return Fe in oe[fe]},webModule.__getPropMap=function(){var fe={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(fe[Fe]=Pe(Fe));return fe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ye;try{Ye=Cb;var Ge=Ye.indexOf(Db);Ge!=-1&&(mt=parseInt(Ye.substring(Ge+P),$),Ye=Ye.substring(O,Ge))}catch(fe){}return webModule.__softPermutationId=mt,C(Ye+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(De,mt,oe){"use strict";oe.d(mt,{Ax:function(){return Ge},Ds:function(){return fe},KI:function(){return me},SI:function(){return Ye},f1:function(){return Pe}});var te=oe(11320);function Pe(Me){let Oe=!0;if(Me.length>0){for(let xe=0;xe<Me.length;xe++)if(Me[xe].compile_success==0||!Me[xe].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ye(Me,Oe=""){let xe=[];for(let Ve=0;Ve<Me.length;Ve++){let je=Me[Ve],Ze=Oe?`${Oe}/${je.name}`:`${je.name}`;xe.push({title:je.name,type:je.type,isLeaf:je.type!=="tree",key:Ze})}return xe}function Ge(Me,Oe,xe){for(let Ve=0;Ve<Me.length;Ve++){let je=Me[Ve];if(je.key===Oe){je.children=xe;break}je.children&&Ge(je.children,Oe,xe)}return Me}function fe(Me,Oe,xe){let Ve;return function(){let je=this,Ze=arguments,ae=function(){Ve=null,xe||Me.apply(je,Ze)},a=xe&&!Ve;clearTimeout(Ve),Ve=setTimeout(ae,Oe),a&&Me.apply(je,Ze)}}const Fe=!0,me=te.Z.API_SERVER},10191:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return dn}});var te=oe(67294),Pe=oe(35973),Ye=oe(84567),Ge=oe(24018),fe=oe(40043),Fe=oe(33170),me=oe(22150),Me=oe(42563),Oe={},xe=Object.defineProperty,Ve=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,ae=(Ce,We,Ie)=>We in Ce?xe(Ce,We,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ce[We]=Ie,a=(Ce,We)=>{for(var Ie in We||(We={}))je.call(We,Ie)&&ae(Ce,Ie,We[Ie]);if(Ve)for(var Ie of Ve(We))Ze.call(We,Ie)&&ae(Ce,Ie,We[Ie]);return Ce},y=(Ce,We,Ie)=>new Promise((gt,ct)=>{var Qe=Mt=>{try{st(Ie.next(Mt))}catch(pe){ct(pe)}},tt=Mt=>{try{st(Ie.throw(Mt))}catch(pe){ct(pe)}},st=Mt=>Mt.done?gt(Mt.value):Promise.resolve(Mt.value).then(Qe,tt);st((Ie=Ie.apply(Ce,We)).next())});const E=Ye.default.Group,b=({classroomList:Ce,loading:We,user:Ie,exercise_id:gt=null,homework_common_id:ct=null,setitem:Qe,item:tt,type:st,rz:Mt,dispatch:pe})=>{var Te,rt,xt,nt,dt,ue,it,Ct;const[Kt,Pt]=(0,te.useState)([]);let[Ae,Ee]=(0,te.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Le=(0,Pe.useParams)(),[Je,et]=(0,te.useState)(!1),[bt,Dt]=(0,te.useState)(!1),[Tt]=me.default.useForm();(0,te.useEffect)(()=>{Mt&&(Ae.zydatas=Mt,Ee(a({},Ae)),tt!=null&&tt.ec_course_id&&qt())},[tt,Mt]);function qt(){return y(this,null,function*(){console.log("----",tt),yield ln(tt==null?void 0:tt.ec_major_school_id),yield sn(tt==null?void 0:tt.ec_year_id),yield zt(tt==null?void 0:tt.ec_course_id),Tt.setFieldsValue({ec_course_id:tt==null?void 0:tt.ec_course_id,ec_major_school_id:tt==null?void 0:tt.ec_major_school_id,ec_point_ids:tt==null?void 0:tt.ec_point_ids,ec_year_id:tt==null?void 0:tt.ec_year_id})})}function ln(Ot){return y(this,null,function*(){const Qt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Ot}/ec_years/get_year_list.json`,{method:"get"});Ae.jbdatas=Qt==null?void 0:Qt.data,Ee(a({},Ae)),Tt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function sn(Ot){return y(this,null,function*(){const Qt=yield(0,Fe.ZP)(`/api/ec_years/${Ot}/ec_courses/get_courses.json`,{method:"get"});Ae.kcdatas=Qt==null?void 0:Qt.data,Ee(a({},Ae)),Tt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const zt=Ot=>y(void 0,null,function*(){const Qt=yield(0,Fe.ZP)(`/api/ec_courses/${Ot}/ec_points.json`,{method:"get",params:{ec_course_id:Ot}});Ae.zsdatas=Qt==null?void 0:Qt.data,Ee(a({},Ae))});return te.createElement("div",{className:Oe.from},te.createElement(me.default,{form:Tt,layout:"inline",onValuesChange:Ot=>{console.log("----",Ot),Ot.ec_major_school_id&&(Ae.jbdatas=[],Ae.kcdatas=[],Ae.zsdatas=[],Ee(a({},Ae)),ln(Ot.ec_major_school_id)),Ot.ec_year_id&&(Ae.kcdatas=[],Ae.zsdatas=[],Ee(a({},Ae)),sn(Ot.ec_year_id)),Ot.ec_course_id&&(Ae.zsdatas=[],Ee(a({},Ae)),zt(Ot.ec_course_id))},onFinish:Ot=>y(void 0,null,function*(){Qe(Ot)})},te.createElement(me.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},te.createElement(Me.default,{style:{width:150},disabled:((Te=Ae.zydatas)==null?void 0:Te.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(rt=Ae==null?void 0:Ae.zydatas)==null?void 0:rt.map((Ot,Qt)=>te.createElement(Me.default.Option,{key:Qt,value:Ot==null?void 0:Ot.ec_major_school_id},Ot==null?void 0:Ot.name)))),te.createElement(me.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},te.createElement(Me.default,{style:{width:150},disabled:((xt=Ae.jbdatas)==null?void 0:xt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(nt=Ae==null?void 0:Ae.jbdatas)==null?void 0:nt.map((Ot,Qt)=>te.createElement(Me.default.Option,{key:Qt,value:Ot==null?void 0:Ot.ec_year_id},Ot==null?void 0:Ot.year)))),te.createElement(me.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},te.createElement(Me.default,{style:{width:150},disabled:((dt=Ae.kcdatas)==null?void 0:dt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(ue=Ae==null?void 0:Ae.kcdatas)==null?void 0:ue.map((Ot,Qt)=>te.createElement(Me.default.Option,{key:Qt,value:Ot==null?void 0:Ot.id},Ot==null?void 0:Ot.name)))),te.createElement(me.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},te.createElement(Me.default,{onChange:()=>{Tt.submit()},style:{width:150},mode:"multiple",disabled:((it=Ae.zsdatas)==null?void 0:it.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Ct=Ae==null?void 0:Ae.zsdatas)==null?void 0:Ct.map((Ot,Qt)=>te.createElement(Me.default.Option,{key:Qt,value:Ot==null?void 0:Ot.id},Ot==null?void 0:Ot.name))))))};var x=(0,Pe.connect)(({classroomList:Ce,loading:We,globalSetting:Ie,user:gt})=>({classroomList:Ce,globalSetting:Ie,loading:We.effects,user:gt}))(b),z=Object.defineProperty,ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Se=(Ce,We,Ie)=>We in Ce?z(Ce,We,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ce[We]=Ie,ce=(Ce,We)=>{for(var Ie in We||(We={}))ge.call(We,Ie)&&Se(Ce,Ie,We[Ie]);if(re)for(var Ie of re(We))de.call(We,Ie)&&Se(Ce,Ie,We[Ie]);return Ce},Ne=(Ce,We)=>ee(Ce,ne(We)),Re=(Ce,We,Ie)=>new Promise((gt,ct)=>{var Qe=Mt=>{try{st(Ie.next(Mt))}catch(pe){ct(pe)}},tt=Mt=>{try{st(Ie.throw(Mt))}catch(pe){ct(pe)}},st=Mt=>Mt.done?gt(Mt.value):Promise.resolve(Mt.value).then(Qe,tt);st((Ie=Ie.apply(Ce,We)).next())});const yt=Ye.default.Group,Ut=({classroomList:Ce,loading:We,user:Ie,exercise_id:gt=null,homework_common_id:ct=null,setitem:Qe,type:tt,dispatch:st})=>{var Mt,pe;let[Te,rt]=(0,te.useState)([{}]),[xt,nt]=(0,te.useState)([]);function dt(){return Re(this,null,function*(){var it,Ct,Kt;let Pt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:gt,homework_common_id:ct}});if(((it=Pt==null?void 0:Pt.data)==null?void 0:it.length)>0){let Ae=[];(Ct=Pt==null?void 0:Pt.data)==null||Ct.map(Ee=>{var Le;(Le=Ee==null?void 0:Ee.ec_point_ids)==null||Le.map(Je=>{Ae.push(Je)})}),Qe(Ne(ce({},(Kt=Pt==null?void 0:Pt.data)==null?void 0:Kt[0]),{ec_point_ids:Ae})),rt(Pt==null?void 0:Pt.data)}})}(0,te.useEffect)(()=>{var it,Ct;(Ct=(it=Ie==null?void 0:Ie.userInfo)==null?void 0:it.course)!=null&&Ct.course_school_id&&ue()},[(pe=(Mt=Ie==null?void 0:Ie.userInfo)==null?void 0:Mt.course)==null?void 0:pe.course_school_id]);function ue(){return Re(this,null,function*(){var it,Ct;const Kt=yield(0,Fe.ZP)(`/api/schools/${(Ct=(it=Ie==null?void 0:Ie.userInfo)==null?void 0:it.course)==null?void 0:Ct.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});nt(Kt==null?void 0:Kt.data),(ct||gt)&&dt()})}return te.createElement("div",null,te.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Te==null?void 0:Te.map((it,Ct)=>te.createElement("div",{key:Ct,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},te.createElement(x,{rz:xt,item:it,type:Ct,setitem:Kt=>{Te.splice(Ct,1,Kt),rt([...Te]);let Pt=[];Te==null||Te.map(Ae=>{var Ee;(Ee=Ae==null?void 0:Ae.ec_point_ids)==null||Ee.map(Le=>{Pt.push(Le)})}),Qe(Ne(ce({},Kt),{ec_point_ids:Pt}))}}),Ct!=0&&te.createElement(Ge.Z,{onClick:()=>{Te.splice(Ct,1),rt([...Te])},style:{marginLeft:10,fontSize:"20px"}}),te.createElement(fe.Z,{onClick:()=>{Te.push({}),rt([...Te])},style:{marginLeft:10,fontSize:"20px"}}))))};var dn=(0,Pe.connect)(({classroomList:Ce,loading:We,globalSetting:Ie,user:gt})=>({classroomList:Ce,globalSetting:Ie,loading:We.effects,user:gt}))(Ut)},63205:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ve}});var te=oe(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ye=oe(94184),Ge=oe.n(Ye),fe=oe(57953),Fe=oe(15979),me=oe(33170),Me=oe(28706),Oe=(je,Ze,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(je,Ze)).next())}),Ve=({data:je,className:Ze,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[Se,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),je!=null&&je.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",je!=null&&je.src&&Ne()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[je==null?void 0:je.visible]);const Ne=()=>Oe(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,Me.ZJ)(je==null?void 0:je.src);z.current.src="",z.current.src=Ce,z.current.onload=function(){dn()},de(!1),ce("")}),Re=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},yt=Ce=>Oe(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const We=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:je.title,file:Ce.dataUrl}});We!=null&&We.id&&!x?(yield(0,me.ZP)(`/api/attachments/${je.id}/add_subitem.json`,{method:"post",body:{subitem_id:We==null?void 0:We.id,settings:JSON.stringify(Ce.state)}})).status===0&&E():We!=null&&We.id&&E(We),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),ce("")}),Ut=()=>{const Ce=document.querySelector('a[href="https://markerjs.com/"]');Ce&&Ce.parentNode&&(Ce.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(Ie=>{const gt=document.querySelector(Ie.name);gt&>.setAttribute("title",Ie.title)})},dn=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",yt),ee.current.addEventListener("beforeclose",Re),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(),je!=null&&je.snapshotData&&ee.current.restoreState(je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ut()},300)};return te.createElement(te.Fragment,null,(je==null?void 0:je.visible)&&te.createElement(fe.Z,{spinning:ge,tip:Se,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Ge()(Pe.imageDimensions,Ze,ae?Pe.fullWidth:""),style:a},te.createElement("img",{className:Pe.img,ref:z}))))}},36527:function(De,mt,oe){"use strict";var te=oe(67294),Pe=oe(71230),Ye=oe(15746),Ge=oe(66368),fe=oe(71577),Fe=oe(85725),me=oe(71736),Me=oe(84279),Oe=oe(67294);const xe=(0,te.forwardRef)(({callback:Ve,showSaveButton:je,value:Ze=""},ae)=>{const a=(0,te.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(Pe.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Oe.createElement(Ye.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((re,ge)=>Oe.createElement("div",{key:ge},Oe.createElement("h1",null,re.name),Oe.createElement(Pe.Z,{gutter:[10,10]},re.data.map((de,Se)=>Oe.createElement(Ye.Z,{key:Se,onClick:()=>b(de),className:me.Z.diamond},Oe.createElement(Fe.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Oe.createElement(Ye.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((re,ge)=>Oe.createElement("div",{key:ge},re.name&&Oe.createElement("h1",null,re.name),Oe.createElement(Pe.Z,{gutter:[10,10]},re.data.map((de,Se)=>Oe.createElement(Ye.Z,{key:Se,onClick:()=>b(de),className:me.Z.diamond},Oe.createElement(Fe.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ve&&Ve(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Oe.createElement("div",{className:me.Z.mathWrap},Oe.createElement(Ge.default,{defaultActiveKey:"1",items:x}),Oe.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ze||""),je&&Oe.createElement("div",{className:me.Z.button},Oe.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});mt.Z=xe},65866:function(De,mt,oe){"use strict";oe.d(mt,{z:function(){return gt},Z:function(){return ct}});var te=oe(67294),Pe=oe(59810),Ye=oe(2453),Ge=oe(14446),fe=oe(71577),Fe=oe(11320),me=oe(4440),Me=Object.defineProperty,Oe=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,je=(Qe,tt,st)=>tt in Qe?Me(Qe,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):Qe[tt]=st,Ze=(Qe,tt)=>{for(var st in tt||(tt={}))xe.call(tt,st)&&je(Qe,st,tt[st]);if(Oe)for(var st of Oe(tt))Ve.call(tt,st)&&je(Qe,st,tt[st]);return Qe},ae=(Qe,tt,st)=>new Promise((Mt,pe)=>{var Te=nt=>{try{xt(st.next(nt))}catch(dt){pe(dt)}},rt=nt=>{try{xt(st.throw(nt))}catch(dt){pe(dt)}},xt=nt=>nt.done?Mt(nt.value):Promise.resolve(nt.value).then(Te,rt);xt((st=st.apply(Qe,tt)).next())});const a="\u3000\u3000";function y(Qe){var tt=["Bytes","KB","MB","GB","TB"];if(Qe==0)return"0 Byte";var st=parseInt(""+Math.floor(Math.log(Qe)/Math.log(1024)),10);return(Qe/Math.pow(1024,st)).toFixed(1)+" "+tt[st]}var E=({value:Qe=[],action:tt,onChange:st,className:Mt,maxSize:pe=150,title:Te="\u6587\u4EF6\u4E0A\u4F20",accept:rt=null})=>{const xt={multiple:!1,fileList:Qe,accept:rt,withCredentials:!0,beforeUpload:dt=>dt.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(dt){var ue,it,Ct,Kt;let Pt=[...dt.fileList];if(Pt=Pt.map(Ae=>(Ae.name.indexOf(a)===-1&&(Ae.name=`${Ae.name}${a}${y(Ae.size)}`),Ze({},Ae))),dt.file.status==="done"&&((it=(ue=dt.file)==null?void 0:ue.response)==null?void 0:it.status)===-1){message.error((Kt=(Ct=dt.file)==null?void 0:Ct.response)==null?void 0:Kt.message),st([]);return}st(Pt)},onRemove:dt=>ae(void 0,null,function*(){const ue=dt.size/1024/1024;return dt.status==="uploading"?!0:ue<pe&&(dt.response?dt.response.id:dt.uid)?yield removeAttachment(dt.response?dt.response.id:dt.id):!0})};function nt(dt){dt.preventDefault(),dt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Mt||""}`},React.createElement(Upload,Ze({},xt),React.createElement(Button,{type:"primary",title:Qe.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:Qe.length>0,ghost:!0},Te),React.createElement("span",{onClick:nt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",pe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(Qe,tt,st)=>tt in Qe?z(Qe,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):Qe[tt]=st,de=(Qe,tt)=>{for(var st in tt||(tt={}))ne.call(tt,st)&&ge(Qe,st,tt[st]);if(ee)for(var st of ee(tt))re.call(tt,st)&&ge(Qe,st,tt[st]);return Qe};const Se=Qe=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Qe),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 ce="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ne=Object.defineProperty,Re=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,dn=(Qe,tt,st)=>tt in Qe?Ne(Qe,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):Qe[tt]=st,Ce=(Qe,tt)=>{for(var st in tt||(tt={}))yt.call(tt,st)&&dn(Qe,st,tt[st]);if(Re)for(var st of Re(tt))Ut.call(tt,st)&&dn(Qe,st,tt[st]);return Qe},We=(Qe,tt,st)=>new Promise((Mt,pe)=>{var Te=nt=>{try{xt(st.next(nt))}catch(dt){pe(dt)}},rt=nt=>{try{xt(st.throw(nt))}catch(dt){pe(dt)}},xt=nt=>nt.done?Mt(nt.value):Promise.resolve(nt.value).then(Te,rt);xt((st=st.apply(Qe,tt)).next())});const{Dragger:Ie}=Pe.default;function gt(Qe){let tt=[];return Qe&&Qe.length>0&&(tt=Qe.map(st=>({uid:st.id,id:st.id,name:st.title+a+st.filesize,url:st.url,filesize:st.filesize,status:"done",response:{id:st.id}}))),tt}var ct=({value:Qe,onChange:tt,action:st,data:Mt,className:pe,maxSize:Te=150,title:rt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:xt=!1,accept:nt="",additionalText:dt,isDragger:ue,number:it=1e3,aloneClear:Ct=!1,realTimeRemove:Kt=!0,uploadText:Pt,setFileProgress:Ae,showFileProgress:Ee})=>{const[Le,Je]=(0,te.useState)(!1);let[et,bt]=(0,te.useState)(Qe||[]),[Dt,Tt]=(0,te.useState)(1);(0,te.useEffect)(()=>{Qe&&(Dt===1&&bt([...Qe]),Tt(2),it===(Qe==null?void 0:Qe.length)&&Je(!0))},[Qe]);const qt=()=>{setTimeout(()=>{et.pop(),Je(!1),bt([...et])},500)};Ee&&Ae(et.some(zt=>zt.status==="uploading"));const ln={multiple:!0,accept:nt,withCredentials:!0,fileList:et,beforeUpload:(zt,Ot)=>{const Qt=zt.size/1024/1024;if(et.concat(Ot).length>it)return et.pop(),bt([...et]),Ye.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${it}\u4E2A\u6587\u4EF6`),Ct?Promise.reject():(qt(),!1);if(!(Qt<Te)){if(Ye.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Te}MB).`),Ct)return Promise.reject();qt()}return!0},data:Mt,action:st||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(zt){var Ot,Qt,jn,xn;if(zt.file.status==="removed"?et=zt.fileList:et=(0,x.uniqBy)([...zt.fileList,...et],"uid"),zt.file.status==="done"&&((Qt=(Ot=zt.file)==null?void 0:Ot.response)==null?void 0:Qt.status)===-1){Ye.ZP.error((xn=(jn=zt.file)==null?void 0:jn.response)==null?void 0:xn.message);return}et.length>=it?Je(!0):Je(!1),bt([...et]),et=et.map(pn=>{var be,ke;return(be=pn==null?void 0:pn.response)!=null&&be.id&&(pn.url=(ke=pn==null?void 0:pn.response)==null?void 0:ke.url),pn.name.indexOf(a)===-1&&(pn.name=`${pn.name}${a}${y(pn.size)}`),Ce({},pn)}),console.log("info:",zt,et),tt(et)},onRemove:zt=>We(void 0,null,function*(){if(!Kt)return!0;const Ot=()=>We(void 0,null,function*(){if(zt.response?zt.response.id:zt.id){let jn=yield(0,me.JZ)(zt.response?zt.response.id:zt.uid);return Promise.resolve(jn)}else return!0});if(xt)return new Promise((Qt,jn)=>{Ge.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>We(void 0,null,function*(){const xn=yield Ot();Ye.ZP.success("\u5220\u9664\u6210\u529F"),Qt(!0)}),onCancel:()=>Qt(!1)})});{const Qt=yield Ot();return et.length-1<it&&Je(!1),Qt}})};function sn(zt){zt.preventDefault(),zt.stopPropagation()}return te.createElement("div",{className:`multi-upload ${pe||""}`},ue&&te.createElement(Ie,Ce({},ln),te.createElement("p",{className:"ant-upload-drag-icon"},te.createElement(b.Z,null)),te.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",te.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Te,"MB)"," "),dt),!ue&&te.createElement(Pe.default,Ce({},ln),te.createElement(fe.ZP,{disabled:Le,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:ce}),rt),te.createElement("span",{onClick:sn,className:"upload_text"},Pt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Te}MB)`)))}},57444:function(De,mt,oe){"use strict";oe.d(mt,{h:function(){return ee}});var te=oe(67294),Pe=oe(42563),Ye=oe(22150),Ge=oe(71577),fe=oe(4631),Fe=oe.n(fe),me=oe(71749),Me=oe(30483),Oe=Object.defineProperty,xe=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ge)=>re in ne?Oe(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,y=(ne,re)=>{for(var ge in re||(re={}))Ze.call(re,ge)&&a(ne,ge,re[ge]);if(je)for(var ge of je(re))ae.call(re,ge)&&a(ne,ge,re[ge]);return ne},E=(ne,re)=>xe(ne,Ve(re));const b=Pe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};mt.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function Se(Ne){de(z[Ne][1])}function ce(Ne){ne(Ne)}return te.createElement(Ye.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Pe.default,{getPopupContainer:Ne=>Ne.parentNode,onChange:Se},Object.keys(z).map(Ne=>te.createElement(b,{key:Ne,value:Ne},z[Ne][0])))),te.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ge})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ge.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const Se=(0,te.useRef)(),[ce,Ne]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let Re=function(yt){const Ut=yt.getValue();re&&re(Ut)};return ce.on("change",Re),()=>{ce.off("change",Re)}}},[ce,re]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",ge)},[ce,ge]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(Se.current&&!ce){const Re=Fe().fromTextArea(Se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));Ne(Re)}},[Se.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Se}))}},35567:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Qa}});var te=oe(67294),Pe=oe(4631),Ye=oe.n(Pe),Ge=oe(91033),fe=oe(71749),Fe=oe(57341),me=oe(82801),Me=oe(88386),Oe=oe(49047),xe=oe(80785),Ve=oe(85725),je=({value:we="",className:Be,showTextOnly:ye,showLines:vt,style:Rt={}})=>{const jt=(0,te.useMemo)(()=>"",[we]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:jt}}))},Ze=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(we,Be,ye)=>Be in we?ae(we,Be,{enumerable:!0,configurable:!0,writable:!0,value:ye}):we[Be]=ye,ee=(we,Be)=>{for(var ye in Be||(Be={}))b.call(Be,ye)&&z(we,ye,Be[ye]);if(E)for(var ye of E(Be))x.call(Be,ye)&&z(we,ye,Be[ye]);return we},ne=(we,Be)=>a(we,y(Be));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 ge({onActionCallback:we,title:Be,icon:ye,actionName:vt,className:Rt="",children:jt}){function kn(){we(vt)}return Ze.createElement("a",{title:Be,className:Rt,onClick:kn},Ze.createElement("i",{className:`${ye}`}),jt)}var de=({watch:we,showNullButton:Be,showNullProgramButton:ye,onActionCallback:vt,fullScreen:Rt,insertTemp:jt,hidetoolBar:kn,extraUse:Sn})=>{const Bn=[...re,{title:`${we?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${we?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ze.createElement("ul",{className:"markdown-toolbar-container"},!kn&&Bn.map((na,Ia)=>Ze.createElement("li",{key:Ia},na.actionName?Ze.createElement(ge,ne(ee({},na),{onActionCallback:vt})):Ze.createElement("span",{className:"v-line"}))),Be?Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:vt},Ze.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ye?Ze.createElement(Ze.Fragment,null,Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:vt},Ze.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:vt},Ze.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,jt&&Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${jt}`,onActionCallback:vt},Ze.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Sn&&Ze.createElement("li",null,Sn),Ze.createElement("li",{className:"btn-full-screen"},Ze.createElement(ge,{icon:`${Rt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Rt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:vt})))},Se=oe(76621),ce=oe(22150),Ne=oe(69677),Re=oe(71577),yt=Object.defineProperty,Ut=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,gt=(we,Be,ye)=>Be in we?yt(we,Be,{enumerable:!0,configurable:!0,writable:!0,value:ye}):we[Be]=ye,ct=(we,Be)=>{for(var ye in Be||(Be={}))We.call(Be,ye)&>(we,ye,Be[ye]);if(Ce)for(var ye of Ce(Be))Ie.call(Be,ye)&>(we,ye,Be[ye]);return we},Qe=(we,Be)=>Ut(we,dn(Be));const tt={labelCol:{span:4},wrapperCol:{span:20}};var st=({callback:we,onCancel:Be})=>{function ye(vt){we(vt)}return te.createElement(ce.default,Qe(ct({},tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ye,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Ne.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Ne.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Re.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},Mt=oe(57444),pe=oe(70859),Te=oe(14446),rt=oe(71230),xt=oe(63205),nt=oe(67294),dt=({callback:we,onCancel:Be})=>{const ye=document.createElement("canvas"),vt=ye.getContext("2d");ye.width=1e3,ye.height=800,vt.fillStyle="#ffffff",vt.fillRect(0,0,ye.width,ye.height);const Rt=ye.toDataURL("image/png");return nt.createElement(Te.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nt.createElement(rt.Z,{style:{height:"100vh"}},nt.createElement(xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Rt,visible:!0,title:String(Date.now())},onOk:jt=>{we({src:jt.url})},onClose:Be})))},ue=oe(23495);function it(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(it,go.CommandHandler),it.prototype.canAlignSelection=function(){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<2)},it.prototype.alignLeft=function(){var we=this.diagram;we.startTransaction("aligning left");var Be=1/0;we.selection.each(function(ye){ye instanceof go.Link||(Be=Math.min(ye.position.x,Be))}),we.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(Be,ye.position.y))}),we.commitTransaction("aligning left")},it.prototype.alignRight=function(){var we=this.diagram;we.startTransaction("aligning right");var Be=-1/0;we.selection.each(function(ye){if(!(ye instanceof go.Link)){var vt=ye.actualBounds.x+ye.actualBounds.width;Be=Math.max(vt,Be)}}),we.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(Be-ye.actualBounds.width,ye.position.y))}),we.commitTransaction("aligning right")},it.prototype.alignTop=function(){var we=this.diagram;we.startTransaction("alignTop");var Be=1/0;we.selection.each(function(ye){ye instanceof go.Link||(Be=Math.min(ye.position.y,Be))}),we.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.position.x,Be))}),we.commitTransaction("alignTop")},it.prototype.alignBottom=function(){var we=this.diagram;we.startTransaction("aligning bottom");var Be=-1/0;we.selection.each(function(ye){if(!(ye instanceof go.Link)){var vt=ye.actualBounds.y+ye.actualBounds.height;Be=Math.max(vt,Be)}}),we.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.actualBounds.x,Be-ye.actualBounds.height))}),we.commitTransaction("aligning bottom")},it.prototype.alignCenterX=function(){var we=this.diagram,Be=we.selection.first();if(Be){we.startTransaction("aligning Center X");var ye=Be.actualBounds.x+Be.actualBounds.width/2;we.selection.each(function(vt){vt instanceof go.Link||vt.move(new go.Point(ye-vt.actualBounds.width/2,vt.actualBounds.y))}),we.commitTransaction("aligning Center X")}},it.prototype.alignCenterY=function(){var we=this.diagram,Be=we.selection.first();if(Be){we.startTransaction("aligning Center Y");var ye=Be.actualBounds.y+Be.actualBounds.height/2;we.selection.each(function(vt){vt instanceof go.Link||vt.move(new go.Point(vt.actualBounds.x,ye-vt.actualBounds.height/2))}),we.commitTransaction("aligning Center Y")}},it.prototype.alignColumn=function(we){var Be=this.diagram;Be.startTransaction("align Column"),we===void 0&&(we=0),we=parseFloat(we);var ye=new Array;Be.selection.each(function(Sn){Sn instanceof go.Link||ye.push(Sn)});for(var vt=0;vt<ye.length-1;vt++){var Rt=ye[vt],jt=Rt.actualBounds.y+Rt.actualBounds.height+we,kn=ye[vt+1];kn.move(new go.Point(Rt.actualBounds.x,jt))}Be.commitTransaction("align Column")},it.prototype.alignRow=function(we){we===void 0&&(we=0),we=parseFloat(we);var Be=this.diagram;Be.startTransaction("align Row");var ye=new Array;Be.selection.each(function(Sn){Sn instanceof go.Link||ye.push(Sn)});for(var vt=0;vt<ye.length-1;vt++){var Rt=ye[vt],jt=Rt.actualBounds.x+Rt.actualBounds.width+we,kn=ye[vt+1];kn.move(new go.Point(jt,Rt.actualBounds.y))}Be.commitTransaction("align Row")},it.prototype.canRotate=function(we){var Be=this.diagram;return!(Be===null||Be.isReadOnly||Be.isModelReadOnly||Be.selection.count<1)},it.prototype.rotate=function(we){we===void 0&&(we=90);var Be=this.diagram;Be.startTransaction("rotate "+we.toString());var Be=this.diagram;Be.selection.each(function(ye){ye instanceof go.Link||ye instanceof go.Group||(ye.angle+=we)}),Be.commitTransaction("rotate "+we.toString())},it.prototype.pullToFront=function(){var we=this.diagram;we.startTransaction("pullToFront");var Be=new go.Map;we.selection.each(function(ye){Be.set(ye.layer,0)}),Be.iteratorKeys.each(function(ye){var vt=0;ye.parts.each(function(Rt){if(!Rt.isSelected){var jt=Rt.zOrder;isNaN(jt)?Rt.zOrder=0:vt=Math.max(vt,jt)}}),Be.set(ye,vt)}),we.selection.each(function(ye){it._assignZOrder(ye,Be.get(ye.layer)+1)}),we.commitTransaction("pullToFront")},it.prototype.pushToBack=function(){var we=this.diagram;we.startTransaction("pushToBack");var Be=new go.Map;we.selection.each(function(ye){Be.set(ye.layer,0)}),Be.iteratorKeys.each(function(ye){var vt=0;ye.parts.each(function(Rt){if(!Rt.isSelected){var jt=Rt.zOrder;isNaN(jt)?Rt.zOrder=0:vt=Math.min(vt,jt)}}),Be.set(ye,vt)}),we.selection.each(function(ye){it._assignZOrder(ye,Be.get(ye.layer)-1-it._findGroupDepth(ye))}),we.commitTransaction("pushToBack")},it._assignZOrder=function(we,Be,ye){ye===void 0&&(ye=we),we.layer===ye.layer&&(we.zOrder=Be),we instanceof go.Group&&we.memberParts.each(function(vt){it._assignZOrder(vt,Be+1,ye)})},it._findGroupDepth=function(we){if(we instanceof go.Group){var Be=0;return we.memberParts.each(function(ye){Be=Math.max(Be,it._findGroupDepth(ye))}),Be+1}else return 0},it.prototype.doKeyDown=function(){var we=this.diagram;if(we!==null){var Be=we.lastInput;if(Be.key==="Up"||Be.key==="Down"||Be.key==="Left"||Be.key==="Right"){var ye=this.arrowKeyBehavior;if(ye==="none")return;if(ye==="select"){this._arrowKeySelect();return}else if(ye==="move"){this._arrowKeyMove();return}else if(ye==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},it.prototype._getAllParts=function(){var we=new Array;return this.diagram.nodes.each(function(Be){we.push(Be)}),this.diagram.parts.each(function(Be){we.push(Be)}),we},it.prototype._arrowKeyMove=function(){var we=this.diagram,Be=we.lastInput,ye=0,vt=0;if(Be.control||Be.meta)ye=1,vt=1;else if(we.grid!==null){var Rt=we.grid.gridCellSize;vt=Rt.width,ye=Rt.height}we.startTransaction("arrowKeyMove"),we.selection.each(function(jt){Be.key==="Up"?jt.move(new go.Point(jt.actualBounds.x,jt.actualBounds.y-ye)):Be.key==="Down"?jt.move(new go.Point(jt.actualBounds.x,jt.actualBounds.y+ye)):Be.key==="Left"?jt.move(new go.Point(jt.actualBounds.x-vt,jt.actualBounds.y)):Be.key==="Right"&&jt.move(new go.Point(jt.actualBounds.x+vt,jt.actualBounds.y))}),we.commitTransaction("arrowKeyMove")},it.prototype._arrowKeySelect=function(){var we=this.diagram,Be=we.lastInput,ye=null;Be.key==="Up"?ye=this._findNearestPartTowards(270):Be.key==="Down"?ye=this._findNearestPartTowards(90):Be.key==="Left"?ye=this._findNearestPartTowards(180):Be.key==="Right"&&(ye=this._findNearestPartTowards(0)),ye!==null&&(Be.shift?ye.isSelected=!0:Be.control||Be.meta?ye.isSelected=!ye.isSelected:we.select(ye))},it.prototype._findNearestPartTowards=function(we){var Be=this.diagram.selection.first();if(Be===null)return null;for(var ye=Be.actualBounds.center,vt=this._getAllParts(),Rt=1/0,jt=Be,kn=0;kn<vt.length;kn++){var Sn=vt[kn];if(Sn!==Be&&Sn.canSelect()){var Bn=Sn.actualBounds.center,na=ye.directionPoint(Bn),Ia=this._angleCloseness(na,we);if(Ia<=45){var ft=ye.distanceSquaredPoint(Bn);ft*=1+Math.sin(Ia*Math.PI/180),ft<Rt&&(Rt=ft,jt=Sn)}}}return jt},it.prototype._angleCloseness=function(we,Be){return Math.min(Math.abs(Be-we),Math.min(Math.abs(Be+360-we),Math.abs(Be-360-we)))},it.prototype._arrowKeyTree=function(){var we=this.diagram,Be=we.selection.first();if(Be instanceof go.Node){var ye=we.lastInput;if(ye.key==="Right"){if(!Be.isTreeLeaf)if(!Be.isTreeExpanded)we.commandHandler.canExpandTree(Be)&&we.commandHandler.expandTree(Be);else{var vt=this._sortTreeChildrenByY(Be).first();vt!==null&&we.select(vt)}}else if(ye.key==="Left")if(!Be.isTreeLeaf&&Be.isTreeExpanded)we.commandHandler.canCollapseTree(Be)&&we.commandHandler.collapseTree(Be);else{var Rt=Be.findTreeParentNode();Rt!==null&&we.select(Rt)}else if(ye.key==="Up"){var Rt=Be.findTreeParentNode();if(Rt!==null){var jt=this._sortTreeChildrenByY(Rt),kn=jt.indexOf(Be);if(kn>0){for(var Sn=jt.elt(kn-1);Sn!==null&&Sn.isTreeExpanded&&!Sn.isTreeLeaf;){var Bn=this._sortTreeChildrenByY(Sn);Sn=Bn.last()}Sn!==null&&we.select(Sn)}else we.select(Rt)}}else if(ye.key==="Down")if(Be.isTreeExpanded&&!Be.isTreeLeaf){var vt=this._sortTreeChildrenByY(Be).first();vt!==null&&we.select(vt)}else for(;Be!==null;){var Rt=Be.findTreeParentNode();if(Rt===null)break;var jt=this._sortTreeChildrenByY(Rt),kn=jt.indexOf(Be);if(kn<jt.length-1){we.select(jt.elt(kn+1));break}else Be=Rt}var na=we.selection.first();na!==null&&we.scrollToRect(na.actualBounds)}},it.prototype._sortTreeChildrenByY=function(we){var Be=new go.List().addAll(we.findTreeChildrenNodes());return Be.sort(function(ye,vt){var Rt=ye.location,jt=vt.location;return Rt.y<jt.y?-1:Rt.y>jt.y?1:Rt.x<jt.x?-1:Rt.x>jt.x?1:0}),Be},it.prototype.copyToClipboard=function(we){go.CommandHandler.prototype.copyToClipboard.call(this,we),this._lastPasteOffset.set(this.pasteOffset)},it.prototype.pasteFromClipboard=function(){var we=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(we,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),we},Object.defineProperty(it.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(we){if(we!=="move"&&we!=="select"&&we!=="scroll"&&we!=="tree"&&we!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+we);this._arrowKeyBehavior=we}}),Object.defineProperty(it.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(we){if(!(we instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+we);this._pasteOffset.set(we)}});var Ct=it,Kt=oe(18023),Pt=oe(15746),Ae=oe(33170),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Le=oe(67294),Je=(we,Be,ye)=>new Promise((vt,Rt)=>{var jt=Bn=>{try{Sn(ye.next(Bn))}catch(na){Rt(na)}},kn=Bn=>{try{Sn(ye.throw(Bn))}catch(na){Rt(na)}},Sn=Bn=>Bn.done?vt(Bn.value):Promise.resolve(Bn.value).then(jt,kn);Sn((ye=ye.apply(we,Be)).next())});function et({onCancel:we,callback:Be}){let ye=(0,te.useRef)(),vt=(0,te.useRef)(),Rt=(0,te.useRef)(),jt=(0,te.useRef)(!1);const kn=(0,te.useRef)(!1),[Sn,Bn]=(0,te.useState)(0);function na(){const ft=ue.bx.make,Cn={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"};ye.current=new ue.S0(vt.current,{padding:20,grid:ft(ue.s_,"Grid",ft(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ft(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:lt=>{var Bt=lt.diagram.commandHandler.addTopLevelParts(lt.diagram.selection,!0);Bt||lt.diagram.currentTool.doCancel()},commandHandler:ft(Ct),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:lt=>{var Bt=lt.subject;Bt.location=Bt.location.copy().snapToGridPoint(lt.diagram.grid.gridOrigin,lt.diagram.grid.gridCellSize),setTimeout(()=>{lt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:lt=>{var Bt=lt.subject;setTimeout(()=>{lt.diagram.commandHandler.editTextBlock()})},LinkRelinked:lt=>{var Bt=lt.parameter.part;Bt.invalidateConnectedLinks();var Yt=lt.subject;lt.diagram.toolManager.linkingTool.isForwards?Yt.toNode.invalidateConnectedLinks():Yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ye.current.nodeTemplate=ft(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),ft(ue.bn,{name:"SHAPE",fill:Cn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ft(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ft(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ye.current.nodeTemplate.toolTip=ft("ToolTip",ft(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},ft(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),ft(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function ve(lt,Bt){var Yt=(St,Pn)=>{St.handled=!0,St.diagram.model.commit(vn=>{var sa=Pn.part.adornedPart,ca=new ue.E9().setRectSpot(sa.actualBounds,lt);ca.subtract(sa.location),ca.scale(2,2),ca.x+=Math.sign(ca.x)*130,ca.y+=Math.sign(ca.y)*130,ca.add(sa.location),ca.snapToGridPoint(St.diagram.grid.gridOrigin,St.diagram.grid.gridCellSize);var fa=vn.copyNodeData(sa.data);vn.setGroupKeyForNodeData(fa,vn.getGroupKeyForNodeData(sa.data)),vn.addNodeData(fa);var Fo={from:sa.key,to:vn.getKeyForNodeData(fa)};vn.addLinkData(Fo);var to=St.diagram.findNodeForData(fa);to.location=ca,St.diagram.select(to),setTimeout(()=>{St.diagram.commandHandler.editTextBlock()},20)})};return ft(ue.bn,{figure:Bt,alignment:lt,alignmentFocus:lt.opposite(),width:lt.equals(ue.z6.Top)||lt.equals(ue.z6.Bottom)?25:18,height:lt.equals(ue.z6.Top)||lt.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:Cn.white,strokeWidth:4,mouseEnter:(St,Pn)=>Pn.fill="dodgerblue",mouseLeave:(St,Pn)=>Pn.fill="orange",isActionable:!0,click:Yt,contextClick:Yt})}function Ue(lt){return ft(ue.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:(Bt,Yt)=>Yt.fill="dodgerblue",mouseLeave:(Bt,Yt)=>Yt.fill="orange",click:(Bt,Yt)=>{Bt.diagram.commandHandler.showContextMenu(Yt.part.adornedPart)}},lt||{})}ye.current.nodeTemplate.selectionAdornmentTemplate=ft(ue.uz,"Spot",ft(ue.Vm,{padding:10}),ve(ue.z6.Top,"TriangleUp"),ve(ue.z6.Left,"TriangleLeft"),ve(ue.z6.Right,"TriangleRight"),ve(ue.z6.Bottom,"TriangleDown"),Ue({alignment:new ue.z6(.75,0)}));function ze(lt,Bt){return(Yt,St)=>{Yt.handled=!0,Yt.diagram.model.commit(Pn=>{Pn.set(St.part.adornedPart.data,lt,Bt)})}}function He(lt,Bt){return Bt||(Bt="color"),ft(ue.bn,{width:16,height:16,stroke:"lightgray",fill:lt,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.stroke="dodgerblue",mouseLeave:(Yt,St)=>St.stroke="lightgray",click:ze(Bt,lt),contextClick:ze(Bt,lt)})}function ht(){return[ft("ContextMenuButton",ft(ue.s_,"Horizontal",He(Cn.white,"fill"),He(Cn.beige,"fill"),He(Cn.extralightblue,"fill"),He(Cn.extralightred,"fill"))),ft("ContextMenuButton",ft(ue.s_,"Horizontal",He(Cn.lightgray,"fill"),He(Cn.lightgreen,"fill"),He(Cn.lightblue,"fill"),He(Cn.lightred,"fill")))]}function at(){return[ft("ContextMenuButton",ft(ue.s_,"Horizontal",He(Cn.black),He(Cn.green),He(Cn.blue),He(Cn.red))),ft("ContextMenuButton",ft(ue.s_,"Horizontal",He(Cn.white),He(Cn.magenta),He(Cn.purple),He(Cn.orange)))]}function ut(lt,Bt){return Bt||(Bt="thickness"),ft(ue.bn,"LineH",{width:16,height:16,strokeWidth:lt,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:ze(Bt,lt),contextClick:ze(Bt,lt)})}function qe(lt,Bt){return Bt||(Bt="dash"),ft(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:lt,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:ze(Bt,lt),contextClick:ze(Bt,lt)})}function Jt(){return[ft("ContextMenuButton",ft(ue.s_,"Horizontal",ut(1),ut(2),ut(3),ut(4))),ft("ContextMenuButton",ft(ue.s_,"Horizontal",qe(null),qe([2,4]),qe([4,4])))]}function Gt(lt,Bt){return Bt||(Bt="figure"),ft(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:lt,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.fill="dodgerblue",mouseLeave:(Yt,St)=>St.fill="lightgray",click:ze(Bt,lt),contextClick:ze(Bt,lt)})}ye.current.nodeTemplate.contextMenu=ft("ContextMenu",ft("ContextMenuButton",ft(ue.s_,"Horizontal",Gt("Rectangle"),Gt("RoundedRectangle"),Gt("Ellipse"),Gt("Diamond"))),ft("ContextMenuButton",ft(ue.s_,"Horizontal",Gt("Parallelogram2"),Gt("ManualOperation"),Gt("Procedure"),Gt("Cylinder1"))),ft("ContextMenuButton",ft(ue.s_,"Horizontal",Gt("Terminator"),Gt("CreateRequest"),Gt("Document"),Gt("TriangleDown"))),ht(),at(),Jt()),ye.current.groupTemplate=ft(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(lt,Bt)=>{var Yt=Bt.addMembers(Bt.diagram.selection,!0);Yt||Bt.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),ft(ue.s_,"Auto",{name:"BODY"},ft(ue.bn,{parameter1:10,fill:Cn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ft(ue.Vm,{background:"transparent",margin:20})),ft(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),ye.current.groupTemplate.selectionAdornmentTemplate=ft(ue.uz,"Spot",ft(ue.s_,"Auto",ft(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ft(ue.Vm,{margin:1.5})),Ue({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),ye.current.groupTemplate.contextMenu=ft("ContextMenu",ht(),at(),Jt()),ye.current.linkTemplate=ft(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",lt=>lt>=1?10:0),new ue.KX("toShortLength","dir",lt=>lt>=1?10:0),new ue.KX("points").makeTwoWay(),ft(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ft(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",lt=>lt===1)),ft(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",lt=>lt>=1),new ue.KX("width","thickness",lt=>7+3*lt),new ue.KX("height","thickness",lt=>7+3*lt),new ue.KX("segmentOffset","thickness",lt=>new ue.E9(-15,4+1.5*lt))),ft(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",lt=>lt===2),new ue.KX("width","thickness",lt=>7+3*lt),new ue.KX("height","thickness",lt=>7+3*lt),new ue.KX("segmentOffset","thickness",lt=>new ue.E9(-15,4+1.5*lt))),ft(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ye.current.linkTemplate.selectionAdornmentTemplate=ft(ue.uz,ft(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:gn(2)},new ue.KX("pathPattern","thickness",gn)),Ue({alignmentFocus:new ue.z6(0,0,-6,-4)}));function gn(lt){return ft(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(lt+4).toString()+" H3"})}function yn(lt){var Bt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return lt===0?Bt="M0 0 M16 16 M0 8 L16 8":lt===2&&(Bt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ft(ue.bn,{geometryString:Bt,margin:2,background:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:ze("dir",lt),contextClick:ze("dir",lt)})}function $n(lt){var Bt=(Yt,St)=>{Yt.handled=!0,Yt.diagram.model.commit(Pn=>{var vn=St.part.adornedPart;Pn.set(vn.data,lt?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(lt?vn.toNode:vn.fromNode).invalidateConnectedLinks()})};return ft(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:Bt,contextClick:Bt})}function Ke(lt,Bt){var Yt=0,St=ue.z6.RightSide;lt.equals(ue.z6.Top)?(Yt=270,St=ue.z6.TopSide):lt.equals(ue.z6.Left)?(Yt=180,St=ue.z6.LeftSide):lt.equals(ue.z6.Bottom)&&(Yt=90,St=ue.z6.BottomSide),Bt||(Yt-=180);var Pn=(vn,sa)=>{vn.handled=!0,vn.diagram.model.commit(ca=>{var fa=sa.part.adornedPart;ca.set(fa.data,Bt?"toSpot":"fromSpot",ue.z6.stringify(St)),(Bt?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return ft(ue.bn,{alignment:lt,alignmentFocus:lt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Yt,background:"transparent",mouseEnter:(vn,sa)=>sa.background="dodgerblue",mouseLeave:(vn,sa)=>sa.background="transparent",click:Pn,contextClick:Pn})}ye.current.linkTemplate.contextMenu=ft("ContextMenu",at(),Jt(),ft("ContextMenuButton",ft(ue.s_,"Horizontal",yn(0),yn(1),yn(2))),ft("ContextMenuButton",ft(ue.s_,"Horizontal",ft(ue.s_,"Spot",$n(!1),Ke(ue.z6.Top,!1),Ke(ue.z6.Left,!1),Ke(ue.z6.Right,!1),Ke(ue.z6.Bottom,!1)),ft(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},$n(!0),Ke(ue.z6.Top,!0),Ke(ue.z6.Left,!0),Ke(ue.z6.Right,!0),Ke(ue.z6.Bottom,!0)))));const $a=`{ "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 ba=["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 Da(lt){return console.log("shapeName:",lt),ba.indexOf(lt)>=0}var aa=new ue.YI(Rt.current,{maxSelectionCount:1,linkTemplate:ft(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:ft(ue.uz,"Link",{locationSpot:ue.z6.Center},ft(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ft(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),ft(ue.bn,{isPanelMain:!0,strokeWidth:2}),ft(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(lt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:lt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ye.current.addDiagramListener("TextEdited",function(lt){var Bt;const Yt=lt.subject.part;var St=(Bt=document.activeElement)==null?void 0:Bt.value;typeof St=="string"&&St.trim()===""&&ye.current.model.commit(function(Pn){Pn.set(Yt.data,"text","\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}),aa.nodeTemplate=ft(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),ft(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),ft(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{ye.current.grid=ft(ue.s_,"Grid",ft(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ft(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ye.current.grid.visible=!0,ye.current.grid.gridCellStroke="darkgray",ye.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ye.current,ye.current}const Ia=()=>Je(this,null,function*(){var ft=ye.current.makeImage();const Cn=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ft.src}});Be({src:Cn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{na()},500),Bn(Sn+1),()=>{ye.current=null}),[]),Le.createElement("div",{ref:kn,className:jt.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},Le.createElement(Te.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Sn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Le.createElement(rt.Z,null,Le.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Le.createElement(Pt.Z,{onClick:()=>{var ft,Cn,ve=ye.current.selection.first();if(jt.current=!jt.current,document.activeElement&&ve){let Ue=(Cn=(ft=document.activeElement)==null?void 0:ft.value)==null?void 0:Cn.trim();typeof Ue=="string"&&ye.current.model.commit(function(ze){ze.set(ve.data,"text",Ue||"\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}Bn(Sn+1)}},Le.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:we},Le.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},Le.createElement("div",{style:{display:"flex",height:"100%"}},Le.createElement("div",{style:{width:"300px",height:"100%"}},Le.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Le.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:Rt})),Le.createElement("div",{style:{flex:1,position:"relative"}},Le.createElement("div",{ref:vt,style:{height:"80vh"}}))),Le.createElement("div",{className:"tr"},Le.createElement(Re.ZP,{size:"large",onClick:Ia,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var bt=et,Dt=oe(78045),Tt=oe(31795);const qt=Dt.ZP.Group,ln={margin:"0 8px"};var sn=({callback:we,onCancel:Be})=>{function ye(vt){we(vt)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ye},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:ln},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:ln},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Tt.Z,null)),te.createElement("span",{style:ln},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Tt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:ln},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(qt,null,te.createElement(Dt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Dt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Dt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Dt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Re.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},zt=oe(47897),Ot=oe(61016),Qt=oe.n(Ot),xn=(0,te.forwardRef)(({use3d:we,width:Be,height:ye,callback:vt,showSaveButton:Rt},jt)=>{const kn=(0,te.useRef)(),Sn=(0,te.useRef)(),[Bn,na]=(0,te.useState)(!1),Ia=(0,te.useRef)({id:kn,appName:"graphing",width:Be||1e3,height:ye||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Sn.current=new(Qt())(Ia.current,!0),window.onload=function(){Sn.current.inject("applet_container")}},[]);const ft=()=>{var Cn=window.ggbApplet.getPNGBase64(1,!0,72);return vt&&vt(Cn),Cn};return(0,te.useEffect)(()=>{Ia.current.appName=Bn?"3D":"graphing",Sn.current.inject("applet_container")},[Bn]),(0,te.useEffect)(()=>{na(we)},[we]),(0,te.useImperativeHandle)(jt,()=>({getImgData:ft})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kn}),te.createElement(rt.Z,{align:"middle"},te.createElement(Pt.Z,{flex:1},te.createElement(zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:Cn=>na(Cn)})),te.createElement(Pt.Z,null,te.createElement(Re.ZP,{size:"large",onClick:ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=oe(36527),be=oe(25934),ke=oe(2453);const ot="link",Lt="upload-image",$t="add-flowchart",tn="draw-image",an="add-flowchart",kt="code-block",Xt="add-table",bn="------------",rn={default:bn,left:`:${bn}`,center:`:${bn}:`,right:`${bn}:`};var Zn=oe(99914),Kn=(we,Be,ye)=>new Promise((vt,Rt)=>{var jt=Bn=>{try{Sn(ye.next(Bn))}catch(na){Rt(na)}},kn=Bn=>{try{Sn(ye.throw(Bn))}catch(na){Rt(na)}},Sn=Bn=>Bn.done?vt(Bn.value):Promise.resolve(Bn.value).then(jt,kn);Sn((ye=ye.apply(we,Be)).next())});function Xn(){}let la=0;const Dn=1e4,An="\u2581",Yn="@\u2581\u2581@",ua="@\u2581@",ma=`
|
|
**\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`,Rn=["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 Pa(we){return/^\d+$/.test(we)?`${we}px`:we}const ta=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ua={[ta+"-B"]:"bold",[ta+"-I"]:"italic"},eo={[ot]:"\u6DFB\u52A0\u94FE\u63A5",[kt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Lt]:"\u6DFB\u52A0\u56FE\u7247",[tn]:"\u6DFB\u52A0\u753B\u56FE",[$t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qa=({defaultValue:we="",onChange:Be,width:ye="100%",height:vt=400,miniToolbar:Rt=!1,isFocus:jt=!1,watch:kn,insertTemp:Sn,mode:Bn="markdown",id:na="markdown-editor-id",showResizeBar:Ia=!1,noStorage:ft=!1,showNullButton:Cn=!1,showNullProgramButton:ve=!1,hidetoolBar:Ue=!1,fullScreen:ze=!1,onBlur:He,onCMBeforeChange:ht,onFullScreen:at,className:ut="",disablePaste:qe=!1,disabled:Jt=!1,disabledFill:Gt=!1,placeholder:gn="",values:yn="",extraUse:$n})=>{const[Ke,$a]=(0,te.useState)(null),[ba,Da]=(0,te.useState)(we),[aa,lt]=(0,te.useState)(kn),[Bt,Yt]=(0,te.useState)(ze),[St,Pn]=(0,te.useState)(""),[vn,sa]=(0,te.useState)(0),[ca,fa]=(0,te.useState)(vt),[Fo,to]=(0,te.useState)(!1),Io=(0,te.useRef)((0,be.Z)()),xo=(0,te.useRef)(!1),Va=(0,te.useRef)(),[va,io]=(0,te.useState)(0),[po,yo]=(0,te.useState)(0),Ka=(0,te.useRef)(),Ra=(0,te.useRef)(),fo=(0,te.useRef)(),un=(0,te.useRef)(),pa=()=>Kn(void 0,null,function*(){var Zt;const wt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Io.current}});(Zt=wt==null?void 0:wt.attachments)!=null&&Zt.length&&(console.log("cm:",Ke,Ka),wt.attachments.map(Nt=>{Nt.content_type.indexOf("image")>-1?Ke.replaceSelection(``):Nt.content_type.indexOf("video")>-1?Ke.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Nt.content_type.indexOf("pdf")>-1?Ke.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Nt.id}?type=${Nt.content_type}&disposition=inline" target="_blank">${Nt.name}</a>`):Ke.replaceSelection(`[${Nt.name}](${ENV.API_SERVER}/api/attachments/${Nt.id}?type=${Nt.content_type})`)}))});(0,te.useEffect)(()=>{const Zt=window.scrollY||window.pageYOffset;Da(yn),Ke==null||Ke.setValue(yn),window.scrollTo(0,Zt)},[yn]),(0,te.useEffect)(()=>{at==null||at(Bt)},[Bt]),(0,te.useEffect)(()=>{if(Ka.current){let Zt=function(Nt,It){var Gn;if(qe){It.preventDefault();return}const Sa=It.clipboardData;if(Sa){const ka=Sa.types.toString(),Oa=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(It.preventDefault(),Bn=="stex")return;try{let xa=Oa[1];((Gn=Oa[0])==null?void 0:Gn.kind)==="file"&&(xa=Oa[0]);const nn=xa.getAsFile(),Fn=nn.name.split(".").pop();(0,pe.I)(nn,zn=>{var En,Wn,Ba;zn.id?((En=nn==null?void 0:nn.type)==null?void 0:En.indexOf("image"))>-1?wt.replaceSelection(`<img width="100%" src="/api/attachments/${zn.id}?type=${zn.content_type})" alt="" />`):((Wn=nn==null?void 0:nn.type)==null?void 0:Wn.indexOf("video"))>-1?wt.replaceSelection(`<video width="100%" controls src="/api/attachments/${zn.id}"></video>`):((Ba=nn==null?void 0:nn.type)==null?void 0:Ba.indexOf("pdf"))>-1?wt.replaceSelection(`<a href="/api/attachments/${zn.id}?type=${nn.type}&disposition=inline" target="_blank">${nn.name}</a>`):Rn.includes(Fn)?wt.replaceSelection(`<a href="/api/attachments/${zn.id}?type=office&disposition=inline" target="_blank">${nn.name}</a>`):wt.replaceSelection(`[${nn.name}](/api/attachments/${zn.id}?type=${zn.content_type})`):(zn==null?void 0:zn.status)===401&&(ke.ZP.warning((zn==null?void 0:zn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){ke.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wt=Ye().fromTextArea(Ka.current,{mode:Bn,lineNumbers:!Rt,lineWrapping:!0,value:we,autoCloseTags:!ve,autoCloseBrackets:!0});return wt.on("keyup",function(Nt,It){It.keyCode===8&&(Nt.getValue()==""?wt.setOption("placeholder",gn):wt.setOption("placeholder",null))}),wt.on("keydown",function(Nt,It){if(It.keyCode===8){var Gn=Ma(Nt);Gn&&It.preventDefault()}}),jt&&wt.focus(),wt.on("paste",Zt),wt.on("dragleave",function(Nt,It){Ra.current.classList.remove("mouse-hover-md")}),Jt&&wt.on("beforeChange",function(Nt,It){(It.origin==="paste"||It.origin==="+input")&&It.cancel()}),$a(wt),()=>{wt.off("paste",Zt)}}},[]);const Fa=(0,te.useCallback)(()=>{if(Ra.current)try{}catch(Zt){console.log(Zt,"---- to set md editor body height")}},[ca,Ra,Bt]);(0,te.useEffect)(()=>{function Zt(){let wt=new Ge.Z(Nt=>{for(let It of Nt)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&(Fa(),Ke.setSize("100%","100%"),Ke.refresh())});return wt.observe(Ka.current.parentElement),wt}if(Ke){const wt=Zt();return()=>{var Nt,It;(Nt=Ka.current)!=null&&Nt.parentElement&&wt.unobserve((It=Ka.current)==null?void 0:It.parentElement)}}},[Ke,Fa]),(0,te.useEffect)(()=>{if(Ke){let Zt=[];for(const[wt,Nt]of Object.entries(Ua)){let It={[wt]:()=>{Ja(Nt)}};Zt.push(It),Ke.addKeyMap(It)}return Va.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Va.current);for(let wt of Zt)Ke.removeKeyMap(wt)}}},[Ke]),(0,te.useEffect)(()=>{ze!==Bt&&Yt(ze)},[ze]),(0,Zn.Z)(()=>{if(!ft&&vn>0){let Zt=new Date().getTime(),wt=window.sessionStorage.getItem(na);Zt>=vn+Dn&&(!wt||wt!==ba)&&(window.sessionStorage.setItem(na,ba),to(!0))}},Dn),(0,te.useEffect)(()=>{lt(kn)},[Ke,kn]),(0,te.useEffect)(()=>{Ke&&jt&&Ke.focus()},[Ke,jt]),(0,te.useEffect)(()=>{if(aa&&Ke){let Zt=function(Nt){let It=Nt.target;if(un.current){let Gn=It.scrollTop/It.scrollHeight;un.current.scrollTop=un.current.scrollHeight*Gn}};const wt=Ke.getScrollerElement();return wt.addEventListener("scroll",Zt),()=>{wt.removeEventListener("scroll",Zt)}}},[Ke,aa]),(0,te.useEffect)(()=>{if(Ke&&ht){let Zt=function(wt,Nt){ht(wt,Nt)};return Ke.on("beforeChange",Zt),()=>{Ke.off("beforeChange",Zt)}}},[Ke,ht]),(0,te.useEffect)(()=>{if(Ke&&He){let Zt=function(){He(Ke.getValue())};return Ke.on("blur",Zt),()=>{Ke.off("blur",Zt)}}},[Ke,He]);function Ma(Zt,wt){var Nt=Zt.getDoc(),It=Nt.getCursor(),Gn=Nt.getLine(It.line),Sa=Gn.charAt(It.ch-1),ka=Gn.lastIndexOf("@\u2581@",It.ch),Oa=Gn.lastIndexOf("@\u2581\u2581@",It.ch),xa=ka>Oa?ka:Oa,nn=ka>Oa?3:4;if(Yn.indexOf(Sa)===-1)return null;if(console.log("change1:",wt,Zt,Gn,It,xa,ka,Oa,Sa),xa>=0&&It.ch-xa<5){var Fn=xa+nn;return Nt.replaceRange("",{line:It.line,ch:xa},{line:It.line,ch:Fn}),{line:It.line,ch:Fn}}return null}(0,te.useEffect)(()=>{if(Ke){let Zt=function(wt,Nt){const It=wt.getValue();Da(It),sa(new Date().getTime()),wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Be&&(ve?Be(It,Qo(It)):Be(It))};return Ke.on("change",Zt),()=>{Ke.off("change",Zt)}}},[Ke,Be]),(0,te.useEffect)(()=>{if(Ke)if(we==null)Ke.setValue(""),Da("");else{const Zt=window.scrollY||window.pageYOffset;we!==Ke.getValue()&&(Ke.setValue(we),Da(we),Ke.setCursor(Jt?1:Ke.lineCount(),0),window.scrollTo(0,Zt))}},[Ke,we]);const Ja=(0,te.useCallback)(Zt=>{const wt=Ke.getCursor(),Nt=Ke.getSelection();let It=Nt.split(`
|
|
`);switch(Zt){case"bold":return Ke.replaceSelection("**"+Nt+"**"),Nt===""&&Ke.setCursor(wt.line,wt.ch+2),Ke.focus();case"italic":return Ke.replaceSelection("*"+Nt+"*"),Nt===""&&Ke.setCursor(wt.line,wt.ch+1),Ke.focus();case"code":return Ke.replaceSelection("`"+Nt+"`"),Nt===""&&Ke.setCursor(wt.line,wt.ch+1),Ke.focus();case"inline-latex":return Pn("inline-latex"),Ke.focus();case"latex":return Ke.replaceSelection("```latex\n"+Nt+"\n```"),Ke.setCursor(wt.line+1,Nt.length+1),Ke.focus();case"line-break":return Ke.replaceSelection(`<br/>
|
|
`),Ke.focus();case"list-ul":return Nt===""?Ke.replaceSelection("- "+Nt):Ke.replaceSelection(It.map(Gn=>Gn===""?"":`- ${Gn}`).join(`
|
|
`)),Ke.focus();case"list-ol":return Nt===""?Ke.replaceSelection("1. "+Nt):Ke.replaceSelection(It.map((Gn,Sa)=>Gn===""?"":`${Sa+1}. ${Gn}`).join(`
|
|
`)),Ke.focus();case"add-null-ch":return Nt===""&&Ke.setCursor(wt.line,wt.ch),Ke.replaceSelection(An),Ke.focus();case"add-signal":return Nt===""&&Ke.setCursor(wt.line,wt.ch),Ke.replaceSelection(ua),Ke.focus();case"add-multiple":return Nt===""&&Ke.setCursor(wt.line,wt.ch),Ke.replaceSelection(Yn),Ke.focus();case"inster-template-1":return Nt===""&&Ke.setCursor(wt.line,wt.ch),Ke.replaceSelection(ma),Ke.focus();case"eraser":return Ke.setValue(""),Ke.focus();case"trigger-watch":return lt(!aa),Ke.focus();case"trigger-full-screen":return Yt(!Bt),Ke.focus();case ot:Pn(ot);return;case kt:Pn(kt);return;case Lt:Pn(Lt);return;case tn:Pn(tn);return;case"maths-latex":Pn("maths-latex");return;case $t:Pn($t);return;case Xt:Pn(Xt);return;default:throw new Error}},[Ke,aa,Bt]),La=(0,te.useCallback)((Zt,wt)=>{var Nt,It,Gn,Sa,ka,Oa;switch(Pn(""),St){case ot:const{title:En,link:Wn}=Zt;return Ke.replaceSelection(`[${En}](${Wn})`),Ke.focus();case kt:const{language:Ba,content:bo}=Zt;return Ke.replaceSelection(["```"+Ba,bo,"```"].join(`
|
|
`)),Ke.focus();case"maths-latex":for(var xa=atob(Zt),nn=new Uint8Array(xa.length),Fn=0;Fn<xa.length;Fn++)nn[Fn]=xa.charCodeAt(Fn);var zn=new Blob([nn],{type:"image/png"});(0,pe.I)(zn,lo=>{lo.id?Ke.replaceSelection(``):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ke.replaceSelection("`$$"+Zt+"$$`");break;case Lt:case tn:case an:const{src:ao,alt:Lo}=Zt,Na=wt,Tr=(Gn=(It=(Nt=Na==null?void 0:Na.name)==null?void 0:Nt.split("."))==null?void 0:It.pop)==null?void 0:Gn.call(It);return((Sa=Na==null?void 0:Na.type)==null?void 0:Sa.indexOf("image"))>-1||!(Na!=null&&Na.type)?Na.align||Na.width?Ke.replaceSelection(`<p style="text-align:${Na.align||"initial"}"><img width="${Na.width?Na.width+"%":"initial"}" src="${ao}" alt="${Lo||""}" /></p>`):Ke.replaceSelection(`<img width="100%" src="${ao}" alt="${Lo||""}" />`):((ka=Na==null?void 0:Na.type)==null?void 0:ka.indexOf("video"))>-1?Ke.replaceSelection(`<video width="100%" controls src="${ao}"></video>`):((Oa=Na==null?void 0:Na.type)==null?void 0:Oa.indexOf("pdf"))>-1?Ke.replaceSelection(`<a href="${ao}?type=${Na.type}&disposition=inline" target="_blank">${Na.name}</a>`):Rn.includes(Tr)?Ke.replaceSelection(`<a href="${ao}?type=office&disposition=inline" target="_blank">${Na.name}</a>`):Ke.replaceSelection(`[${Na.name}](${ao})`),Ke.focus();case Xt:const{row:Gr,col:cr,align:Er}=Zt;let qo=`
|
|
`;for(let lo=0;lo<Gr;lo++){let Ir=[],fr=[];for(let Dr=0;Dr<cr;Dr++)lo===1&&fr.push(rn[Er]),Ir.push(" ");lo===1&&(qo+=`| ${fr.join(" | ")} |
|
|
`),qo+=`| ${Ir.join(cr===1?"":" | ")} |
|
|
`}return Ke.replaceSelection(qo+`
|
|
`),Ke.focus();default:throw new Error}},[Ke,St]),Wo=(0,te.useMemo)(()=>{switch(St){case ot:return te.createElement(st,{callback:La,onCancel:wa});case kt:return te.createElement(Mt.Z,{callback:La,onCancel:wa});case Lt:return te.createElement(pe.Z,{callback:La,onCancel:wa});case $t:return te.createElement(bt,{callback:La,onCancel:wa});case Xt:return te.createElement(sn,{callback:La,onCancel:wa});case"maths-latex":return te.createElement(xn,{showSaveButton:!0,callback:La});case"inline-latex":return te.createElement(pn.Z,{showSaveButton:!0,callback:La});default:return null}},[St]);function wa(){Pn("")}(0,te.useEffect)(()=>{if(fo.current){let Zt=function(ka){Gn=!0,Sa=ka.pageY},wt=function(){Gn=!1},Nt=function(ka){if(Gn){let Oa=ka.pageY-Sa;Oa<0&&(Oa=0),Oa>300&&(Oa=300);let xa=vt+Oa+"px";fa(xa)}},It=fo.current,Gn=!1,Sa=0;return It.addEventListener("mousedown",Zt),document.addEventListener("mousemove",Nt),document.addEventListener("mouseup",wt),()=>{It.removeEventListener("mousedown",Zt),document.removeEventListener("mousemove",Nt),document.removeEventListener("mouseup",wt)}}},[Ke,fo]),(0,te.useEffect)(()=>{fa(vt)},[vt]);const Qn=Pa(ye),Jn=Pa(ca),no={width:Qn,height:Jn},Do=(0,te.useMemo)(()=>{if(vn){let Zt=new Date(vn),wt=Zt.getHours(),Nt=Zt.getMinutes(),It=Zt.getSeconds();return wt=wt<10?"0"+wt:wt,Nt=Nt<10?"0"+Nt:Nt,It=It<10?"0"+It:It,`${wt}:${Nt}:${It}`}return 0},[vn]),Qo=Zt=>{const wt=[];if(ve){let Nt=-1;Zt=Zt.replace(/(@▁▁@|@▁@)/g,function(It,Gn,Sa){wt.push({multiLine:It!==ua})})}return wt};function Lr(){window.sessionStorage.removeItem(na),to(!1),sa(0)}function wr(){to(!1),sa(0),Ke.setValue(window.sessionStorage.getItem(na))}(0,te.useEffect)(()=>{eo[St]&&St!==tn&&St!==$t&&setTimeout(()=>{const Zt=document.getElementsByClassName("markdown-popup-form")[0],wt=window.innerWidth/2-Zt.offsetWidth/2,Nt=window.innerHeight/2-Zt.offsetHeight/2;io(wt),yo(Nt)},0)},[St]);const Jo=Zt=>{Zt.preventDefault();const wt=Zt.clientX-va,Nt=Zt.clientY-po;document.body.onmousemove=It=>{let Gn=It.clientX-wt,Sa=It.clientY-Nt;const ka=document.getElementsByClassName("markdown-popup-form")[0],Oa=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;Gn=Math.max(0,Math.min(Gn,Oa)),Sa=Math.max(0,Math.min(Sa,xa)),mr(It.clientX,It.clientY,wt,Nt)&&(io(Gn),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(Zt,wt,Nt,It)=>{const Gn=document.body.clientHeight,Sa=document.body.clientWidth;return Zt<20&&Nt>Zt||Zt>Sa-20&&Nt<Zt||wt<20&&It>wt||wt>Gn-20&&It<wt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Ra},te.createElement("div",{className:`markdown-editor-container ${ut} ${aa?"on-preview":""} ${Rt?"mini":""} ${Bt?"full-screen":""}`,style:no},te.createElement(de,{insertTemp:Sn,watch:aa,fullScreen:Bt,showNullButton:Cn,showNullProgramButton:ve,onActionCallback:Ja,hidetoolBar:Ue,extraUse:$n}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ka,placeholder:gn})),aa?te.createElement("div",{ref:un,className:"preview-container"},Bn==="stex"&&te.createElement(je,{value:ba}),Bn!=="stex"&&te.createElement(Ve.Z,{disabledFill:Gt,showProgramFill:ve,value:ba})):null))),Ia?te.createElement("a",{ref:fo,className:"editor-resize"}):null,St===tn&&te.createElement(dt,{callback:La,onCancel:wa}),St===$t&&te.createElement(bt,{callback:La,onCancel:wa}),te.createElement(Se.Z,null,eo[St]&&St!==tn&&St!==$t?te.createElement(Te.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:va,top:po},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Jo},eo[St]),open:!0,onCancel:wa,footer:null,destroyOnClose:!0,width:St===$t?"1200px":null,height:St===$t?"80vh":null,className:"markdown-popup-form"},Wo):null))}},70859:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return ge},I:function(){return Se}});var te=oe(22150),Pe=oe(2453),Ye=oe(69677),Ge=oe(93421),fe=oe(31795),Fe=oe(78045),me=oe(71577),Me=oe(15476),Oe=oe(67294),xe=oe(52262),Ve=oe(67294),je=Object.defineProperty,Ze=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ce,Ne,Re)=>Ne in ce?je(ce,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ce[Ne]=Re,x=(ce,Ne)=>{for(var Re in Ne||(Ne={}))y.call(Ne,Re)&&b(ce,Re,Ne[Re]);if(a)for(var Re of a(Ne))E.call(Ne,Re)&&b(ce,Re,Ne[Re]);return ce},z=(ce,Ne)=>Ze(ce,ae(Ne));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ce,onCancel:Ne})=>{const[Re]=ee();let yt=(0,Oe.useRef)();function Ut(We){yt.current.width=Re.getFieldValue("width"),yt.current.align=Re.getFieldValue("align"),ce(We,yt.current)}function dn(We,Ie){if(We.status===-1){Pe.ZP.error(We.message);return}Re.setFieldsValue({src:`/api/attachments/${We.id}`,type:Ie.type})}function Ce(We){let Ie=We.target.files[0];yt.current=Ie,Se(Ie,dn)}return Ve.createElement(te.default,z(x({form:Re},re),{className:"upload-image-panel",onFinish:Ut,style:{width:470,overflow:"hidden"}}),Ve.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ve.createElement("div",{className:"flex-container"},Ve.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ve.createElement(Ye.default,{style:ne})),Ve.createElement(de,{onFileChange:Ce}))),Ve.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ve.createElement(Ye.default,{style:{width:264}})),Ve.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ve.createElement(Ge.Z,null,Ve.createElement(te.default.Item,{name:"width",style:{margin:0}},Ve.createElement(fe.Z,{style:{width:264}})),Ve.createElement("span",{className:"ml8"},"%"))),Ve.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ve.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ve.createElement("aside",null,Ve.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ve.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ve.createElement(me.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function de({onFileChange:ce}){return Ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ve.createElement("input",{type:"file",onChange:ce}))}function Se(ce,Ne){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,xe.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Re=new FormData;Re.append("editormd-image-file",ce),Re.append("file_param_name","editormd-image-file"),Re.append("byxhr","true");var yt=new window.XMLHttpRequest;yt.withCredentials=!0,yt.addEventListener("load",function(Ut){Ne(JSON.parse(Ut.target.responseText),ce)},!1),yt.addEventListener("error",function(Ut){console.error(Ut)},!1),yt.open("POST",`${Me.KI}/api/attachments.json`),yt.send(Re)}},76621:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ye}});var te=oe(67294),Pe=oe(73935);class Ye extends te.Component{constructor(fe){super(fe);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Pe.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Pe}});var te=oe(67294);function Pe(Ye,Ge){const fe=(0,te.useRef)();(0,te.useEffect)(()=>{fe.current=Ye}),(0,te.useEffect)(()=>{function Fe(){fe.current()}if(Ge!==null){let me=setInterval(Fe,Ge);return()=>clearInterval(me)}},[Ge])}},38693:function(De,mt,oe){"use strict";oe.r(mt),oe.d(mt,{default:function(){return de}});var te=oe(67294),Pe=oe(35973),Ye=oe(22150),Ge=oe(85673),fe=oe(69677),Fe=oe(71577),me=oe(35567),Me=oe(86763),Oe={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},xe=oe(65866),Ve=oe(28706),je=oe(10191),Ze=oe(33170),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Se,ce,Ne)=>ce in Se?ae(Se,ce,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Se[ce]=Ne,ee=(Se,ce)=>{for(var Ne in ce||(ce={}))b.call(ce,Ne)&&z(Se,Ne,ce[Ne]);if(E)for(var Ne of E(ce))x.call(ce,Ne)&&z(Se,Ne,ce[Ne]);return Se},ne=(Se,ce)=>a(Se,y(ce)),re=(Se,ce,Ne)=>new Promise((Re,yt)=>{var Ut=We=>{try{Ce(Ne.next(We))}catch(Ie){yt(Ie)}},dn=We=>{try{Ce(Ne.throw(We))}catch(Ie){yt(Ie)}},Ce=We=>We.done?Re(We.value):Promise.resolve(We.value).then(Ut,dn);Ce((Ne=Ne.apply(Se,ce)).next())});const ge=({shixunHomeworks:Se,newCourse:ce,globalSetting:Ne,user:Re,loading:yt,dispatch:Ut})=>{var dn,Ce,We;const Ie=(0,Pe.useParams)(),[gt]=Ye.default.useForm(),[ct,Qe]=(0,te.useState)({}),[tt,st]=(0,te.useState)(),Mt=(0,te.useRef)(),{commonHomeWorkAddDefaultData:pe}=Se;let[Te,rt]=(0,te.useState)({});(0,te.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:ue,categoryId:it}=Ie;Mt.current=Ie==null?void 0:Ie.courseId,st(!!Mt.current),Mt.current&&xt(),Ut({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:it,coursesId:ue,type:1}})},[]);const xt=()=>re(void 0,null,function*(){const ue=yield Ut({type:"newCourse/getEditCourseData",payload:{id:Mt.current}});ue&&(gt.setFieldsValue({name:ue.name}),gt.setFieldsValue({intro:ue.description}),gt.setFieldsValue({notice:ue.learning_notes}),Qe({name:ue.name,intro:ue.description,notice:ue.learning_notes}))}),nt=ue=>re(void 0,null,function*(){var it,Ct;const Kt=ee({},ct);Kt.attachment_ids&&(Kt.attachment_ids=(it=Kt==null?void 0:Kt.attachment_ids)==null?void 0:it.map(Le=>Le.response.id)),Kt.reference_attachment_ids&&(Kt.reference_attachment_ids=(Ct=Kt==null?void 0:Kt.reference_attachment_ids)==null?void 0:Ct.map(Le=>Le.response.id));const{coursesId:Pt,categoryId:Ae}=Ie,Ee=yield(0,Me.H1)(ne(ee({coursesId:Pt,category:Ae},Kt),{base_on_project:!0,type:1}));(Ee==null?void 0:Ee.status)===0&&(dt(Ee.homework_id),(0,Ve.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),Pe.history.push(`/classrooms/${Ie.coursesId}/common_homework/${Ee.homework_id}/detail`))});function dt(ue){return re(this,null,function*(){if(!(Te!=null&&Te.ec_point_ids))return;let it=yield(0,Ze.ZP)(`/api/ec_courses/${Te==null?void 0:Te.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:ue},Te)})})}return te.createElement("section",{className:Oe.bg},pe.course_name&&te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},pe.category&&te.createElement(Ge.Z,{separator:">"},te.createElement(Ge.Z.Item,null,te.createElement(Pe.Link,{to:`/classrooms/${pe.course_id}/common_homework`},pe.course_name)),te.createElement(Ge.Z.Item,null,te.createElement(Pe.Link,{to:`/classrooms/${pe.course_id}/common_homework`},pe.category.category_name)),te.createElement(Ge.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),te.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"),te.createElement(Ye.default,{form:gt,className:Oe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",gt.getFieldsValue()),Qe(ee({},gt.getFieldsValue()))},onFinish:nt},te.createElement("div",{className:Oe.fieldWrap},te.createElement(Ye.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},te.createElement(fe.default,{maxLength:60,suffix:`${((dn=ct.name)==null?void 0:dn.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),te.createElement("div",{className:Oe.mdWrap},te.createElement(Ye.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},te.createElement(me.Z,{watch:!0,defaultValue:ct.intro})),te.createElement("div",null,te.createElement(Ye.default.Item,{name:"attachment_ids"},te.createElement(xe.Z,null)))),te.createElement("div",{className:Oe.mdWrap},te.createElement(Ye.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},te.createElement(me.Z,{watch:!0,defaultValue:ct.notice})),te.createElement("div",null,te.createElement(Ye.default.Item,{name:"reference_attachment_ids"},te.createElement(xe.Z,null))))),te.createElement("div",{className:Oe.mdWrap,style:{display:(Ce=Ne==null?void 0:Ne.setting)!=null&&Ce.hide_ec?"none":(We=Re.userInfo.course)!=null&&We.is_openengineering?"":"none"}},te.createElement(je.Z,{setitem:ue=>rt(ee({},ue))})),te.createElement("div",{className:Oe.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(Ye.default.Item,null,te.createElement(Fe.ZP,{size:"middle",type:"primary",className:`${Oe.button} mr20`,htmlType:"submit",onClick:()=>{gt.submit()},loading:yt["newCourse/editCourse"]||yt["newCourse/submitCourse"]},"\u63D0\u4EA4"),te.createElement(Fe.ZP,{size:"middle",type:"primary",ghost:!0,className:Oe.button,onClick:()=>Pe.history.push(`/classrooms/${Ie.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var de=(0,Pe.connect)(({shixunHomeworks:Se,newCourse:ce,loading:Ne,user:Re,globalSetting:yt})=>({shixunHomeworks:Se,newCourse:ce,user:Re,globalSetting:yt,loading:Ne.effects}))(ge)},4440:function(De,mt,oe){"use strict";oe.d(mt,{$J:function(){return Ye},JZ:function(){return fe},bN:function(){return me},jP:function(){return Fe},rO:function(){return Ge}});var te=oe(33170),Pe=(Me,Oe,xe)=>new Promise((Ve,je)=>{var Ze=y=>{try{a(xe.next(y))}catch(E){je(E)}},ae=y=>{try{a(xe.throw(y))}catch(E){je(E)}},a=y=>y.done?Ve(y.value):Promise.resolve(y.value).then(Ze,ae);a((xe=xe.apply(Me,Oe)).next())});function Ye(Me){return(0,te.U2)(`libraries/${Me}.json`)}function Ge(Me){return(0,te.U2)("library_tags.json",Me)}function fe(Me){return Pe(this,null,function*(){return(yield(0,te.IV)(`attachments/${Me}.json`)).status===0})}function Fe(Me){return(0,te.v_)("libraries.json",Me)}function me(Me,Oe){return(0,te.gz)(`libraries/${Me}.json`,Oe)}},57838:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Pe}});var te=oe(67294);function Pe(){const[,Ye]=te.useReducer(Ge=>Ge+1,0);return Ye}},85673:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return dn}});var te=oe(94184),Pe=oe.n(te),Ye=oe(37419),Ge=oe(1337),fe=oe(67294),Fe=oe(96159),me=oe(53124),Me=oe(42922),Oe=oe(56153);const xe=Ce=>{let{children:We}=Ce;const{getPrefixCls:Ie}=fe.useContext(me.E_),gt=Ie("breadcrumb");return fe.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},We===""?We:We||"/")};xe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ve=xe,je=function(Ce,We){var Ie={};for(var gt in Ce)Object.prototype.hasOwnProperty.call(Ce,gt)&&We.indexOf(gt)<0&&(Ie[gt]=Ce[gt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(Ce);ct<gt.length;ct++)We.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,gt[ct])&&(Ie[gt[ct]]=Ce[gt[ct]]);return Ie};function Ze(Ce,We){if(Ce.title===void 0||Ce.title===null)return null;const Ie=Object.keys(We).join("|");return typeof Ce.title=="object"?Ce.title:String(Ce.title).replace(new RegExp(`:(${Ie})`,"g"),(gt,ct)=>We[ct]||gt)}function ae(Ce,We,Ie,gt){if(Ie==null)return null;const{className:ct,onClick:Qe}=We,tt=je(We,["className","onClick"]),st=Object.assign(Object.assign({},(0,Ge.Z)(tt,{data:!0,aria:!0})),{onClick:Qe});return gt!==void 0?fe.createElement("a",Object.assign({},st,{className:Pe()(`${Ce}-link`,ct),href:gt}),Ie):fe.createElement("span",Object.assign({},st,{className:Pe()(`${Ce}-link`,ct)}),Ie)}function a(Ce,We){return(gt,ct,Qe,tt,st)=>{if(We)return We(gt,ct,Qe,tt);const Mt=Ze(gt,ct);return ae(Ce,gt,Mt,st)}}var y=function(Ce,We){var Ie={};for(var gt in Ce)Object.prototype.hasOwnProperty.call(Ce,gt)&&We.indexOf(gt)<0&&(Ie[gt]=Ce[gt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(Ce);ct<gt.length;ct++)We.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,gt[ct])&&(Ie[gt[ct]]=Ce[gt[ct]]);return Ie};const E=Ce=>{const{prefixCls:We,separator:Ie="/",children:gt,menu:ct,overlay:Qe,dropdownProps:tt,href:st}=Ce,pe=(Te=>{if(ct||Qe){const rt=Object.assign({},tt);if(ct){const xt=ct||{},{items:nt}=xt,dt=y(xt,["items"]);rt.menu=Object.assign(Object.assign({},dt),{items:nt==null?void 0:nt.map((ue,it)=>{var{key:Ct,title:Kt,label:Pt,path:Ae}=ue,Ee=y(ue,["key","title","label","path"]);let Le=Pt!=null?Pt:Kt;return Ae&&(Le=fe.createElement("a",{href:`${st}${Ae}`},Le)),Object.assign(Object.assign({},Ee),{key:Ct!=null?Ct:it,label:Le})})})}else Qe&&(rt.overlay=Qe);return fe.createElement(Oe.Z,Object.assign({placement:"bottom"},rt),fe.createElement("span",{className:`${We}-overlay-link`},Te,fe.createElement(Me.Z,null)))}return Te})(gt);return pe!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,pe),Ie&&fe.createElement(Ve,null,Ie)):null},b=Ce=>{const{prefixCls:We,children:Ie,href:gt}=Ce,ct=y(Ce,["prefixCls","children","href"]),{getPrefixCls:Qe}=fe.useContext(me.E_),tt=Qe("breadcrumb",We);return fe.createElement(E,Object.assign({},ct,{prefixCls:tt}),ae(tt,ct,Ie,gt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=Ce=>{const{componentCls:We,iconCls:Ie}=Ce;return{[We]:Object.assign(Object.assign({},(0,z.Wf)(Ce)),{color:Ce.itemColor,fontSize:Ce.fontSize,[Ie]:{fontSize:Ce.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ce.linkColor,transition:`color ${Ce.motionDurationMid}`,padding:`0 ${Ce.paddingXXS}px`,borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",marginInline:-Ce.marginXXS,"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover}},(0,z.Qy)(Ce)),"li:last-child":{color:Ce.lastItemColor},[`${We}-separator`]:{marginInline:Ce.separatorMargin,color:Ce.separatorColor},[`${We}-link`]:{[`
|
|
> ${Ie} + span,
|
|
> ${Ie} + a
|
|
`]:{marginInlineStart:Ce.marginXXS}},[`${We}-overlay-link`]:{borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",padding:`0 ${Ce.paddingXXS}px`,marginInline:-Ce.marginXXS,[`> ${Ie}`]:{marginInlineStart:Ce.marginXXS,fontSize:Ce.fontSizeIcon},"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover,a:{color:Ce.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ce.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Ce=>{const We=(0,ne.TS)(Ce,{});return[re(We)]},Ce=>({itemColor:Ce.colorTextDescription,lastItemColor:Ce.colorText,iconFontSize:Ce.fontSize,linkColor:Ce.colorTextDescription,linkHoverColor:Ce.colorText,separatorColor:Ce.colorTextDescription,separatorMargin:Ce.marginXS})),de=function(Ce,We){var Ie={};for(var gt in Ce)Object.prototype.hasOwnProperty.call(Ce,gt)&&We.indexOf(gt)<0&&(Ie[gt]=Ce[gt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(Ce);ct<gt.length;ct++)We.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,gt[ct])&&(Ie[gt[ct]]=Ce[gt[ct]]);return Ie};function Se(Ce){const{breadcrumbName:We,children:Ie}=Ce,gt=de(Ce,["breadcrumbName","children"]),ct=Object.assign({title:We},gt);return Ie&&(ct.menu={items:Ie.map(Qe=>{var{breadcrumbName:tt}=Qe,st=de(Qe,["breadcrumbName"]);return Object.assign(Object.assign({},st),{title:tt})})}),ct}function ce(Ce,We){return(0,fe.useMemo)(()=>Ce||(We?We.map(Se):null),[Ce,We])}var Ne=function(Ce,We){var Ie={};for(var gt in Ce)Object.prototype.hasOwnProperty.call(Ce,gt)&&We.indexOf(gt)<0&&(Ie[gt]=Ce[gt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(Ce);ct<gt.length;ct++)We.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,gt[ct])&&(Ie[gt[ct]]=Ce[gt[ct]]);return Ie};const Re=(Ce,We)=>{if(We===void 0)return We;let Ie=(We||"").replace(/^\//,"");return Object.keys(Ce).forEach(gt=>{Ie=Ie.replace(`:${gt}`,Ce[gt])}),Ie},yt=Ce=>{const{prefixCls:We,separator:Ie="/",style:gt,className:ct,rootClassName:Qe,routes:tt,items:st,children:Mt,itemRender:pe,params:Te={}}=Ce,rt=Ne(Ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xt,direction:nt,breadcrumb:dt}=fe.useContext(me.E_);let ue;const it=xt("breadcrumb",We),[Ct,Kt]=ge(it),Pt=ce(st,tt),Ae=a(it,pe);if(Pt&&Pt.length>0){const Je=[],et=st||tt;ue=Pt.map((bt,Dt)=>{const{path:Tt,key:qt,type:ln,menu:sn,overlay:zt,onClick:Ot,className:Qt,separator:jn,dropdownProps:xn}=bt,pn=Re(Te,Tt);pn!==void 0&&Je.push(pn);const be=qt!=null?qt:Dt;if(ln==="separator")return fe.createElement(Ve,{key:be},jn);const ke={},ot=Dt===Pt.length-1;sn?ke.menu=sn:zt&&(ke.overlay=zt);let{href:Lt}=bt;return Je.length&&pn!==void 0&&(Lt=`#/${Je.join("/")}`),fe.createElement(E,Object.assign({key:be},ke,(0,Ge.Z)(bt,{data:!0,aria:!0}),{className:Qt,dropdownProps:xn,href:Lt,separator:ot?"":Ie,onClick:Ot,prefixCls:it}),Ae(bt,Te,et,Je,Lt))})}else if(Mt){const Je=(0,Ye.Z)(Mt).length;ue=(0,Ye.Z)(Mt).map((et,bt)=>{if(!et)return et;const Dt=bt===Je-1;return(0,Fe.Tm)(et,{separator:Dt?"":Ie,key:bt})})}const Ee=Pe()(it,dt==null?void 0:dt.className,{[`${it}-rtl`]:nt==="rtl"},ct,Qe,Kt),Le=Object.assign(Object.assign({},dt==null?void 0:dt.style),gt);return Ct(fe.createElement("nav",Object.assign({className:Ee,style:Le},rt),fe.createElement("ol",null,ue)))};yt.Item=x,yt.Separator=Ve;var Ut=yt,dn=Ut},84567:function(De,mt,oe){"use strict";oe.d(mt,{default:function(){return ge}});var te=oe(94184),Pe=oe.n(te),Ye=oe(95860),Ge=oe(67294),fe=oe(53124),Fe=oe(98866),me=oe(65223),Oe=Ge.createContext(null),xe=oe(63185),Ve=oe(45353),je=oe(92429),Ze=function(de,Se){var ce={};for(var Ne in de)Object.prototype.hasOwnProperty.call(de,Ne)&&Se.indexOf(Ne)<0&&(ce[Ne]=de[Ne]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ne=Object.getOwnPropertySymbols(de);Re<Ne.length;Re++)Se.indexOf(Ne[Re])<0&&Object.prototype.propertyIsEnumerable.call(de,Ne[Re])&&(ce[Ne[Re]]=de[Ne[Re]]);return ce};const ae=(de,Se)=>{var ce;const{prefixCls:Ne,className:Re,rootClassName:yt,children:Ut,indeterminate:dn=!1,style:Ce,onMouseEnter:We,onMouseLeave:Ie,skipGroup:gt=!1,disabled:ct}=de,Qe=Ze(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:tt,direction:st,checkbox:Mt}=Ge.useContext(fe.E_),pe=Ge.useContext(Oe),{isFormItemInput:Te}=Ge.useContext(me.aM),rt=Ge.useContext(Fe.Z),xt=(ce=(pe==null?void 0:pe.disabled)||ct)!==null&&ce!==void 0?ce:rt,nt=Ge.useRef(Qe.value);Ge.useEffect(()=>{pe==null||pe.registerValue(Qe.value)},[]),Ge.useEffect(()=>{if(!gt)return Qe.value!==nt.current&&(pe==null||pe.cancelValue(nt.current),pe==null||pe.registerValue(Qe.value),nt.current=Qe.value),()=>pe==null?void 0:pe.cancelValue(Qe.value)},[Qe.value]);const dt=tt("checkbox",Ne),[ue,it]=(0,xe.ZP)(dt),Ct=Object.assign({},Qe);pe&&!gt&&(Ct.onChange=function(){Qe.onChange&&Qe.onChange.apply(Qe,arguments),pe.toggleOption&&pe.toggleOption({label:Ut,value:Qe.value})},Ct.name=pe.name,Ct.checked=pe.value.includes(Qe.value));const Kt=Pe()(`${dt}-wrapper`,{[`${dt}-rtl`]:st==="rtl",[`${dt}-wrapper-checked`]:Ct.checked,[`${dt}-wrapper-disabled`]:xt,[`${dt}-wrapper-in-form-item`]:Te},Mt==null?void 0:Mt.className,Re,yt,it),Pt=Pe()({[`${dt}-indeterminate`]:dn},je.A,it),Ae=dn?"mixed":void 0;return ue(Ge.createElement(Ve.Z,{component:"Checkbox",disabled:xt},Ge.createElement("label",{className:Kt,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Ce),onMouseEnter:We,onMouseLeave:Ie},Ge.createElement(Ye.Z,Object.assign({"aria-checked":Ae},Ct,{prefixCls:dt,className:Pt,disabled:xt,ref:Se})),Ut!==void 0&&Ge.createElement("span",null,Ut))))};var y=Ge.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(de,Se){var ce={};for(var Ne in de)Object.prototype.hasOwnProperty.call(de,Ne)&&Se.indexOf(Ne)<0&&(ce[Ne]=de[Ne]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ne=Object.getOwnPropertySymbols(de);Re<Ne.length;Re++)Se.indexOf(Ne[Re])<0&&Object.prototype.propertyIsEnumerable.call(de,Ne[Re])&&(ce[Ne[Re]]=de[Ne[Re]]);return ce};const z=(de,Se)=>{const{defaultValue:ce,children:Ne,options:Re=[],prefixCls:yt,className:Ut,rootClassName:dn,style:Ce,onChange:We}=de,Ie=x(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:gt,direction:ct}=Ge.useContext(fe.E_),[Qe,tt]=Ge.useState(Ie.value||ce||[]),[st,Mt]=Ge.useState([]);Ge.useEffect(()=>{"value"in Ie&&tt(Ie.value||[])},[Ie.value]);const pe=Ge.useMemo(()=>Re.map(Ee=>typeof Ee=="string"||typeof Ee=="number"?{label:Ee,value:Ee}:Ee),[Re]),Te=Ee=>{Mt(Le=>Le.filter(Je=>Je!==Ee))},rt=Ee=>{Mt(Le=>[].concat((0,E.Z)(Le),[Ee]))},xt=Ee=>{const Le=Qe.indexOf(Ee.value),Je=(0,E.Z)(Qe);Le===-1?Je.push(Ee.value):Je.splice(Le,1),"value"in Ie||tt(Je),We==null||We(Je.filter(et=>st.includes(et)).sort((et,bt)=>{const Dt=pe.findIndex(qt=>qt.value===et),Tt=pe.findIndex(qt=>qt.value===bt);return Dt-Tt}))},nt=gt("checkbox",yt),dt=`${nt}-group`,[ue,it]=(0,xe.ZP)(nt),Ct=(0,b.Z)(Ie,["value","disabled"]),Kt=Re.length?pe.map(Ee=>Ge.createElement(y,{prefixCls:nt,key:Ee.value.toString(),disabled:"disabled"in Ee?Ee.disabled:Ie.disabled,value:Ee.value,checked:Qe.includes(Ee.value),onChange:Ee.onChange,className:`${dt}-item`,style:Ee.style,title:Ee.title},Ee.label)):Ne,Pt={toggleOption:xt,value:Qe,disabled:Ie.disabled,name:Ie.name,registerValue:rt,cancelValue:Te},Ae=Pe()(dt,{[`${dt}-rtl`]:ct==="rtl"},Ut,dn,it);return ue(Ge.createElement("div",Object.assign({className:Ae,style:Ce},Ct,{ref:Se}),Ge.createElement(Oe.Provider,{value:Pt},Kt)))},ee=Ge.forwardRef(z);var ne=Ge.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ge=re},63185:function(De,mt,oe){"use strict";oe.d(mt,{C2:function(){return fe}});var te=oe(14747),Pe=oe(45503),Ye=oe(67968);const Ge=Fe=>{const{checkboxCls:me}=Fe,Me=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Me]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Me}`]:{marginInlineStart:0},[`&${Me}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,te.oN)(Fe))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
|
|
${Me}:not(${Me}-disabled),
|
|
${me}:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{borderColor:Fe.colorPrimary}},[`${Me}:not(${Me}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
|
|
${Me}-checked:not(${Me}-disabled),
|
|
${me}-checked:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Me}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function fe(Fe,me){const Me=(0,Pe.TS)(me,{checkboxCls:`.${Fe}`,checkboxSize:me.controlInteractiveSize});return[Ge(Me)]}mt.ZP=(0,Ye.Z)("Checkbox",(Fe,me)=>{let{prefixCls:Me}=me;return[fe(Me,Fe)]})},56153:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Sg}});var te=oe(67294),Pe=oe.t(te,2),Ye=oe(91034),Ge=oe(94184),fe=oe.n(Ge),Fe=oe(87462),me=oe(4942),Me=oe(97685),Oe=oe(45987),xe=oe(1413),Ve=oe(73935);function je(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ze={};function ae(ie,le){}function a(ie,le){}function y(){Ze={}}function E(ie,le,se){!le&&!Ze[se]&&(ie(!1,se),Ze[se]=!0)}function b(ie,le){E(ae,ie,le)}function x(ie,le){E(a,ie,le)}var z=null,ee=oe(71002),ne=oe(12060);function re(ie,le,se){var he=te.useRef({});return(!("value"in he.current)||se(he.current.condition,le))&&(he.current.value=ie(),he.current.condition=le),he.current.value}function ge(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function de(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var he=le.filter(function($e){return $e});return he.length<=1?he[0]:function($e){le.forEach(function(_e){ge(_e,$e)})}}function Se(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return re(function(){return de.apply(void 0,le)},le,function(he,$e){return he.length===$e.length&&he.every(function(_e,Xe){return _e===$e[Xe]})})}function ce(ie){var le,se,he=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof he=="function"&&!((le=he.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}var Ne=te.createContext(null),Re=Ne,yt=oe(74902),Ut=je()?te.useLayoutEffect:te.useEffect,dn=Ut,Ce=function(le,se){var he=React.useRef(!0);Ut(function(){if(!he.current)return le()},se),Ut(function(){return he.current=!1,function(){he.current=!0}},[])},We=[];function Ie(ie,le){var se=te.useState(function(){if(!je())return null;var on=document.createElement("div");return on}),he=(0,Me.Z)(se,1),$e=he[0],_e=te.useRef(!1),Xe=te.useContext(Re),pt=te.useState(We),At=(0,Me.Z)(pt,2),Et=At[0],_t=At[1],Ft=Xe||(_e.current?void 0:function(on){_t(function(Mn){var hn=[on].concat((0,yt.Z)(Mn));return hn})});function Vt(){$e.parentElement||document.body.appendChild($e),_e.current=!0}function Ht(){var on;(on=$e.parentElement)===null||on===void 0||on.removeChild($e),_e.current=!1}return dn(function(){return ie?Xe?Xe(Vt):Vt():Ht(),Ht},[ie]),dn(function(){Et.length&&(Et.forEach(function(on){return on()}),_t(We))},[Et]),[$e,Ft]}function gt(ie,le){if(!ie)return!1;if(ie.contains)return ie.contains(le);for(var se=le;se;){if(se===ie)return!0;se=se.parentNode}return!1}var ct="data-rc-order",Qe="rc-util-key",tt=new Map;function st(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=ie.mark;return le?le.startsWith("data-")?le:"data-".concat(le):Qe}function Mt(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function pe(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function Te(ie){return Array.from((tt.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function rt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!je())return null;var se=le.csp,he=le.prepend,$e=document.createElement("style");$e.setAttribute(ct,pe(he)),se!=null&&se.nonce&&($e.nonce=se==null?void 0:se.nonce),$e.innerHTML=ie;var _e=Mt(le),Xe=_e.firstChild;if(he){if(he==="queue"){var pt=Te(_e).filter(function(At){return["prepend","prependQueue"].includes(At.getAttribute(ct))});if(pt.length)return _e.insertBefore($e,pt[pt.length-1].nextSibling),$e}_e.insertBefore($e,Xe)}else _e.appendChild($e);return $e}function xt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Mt(le);return Te(se).find(function(he){return he.getAttribute(st(le))===ie})}function nt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=xt(ie,le);if(se){var he=Mt(le);he.removeChild(se)}}function dt(ie,le){var se=tt.get(ie);if(!se||!gt(document,se)){var he=rt("",le),$e=he.parentNode;tt.set(ie,$e),ie.removeChild(he)}}function ue(){tt.clear()}function it(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=Mt(se);dt(he,se);var $e=xt(le,se);if($e){var _e,Xe;if((_e=se.csp)!==null&&_e!==void 0&&_e.nonce&&$e.nonce!==((Xe=se.csp)===null||Xe===void 0?void 0:Xe.nonce)){var pt;$e.nonce=(pt=se.csp)===null||pt===void 0?void 0:pt.nonce}return $e.innerHTML!==ie&&($e.innerHTML=ie),$e}var At=rt(ie,se);return At.setAttribute(st(se),le),At}var Ct;function Kt(ie){if(typeof document=="undefined")return 0;if(ie||Ct===void 0){var le=document.createElement("div");le.style.width="100%",le.style.height="200px";var se=document.createElement("div"),he=se.style;he.position="absolute",he.top="0",he.left="0",he.pointerEvents="none",he.visibility="hidden",he.width="200px",he.height="150px",he.overflow="hidden",se.appendChild(le),document.body.appendChild(se);var $e=le.offsetWidth;se.style.overflow="scroll";var _e=le.offsetWidth;$e===_e&&(_e=se.clientWidth),document.body.removeChild(se),Ct=$e-_e}return Ct}function Pt(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?Kt():se}function Ae(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var le=getComputedStyle(ie,"::-webkit-scrollbar"),se=le.width,he=le.height;return{width:Pt(se),height:Pt(he)}}function Ee(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Le="rc-util-locker-".concat(Date.now()),Je=0;function et(ie){var le=!!ie,se=te.useState(function(){return Je+=1,"".concat(Le,"_").concat(Je)}),he=(0,Me.Z)(se,1),$e=he[0];dn(function(){if(le){var _e=Ae(document.body).width,Xe=Ee();it(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(Xe?"width: calc(100% - ".concat(_e,"px);"):"",`
|
|
}`),$e)}else nt($e);return function(){nt($e)}},[le,$e])}var bt=!1;function Dt(ie){return typeof ie=="boolean"&&(bt=ie),bt}var Tt=function(le){return le===!1?!1:!je()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},qt=te.forwardRef(function(ie,le){var se=ie.open,he=ie.autoLock,$e=ie.getContainer,_e=ie.debug,Xe=ie.autoDestroy,pt=Xe===void 0?!0:Xe,At=ie.children,Et=te.useState(se),_t=(0,Me.Z)(Et,2),Ft=_t[0],Vt=_t[1],Ht=Ft||se;te.useEffect(function(){(pt||se)&&Vt(se)},[se,pt]);var on=te.useState(function(){return Tt($e)}),Mn=(0,Me.Z)(on,2),hn=Mn[0],In=Mn[1];te.useEffect(function(){var ha=Tt($e);In(ha!=null?ha:null)});var Ln=Ie(Ht&&!hn,_e),mn=(0,Me.Z)(Ln,2),Wt=mn[0],ra=mn[1],qn=hn!=null?hn:Wt;et(he&&se&&je()&&(qn===Wt||qn===document.body));var ia=null;if(At&&ce(At)&&le){var ya=At;ia=ya.ref}var ja=Se(ia,le);if(!Ht||!je()||hn===void 0)return null;var Un=qn===!1||Dt(),Tn=At;return le&&(Tn=te.cloneElement(At,{ref:ja})),te.createElement(Re.Provider,{value:ra},Un?Tn:(0,Ve.createPortal)(Tn,qn))}),ln=qt,sn=ln,zt=oe(48555);function Ot(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Qt(ie){return Ot(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function jn(ie){var le;return ie==null||(le=ie.getRootNode)===null||le===void 0?void 0:le.call(ie)}function xn(ie){return jn(ie)instanceof ShadowRoot}function pn(ie){return xn(ie)?jn(ie):null}function be(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var he,$e=arguments.length,_e=new Array($e),Xe=0;Xe<$e;Xe++)_e[Xe]=arguments[Xe];return(he=le.current)===null||he===void 0?void 0:he.call.apply(he,[le].concat(_e))},[]);return se}function ke(){var ie=(0,xe.Z)({},Pe);return ie.useId}var ot=0;function Lt(){}var $t=ke(),tn=$t?function(le){var se=$t();return le||se}:function(le){var se=te.useState("ssr-id"),he=(0,Me.Z)(se,2),$e=he[0],_e=he[1];return te.useEffect(function(){var Xe=ot;ot+=1,_e("rc_unique_".concat(Xe))},[]),le||$e};function an(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var kt=an()?te.useLayoutEffect:te.useEffect,Xt=function(le,se){var he=te.useRef(!0);kt(function(){return le(he.current)},se),kt(function(){return he.current=!1,function(){he.current=!0}},[])},bn=function(le,se){Xt(function(he){if(!he)return le()},se)},rn=Xt,Zn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ie==null?void 0:ie.substr(0,4))},Kn=te.createContext(null),Xn=Kn;function la(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function Dn(ie,le,se,he){return te.useMemo(function(){var $e=la(se!=null?se:le),_e=la(he!=null?he:le),Xe=new Set($e),pt=new Set(_e);return ie&&(Xe.has("hover")&&(Xe.delete("hover"),Xe.add("click")),pt.has("hover")&&(pt.delete("hover"),pt.add("click"))),[Xe,pt]},[ie,le,se,he])}var An=function(ie){if(!ie)return!1;if(ie instanceof Element){if(ie.offsetParent)return!0;if(ie.getBBox){var le=ie.getBBox(),se=le.width,he=le.height;if(se||he)return!0}if(ie.getBoundingClientRect){var $e=ie.getBoundingClientRect(),_e=$e.width,Xe=$e.height;if(_e||Xe)return!0}}return!1};function Yn(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=arguments.length>2?arguments[2]:void 0;return se?ie[0]===le[0]:ie[0]===le[0]&&ie[1]===le[1]}function ua(ie,le,se,he){for(var $e=se.points,_e=Object.keys(ie),Xe=0;Xe<_e.length;Xe+=1){var pt,At=_e[Xe];if(Yn((pt=ie[At])===null||pt===void 0?void 0:pt.points,$e,he))return"".concat(le,"-placement-").concat(At)}return""}function ma(ie,le,se,he){return le||(se?{motionName:"".concat(ie,"-").concat(se)}:he?{motionName:he}:null)}function Rn(ie){return ie.ownerDocument.defaultView}function Pa(ie){for(var le=[],se=ie==null?void 0:ie.parentElement,he=["hidden","scroll","clip","auto"];se;){var $e=Rn(se).getComputedStyle(se),_e=$e.overflowX,Xe=$e.overflowY,pt=$e.overflow;[_e,Xe,pt].some(function(At){return he.includes(At)})&&le.push(se),se=se.parentElement}return le}function Ga(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?le:ie}function ta(ie){return Ga(parseFloat(ie),0)}function Ua(ie,le){var se=(0,xe.Z)({},ie);return(le||[]).forEach(function(he){if(!(he instanceof HTMLBodyElement||he instanceof HTMLHtmlElement)){var $e=Rn(he).getComputedStyle(he),_e=$e.overflow,Xe=$e.overflowClipMargin,pt=$e.borderTopWidth,At=$e.borderBottomWidth,Et=$e.borderLeftWidth,_t=$e.borderRightWidth,Ft=he.getBoundingClientRect(),Vt=he.offsetHeight,Ht=he.clientHeight,on=he.offsetWidth,Mn=he.clientWidth,hn=ta(pt),In=ta(At),Ln=ta(Et),mn=ta(_t),Wt=Ga(Math.round(Ft.width/on*1e3)/1e3),ra=Ga(Math.round(Ft.height/Vt*1e3)/1e3),qn=(on-Mn-Ln-mn)*Wt,ia=(Vt-Ht-hn-In)*ra,ya=hn*ra,ja=In*ra,Un=Ln*Wt,Tn=mn*Wt,ha=0,Ea=0;if(_e==="clip"){var ga=ta(Xe);ha=ga*Wt,Ea=ga*ra}var On=Ft.x+Un-ha,_n=Ft.y+ya-Ea,wn=On+Ft.width+2*ha-Un-Tn-qn,Za=_n+Ft.height+2*Ea-ya-ja-ia;se.left=Math.max(se.left,On),se.top=Math.max(se.top,_n),se.right=Math.min(se.right,wn),se.bottom=Math.min(se.bottom,Za)}}),se}function eo(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),he=se.match(/^(.*)\%$/);return he?ie*(parseFloat(he[1])/100):parseFloat(se)}function Qa(ie,le){var se=le||[],he=(0,Me.Z)(se,2),$e=he[0],_e=he[1];return[eo(ie.width,$e),eo(ie.height,_e)]}function we(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function Be(ie,le){var se=le[0],he=le[1],$e,_e;return se==="t"?_e=ie.y:se==="b"?_e=ie.y+ie.height:_e=ie.y+ie.height/2,he==="l"?$e=ie.x:he==="r"?$e=ie.x+ie.width:$e=ie.x+ie.width/2,{x:$e,y:_e}}function ye(ie,le){var se={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(he,$e){return $e===le?se[he]||"c":he}).join("")}function vt(ie,le,se,he,$e,_e,Xe){var pt=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:$e[he]||{}}),At=(0,Me.Z)(pt,2),Et=At[0],_t=At[1],Ft=te.useRef(0),Vt=te.useMemo(function(){return le?Pa(le):[]},[le]),Ht=te.useRef({}),on=function(){Ht.current={}};ie||on();var Mn=be(function(){if(le&&se&&ie){let Co=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ha,zr=Vn.x+ti,br=Vn.y+ur,ni=zr+oa,bi=br+Ca,Li=Math.max(zr,Yo.left),wi=Math.max(br,Yo.top),Ei=Math.min(ni,Yo.right),en=Math.min(bi,Yo.bottom);return Math.max(0,(Ei-Li)*(en-wi))},Ho=function(){jo=Vn.y+ea,nr=jo+Ca,ar=Vn.x+Wa,or=ar+oa};var Ln,mn,Wt=le,ra=Wt.ownerDocument,qn=Rn(Wt),ia=qn.getComputedStyle(Wt),ya=ia.width,ja=ia.height,Un=ia.position,Tn=Wt.style.left,ha=Wt.style.top,Ea=Wt.style.right,ga=Wt.style.bottom,On=(0,xe.Z)((0,xe.Z)({},$e[he]),_e),_n=ra.createElement("div");(Ln=Wt.parentElement)===null||Ln===void 0||Ln.appendChild(_n),_n.style.left="".concat(Wt.offsetLeft,"px"),_n.style.top="".concat(Wt.offsetTop,"px"),_n.style.position=Un,_n.style.height="".concat(Wt.offsetHeight,"px"),_n.style.width="".concat(Wt.offsetWidth,"px"),Wt.style.left="0",Wt.style.top="0",Wt.style.right="auto",Wt.style.bottom="auto";var wn;if(Array.isArray(se))wn={x:se[0],y:se[1],width:0,height:0};else{var Za=se.getBoundingClientRect();wn={x:Za.x,y:Za.y,width:Za.width,height:Za.height}}var Vn=Wt.getBoundingClientRect(),_a=ra.documentElement,so=_a.clientWidth,Xa=_a.clientHeight,uo=_a.scrollWidth,So=_a.scrollHeight,Hn=_a.scrollTop,mo=_a.scrollLeft,Ca=Vn.height,oa=Vn.width,Aa=wn.height,wo=wn.width,Ro={left:0,top:0,right:so,bottom:Xa},Uo={left:-mo,top:-Hn,right:uo-mo,bottom:So-Hn},qa=On.htmlRegion,oo="visible",No="visibleFirst";qa!=="scroll"&&qa!==No&&(qa=oo);var ro=qa===No,da=Ua(Uo,Vt),cn=Ua(Ro,Vt),Ha=qa===oo?cn:da,co=ro?cn:Ha;Wt.style.left="auto",Wt.style.top="auto",Wt.style.right="0",Wt.style.bottom="0";var Ao=Wt.getBoundingClientRect();Wt.style.left=Tn,Wt.style.top=ha,Wt.style.right=Ea,Wt.style.bottom=ga,(mn=Wt.parentElement)===null||mn===void 0||mn.removeChild(_n);var er=Ga(Math.round(oa/parseFloat(ya)*1e3)/1e3),tr=Ga(Math.round(Ca/parseFloat(ja)*1e3)/1e3);if(er===0||tr===0||Ot(se)&&!An(se))return;var ii=On.offset,Rr=On.targetOffset,Bo=Qa(Vn,ii),kr=(0,Me.Z)(Bo,2),$o=kr[0],Mo=kr[1],jr=Qa(wn,Rr),Oo=(0,Me.Z)(jr,2),gi=Oo[0],di=Oo[1];wn.x-=gi,wn.y-=di;var Pr=On.points||[],ho=(0,Me.Z)(Pr,2),_o=ho[0],li=ho[1],ko=we(li),Po=we(_o),Zr=Be(wn,ko),Cr=Be(Vn,Po),Vo=(0,xe.Z)({},On),Wa=Zr.x-Cr.x+$o,ea=Zr.y-Cr.y+Mo,zo=Co(Wa,ea),To=Co(Wa,ea,cn),Fr=Be(wn,["t","l"]),xr=Be(Vn,["t","l"]),Br=Be(wn,["b","r"]),Eo=Be(Vn,["b","r"]),vr=On.overflow||{},Hr=vr.adjustX,$r=vr.adjustY,Mr=vr.shiftX,Wr=vr.shiftY,Or=function(ur){return typeof ur=="boolean"?ur:ur>=0},jo,nr,ar,or;Ho();var Nr=Or($r),Ur=Po[0]===ko[0];if(Nr&&Po[0]==="t"&&(nr>co.bottom||Ht.current.bt)){var Go=ea;Ur?Go-=Ca-Aa:Go=Fr.y-Eo.y-Mo;var _r=Co(Wa,Go),vo=Co(Wa,Go,cn);_r>zo||_r===zo&&(!ro||vo>=To)?(Ht.current.bt=!0,ea=Go,Mo=-Mo,Vo.points=[ye(Po,0),ye(ko,0)]):Ht.current.bt=!1}if(Nr&&Po[0]==="b"&&(jo<co.top||Ht.current.tb)){var rr=ea;Ur?rr+=Ca-Aa:rr=Br.y-xr.y-Mo;var Vr=Co(Wa,rr),si=Co(Wa,rr,cn);Vr>zo||Vr===zo&&(!ro||si>=To)?(Ht.current.tb=!0,ea=rr,Mo=-Mo,Vo.points=[ye(Po,0),ye(ko,0)]):Ht.current.tb=!1}var Kr=Or(Hr),Xr=Po[1]===ko[1];if(Kr&&Po[1]==="l"&&(or>co.right||Ht.current.rl)){var ir=Wa;Xr?ir-=oa-wo:ir=Fr.x-Eo.x-$o;var Yr=Co(ir,ea),ui=Co(ir,ea,cn);Yr>zo||Yr===zo&&(!ro||ui>=To)?(Ht.current.rl=!0,Wa=ir,$o=-$o,Vo.points=[ye(Po,1),ye(ko,1)]):Ht.current.rl=!1}if(Kr&&Po[1]==="r"&&(ar<co.left||Ht.current.lr)){var gr=Wa;Xr?gr+=oa-wo:gr=Br.x-xr.x-$o;var dr=Co(gr,ea),Ar=Co(gr,ea,cn);dr>zo||dr===zo&&(!ro||Ar>=To)?(Ht.current.lr=!0,Wa=gr,$o=-$o,Vo.points=[ye(Po,1),ye(ko,1)]):Ht.current.lr=!1}Ho();var lr=Mr===!0?0:Mr;typeof lr=="number"&&(ar<cn.left&&(Wa-=ar-cn.left-$o,wn.x+wo<cn.left+lr&&(Wa+=wn.x-cn.left+wo-lr)),or>cn.right&&(Wa-=or-cn.right-$o,wn.x>cn.right-lr&&(Wa+=wn.x-cn.right+lr)));var Ko=Wr===!0?0:Wr;typeof Ko=="number"&&(jo<cn.top&&(ea-=jo-cn.top-Mo,wn.y+Aa<cn.top+Ko&&(ea+=wn.y-cn.top+Aa-Ko)),nr>cn.bottom&&(ea-=nr-cn.bottom-Mo,wn.y>cn.bottom-Ko&&(ea+=wn.y-cn.bottom+Ko)));var Xo=Vn.x+Wa,sr=Xo+oa,pr=Vn.y+ea,yr=pr+Ca,Zo=wn.x,mi=Zo+wo,Qr=wn.y,ci=Qr+Aa,Jr=Math.max(Xo,Zo),fi=Math.min(sr,mi),Si=(Jr+fi)/2,hi=Si-Xo,qr=Math.max(pr,Qr),Pi=Math.min(yr,ci),vi=(qr+Pi)/2,ei=vi-pr;Xe==null||Xe(le,Vo);var pi=Ao.right-Vn.x-(Wa+Vn.width),yi=Ao.bottom-Vn.y-(ea+Vn.height);_t({ready:!0,offsetX:Wa/er,offsetY:ea/tr,offsetR:pi/er,offsetB:yi/tr,arrowX:hi/er,arrowY:ei/tr,scaleX:er,scaleY:tr,align:Vo})}}),hn=function(){Ft.current+=1;var mn=Ft.current;Promise.resolve().then(function(){Ft.current===mn&&Mn()})},In=function(){_t(function(mn){return(0,xe.Z)((0,xe.Z)({},mn),{},{ready:!1})})};return rn(In,[he]),rn(function(){ie||In()},[ie]),[Et.ready,Et.offsetX,Et.offsetY,Et.offsetR,Et.offsetB,Et.arrowX,Et.arrowY,Et.scaleX,Et.scaleY,Et.align,hn]}function Rt(ie,le,se,he,$e){rn(function(){if(ie&&le&&se){let Ft=function(){he(),$e()};var _e=le,Xe=se,pt=Pa(_e),At=Pa(Xe),Et=Rn(Xe),_t=new Set([Et].concat((0,yt.Z)(pt),(0,yt.Z)(At)));return _t.forEach(function(Vt){Vt.addEventListener("scroll",Ft,{passive:!0})}),Et.addEventListener("resize",Ft,{passive:!0}),he(),function(){_t.forEach(function(Vt){Vt.removeEventListener("scroll",Ft),Et.removeEventListener("resize",Ft)})}}},[ie,le,se])}function jt(ie){var le=React.useRef(!1),se=React.useState(ie),he=_slicedToArray(se,2),$e=he[0],_e=he[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Xe(pt,At){At&&le.current||_e(pt)}return[$e,Xe]}function kn(ie){return ie!==void 0}function Sn(ie,le){var se=le||{},he=se.defaultValue,$e=se.value,_e=se.onChange,Xe=se.postState,pt=useState(function(){return kn($e)?$e:kn(he)?typeof he=="function"?he():he:typeof ie=="function"?ie():ie}),At=_slicedToArray(pt,2),Et=At[0],_t=At[1],Ft=$e!==void 0?$e:Et,Vt=Xe?Xe(Ft):Ft,Ht=useEvent(_e),on=useState([Ft]),Mn=_slicedToArray(on,2),hn=Mn[0],In=Mn[1];useLayoutUpdateEffect(function(){var mn=hn[0];Et!==mn&&Ht(Et,mn)},[hn]),useLayoutUpdateEffect(function(){kn($e)||_t($e)},[$e]);var Ln=useEvent(function(mn,Wt){_t(mn,Wt),In([Ft],Wt)});return[Vt,Ln]}var Bn=oe(95845);function na(ie,le,se){var he=te.useRef({});return(!("value"in he.current)||se(he.current.condition,le))&&(he.current.value=ie(),he.current.condition=le),he.current.value}function Ia(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function ft(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var he=le.filter(function($e){return $e});return he.length<=1?he[0]:function($e){le.forEach(function(_e){Ia(_e,$e)})}}function Cn(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return na(function(){return ft.apply(void 0,le)},le,function(he,$e){return he.length!==$e.length||he.every(function(_e,Xe){return _e!==$e[Xe]})})}function ve(ie){var le,se,he=(0,Bn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof he=="function"&&!((le=he.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}function Ue(ie){return!isValidElement(ie)||isFragment(ie)?!1:ve(ie)}function ze(ie,le,se,he){if(!le.length)return se;var $e=_toArray(le),_e=$e[0],Xe=$e.slice(1),pt;return!ie&&typeof _e=="number"?pt=[]:Array.isArray(ie)?pt=_toConsumableArray(ie):pt=_objectSpread({},ie),he&&se===void 0&&Xe.length===1?delete pt[_e][Xe[0]]:pt[_e]=ze(pt[_e],Xe,se,he),pt}function He(ie,le,se){var he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&he&&se===void 0&&!get(ie,le.slice(0,-1))?ie:ze(ie,le,se,he)}function ht(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function at(ie){return Array.isArray(ie)?[]:{}}var ut=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function qe(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var he=at(le[0]);return le.forEach(function($e){function _e(Xe,pt){var At=new Set(pt),Et=get($e,Xe),_t=Array.isArray(Et);if(_t||ht(Et)){if(!At.has(Et)){At.add(Et);var Ft=get(he,Xe);_t?he=He(he,Xe,[]):(!Ft||_typeof(Ft)!=="object")&&(he=He(he,Xe,at(Et))),ut(Et).forEach(function(Vt){_e([].concat(_toConsumableArray(Xe),[Vt]),At)})}}else he=He(he,Xe,Et)}_e([])}),he}var Jt={},Gt=[],gn=function(le){Gt.push(le)};function yn(ie,le){if(0)var se}function $n(ie,le){if(0)var se}function Ke(){Jt={}}function $a(ie,le,se){!le&&!Jt[se]&&(ie(!1,se),Jt[se]=!0)}function ba(ie,le){$a(yn,ie,le)}function Da(ie,le){$a($n,ie,le)}ba.preMessage=gn,ba.resetWarned=Ke,ba.noteOnce=Da;var aa=null,lt=function(le){return+setTimeout(le,16)},Bt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(lt=function(le){return window.requestAnimationFrame(le)},Bt=function(le){return window.cancelAnimationFrame(le)});var Yt=0,St=new Map;function Pn(ie){St.delete(ie)}var vn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Yt+=1;var he=Yt;function $e(_e){if(_e===0)Pn(he),le();else{var Xe=lt(function(){$e(_e-1)});St.set(he,Xe)}}return $e(se),he};vn.cancel=function(ie){var le=St.get(ie);return Pn(le),Bt(le)};var sa=vn;function ca(ie,le,se,he,$e,_e,Xe,pt){var At=te.useRef(ie),Et=te.useRef(!1);At.current!==ie&&(Et.current=!0,At.current=ie),te.useEffect(function(){var _t=sa(function(){Et.current=!1});return function(){sa.cancel(_t)}},[ie]),te.useEffect(function(){if(le&&he&&(!$e||_e)){var _t=function(){var Un=!1,Tn=function(ga){var On=ga.target;Un=Xe(On)},ha=function(ga){var On=ga.target;!Et.current&&At.current&&!Un&&!Xe(On)&&pt(!1)};return[Tn,ha]},Ft=_t(),Vt=(0,Me.Z)(Ft,2),Ht=Vt[0],on=Vt[1],Mn=_t(),hn=(0,Me.Z)(Mn,2),In=hn[0],Ln=hn[1],mn=Rn(he);mn.addEventListener("mousedown",Ht,!0),mn.addEventListener("click",on,!0),mn.addEventListener("contextmenu",on,!0);var Wt=pn(se);if(Wt&&(Wt.addEventListener("mousedown",In,!0),Wt.addEventListener("click",Ln,!0),Wt.addEventListener("contextmenu",Ln,!0)),0)var ra,qn,ia,ya;return function(){mn.removeEventListener("mousedown",Ht,!0),mn.removeEventListener("click",on,!0),mn.removeEventListener("contextmenu",on,!0),Wt&&(Wt.removeEventListener("mousedown",In,!0),Wt.removeEventListener("click",Ln,!0),Wt.removeEventListener("contextmenu",Ln,!0))}}},[le,se,he,$e,_e])}function fa(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Fo(ie){return fa(ie)?ie:ie instanceof te.Component?Ve.findDOMNode(ie):null}function to(ie,le){var se={};return se[ie.toLowerCase()]=le.toLowerCase(),se["Webkit".concat(ie)]="webkit".concat(le),se["Moz".concat(ie)]="moz".concat(le),se["ms".concat(ie)]="MS".concat(le),se["O".concat(ie)]="o".concat(le.toLowerCase()),se}function Io(ie,le){var se={animationend:to("Animation","AnimationEnd"),transitionend:to("Transition","TransitionEnd")};return ie&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var xo=Io(je(),typeof window!="undefined"?window:{}),Va={};if(je()){var va=document.createElement("div");Va=va.style}var io={};function po(ie){if(io[ie])return io[ie];var le=xo[ie];if(le)for(var se=Object.keys(le),he=se.length,$e=0;$e<he;$e+=1){var _e=se[$e];if(Object.prototype.hasOwnProperty.call(le,_e)&&_e in Va)return io[ie]=le[_e],io[ie]}return""}var yo=po("animationend"),Ka=po("transitionend"),Ra=!!(yo&&Ka),fo=yo||"animationend",un=Ka||"transitionend";function pa(ie,le){if(!ie)return null;if((0,ee.Z)(ie)==="object"){var se=le.replace(/-\w/g,function(he){return he[1].toUpperCase()});return ie[se]}return"".concat(ie,"-").concat(le)}var Fa="none",Ma="appear",Ja="enter",La="leave",Wo="none",wa="prepare",Qn="start",Jn="active",no="end";function Do(ie){var le=te.useRef(!1),se=te.useState(ie),he=(0,Me.Z)(se,2),$e=he[0],_e=he[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Xe(pt,At){At&&le.current||_e(pt)}return[$e,Xe]}var Qo=function(le){return+setTimeout(le,16)},Lr=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Qo=function(le){return window.requestAnimationFrame(le)},Lr=function(le){return window.cancelAnimationFrame(le)});var wr=0,Jo=new Map;function mr(ie){Jo.delete(ie)}var Zt=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wr+=1;var he=wr;function $e(_e){if(_e===0)mr(he),le();else{var Xe=Qo(function(){$e(_e-1)});Jo.set(he,Xe)}}return $e(se),he};Zt.cancel=function(ie){var le=Jo.get(ie);return mr(le),Lr(le)};var wt=Zt,Nt=function(){var ie=te.useRef(null);function le(){wt.cancel(ie.current)}function se(he){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var _e=wt(function(){$e<=1?he({isCanceled:function(){return _e!==ie.current}}):se(he,$e-1)});ie.current=_e}return te.useEffect(function(){return function(){le()}},[]),[se,le]},It=je()?te.useLayoutEffect:te.useEffect,Gn=It,Sa=[wa,Qn,Jn,no],ka=!1,Oa=!0;function xa(ie){return ie===Jn||ie===no}var nn=function(ie,le){var se=Do(Wo),he=(0,Me.Z)(se,2),$e=he[0],_e=he[1],Xe=Nt(),pt=(0,Me.Z)(Xe,2),At=pt[0],Et=pt[1];function _t(){_e(wa,!0)}return Gn(function(){if($e!==Wo&&$e!==no){var Ft=Sa.indexOf($e),Vt=Sa[Ft+1],Ht=le($e);Ht===ka?_e(Vt,!0):At(function(on){function Mn(){on.isCanceled()||_e(Vt,!0)}Ht===!0?Mn():Promise.resolve(Ht).then(Mn)})}},[ie,$e]),te.useEffect(function(){return function(){Et()}},[]),[_t,$e]},Fn=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var he=te.useCallback(function(Xe){se.current(Xe)},[]);function $e(Xe){Xe&&(Xe.removeEventListener(un,he),Xe.removeEventListener(fo,he))}function _e(Xe){le.current&&le.current!==Xe&&$e(le.current),Xe&&Xe!==le.current&&(Xe.addEventListener(un,he),Xe.addEventListener(fo,he),le.current=Xe)}return te.useEffect(function(){return function(){$e(le.current)}},[]),[_e,$e]};function zn(ie,le,se,he){var $e=he.motionEnter,_e=$e===void 0?!0:$e,Xe=he.motionAppear,pt=Xe===void 0?!0:Xe,At=he.motionLeave,Et=At===void 0?!0:At,_t=he.motionDeadline,Ft=he.motionLeaveImmediately,Vt=he.onAppearPrepare,Ht=he.onEnterPrepare,on=he.onLeavePrepare,Mn=he.onAppearStart,hn=he.onEnterStart,In=he.onLeaveStart,Ln=he.onAppearActive,mn=he.onEnterActive,Wt=he.onLeaveActive,ra=he.onAppearEnd,qn=he.onEnterEnd,ia=he.onLeaveEnd,ya=he.onVisibleChanged,ja=Do(),Un=(0,Me.Z)(ja,2),Tn=Un[0],ha=Un[1],Ea=Do(Fa),ga=(0,Me.Z)(Ea,2),On=ga[0],_n=ga[1],wn=Do(null),Za=(0,Me.Z)(wn,2),Vn=Za[0],_a=Za[1],so=(0,te.useRef)(!1),Xa=(0,te.useRef)(null);function uo(){return se()}var So=(0,te.useRef)(!1);function Hn(da){var cn=uo();if(!(da&&!da.deadline&&da.target!==cn)){var Ha=So.current,co;On===Ma&&Ha?co=ra==null?void 0:ra(cn,da):On===Ja&&Ha?co=qn==null?void 0:qn(cn,da):On===La&&Ha&&(co=ia==null?void 0:ia(cn,da)),On!==Fa&&Ha&&co!==!1&&(_n(Fa,!0),_a(null,!0))}}var mo=Fn(Hn),Ca=(0,Me.Z)(mo,1),oa=Ca[0],Aa=te.useMemo(function(){var da,cn,Ha;switch(On){case Ma:return da={},(0,me.Z)(da,wa,Vt),(0,me.Z)(da,Qn,Mn),(0,me.Z)(da,Jn,Ln),da;case Ja:return cn={},(0,me.Z)(cn,wa,Ht),(0,me.Z)(cn,Qn,hn),(0,me.Z)(cn,Jn,mn),cn;case La:return Ha={},(0,me.Z)(Ha,wa,on),(0,me.Z)(Ha,Qn,In),(0,me.Z)(Ha,Jn,Wt),Ha;default:return{}}},[On]),wo=nn(On,function(da){if(da===wa){var cn=Aa[wa];return cn?cn(uo()):ka}if(qa in Aa){var Ha;_a(((Ha=Aa[qa])===null||Ha===void 0?void 0:Ha.call(Aa,uo(),null))||null)}return qa===Jn&&(oa(uo()),_t>0&&(clearTimeout(Xa.current),Xa.current=setTimeout(function(){Hn({deadline:!0})},_t))),Oa}),Ro=(0,Me.Z)(wo,2),Uo=Ro[0],qa=Ro[1],oo=xa(qa);So.current=oo,Gn(function(){ha(le);var da=so.current;if(so.current=!0,!!ie){var cn;!da&&le&&pt&&(cn=Ma),da&&le&&_e&&(cn=Ja),(da&&!le&&Et||!da&&Ft&&!le&&Et)&&(cn=La),cn&&(_n(cn),Uo())}},[le]),(0,te.useEffect)(function(){(On===Ma&&!pt||On===Ja&&!_e||On===La&&!Et)&&_n(Fa)},[pt,_e,Et]),(0,te.useEffect)(function(){return function(){so.current=!1,clearTimeout(Xa.current)}},[]);var No=te.useRef(!1);(0,te.useEffect)(function(){Tn&&(No.current=!0),Tn!==void 0&&On===Fa&&((No.current||Tn)&&(ya==null||ya(Tn)),No.current=!0)},[Tn,On]);var ro=Vn;return Aa[wa]&&qa===Qn&&(ro=(0,xe.Z)({transition:"none"},ro)),[On,qa,ro,Tn!=null?Tn:le]}var En=oe(15671),Wn=oe(43144),Ba=oe(60136),bo=oe(51630),ao=function(ie){(0,Ba.Z)(se,ie);var le=(0,bo.Z)(se);function se(){return(0,En.Z)(this,se),le.apply(this,arguments)}return(0,Wn.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),Lo=ao;function Na(ie){var le=ie;(0,ee.Z)(ie)==="object"&&(le=ie.transitionSupport);function se($e){return!!($e.motionName&&le)}var he=te.forwardRef(function($e,_e){var Xe=$e.visible,pt=Xe===void 0?!0:Xe,At=$e.removeOnLeave,Et=At===void 0?!0:At,_t=$e.forceRender,Ft=$e.children,Vt=$e.motionName,Ht=$e.leavedClassName,on=$e.eventProps,Mn=se($e),hn=(0,te.useRef)(),In=(0,te.useRef)();function Ln(){try{return hn.current instanceof HTMLElement?hn.current:Fo(In.current)}catch(wn){return null}}var mn=zn(Mn,pt,Ln,$e),Wt=(0,Me.Z)(mn,4),ra=Wt[0],qn=Wt[1],ia=Wt[2],ya=Wt[3],ja=te.useRef(ya);ya&&(ja.current=!0);var Un=te.useCallback(function(wn){hn.current=wn,ge(_e,wn)},[_e]),Tn,ha=(0,xe.Z)((0,xe.Z)({},on),{},{visible:pt});if(!Ft)Tn=null;else if(ra===Fa||!se($e))ya?Tn=Ft((0,xe.Z)({},ha),Un):!Et&&ja.current&&Ht?Tn=Ft((0,xe.Z)((0,xe.Z)({},ha),{},{className:Ht}),Un):_t||!Et&&!Ht?Tn=Ft((0,xe.Z)((0,xe.Z)({},ha),{},{style:{display:"none"}}),Un):Tn=null;else{var Ea,ga;qn===wa?ga="prepare":xa(qn)?ga="active":qn===Qn&&(ga="start"),Tn=Ft((0,xe.Z)((0,xe.Z)({},ha),{},{className:fe()(pa(Vt,ra),(Ea={},(0,me.Z)(Ea,pa(Vt,"".concat(ra,"-").concat(ga)),ga),(0,me.Z)(Ea,Vt,typeof Vt=="string"),Ea)),style:ia}),Un)}if(te.isValidElement(Tn)&&ce(Tn)){var On=Tn,_n=On.ref;_n||(Tn=te.cloneElement(Tn,{ref:Un}))}return te.createElement(Lo,{ref:In},Tn)});return he.displayName="CSSMotion",he}var Tr=Na(Ra),Gr=oe(97326),cr="add",Er="keep",qo="remove",lo="removed";function Ir(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,xe.Z)((0,xe.Z)({},le),{},{key:String(le.key)})}function fr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(Ir)}function Dr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],he=0,$e=le.length,_e=fr(ie),Xe=fr(le);_e.forEach(function(Et){for(var _t=!1,Ft=he;Ft<$e;Ft+=1){var Vt=Xe[Ft];if(Vt.key===Et.key){he<Ft&&(se=se.concat(Xe.slice(he,Ft).map(function(Ht){return(0,xe.Z)((0,xe.Z)({},Ht),{},{status:cr})})),he=Ft),se.push((0,xe.Z)((0,xe.Z)({},Vt),{},{status:Er})),he+=1,_t=!0;break}}_t||se.push((0,xe.Z)((0,xe.Z)({},Et),{},{status:qo}))}),he<$e&&(se=se.concat(Xe.slice(he).map(function(Et){return(0,xe.Z)((0,xe.Z)({},Et),{},{status:cr})})));var pt={};se.forEach(function(Et){var _t=Et.key;pt[_t]=(pt[_t]||0)+1});var At=Object.keys(pt).filter(function(Et){return pt[Et]>1});return At.forEach(function(Et){se=se.filter(function(_t){var Ft=_t.key,Vt=_t.status;return Ft!==Et||Vt!==qo}),se.forEach(function(_t){_t.key===Et&&(_t.status=Er)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Mi=["status"],Oi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ni(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tr,se=function(he){(0,Ba.Z)(_e,he);var $e=(0,bo.Z)(_e);function _e(){var Xe;(0,En.Z)(this,_e);for(var pt=arguments.length,At=new Array(pt),Et=0;Et<pt;Et++)At[Et]=arguments[Et];return Xe=$e.call.apply($e,[this].concat(At)),(0,me.Z)((0,Gr.Z)(Xe),"state",{keyEntities:[]}),(0,me.Z)((0,Gr.Z)(Xe),"removeKey",function(_t){var Ft=Xe.state.keyEntities,Vt=Ft.map(function(Ht){return Ht.key!==_t?Ht:(0,xe.Z)((0,xe.Z)({},Ht),{},{status:lo})});return Xe.setState({keyEntities:Vt}),Vt.filter(function(Ht){var on=Ht.status;return on!==lo}).length}),Xe}return(0,Wn.Z)(_e,[{key:"render",value:function(){var pt=this,At=this.state.keyEntities,Et=this.props,_t=Et.component,Ft=Et.children,Vt=Et.onVisibleChanged,Ht=Et.onAllRemoved,on=(0,Oe.Z)(Et,$i),Mn=_t||te.Fragment,hn={};return Oi.forEach(function(In){hn[In]=on[In],delete on[In]}),delete on.keys,te.createElement(Mn,on,At.map(function(In){var Ln=In.status,mn=(0,Oe.Z)(In,Mi),Wt=Ln===cr||Ln===Er;return te.createElement(le,(0,Fe.Z)({},hn,{key:mn.key,visible:Wt,eventProps:mn,onVisibleChanged:function(qn){if(Vt==null||Vt(qn,{key:mn.key}),!qn){var ia=pt.removeKey(mn.key);ia===0&&Ht&&Ht()}}}),Ft)}))}}],[{key:"getDerivedStateFromProps",value:function(pt,At){var Et=pt.keys,_t=At.keyEntities,Ft=fr(Et),Vt=Dr(_t,Ft);return{keyEntities:Vt.filter(function(Ht){var on=_t.find(function(Mn){var hn=Mn.key;return Ht.key===hn});return!(on&&on.status===lo&&Ht.status===qo)})}}}]),_e}(te.Component);return(0,me.Z)(se,"defaultProps",{component:"div"}),se}var hg=Ni(Ra),Fi=Tr;function Ai(ie){var le=ie.prefixCls,se=ie.align,he=ie.arrow,$e=ie.arrowPos,_e=he||{},Xe=_e.className,pt=_e.content,At=$e.x,Et=At===void 0?0:At,_t=$e.y,Ft=_t===void 0?0:_t,Vt=te.useRef();if(!se||!se.points)return null;var Ht={position:"absolute"};if(se.autoArrow!==!1){var on=se.points[0],Mn=se.points[1],hn=on[0],In=on[1],Ln=Mn[0],mn=Mn[1];hn===Ln||!["t","b"].includes(hn)?Ht.top=Ft:hn==="t"?Ht.top=0:Ht.bottom=0,In===mn||!["l","r"].includes(In)?Ht.left=Et:In==="l"?Ht.left=0:Ht.right=0}return te.createElement("div",{ref:Vt,className:fe()("".concat(le,"-arrow"),Xe),style:Ht},pt)}function zi(ie){var le=ie.prefixCls,se=ie.open,he=ie.zIndex,$e=ie.mask,_e=ie.motion;return $e?te.createElement(Fi,(0,Fe.Z)({},_e,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(Xe){var pt=Xe.className;return te.createElement("div",{style:{zIndex:he},className:fe()("".concat(le,"-mask"),pt)})}):null}var Ti=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Gi=Ti,Ii=te.forwardRef(function(ie,le){var se=ie.popup,he=ie.className,$e=ie.prefixCls,_e=ie.style,Xe=ie.target,pt=ie.onVisibleChanged,At=ie.open,Et=ie.keepDom,_t=ie.fresh,Ft=ie.onClick,Vt=ie.mask,Ht=ie.arrow,on=ie.arrowPos,Mn=ie.align,hn=ie.motion,In=ie.maskMotion,Ln=ie.forceRender,mn=ie.getPopupContainer,Wt=ie.autoDestroy,ra=ie.portal,qn=ie.zIndex,ia=ie.onMouseEnter,ya=ie.onMouseLeave,ja=ie.onPointerEnter,Un=ie.ready,Tn=ie.offsetX,ha=ie.offsetY,Ea=ie.offsetR,ga=ie.offsetB,On=ie.onAlign,_n=ie.onPrepare,wn=ie.stretch,Za=ie.targetWidth,Vn=ie.targetHeight,_a=typeof se=="function"?se():se,so=At||Et,Xa=(mn==null?void 0:mn.length)>0,uo=te.useState(!mn||!Xa),So=(0,Me.Z)(uo,2),Hn=So[0],mo=So[1];if(rn(function(){!Hn&&Xa&&Xe&&mo(!0)},[Hn,Xa,Xe]),!Hn)return null;var Ca="auto",oa={left:"-1000vw",top:"-1000vh",right:Ca,bottom:Ca};if(Un||!At){var Aa,wo=Mn.points,Ro=Mn.dynamicInset||((Aa=Mn._experimental)===null||Aa===void 0?void 0:Aa.dynamicInset),Uo=Ro&&wo[0][1]==="r",qa=Ro&&wo[0][0]==="b";Uo?(oa.right=Ea,oa.left=Ca):(oa.left=Tn,oa.right=Ca),qa?(oa.bottom=ga,oa.top=Ca):(oa.top=ha,oa.bottom=Ca)}var oo={};return wn&&(wn.includes("height")&&Vn?oo.height=Vn:wn.includes("minHeight")&&Vn&&(oo.minHeight=Vn),wn.includes("width")&&Za?oo.width=Za:wn.includes("minWidth")&&Za&&(oo.minWidth=Za)),At||(oo.pointerEvents="none"),te.createElement(ra,{open:Ln||so,getContainer:mn&&function(){return mn(Xe)},autoDestroy:Wt},te.createElement(zi,{prefixCls:$e,open:At,zIndex:qn,mask:Vt,motion:In}),te.createElement(zt.Z,{onResize:On,disabled:!At},function(No){return te.createElement(Fi,(0,Fe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ln,leavedClassName:"".concat($e,"-hidden")},hn,{onAppearPrepare:_n,onEnterPrepare:_n,visible:At,onVisibleChanged:function(da){var cn;hn==null||(cn=hn.onVisibleChanged)===null||cn===void 0||cn.call(hn,da),pt(da)}}),function(ro,da){var cn=ro.className,Ha=ro.style,co=fe()($e,cn,he);return te.createElement("div",{ref:ft(No,le,da),className:co,style:(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({"--arrow-x":"".concat(on.x||0,"px"),"--arrow-y":"".concat(on.y||0,"px")},oa),oo),Ha),{},{boxSizing:"border-box",zIndex:qn},_e),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:Ft},Ht&&te.createElement(Ai,{prefixCls:$e,arrow:Ht,arrowPos:on,align:Mn}),te.createElement(Gi,{cache:!At&&!_t},_a))})}))}),Di=Ii,Ri=te.forwardRef(function(ie,le){var se=ie.children,he=ie.getTriggerDOMNode,$e=ve(se),_e=te.useCallback(function(pt){Ia(le,he?he(pt):pt)},[he]),Xe=Cn(_e,se.ref);return $e?te.cloneElement(se,{ref:Xe}):se}),ki=Ri,ji=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Zi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sn,le=te.forwardRef(function(se,he){var $e=se.prefixCls,_e=$e===void 0?"rc-trigger-popup":$e,Xe=se.children,pt=se.action,At=pt===void 0?"hover":pt,Et=se.showAction,_t=se.hideAction,Ft=se.popupVisible,Vt=se.defaultPopupVisible,Ht=se.onPopupVisibleChange,on=se.afterPopupVisibleChange,Mn=se.mouseEnterDelay,hn=se.mouseLeaveDelay,In=hn===void 0?.1:hn,Ln=se.focusDelay,mn=se.blurDelay,Wt=se.mask,ra=se.maskClosable,qn=ra===void 0?!0:ra,ia=se.getPopupContainer,ya=se.forceRender,ja=se.autoDestroy,Un=se.destroyPopupOnHide,Tn=se.popup,ha=se.popupClassName,Ea=se.popupStyle,ga=se.popupPlacement,On=se.builtinPlacements,_n=On===void 0?{}:On,wn=se.popupAlign,Za=se.zIndex,Vn=se.stretch,_a=se.getPopupClassNameFromAlign,so=se.fresh,Xa=se.alignPoint,uo=se.onPopupClick,So=se.onPopupAlign,Hn=se.arrow,mo=se.popupMotion,Ca=se.maskMotion,oa=se.popupTransitionName,Aa=se.popupAnimation,wo=se.maskTransitionName,Ro=se.maskAnimation,Uo=se.className,qa=se.getTriggerDOMNode,oo=(0,Oe.Z)(se,ji),No=ja||Un||!1,ro=te.useState(!1),da=(0,Me.Z)(ro,2),cn=da[0],Ha=da[1];rn(function(){Ha(Zn())},[]);var co=te.useRef({}),Ao=te.useContext(Xn),er=te.useMemo(function(){return{registerSubPopup:function(Nn,za){co.current[Nn]=za,Ao==null||Ao.registerSubPopup(Nn,za)}}},[Ao]),tr=tn(),ii=te.useState(null),Rr=(0,Me.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=be(function(en){Ot(en)&&Bo!==en&&kr(en),Ao==null||Ao.registerSubPopup(tr,en)}),Mo=te.useState(null),jr=(0,Me.Z)(Mo,2),Oo=jr[0],gi=jr[1],di=be(function(en){Ot(en)&&Oo!==en&&gi(en)}),Pr=te.Children.only(Xe),ho=(Pr==null?void 0:Pr.props)||{},_o={},li=be(function(en){var Nn,za,Ya=Oo;return(Ya==null?void 0:Ya.contains(en))||((Nn=pn(Ya))===null||Nn===void 0?void 0:Nn.host)===en||en===Ya||(Bo==null?void 0:Bo.contains(en))||((za=pn(Bo))===null||za===void 0?void 0:za.host)===en||en===Bo||Object.values(co.current).some(function(Ta){return(Ta==null?void 0:Ta.contains(en))||en===Ta})}),ko=ma(_e,mo,Aa,oa),Po=ma(_e,Ca,Ro,wo),Zr=te.useState(Vt||!1),Cr=(0,Me.Z)(Zr,2),Vo=Cr[0],Wa=Cr[1],ea=Ft!=null?Ft:Vo,zo=be(function(en){Ft===void 0&&Wa(en)});rn(function(){Wa(Ft||!1)},[Ft]);var To=te.useRef(ea);To.current=ea;var Fr=be(function(en){(0,Ve.flushSync)(function(){ea!==en&&(zo(en),Ht==null||Ht(en))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Eo=function(Nn){var za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),za===0?Fr(Nn):xr.current=setTimeout(function(){Fr(Nn)},za*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Hr=(0,Me.Z)(vr,2),$r=Hr[0],Mr=Hr[1];rn(function(en){(!en||ea)&&Mr(!0)},[ea]);var Wr=te.useState(null),Or=(0,Me.Z)(Wr,2),jo=Or[0],nr=Or[1],ar=te.useState([0,0]),or=(0,Me.Z)(ar,2),Nr=or[0],Ur=or[1],Go=function(Nn){Ur([Nn.clientX,Nn.clientY])},_r=vt(ea,Bo,Xa?Nr:Oo,ga,_n,wn,So),vo=(0,Me.Z)(_r,11),rr=vo[0],Vr=vo[1],si=vo[2],Kr=vo[3],Xr=vo[4],ir=vo[5],Yr=vo[6],ui=vo[7],gr=vo[8],dr=vo[9],Ar=vo[10],lr=Dn(cn,At,Et,_t),Ko=(0,Me.Z)(lr,2),Xo=Ko[0],sr=Ko[1],pr=Xo.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Zo=be(function(){$r||Ar()}),mi=function(){To.current&&Xa&&yr&&Eo(!1)};Rt(ea,Oo,Bo,Zo,mi),rn(function(){Zo()},[Nr,ga]),rn(function(){ea&&!(_n!=null&&_n[ga])&&Zo()},[JSON.stringify(wn)]);var Qr=te.useMemo(function(){var en=ua(_n,_e,dr,Xa);return fe()(en,_a==null?void 0:_a(dr))},[dr,_a,_n,_e,Xa]);te.useImperativeHandle(he,function(){return{forceAlign:Zo}});var ci=te.useState(0),Jr=(0,Me.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Me.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Vn&&Oo){var Nn=Oo.getBoundingClientRect();Si(Nn.width),vi(Nn.height)}},pi=function(){ei(),Zo()},yi=function(Nn){Mr(!1),Ar(),on==null||on(Nn)},Co=function(){return new Promise(function(Nn){ei(),nr(function(){return Nn})})};rn(function(){jo&&(Ar(),jo(),nr(null))},[jo]);function Ho(en,Nn,za,Ya){_o[en]=function(Ta){var ai;Ya==null||Ya(Ta),Eo(Nn,za);for(var Ci=arguments.length,Bi=new Array(Ci>1?Ci-1:0),oi=1;oi<Ci;oi++)Bi[oi-1]=arguments[oi];(ai=ho[en])===null||ai===void 0||ai.call.apply(ai,[ho,Ta].concat(Bi))}}(pr||yr)&&(_o.onClick=function(en){var Nn;To.current&&yr?Eo(!1):!To.current&&pr&&(Go(en),Eo(!0));for(var za=arguments.length,Ya=new Array(za>1?za-1:0),Ta=1;Ta<za;Ta++)Ya[Ta-1]=arguments[Ta];(Nn=ho.onClick)===null||Nn===void 0||Nn.call.apply(Nn,[ho,en].concat(Ya))}),ca(ea,yr,Oo,Bo,Wt,qn,li,Eo);var ti=Xo.has("hover"),ur=sr.has("hover"),Yo,zr;ti&&(Ho("onMouseEnter",!0,Mn,function(en){Go(en)}),Ho("onPointerEnter",!0,Mn,function(en){Go(en)}),Yo=function(){(ea||$r)&&Eo(!0,Mn)},Xa&&(_o.onMouseMove=function(en){var Nn;(Nn=ho.onMouseMove)===null||Nn===void 0||Nn.call(ho,en)})),ur&&(Ho("onMouseLeave",!1,In),Ho("onPointerLeave",!1,In),zr=function(){Eo(!1,In)}),Xo.has("focus")&&Ho("onFocus",!0,Ln),sr.has("focus")&&Ho("onBlur",!1,mn),Xo.has("contextMenu")&&(_o.onContextMenu=function(en){var Nn;To.current&&sr.has("contextMenu")?Eo(!1):(Go(en),Eo(!0)),en.preventDefault();for(var za=arguments.length,Ya=new Array(za>1?za-1:0),Ta=1;Ta<za;Ta++)Ya[Ta-1]=arguments[Ta];(Nn=ho.onContextMenu)===null||Nn===void 0||Nn.call.apply(Nn,[ho,en].concat(Ya))}),Uo&&(_o.className=fe()(ho.className,Uo));var br=(0,xe.Z)((0,xe.Z)({},ho),_o),ni={},bi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];bi.forEach(function(en){oo[en]&&(ni[en]=function(){for(var Nn,za=arguments.length,Ya=new Array(za),Ta=0;Ta<za;Ta++)Ya[Ta]=arguments[Ta];(Nn=br[en])===null||Nn===void 0||Nn.call.apply(Nn,[br].concat(Ya)),oo[en].apply(oo,Ya)})});var Li=te.cloneElement(Pr,(0,xe.Z)((0,xe.Z)({},br),ni)),wi={x:ir,y:Yr},Ei=Hn?(0,xe.Z)({},Hn!==!0?Hn:{}):null;return te.createElement(te.Fragment,null,te.createElement(zt.Z,{disabled:!ea,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:qa},Li)),te.createElement(Xn.Provider,{value:er},te.createElement(Di,{portal:ie,ref:$o,prefixCls:_e,popup:Tn,className:fe()(ha,Qr),style:Ea,target:Oo,onMouseEnter:Yo,onMouseLeave:zr,onPointerEnter:Yo,zIndex:Za,open:ea,keepDom:$r,fresh:so,onClick:uo,mask:Wt,motion:ko,maskMotion:Po,onVisibleChanged:yi,onPrepare:Co,forceRender:ya,autoDestroy:No,getPopupContainer:ia,align:dr,arrow:Ei,arrowPos:wi,ready:rr,offsetX:Vr,offsetY:si,offsetR:Kr,offsetB:Xr,onAlign:Zo,stretch:Vn,targetWidth:fi/ui,targetHeight:Pi/gr})))});return le}var Hi=Zi(sn),fn={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(le){var se=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||se>=fn.F1&&se<=fn.F12)return!1;switch(se){case fn.ALT:case fn.CAPS_LOCK:case fn.CONTEXT_MENU:case fn.CTRL:case fn.DOWN:case fn.END:case fn.ESC:case fn.HOME:case fn.INSERT:case fn.LEFT:case fn.MAC_FF_META:case fn.META:case fn.NUMLOCK:case fn.NUM_CENTER:case fn.PAGE_DOWN:case fn.PAGE_UP:case fn.PAUSE:case fn.PRINT_SCREEN:case fn.RIGHT:case fn.SHIFT:case fn.UP:case fn.WIN_KEY:case fn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=fn.ZERO&&le<=fn.NINE||le>=fn.NUM_ZERO&&le<=fn.NUM_MULTIPLY||le>=fn.A&&le<=fn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case fn.SPACE:case fn.QUESTION_MARK:case fn.NUM_PLUS:case fn.NUM_MINUS:case fn.NUM_PERIOD:case fn.NUM_DIVISION:case fn.SEMICOLON:case fn.DASH:case fn.EQUALS:case fn.COMMA:case fn.PERIOD:case fn.SLASH:case fn.APOSTROPHE:case fn.SINGLE_QUOTE:case fn.OPEN_SQUARE_BRACKET:case fn.BACKSLASH:case fn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=fn,Wi=xi.ESC,Ui=xi.TAB;function _i(ie){var le=ie.visible,se=ie.triggerRef,he=ie.onVisibleChange,$e=ie.autoFocus,_e=ie.overlayRef,Xe=te.useRef(!1),pt=function(){if(le){var Ft,Vt;(Ft=se.current)===null||Ft===void 0||(Vt=Ft.focus)===null||Vt===void 0||Vt.call(Ft),he==null||he(!1)}},At=function(){var Ft;return(Ft=_e.current)!==null&&Ft!==void 0&&Ft.focus?(_e.current.focus(),Xe.current=!0,!0):!1},Et=function(Ft){switch(Ft.keyCode){case Wi:pt();break;case Ui:{var Vt=!1;Xe.current||(Vt=At()),Vt?Ft.preventDefault():pt();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",Et),$e&&wt(At,3),function(){window.removeEventListener("keydown",Et),Xe.current=!1}):function(){Xe.current=!1}},[le])}var Vi=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,he=ie.arrow,$e=ie.prefixCls,_e=(0,te.useMemo)(function(){var pt;return typeof se=="function"?pt=se():pt=se,pt},[se]),Xe=de(le,_e==null?void 0:_e.ref);return te.createElement(te.Fragment,null,he&&te.createElement("div",{className:"".concat($e,"-arrow")}),te.cloneElement(_e,{ref:ce(_e)?Xe:void 0}))}),Ki=Vi,Sr={adjustX:1,adjustY:1},hr=[0,0],Xi={topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-4],targetOffset:hr},top:{points:["bc","tc"],overflow:Sr,offset:[0,-4],targetOffset:hr},topRight:{points:["br","tr"],overflow:Sr,offset:[0,-4],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:Sr,offset:[0,4],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:Sr,offset:[0,4],targetOffset:hr}},Yi=Xi,Qi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ji(ie,le){var se,he=ie.arrow,$e=he===void 0?!1:he,_e=ie.prefixCls,Xe=_e===void 0?"rc-dropdown":_e,pt=ie.transitionName,At=ie.animation,Et=ie.align,_t=ie.placement,Ft=_t===void 0?"bottomLeft":_t,Vt=ie.placements,Ht=Vt===void 0?Yi:Vt,on=ie.getPopupContainer,Mn=ie.showAction,hn=ie.hideAction,In=ie.overlayClassName,Ln=ie.overlayStyle,mn=ie.visible,Wt=ie.trigger,ra=Wt===void 0?["hover"]:Wt,qn=ie.autoFocus,ia=ie.overlay,ya=ie.children,ja=ie.onVisibleChange,Un=(0,Oe.Z)(ie,Qi),Tn=te.useState(),ha=(0,Me.Z)(Tn,2),Ea=ha[0],ga=ha[1],On="visible"in ie?mn:Ea,_n=te.useRef(null),wn=te.useRef(null),Za=te.useRef(null);te.useImperativeHandle(le,function(){return _n.current});var Vn=function(oa){ga(oa),ja==null||ja(oa)};_i({visible:On,triggerRef:Za,onVisibleChange:Vn,autoFocus:qn,overlayRef:wn});var _a=function(oa){var Aa=ie.onOverlayClick;ga(!1),Aa&&Aa(oa)},so=function(){return te.createElement(Ki,{ref:wn,overlay:ia,prefixCls:Xe,arrow:$e})},Xa=function(){return typeof ia=="function"?so:so()},uo=function(){var oa=ie.minOverlayWidthMatchTrigger,Aa=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?oa:!Aa},So=function(){var oa=ie.openClassName;return oa!==void 0?oa:"".concat(Xe,"-open")},Hn=te.cloneElement(ya,{className:fe()((se=ya.props)===null||se===void 0?void 0:se.className,On&&So()),ref:ce(ya)?de(Za,ya.ref):void 0}),mo=hn;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Hi,(0,Fe.Z)({builtinPlacements:Ht},Un,{prefixCls:Xe,ref:_n,popupClassName:fe()(In,(0,me.Z)({},"".concat(Xe,"-show-arrow"),$e)),popupStyle:Ln,action:ra,showAction:Mn,hideAction:mo,popupPlacement:Ft,popupAlign:Et,popupTransitionName:pt,popupAnimation:At,popupVisible:On,stretch:uo()?"minWidth":"",popup:Xa(),onPopupVisibleChange:Vn,onPopupClick:_a,getPopupContainer:on}),Hn)}var qi=te.forwardRef(Ji),eg=qi,tg=oe(60276),ng=oe(5663),ag=oe(10366),og=oe(80636),rg=oe(8745),ig=oe(96159),gg=oe(53124),dg=oe(68508),lg=oe(76529),sg=oe(46605),ug=oe(66748);const Pg=null,ri=ie=>{const{menu:le,arrow:se,prefixCls:he,children:$e,trigger:_e,disabled:Xe,dropdownRender:pt,getPopupContainer:At,overlayClassName:Et,rootClassName:_t,open:Ft,onOpenChange:Vt,visible:Ht,onVisibleChange:on,mouseEnterDelay:Mn=.15,mouseLeaveDelay:hn=.1,autoAdjustOverflow:In=!0,placement:Ln="",overlay:mn,transitionName:Wt}=ie,{getPopupContainer:ra,getPrefixCls:qn,direction:ia}=te.useContext(gg.E_),ya=te.useMemo(()=>{const Hn=qn();return Wt!==void 0?Wt:Ln.includes("top")?`${Hn}-slide-down`:`${Hn}-slide-up`},[qn,Ln,Wt]),ja=te.useMemo(()=>Ln?Ln.includes("Center")?Ln.slice(0,Ln.indexOf("Center")):Ln:ia==="rtl"?"bottomRight":"bottomLeft",[Ln,ia]),Un=qn("dropdown",he),[Tn,ha]=(0,ug.Z)(Un),[,Ea]=(0,sg.Z)(),ga=te.Children.only($e),On=(0,ig.Tm)(ga,{className:fe()(`${Un}-trigger`,{[`${Un}-rtl`]:ia==="rtl"},ga.props.className),disabled:Xe}),_n=Xe?[]:_e;let wn;_n&&_n.includes("contextMenu")&&(wn=!0);const[Za,Vn]=(0,ng.Z)(!1,{value:Ft!=null?Ft:Ht}),_a=(0,tg.useEvent)(Hn=>{Vt==null||Vt(Hn),on==null||on(Hn),Vn(Hn)}),so=fe()(Et,_t,ha,{[`${Un}-rtl`]:ia==="rtl"}),Xa=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:In,offset:Ea.marginXXS,arrowWidth:se?Ea.sizePopupArrow:0,borderRadius:Ea.borderRadius}),uo=te.useCallback(()=>{Vn(!1)},[]),So=()=>{let Hn;return le!=null&&le.items?Hn=te.createElement(dg.default,Object.assign({},le)):typeof mn=="function"?Hn=mn():Hn=mn,pt&&(Hn=pt(Hn)),Hn=te.Children.only(typeof Hn=="string"?te.createElement("span",null,Hn):Hn),te.createElement(lg.J,{prefixCls:`${Un}-menu`,expandIcon:te.createElement("span",{className:`${Un}-menu-submenu-arrow`},te.createElement(Ye.Z,{className:`${Un}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:uo,validator:mo=>{let{mode:Ca}=mo}},Hn)};return Tn(te.createElement(eg,Object.assign({alignPoint:wn},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:Mn,mouseLeaveDelay:hn,visible:Za,builtinPlacements:Xa,arrow:!!se,overlayClassName:so,prefixCls:Un,getPopupContainer:At||ra,transitionName:ya,trigger:_n,overlay:So,placement:ja,onVisibleChange:_a}),On))};function mg(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cg=(0,rg.Z)(ri,"dropdown",ie=>ie,mg),fg=ie=>te.createElement(cg,Object.assign({},ie),te.createElement("span",null));ri._InternalPanelDoNotUseOrYouWillBeFired=fg;var Sg=ri},66748:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ve}});var te=oe(14747),Pe=oe(67771),Ye=oe(33297),Ge=oe(50438),fe=oe(97414),Fe=oe(67968),me=oe(45503),Oe=je=>{const{componentCls:Ze,menuCls:ae,colorError:a,colorTextLightSolid:y}=je,E=`${ae}-item`;return{[`${Ze}, ${Ze}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const xe=je=>{const{componentCls:Ze,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:Se,colorBgElevated:ce}=je;return[{[Ze]:Object.assign(Object.assign({},(0,te.Wf)(je)),{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:de}},[`${Ze}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ze}-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${Ze}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ze}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ze}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ze}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ze}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ze}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ze}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ze}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ze}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ze}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ze}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ze}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ze}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ze}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ze}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ze}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ze}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ze}-placement-topRight`]:{animationName:Pe.ly}})},(0,fe.ZP)(je,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ze} ${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}},[`${Ze}, ${Ze}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:je.borderRadiusLG,outline:"none",boxShadow:je.boxShadowSecondary},(0,te.Qy)(je)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:je.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:je.marginXS,fontSize:je.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 ${Se}px`,color:je.colorText,fontWeight:"normal",fontSize:ne,lineHeight:je.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:je.borderRadiusSM,"&:hover, &-active":{backgroundColor:je.controlItemBgHover}},(0,te.Qy)(je)),{"&-selected":{color:je.colorPrimary,backgroundColor:je.controlItemBgActive,"&:hover, &-active":{backgroundColor:je.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${je.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:je.colorSplit},[`${Ze}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:je.paddingXS,[`${Ze}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:je.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${je.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Se+je.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ze}-menu-submenu-title`]:{[`&, ${Ze}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ze}-menu-submenu-title`]:{color:je.colorPrimary}})}},[(0,Pe.oN)(je,"slide-up"),(0,Pe.oN)(je,"slide-down"),(0,Ye.Fm)(je,"move-up"),(0,Ye.Fm)(je,"move-down"),(0,Ge._y)(je,"zoom-big")]]};var Ve=(0,Fe.Z)("Dropdown",(je,Ze)=>{let{rootPrefixCls:ae}=Ze;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=je,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,fe.fS)({contentRadius:ne}),de=(0,me.TS)(je,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[xe(de),Oe(de)]},je=>({zIndexPopup:je.zIndexPopupBase+50}))},71322:function(De,mt,oe){"use strict";oe.d(mt,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),Pe=oe(67294),Ye={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"},Ge=Ye,fe=oe(74643),Fe=function(ge,de){return Pe.createElement(fe.Z,(0,te.Z)({},ge,{ref:de,icon:Ge}))},me=Pe.forwardRef(Fe),Me=oe(22751),Oe=oe(91034),xe=oe(94184),Ve=oe.n(xe),je=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ge){var de={};for(var Se in re)Object.prototype.hasOwnProperty.call(re,Se)&&ge.indexOf(Se)<0&&(de[Se]=re[Se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Se=Object.getOwnPropertySymbols(re);ce<Se.length;ce++)ge.indexOf(Se[ce])<0&&Object.prototype.propertyIsEnumerable.call(re,Se[ce])&&(de[Se[ce]]=re[Se[ce]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Pe.createContext({}),z=(()=>{let re=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ge}${re}`}})();var ne=Pe.forwardRef((re,ge)=>{const{prefixCls:de,className:Se,trigger:ce,children:Ne,defaultCollapsed:Re=!1,theme:yt="dark",style:Ut={},collapsible:dn=!1,reverseArrow:Ce=!1,width:We=200,collapsedWidth:Ie=80,zeroWidthTriggerStyle:gt,breakpoint:ct,onCollapse:Qe,onBreakpoint:tt}=re,st=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Mt}=(0,Pe.useContext)(y.Gs),[pe,Te]=(0,Pe.useState)("collapsed"in re?re.collapsed:Re),[rt,xt]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&Te(re.collapsed)},[re.collapsed]);const nt=(Pt,Ae)=>{"collapsed"in re||Te(Pt),Qe==null||Qe(Pt,Ae)},dt=(0,Pe.useRef)();dt.current=Pt=>{xt(Pt.matches),tt==null||tt(Pt.matches),pe!==Pt.matches&&nt(Pt.matches,"responsive")},(0,Pe.useEffect)(()=>{function Pt(Ee){return dt.current(Ee)}let Ae;if(typeof window!="undefined"){const{matchMedia:Ee}=window;if(Ee&&ct&&ct in b){Ae=Ee(`(max-width: ${b[ct]})`);try{Ae.addEventListener("change",Pt)}catch(Le){Ae.addListener(Pt)}Pt(Ae)}}return()=>{try{Ae==null||Ae.removeEventListener("change",Pt)}catch(Ee){Ae==null||Ae.removeListener(Pt)}}},[ct]),(0,Pe.useEffect)(()=>{const Pt=z("ant-sider-");return Mt.addSider(Pt),()=>Mt.removeSider(Pt)},[]);const ue=()=>{nt(!pe,"clickTrigger")},{getPrefixCls:it}=(0,Pe.useContext)(a.E_),Ct=()=>{const Pt=it("layout-sider",de),Ae=(0,je.Z)(st,["collapsed"]),Ee=pe?Ie:We,Le=ae(Ee)?`${Ee}px`:String(Ee),Je=parseFloat(String(Ie||0))===0?Pe.createElement("span",{onClick:ue,className:Ve()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${Ce?"right":"left"}`),style:gt},ce||Pe.createElement(me,null)):null,Dt={expanded:Ce?Pe.createElement(Oe.Z,null):Pe.createElement(Me.Z,null),collapsed:Ce?Pe.createElement(Me.Z,null):Pe.createElement(Oe.Z,null)}[pe?"collapsed":"expanded"],Tt=ce!==null?Je||Pe.createElement("div",{className:`${Pt}-trigger`,onClick:ue,style:{width:Le}},ce||Dt):null,qt=Object.assign(Object.assign({},Ut),{flex:`0 0 ${Le}`,maxWidth:Le,minWidth:Le,width:Le}),ln=Ve()(Pt,`${Pt}-${yt}`,{[`${Pt}-collapsed`]:!!pe,[`${Pt}-has-trigger`]:dn&&ce!==null&&!Je,[`${Pt}-below`]:!!rt,[`${Pt}-zero-width`]:parseFloat(Le)===0},Se);return Pe.createElement("aside",Object.assign({className:ln},Ae,{style:qt,ref:ge}),Pe.createElement("div",{className:`${Pt}-children`},Ne),dn||rt&&Je?Tt:null)},Kt=Pe.useMemo(()=>({siderCollapsed:pe}),[pe]);return Pe.createElement(x.Provider,{value:Kt},Ct())})},84321:function(De,mt,oe){"use strict";oe.d(mt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ze},ZP:function(){return ee}});var te=oe(74902),Pe=oe(94184),Ye=oe.n(Pe),Ge=oe(10366),fe=oe(67294),Fe=oe(53124),me=oe(67968),Oe=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Se,lightTriggerColor:ce}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:ce,background:Se},[`${re}-sider-zero-width-trigger`]:{color:ce,background:Se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const xe=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:Se,footerBg:ce,triggerBg:Ne,headerHeight:Re,headerPadding:yt,headerColor:Ut,footerPadding:dn,triggerHeight:Ce,zeroTriggerHeight:We,zeroTriggerWidth:Ie,motionDurationMid:gt,motionDurationSlow:ct,fontSize:Qe,borderRadius:tt,bodyBg:st,headerBg:Mt,siderBg:pe}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:st,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:pe,transition:`all ${gt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:Se,lineHeight:`${Ce}px`,textAlign:"center",background:Ne,cursor:"pointer",transition:`all ${gt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-Ie,zIndex:1,width:Ie,height:We,color:Se,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pe,borderStartStartRadius:0,borderStartEndRadius:tt,borderEndEndRadius:tt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ct} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ct}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ie,borderStartStartRadius:tt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:tt}}}}},Oe(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Re,padding:yt,color:Ut,lineHeight:`${Re}px`,background:Mt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:dn,color:de,fontSize:Qe,background:ce},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ve=(0,me.Z)("Layout",ne=>[xe(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:Se,controlHeightSM:ce,marginXXS:Ne,colorTextLightSolid:Re,colorBgContainer:yt}=ne,Ut=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Ut}px`,headerColor:Se,footerPadding:`${ce}px ${Ut}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+Ne*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:yt,lightTriggerBg:yt,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),je=function(ne,re){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&re.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,de=Object.getOwnPropertySymbols(ne);Se<de.length;Se++)re.indexOf(de[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Se])&&(ge[de[Se]]=ne[de[Se]]);return ge};const Ze=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return Se=>fe.forwardRef((Ne,Re)=>fe.createElement(Se,Object.assign({ref:Re,suffixCls:re,tagName:ge},Ne)))}const a=fe.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:Se,tagName:ce}=ne,Ne=je(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=fe.useContext(Fe.E_),yt=Re("layout",ge),[Ut,dn]=Ve(yt),Ce=de?`${yt}-${de}`:yt;return Ut(fe.createElement(ce,Object.assign({className:Ye()(ge||Ce,Se,dn),ref:re},Ne)))}),y=fe.forwardRef((ne,re)=>{const{direction:ge}=fe.useContext(Fe.E_),[de,Se]=fe.useState([]),{prefixCls:ce,className:Ne,rootClassName:Re,children:yt,hasSider:Ut,tagName:dn,style:Ce}=ne,We=je(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ie=(0,Ge.Z)(We,["suffixCls"]),{getPrefixCls:gt,layout:ct}=fe.useContext(Fe.E_),Qe=gt("layout",ce),[tt,st]=Ve(Qe),Mt=Ye()(Qe,{[`${Qe}-has-sider`]:typeof Ut=="boolean"?Ut:de.length>0,[`${Qe}-rtl`]:ge==="rtl"},ct==null?void 0:ct.className,Ne,Re,st),pe=fe.useMemo(()=>({siderHook:{addSider:Te=>{Se(rt=>[].concat((0,te.Z)(rt),[Te]))},removeSider:Te=>{Se(rt=>rt.filter(xt=>xt!==Te))}}}),[]);return tt(fe.createElement(Ze.Provider,{value:pe},fe.createElement(dn,Object.assign({ref:re,className:Mt,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),Ce)},Ie),yt)))}),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(De,mt,oe){"use strict";oe.d(mt,{J:function(){return Fe}});var te=oe(67294),Pe=oe(4173),Ye=oe(60276),Ge=function(me,Me){var Oe={};for(var xe in me)Object.prototype.hasOwnProperty.call(me,xe)&&Me.indexOf(xe)<0&&(Oe[xe]=me[xe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,xe=Object.getOwnPropertySymbols(me);Ve<xe.length;Ve++)Me.indexOf(xe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(me,xe[Ve])&&(Oe[xe[Ve]]=me[xe[Ve]]);return Oe};const fe=te.createContext(null),Fe=te.forwardRef((me,Me)=>{const{children:Oe}=me,xe=Ge(me,["children"]),Ve=te.useContext(fe),je=te.useMemo(()=>Object.assign(Object.assign({},Ve),xe),[Ve,xe.prefixCls,xe.mode,xe.selectable]);return te.createElement(fe.Provider,{value:je},te.createElement(Pe.BR,null,(0,Ye.supportNodeRef)(Oe)?te.cloneElement(Oe,{ref:Me}):Oe))});mt.Z=fe},68508:function(De,mt,oe){"use strict";oe.d(mt,{default:function(){return Pt}});var te=oe(52073),Pe=oe(67294),Ye=oe(71322),Ge=oe(94184),fe=oe.n(Ge),Fe=oe(53124),me=function(Ae,Ee){var Le={};for(var Je in Ae)Object.prototype.hasOwnProperty.call(Ae,Je)&&Ee.indexOf(Je)<0&&(Le[Je]=Ae[Je]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(Ae);et<Je.length;et++)Ee.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Je[et])&&(Le[Je[et]]=Ae[Je[et]]);return Le},Oe=Ae=>{const{prefixCls:Ee,className:Le,dashed:Je}=Ae,et=me(Ae,["prefixCls","className","dashed"]),{getPrefixCls:bt}=Pe.useContext(Fe.E_),Dt=bt("menu",Ee),Tt=fe()({[`${Dt}-item-divider-dashed`]:!!Je},Le);return Pe.createElement(te.iz,Object.assign({className:Tt},et))},xe=oe(37419),Ve=oe(10366),je=oe(83062),Ze=oe(96159),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ae=>{var Ee;const{className:Le,children:Je,icon:et,title:bt,danger:Dt}=Ae,{prefixCls:Tt,firstLevel:qt,direction:ln,disableMenuItemTitleTooltip:sn,inlineCollapsed:zt}=Pe.useContext(a),Ot=ke=>{const ot=Pe.createElement("span",{className:`${Tt}-title-content`},Je);return(!et||(0,Ze.l$)(Je)&&Je.type==="span")&&Je&&ke&&qt&&typeof Je=="string"?Pe.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},Je.charAt(0)):ot},{siderCollapsed:Qt}=Pe.useContext(Ye.D);let jn=bt;typeof bt=="undefined"?jn=qt?Je:"":bt===!1&&(jn="");const xn={title:jn};!Qt&&!zt&&(xn.title=null,xn.open=!1);const pn=(0,xe.Z)(Je).length;let be=Pe.createElement(te.ck,Object.assign({},(0,Ve.Z)(Ae,["title","icon","danger"]),{className:fe()({[`${Tt}-item-danger`]:Dt,[`${Tt}-item-only-child`]:(et?pn+1:pn)===1},Le),title:typeof bt=="string"?bt:void 0}),(0,Ze.Tm)(et,{className:fe()((0,Ze.l$)(et)?(Ee=et.props)===null||Ee===void 0?void 0:Ee.className:"",`${Tt}-item-icon`)}),Ot(zt));return sn||(be=Pe.createElement(je.Z,Object.assign({},xn,{placement:ln==="rtl"?"left":"right",overlayClassName:`${Tt}-inline-collapsed-tooltip`}),be)),be},x=Ae=>{var Ee;const{popupClassName:Le,icon:Je,title:et,theme:bt}=Ae,Dt=Pe.useContext(a),{prefixCls:Tt,inlineCollapsed:qt,theme:ln}=Dt,sn=(0,te.Xl)();let zt;if(!Je)zt=qt&&!sn.length&&et&&typeof et=="string"?Pe.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},et.charAt(0)):Pe.createElement("span",{className:`${Tt}-title-content`},et);else{const Qt=(0,Ze.l$)(et)&&et.type==="span";zt=Pe.createElement(Pe.Fragment,null,(0,Ze.Tm)(Je,{className:fe()((0,Ze.l$)(Je)?(Ee=Je.props)===null||Ee===void 0?void 0:Ee.className:"",`${Tt}-item-icon`)}),Qt?et:Pe.createElement("span",{className:`${Tt}-title-content`},et))}const Ot=Pe.useMemo(()=>Object.assign(Object.assign({},Dt),{firstLevel:!1}),[Dt]);return Pe.createElement(a.Provider,{value:Ot},Pe.createElement(te.Wd,Object.assign({},(0,Ve.Z)(Ae,["icon"]),{title:zt,popupClassName:fe()(Tt,Le,`${Tt}-${bt||ln}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Ae,Ee){var Le={};for(var Je in Ae)Object.prototype.hasOwnProperty.call(Ae,Je)&&Ee.indexOf(Je)<0&&(Le[Je]=Ae[Je]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(Ae);et<Je.length;et++)Ee.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Je[et])&&(Le[Je[et]]=Ae[Je[et]]);return Le};function de(Ae){return(Ae||[]).map((Ee,Le)=>{if(Ee&&typeof Ee=="object"){const Je=Ee,{label:et,children:bt,key:Dt,type:Tt}=Je,qt=ge(Je,["label","children","key","type"]),ln=Dt!=null?Dt:`tmp-${Le}`;return bt||Tt==="group"?Tt==="group"?Pe.createElement(te.BW,Object.assign({key:ln},qt,{title:et}),de(bt)):Pe.createElement(x,Object.assign({key:ln},qt,{title:et}),de(bt)):Tt==="divider"?Pe.createElement(Oe,Object.assign({key:ln},qt)):Pe.createElement(E,Object.assign({key:ln},qt),et)}return null}).filter(Ee=>Ee)}function Se(Ae){return Pe.useMemo(()=>Ae&&de(Ae),[Ae])}var ce=oe(84780),Ne=oe(14747),Re=oe(33507),yt=oe(67771),Ut=oe(50438),dn=oe(67968),Ce=oe(45503),Ie=Ae=>{const{componentCls:Ee,motionDurationSlow:Le,horizontalLineHeight:Je,colorSplit:et,lineWidth:bt,lineType:Dt,itemPaddingInline:Tt}=Ae;return{[`${Ee}-horizontal`]:{lineHeight:Je,border:0,borderBottom:`${bt}px ${Dt} ${et}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Tt},[`> ${Ee}-item:hover,
|
|
> ${Ee}-item-active,
|
|
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${Le}`,`background ${Le}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},ct=Ae=>{let{componentCls:Ee,menuArrowOffset:Le}=Ae;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
|
|
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Le})`},"&::after":{transform:`rotate(45deg) translateY(${Le})`}}}}};const Qe=Ae=>Object.assign({},(0,Ne.oN)(Ae));var st=(Ae,Ee)=>{const{componentCls:Le,itemColor:Je,itemSelectedColor:et,groupTitleColor:bt,itemBg:Dt,subMenuItemBg:Tt,itemSelectedBg:qt,activeBarHeight:ln,activeBarWidth:sn,activeBarBorderWidth:zt,motionDurationSlow:Ot,motionEaseInOut:Qt,motionEaseOut:jn,itemPaddingInline:xn,motionDurationMid:pn,itemHoverColor:be,lineType:ke,colorSplit:ot,itemDisabledColor:Lt,dangerItemColor:$t,dangerItemHoverColor:tn,dangerItemSelectedColor:an,dangerItemActiveBg:kt,dangerItemSelectedBg:Xt,itemHoverBg:bn,itemActiveBg:rn,menuSubMenuBg:Zn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:Xn,horizontalItemBorderRadius:la,horizontalItemHoverBg:Dn,popupBg:An}=Ae;return{[`${Le}-${Ee}, ${Le}-${Ee} > ${Le}`]:{color:Je,background:Dt,[`&${Le}-root:focus-visible`]:Object.assign({},Qe(Ae)),[`${Le}-item-group-title`]:{color:bt},[`${Le}-submenu-selected`]:{[`> ${Le}-submenu-title`]:{color:et}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{color:`${Lt} !important`},[`${Le}-item:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{[`&:hover, > ${Le}-submenu-title:hover`]:{color:be}},[`&:not(${Le}-horizontal)`]:{[`${Le}-item:not(${Le}-item-selected)`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:rn}},[`${Le}-submenu-title`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:rn}}},[`${Le}-item-danger`]:{color:$t,[`&${Le}-item:hover`]:{[`&:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{color:tn}},[`&${Le}-item:active`]:{background:kt}},[`${Le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Le}-item-selected`]:{color:et,[`&${Le}-item-danger`]:{color:an},"a, a:hover":{color:"inherit"}},[`& ${Le}-item-selected`]:{backgroundColor:qt,[`&${Le}-item-danger`]:{backgroundColor:Xt}},[`${Le}-item, ${Le}-submenu-title`]:{[`&:not(${Le}-item-disabled):focus-visible`]:Object.assign({},Qe(Ae))},[`&${Le}-submenu > ${Le}`]:{backgroundColor:Zn},[`&${Le}-popup > ${Le}`]:{backgroundColor:An},[`&${Le}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${Le}-item, > ${Le}-submenu`]:{top:zt,marginTop:-zt,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${ln}px solid transparent`,transition:`border-color ${Ot} ${Qt}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:ln,borderBottomColor:Kn}},"&-selected":{color:Kn,backgroundColor:Xn,"&:hover":{backgroundColor:Xn},"&::after":{borderBottomWidth:ln,borderBottomColor:Kn}}}}),[`&${Le}-root`]:{[`&${Le}-inline, &${Le}-vertical`]:{borderInlineEnd:`${zt}px ${ke} ${ot}`}},[`&${Le}-inline`]:{[`${Le}-sub${Le}-inline`]:{background:Tt},[`${Le}-item, ${Le}-submenu-title`]:zt&&sn?{width:`calc(100% + ${zt}px)`}:{},[`${Le}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${sn}px solid ${et}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${pn} ${jn}`,`opacity ${pn} ${jn}`].join(","),content:'""'},[`&${Le}-item-danger`]:{"&::after":{borderInlineEndColor:an}}},[`${Le}-selected, ${Le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${pn} ${Qt}`,`opacity ${pn} ${Qt}`].join(",")}}}}}};const Mt=Ae=>{const{componentCls:Ee,itemHeight:Le,itemMarginInline:Je,padding:et,menuArrowSize:bt,marginXS:Dt,itemMarginBlock:Tt}=Ae,qt=et+bt+Dt;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:Le,lineHeight:`${Le}px`,paddingInline:et,overflow:"hidden",textOverflow:"ellipsis",marginInline:Je,marginBlock:Tt,width:`calc(100% - ${Je*2}px)`},[`> ${Ee}-item,
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:Le,lineHeight:`${Le}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
|
|
${Ee}-submenu-title`]:{paddingInlineEnd:qt}}};var Te=Ae=>{const{componentCls:Ee,iconCls:Le,itemHeight:Je,colorTextLightSolid:et,dropdownWidth:bt,controlHeightLG:Dt,motionDurationMid:Tt,motionEaseOut:qt,paddingXL:ln,itemMarginInline:sn,fontSizeLG:zt,motionDurationSlow:Ot,paddingXS:Qt,boxShadowSecondary:jn,collapsedWidth:xn,collapsedIconSize:pn}=Ae,be={height:Je,lineHeight:`${Je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},Mt(Ae))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},Mt(Ae)),{boxShadow:jn})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:bt,maxHeight:`calc(100vh - ${Dt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ot}`,`background ${Ot}`,`padding ${Tt} ${qt}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:be,[`& ${Ee}-item-group-title`]:{paddingInlineStart:ln}},[`${Ee}-item`]:be}},{[`${Ee}-inline-collapsed`]:{width:xn,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:zt,textAlign:"center"}}},[`> ${Ee}-item,
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${zt/2}px - ${sn}px)`,textOverflow:"clip",[`
|
|
${Ee}-submenu-arrow,
|
|
${Ee}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Ee}-item-icon, ${Le}`]:{margin:0,fontSize:pn,lineHeight:`${Je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${Le}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${Le}`]:{display:"none"},"a, a:hover":{color:et}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},Ne.vS),{paddingInline:Qt})}}]};const rt=Ae=>{const{componentCls:Ee,motionDurationSlow:Le,motionDurationMid:Je,motionEaseInOut:et,motionEaseOut:bt,iconCls:Dt,iconSize:Tt,iconMarginInlineEnd:qt}=Ae;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Le}`,`background ${Le}`,`padding ${Le} ${et}`].join(","),[`${Ee}-item-icon, ${Dt}`]:{minWidth:Tt,fontSize:Tt,transition:[`font-size ${Je} ${bt}`,`margin ${Le} ${et}`,`color ${Le}`].join(","),"+ span":{marginInlineStart:qt,opacity:1,transition:[`opacity ${Le} ${et}`,`margin ${Le}`,`color ${Le}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,Ne.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${Dt}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},xt=Ae=>{const{componentCls:Ee,motionDurationSlow:Le,motionEaseInOut:Je,borderRadius:et,menuArrowSize:bt,menuArrowOffset:Dt}=Ae;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ae.margin,width:bt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Le} ${Je}, opacity ${Le}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:bt*.6,height:bt*.15,backgroundColor:"currentcolor",borderRadius:et,transition:[`background ${Le} ${Je}`,`transform ${Le} ${Je}`,`top ${Le} ${Je}`,`color ${Le} ${Je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Dt})`},"&::after":{transform:`rotate(-45deg) translateY(${Dt})`}}}}},nt=Ae=>{const{antCls:Ee,componentCls:Le,fontSize:Je,motionDurationSlow:et,motionDurationMid:bt,motionEaseInOut:Dt,paddingXS:Tt,padding:qt,colorSplit:ln,lineWidth:sn,zIndexPopup:zt,borderRadiusLG:Ot,subMenuItemBorderRadius:Qt,menuArrowSize:jn,menuArrowOffset:xn,lineType:pn,menuPanelMaskInset:be,groupTitleLineHeight:ke,groupTitleFontSize:ot}=Ae;return[{"":{[`${Le}`]:Object.assign(Object.assign({},(0,Ne.dF)()),{"&-hidden":{display:"none"}})},[`${Le}-submenu-hidden`]:{display:"none"}},{[Le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(Ae)),(0,Ne.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Je,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${et} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Le}-item`]:{flex:"none"}},[`${Le}-item, ${Le}-submenu, ${Le}-submenu-title`]:{borderRadius:Ae.itemBorderRadius},[`${Le}-item-group-title`]:{padding:`${Tt}px ${qt}px`,fontSize:ot,lineHeight:ke,transition:`all ${et}`},[`&-horizontal ${Le}-submenu`]:{transition:[`border-color ${et} ${Dt}`,`background ${et} ${Dt}`].join(",")},[`${Le}-submenu, ${Le}-submenu-inline`]:{transition:[`border-color ${et} ${Dt}`,`background ${et} ${Dt}`,`padding ${bt} ${Dt}`].join(",")},[`${Le}-submenu ${Le}-sub`]:{cursor:"initial",transition:[`background ${et} ${Dt}`,`padding ${et} ${Dt}`].join(",")},[`${Le}-title-content`]:{transition:`color ${et}`},[`${Le}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Le}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ln,borderStyle:pn,borderWidth:0,borderTopWidth:sn,marginBlock:sn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Ae)),{[`${Le}-item-group`]:{[`${Le}-item-group-list`]:{margin:0,padding:0,[`${Le}-item, ${Le}-submenu-title`]:{paddingInline:`${Je*2}px ${qt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zt,borderRadius:Ot,boxShadow:"none",transformOrigin:"0 0",[`&${Le}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${be}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:be},"\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:Ae.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ae.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ae.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ae.paddingXS},[`> ${Le}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ot},rt(Ae)),xt(Ae)),{[`${Le}-item, ${Le}-submenu > ${Le}-submenu-title`]:{borderRadius:Qt},[`${Le}-submenu-title::after`]:{transition:`transform ${et} ${Dt}`}})}}),xt(Ae)),{[`&-inline-collapsed ${Le}-submenu-arrow,
|
|
&-inline ${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xn})`},"&::after":{transform:`rotate(45deg) translateX(-${xn})`}},[`${Le}-submenu-open${Le}-submenu-inline > ${Le}-submenu-title > ${Le}-submenu-arrow`]:{transform:`translateY(-${jn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${xn})`},"&::before":{transform:`rotate(45deg) translateX(${xn})`}}})},{[`${Ee}-layout-header`]:{[Le]:{lineHeight:"inherit"}}}]};var dt=(Ae,Ee)=>(0,dn.Z)("Menu",Je=>{if(Ee===!1)return[];const{colorBgElevated:et,colorPrimary:bt,colorTextLightSolid:Dt,controlHeightLG:Tt,fontSize:qt,darkItemColor:ln,darkDangerItemColor:sn,darkItemBg:zt,darkSubMenuItemBg:Ot,darkItemSelectedColor:Qt,darkItemSelectedBg:jn,darkDangerItemSelectedBg:xn,darkItemHoverBg:pn,darkGroupTitleColor:be,darkItemHoverColor:ke,darkItemDisabledColor:ot,darkDangerItemHoverColor:Lt,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:tn}=Je,an=qt/7*5,kt=(0,Ce.TS)(Je,{menuArrowSize:an,menuHorizontalHeight:Tt*1.15,menuArrowOffset:`${an*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:et}),Xt=(0,Ce.TS)(kt,{itemColor:ln,itemHoverColor:ke,groupTitleColor:be,itemSelectedColor:Qt,itemBg:zt,popupBg:zt,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:jn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pn,itemDisabledColor:ot,dangerItemColor:sn,dangerItemHoverColor:Lt,dangerItemSelectedColor:$t,dangerItemActiveBg:tn,dangerItemSelectedBg:xn,menuSubMenuBg:Ot,horizontalItemSelectedColor:Dt,horizontalItemSelectedBg:bt});return[nt(kt),Ie(kt),Te(kt),st(kt,"light"),st(Xt,"dark"),ct(kt),(0,Re.Z)(kt),(0,yt.oN)(kt,"slide-up"),(0,yt.oN)(kt,"slide-down"),(0,Ut._y)(kt,"zoom-big")]},Je=>{const{colorPrimary:et,colorError:bt,colorTextDisabled:Dt,colorErrorBg:Tt,colorText:qt,colorTextDescription:ln,colorBgContainer:sn,colorFillAlter:zt,colorFillContent:Ot,lineWidth:Qt,lineWidthBold:jn,controlItemBgActive:xn,colorBgTextHover:pn,controlHeightLG:be,lineHeight:ke,colorBgElevated:ot,marginXXS:Lt,padding:$t,fontSize:tn,controlHeightSM:an,fontSizeLG:kt,colorTextLightSolid:Xt,colorErrorHover:bn}=Je,rn=new ce.C(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Je.zIndexPopupBase+50,radiusItem:Je.borderRadiusLG,itemBorderRadius:Je.borderRadiusLG,radiusSubMenuItem:Je.borderRadiusSM,subMenuItemBorderRadius:Je.borderRadiusSM,colorItemText:qt,itemColor:qt,colorItemTextHover:qt,itemHoverColor:qt,colorItemTextHoverHorizontal:et,horizontalItemHoverColor:et,colorGroupTitle:ln,groupTitleColor:ln,colorItemTextSelected:et,itemSelectedColor:et,colorItemTextSelectedHorizontal:et,horizontalItemSelectedColor:et,colorItemBg:sn,itemBg:sn,colorItemBgHover:pn,itemHoverBg:pn,colorItemBgActive:Ot,itemActiveBg:xn,colorSubItemBg:zt,subMenuItemBg:zt,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jn,activeBarHeight:jn,colorActiveBarBorderSize:Qt,activeBarBorderWidth:Qt,colorItemTextDisabled:Dt,itemDisabledColor:Dt,colorDangerItemText:bt,dangerItemColor:bt,colorDangerItemTextHover:bt,dangerItemHoverColor:bt,colorDangerItemTextSelected:bt,dangerItemSelectedColor:bt,colorDangerItemBgActive:Tt,dangerItemActiveBg:Tt,colorDangerItemBgSelected:Tt,dangerItemSelectedBg:Tt,itemMarginInline:Je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:be,groupTitleLineHeight:ke,collapsedWidth:be*2,popupBg:ot,itemMarginBlock:Lt,itemPaddingInline:$t,horizontalLineHeight:`${be*1.15}px`,iconSize:tn,iconMarginInlineEnd:an-tn,collapsedIconSize:kt,groupTitleFontSize:tn,darkItemDisabledColor:new ce.C(Xt).setAlpha(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:bt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:et,darkDangerItemSelectedBg:bt,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Xt,darkDangerItemHoverColor:bn,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:bt}},{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"]]})(Ae),ue=function(Ae,Ee){var Le={};for(var Je in Ae)Object.prototype.hasOwnProperty.call(Ae,Je)&&Ee.indexOf(Je)<0&&(Le[Je]=Ae[Je]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(Ae);et<Je.length;et++)Ee.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Je[et])&&(Le[Je[et]]=Ae[Je[et]]);return Le},Ct=(0,Pe.forwardRef)((Ae,Ee)=>{var Le,Je;const et=Pe.useContext(re.Z),bt=et||{},{getPrefixCls:Dt,getPopupContainer:Tt,direction:qt,menu:ln}=Pe.useContext(Fe.E_),sn=Dt(),{prefixCls:zt,className:Ot,style:Qt,theme:jn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:pn,inlineCollapsed:be,siderCollapsed:ke,items:ot,children:Lt,rootClassName:$t,mode:tn,selectable:an,onClick:kt,overflowedIndicatorPopupClassName:Xt}=Ae,bn=ue(Ae,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),rn=(0,Ve.Z)(bn,["collapsedWidth"]),Zn=Se(ot)||Lt;(Le=bt.validator)===null||Le===void 0||Le.call(bt,{mode:tn});const Kn=(0,ee.useEvent)(function(){var ta;kt==null||kt.apply(void 0,arguments),(ta=bt.onClick)===null||ta===void 0||ta.call(bt)}),Xn=bt.mode||tn,la=an!=null?an:bt.selectable,Dn=Pe.useMemo(()=>ke!==void 0?ke:be,[be,ke]),An={horizontal:{motionName:`${sn}-slide-up`},inline:(0,ne.Z)(sn),other:{motionName:`${sn}-zoom-big`}},Yn=Dt("menu",zt||bt.prefixCls),[ua,ma]=dt(Yn,!et),Rn=fe()(`${Yn}-${jn}`,ln==null?void 0:ln.className,Ot);let Pa;if(typeof xn=="function")Pa=xn;else if(xn===null||xn===!1)Pa=null;else if(bt.expandIcon===null||bt.expandIcon===!1)Pa=null;else{const ta=xn!=null?xn:bt.expandIcon;Pa=(0,Ze.Tm)(ta,{className:fe()(`${Yn}-submenu-expand-icon`,(0,Ze.l$)(ta)?(Je=ta.props)===null||Je===void 0?void 0:Je.className:"")})}const Ga=Pe.useMemo(()=>({prefixCls:Yn,inlineCollapsed:Dn||!1,direction:qt,firstLevel:!0,theme:jn,mode:Xn,disableMenuItemTitleTooltip:pn}),[Yn,Dn,qt,pn,jn]);return ua(Pe.createElement(re.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Ga},Pe.createElement(te.ZP,Object.assign({getPopupContainer:Tt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(Yn,`${Yn}-${jn}`,Xt),mode:Xn,selectable:la,onClick:Kn},rn,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Qt),className:Rn,prefixCls:Yn,direction:qt,defaultMotions:An,expandIcon:Pa,ref:Ee,rootClassName:fe()($t,ma)}),Zn))))});const Kt=(0,Pe.forwardRef)((Ae,Ee)=>{const Le=(0,Pe.useRef)(null),Je=Pe.useContext(Ye.D);return(0,Pe.useImperativeHandle)(Ee,()=>({menu:Le.current,focus:et=>{var bt;(bt=Le.current)===null||bt===void 0||bt.focus(et)}})),Pe.createElement(Ct,Object.assign({ref:Le},Ae,Je))});Kt.Item=E,Kt.SubMenu=x,Kt.Divider=Oe,Kt.ItemGroup=te.BW;var Pt=Kt},38703:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return pn}});var te=oe(67294),Pe=oe(87725),Ye=oe(18299),Ge=oe(16646),fe=oe(73475),Fe=oe(94184),me=oe.n(Fe),Me=oe(10366),Oe=oe(53124),xe=oe(87462),Ve=oe(1413),je=oe(45987),Ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var ke=(0,te.useRef)([]),ot=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Lt=Date.now(),$t=!1;ke.current.forEach(function(tn){if(tn){$t=!0;var an=tn.style;an.transitionDuration=".3s, .3s, .3s, .06s",ot.current&&Lt-ot.current<100&&(an.transitionDuration="0s, 0s")}}),$t&&(ot.current=Date.now())}),ke.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(ke){var ot=(0,Ve.Z)((0,Ve.Z)({},Ze),ke),Lt=ot.className,$t=ot.percent,tn=ot.prefixCls,an=ot.strokeColor,kt=ot.strokeLinecap,Xt=ot.strokeWidth,bn=ot.style,rn=ot.trailColor,Zn=ot.trailWidth,Kn=ot.transition,Xn=(0,je.Z)(ot,a);delete Xn.gapPosition;var la=Array.isArray($t)?$t:[$t],Dn=Array.isArray(an)?an:[an],An=ae(),Yn=Xt/2,ua=100-Xt/2,ma="M ".concat(kt==="round"?Yn:0,",").concat(Yn,`
|
|
L `).concat(kt==="round"?ua:100,",").concat(Yn),Rn="0 0 100 ".concat(Xt),Pa=0;return te.createElement("svg",(0,xe.Z)({className:me()("".concat(tn,"-line"),Lt),viewBox:Rn,preserveAspectRatio:"none",style:bn},Xn),te.createElement("path",{className:"".concat(tn,"-line-trail"),d:ma,strokeLinecap:kt,stroke:rn,strokeWidth:Zn||Xt,fillOpacity:"0"}),la.map(function(Ga,ta){var Ua=1;switch(kt){case"round":Ua=1-Xt/100;break;case"square":Ua=1-Xt/2/100;break;default:Ua=1;break}var eo={strokeDasharray:"".concat(Ga*Ua,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:Kn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qa=Dn[ta]||Dn[Dn.length-1];return Pa+=Ga,te.createElement("path",{key:ta,className:"".concat(tn,"-line-path"),d:ma,strokeLinecap:kt,stroke:Qa,strokeWidth:Xt,fillOpacity:"0",ref:function(Be){An[ta]=Be},style:eo})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var be;return ne?(be=ee,ee+=1):be="TEST_OR_SSR",be}var ge=function(be){var ke=te.useState(),ot=(0,x.Z)(ke,2),Lt=ot[0],$t=ot[1];return te.useEffect(function(){$t("rc_progress_".concat(re()))},[]),be||Lt},de=function(ke){var ot=ke.bg,Lt=ke.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:ot}},Lt)};function Se(be,ke){return Object.keys(be).map(function(ot){var Lt=parseFloat(ot),$t="".concat(Math.floor(Lt*ke),"%");return"".concat(be[ot]," ").concat($t)})}var ce=te.forwardRef(function(be,ke){var ot=be.prefixCls,Lt=be.color,$t=be.gradientId,tn=be.radius,an=be.style,kt=be.ptg,Xt=be.strokeLinecap,bn=be.strokeWidth,rn=be.size,Zn=be.gapDegree,Kn=Lt&&(0,b.Z)(Lt)==="object",Xn=Kn?"#FFF":void 0,la=rn/2,Dn=te.createElement("circle",{className:"".concat(ot,"-circle-path"),r:tn,cx:la,cy:la,stroke:Xn,strokeLinecap:Xt,strokeWidth:bn,opacity:kt===0?0:1,style:an,ref:ke});if(!Kn)return Dn;var An="".concat($t,"-conic"),Yn=Zn?"".concat(180+Zn/2,"deg"):"0deg",ua=Se(Lt,(360-Zn)/360),ma=Se(Lt,1),Rn="conic-gradient(from ".concat(Yn,", ").concat(ua.join(", "),")"),Pa="linear-gradient(to ".concat(Zn?"bottom":"top",", ").concat(ma.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:An},Dn),te.createElement("foreignObject",{x:0,y:0,width:rn,height:rn,mask:"url(#".concat(An,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Rn}))))}),Ne=ce,Re=100,yt=function(ke,ot,Lt,$t,tn,an,kt,Xt,bn,rn){var Zn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Kn=Lt/100*360*((360-an)/360),Xn=an===0?0:{bottom:0,top:180,left:90,right:-90}[kt],la=(100-$t)/100*ot;bn==="round"&&$t!==100&&(la+=rn/2,la>=ot&&(la=ot-.01));var Dn=Re/2;return{stroke:typeof Xt=="string"?Xt:void 0,strokeDasharray:"".concat(ot,"px ").concat(ke),strokeDashoffset:la+Zn,transform:"rotate(".concat(tn+Kn+Xn,"deg)"),transformOrigin:"".concat(Dn,"px ").concat(Dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ut=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function dn(be){var ke=be!=null?be:[];return Array.isArray(ke)?ke:[ke]}var Ce=function(ke){var ot=(0,Ve.Z)((0,Ve.Z)({},Ze),ke),Lt=ot.id,$t=ot.prefixCls,tn=ot.steps,an=ot.strokeWidth,kt=ot.trailWidth,Xt=ot.gapDegree,bn=Xt===void 0?0:Xt,rn=ot.gapPosition,Zn=ot.trailColor,Kn=ot.strokeLinecap,Xn=ot.style,la=ot.className,Dn=ot.strokeColor,An=ot.percent,Yn=(0,je.Z)(ot,Ut),ua=Re/2,ma=ge(Lt),Rn="".concat(ma,"-gradient"),Pa=ua-an/2,Ga=Math.PI*2*Pa,ta=bn>0?90+bn/2:-90,Ua=Ga*((360-bn)/360),eo=(0,b.Z)(tn)==="object"?tn:{count:tn,space:2},Qa=eo.count,we=eo.space,Be=dn(An),ye=dn(Dn),vt=ye.find(function(Ia){return Ia&&(0,b.Z)(Ia)==="object"}),Rt=vt&&(0,b.Z)(vt)==="object",jt=Rt?"butt":Kn,kn=yt(Ga,Ua,0,100,ta,bn,rn,Zn,jt,an),Sn=ae(),Bn=function(){var ft=0;return Be.map(function(Cn,ve){var Ue=ye[ve]||ye[ye.length-1],ze=yt(Ga,Ua,ft,Cn,ta,bn,rn,Ue,jt,an);return ft+=Cn,te.createElement(Ne,{key:ve,color:Ue,ptg:Cn,radius:Pa,prefixCls:$t,gradientId:Rn,style:ze,strokeLinecap:jt,strokeWidth:an,gapDegree:bn,ref:function(ht){Sn[ve]=ht},size:Re})}).reverse()},na=function(){var ft=Math.round(Qa*(Be[0]/100)),Cn=100/Qa,ve=0;return new Array(Qa).fill(null).map(function(Ue,ze){var He=ze<=ft-1?ye[0]:Zn,ht=He&&(0,b.Z)(He)==="object"?"url(#".concat(Rn,")"):void 0,at=yt(Ga,Ua,ve,Cn,ta,bn,rn,He,"butt",an,we);return ve+=(Ua-at.strokeDashoffset+we)*100/Ua,te.createElement("circle",{key:ze,className:"".concat($t,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:ht,strokeWidth:an,opacity:1,style:at,ref:function(qe){Sn[ze]=qe}})})};return te.createElement("svg",(0,xe.Z)({className:me()("".concat($t,"-circle"),la),viewBox:"0 0 ".concat(Re," ").concat(Re),style:Xn,id:Lt,role:"presentation"},Yn),!Qa&&te.createElement("circle",{className:"".concat($t,"-circle-trail"),r:Pa,cx:ua,cy:ua,stroke:Zn,strokeLinecap:jt,strokeWidth:kt||an,style:kn}),Qa?na():Bn())},We=Ce,Ie={Line:E,Circle:We},gt=oe(83062),ct=oe(47448);function Qe(be){return!be||be<0?0:be>100?100:be}function tt(be){let{success:ke,successPercent:ot}=be,Lt=ot;return ke&&"progress"in ke&&(Lt=ke.progress),ke&&"percent"in ke&&(Lt=ke.percent),Lt}const st=be=>{let{percent:ke,success:ot,successPercent:Lt}=be;const $t=Qe(tt({success:ot,successPercent:Lt}));return[$t,Qe(Qe(ke)-$t)]},Mt=be=>{let{success:ke={},strokeColor:ot}=be;const{strokeColor:Lt}=ke;return[Lt||ct.presetPrimaryColors.green,ot||null]},pe=(be,ke,ot)=>{var Lt,$t,tn,an;let kt=-1,Xt=-1;if(ke==="step"){const bn=ot.steps,rn=ot.strokeWidth;typeof be=="string"||typeof be=="undefined"?(kt=be==="small"?2:14,Xt=rn!=null?rn:8):typeof be=="number"?[kt,Xt]=[be,be]:[kt=14,Xt=8]=be,kt*=bn}else if(ke==="line"){const bn=ot==null?void 0:ot.strokeWidth;typeof be=="string"||typeof be=="undefined"?Xt=bn||(be==="small"?6:8):typeof be=="number"?[kt,Xt]=[be,be]:[kt=-1,Xt=8]=be}else(ke==="circle"||ke==="dashboard")&&(typeof be=="string"||typeof be=="undefined"?[kt,Xt]=be==="small"?[60,60]:[120,120]:typeof be=="number"?[kt,Xt]=[be,be]:(kt=($t=(Lt=be[0])!==null&&Lt!==void 0?Lt:be[1])!==null&&$t!==void 0?$t:120,Xt=(an=(tn=be[0])!==null&&tn!==void 0?tn:be[1])!==null&&an!==void 0?an:120));return[kt,Xt]},Te=3,rt=be=>Te/be*100;var nt=be=>{const{prefixCls:ke,trailColor:ot=null,strokeLinecap:Lt="round",gapPosition:$t,gapDegree:tn,width:an=120,type:kt,children:Xt,success:bn,size:rn=an}=be,[Zn,Kn]=pe(rn,"circle");let{strokeWidth:Xn}=be;Xn===void 0&&(Xn=Math.max(rt(Zn),6));const la={width:Zn,height:Kn,fontSize:Zn*.15+6},Dn=te.useMemo(()=>{if(tn||tn===0)return tn;if(kt==="dashboard")return 75},[tn,kt]),An=$t||kt==="dashboard"&&"bottom"||void 0,Yn=Object.prototype.toString.call(be.strokeColor)==="[object Object]",ua=Mt({success:bn,strokeColor:be.strokeColor}),ma=me()(`${ke}-inner`,{[`${ke}-circle-gradient`]:Yn}),Rn=te.createElement(We,{percent:st(be),strokeWidth:Xn,trailWidth:Xn,strokeColor:ua,strokeLinecap:Lt,trailColor:ot,prefixCls:ke,gapDegree:Dn,gapPosition:An});return te.createElement("div",{className:ma,style:la},Zn<=20?te.createElement(gt.Z,{title:Xt},te.createElement("span",null,Rn)):te.createElement(te.Fragment,null,Rn,Xt))},dt=function(be,ke){var ot={};for(var Lt in be)Object.prototype.hasOwnProperty.call(be,Lt)&&ke.indexOf(Lt)<0&&(ot[Lt]=be[Lt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Lt=Object.getOwnPropertySymbols(be);$t<Lt.length;$t++)ke.indexOf(Lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(be,Lt[$t])&&(ot[Lt[$t]]=be[Lt[$t]]);return ot};const ue=be=>{let ke=[];return Object.keys(be).forEach(ot=>{const Lt=parseFloat(ot.replace(/%/g,""));isNaN(Lt)||ke.push({key:Lt,value:be[ot]})}),ke=ke.sort((ot,Lt)=>ot.key-Lt.key),ke.map(ot=>{let{key:Lt,value:$t}=ot;return`${$t} ${Lt}%`}).join(", ")},it=(be,ke)=>{const{from:ot=ct.presetPrimaryColors.blue,to:Lt=ct.presetPrimaryColors.blue,direction:$t=ke==="rtl"?"to left":"to right"}=be,tn=dt(be,["from","to","direction"]);if(Object.keys(tn).length!==0){const an=ue(tn);return{backgroundImage:`linear-gradient(${$t}, ${an})`}}return{backgroundImage:`linear-gradient(${$t}, ${ot}, ${Lt})`}};var Kt=be=>{const{prefixCls:ke,direction:ot,percent:Lt,size:$t,strokeWidth:tn,strokeColor:an,strokeLinecap:kt="round",children:Xt,trailColor:bn=null,success:rn}=be,Zn=an&&typeof an!="string"?it(an,ot):{backgroundColor:an},Kn=kt==="square"||kt==="butt"?0:void 0,Xn={backgroundColor:bn||void 0,borderRadius:Kn},la=$t!=null?$t:[-1,tn||($t==="small"?6:8)],[Dn,An]=pe(la,"line",{strokeWidth:tn}),Yn=Object.assign({width:`${Qe(Lt)}%`,height:An,borderRadius:Kn},Zn),ua=tt(be),ma={width:`${Qe(ua)}%`,height:An,borderRadius:Kn,backgroundColor:rn==null?void 0:rn.strokeColor},Rn={width:Dn<0?"100%":Dn,height:An};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${ke}-outer`,style:Rn},te.createElement("div",{className:`${ke}-inner`,style:Xn},te.createElement("div",{className:`${ke}-bg`,style:Yn}),ua!==void 0?te.createElement("div",{className:`${ke}-success-bg`,style:ma}):null)),Xt)},Ae=be=>{const{size:ke,steps:ot,percent:Lt=0,strokeWidth:$t=8,strokeColor:tn,trailColor:an=null,prefixCls:kt,children:Xt}=be,bn=Math.round(ot*(Lt/100)),rn=ke==="small"?2:14,Zn=ke!=null?ke:[rn,$t],[Kn,Xn]=pe(Zn,"step",{steps:ot,strokeWidth:$t}),la=Kn/ot,Dn=new Array(ot);for(let An=0;An<ot;An++){const Yn=Array.isArray(tn)?tn[An]:tn;Dn[An]=te.createElement("div",{key:An,className:me()(`${kt}-steps-item`,{[`${kt}-steps-item-active`]:An<=bn-1}),style:{backgroundColor:An<=bn-1?Yn:an,width:la,height:Xn}})}return te.createElement("div",{className:`${kt}-steps-outer`},Dn,Xt)},Ee=oe(45930),Le=oe(14747),Je=oe(67968),et=oe(45503);const bt=be=>{const ke=be?"100%":"-100%";return new Ee.Keyframes(`antProgress${be?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ke}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ke}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Dt=be=>{const{componentCls:ke,iconCls:ot}=be;return{[ke]:Object.assign(Object.assign({},(0,Le.Wf)(be)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:be.fontSize,marginInlineEnd:be.marginXS,marginBottom:be.marginXS},[`${ke}-outer`]:{display:"inline-block",width:"100%"},[`&${ke}-show-info`]:{[`${ke}-outer`]:{marginInlineEnd:`calc(-2em - ${be.marginXS}px)`,paddingInlineEnd:`calc(2em + ${be.paddingXS}px)`}},[`${ke}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:be.remainingColor,borderRadius:be.lineBorderRadius},[`${ke}-inner:not(${ke}-circle-gradient)`]:{[`${ke}-circle-path`]:{stroke:be.defaultColor}},[`${ke}-success-bg, ${ke}-bg`]:{position:"relative",backgroundColor:be.defaultColor,borderRadius:be.lineBorderRadius,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOutCirc}`},[`${ke}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:be.colorSuccess},[`${ke}-text`]:{display:"inline-block",width:"2em",marginInlineStart:be.marginXS,color:be.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ot]:{fontSize:be.fontSize}},[`&${ke}-status-active`]:{[`${ke}-bg::before`]:{position:"absolute",inset:0,backgroundColor:be.colorBgContainer,borderRadius:be.lineBorderRadius,opacity:0,animationName:bt(),animationDuration:be.progressActiveMotionDuration,animationTimingFunction:be.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ke}-rtl${ke}-status-active`]:{[`${ke}-bg::before`]:{animationName:bt(!0)}},[`&${ke}-status-exception`]:{[`${ke}-bg`]:{backgroundColor:be.colorError},[`${ke}-text`]:{color:be.colorError}},[`&${ke}-status-exception ${ke}-inner:not(${ke}-circle-gradient)`]:{[`${ke}-circle-path`]:{stroke:be.colorError}},[`&${ke}-status-success`]:{[`${ke}-bg`]:{backgroundColor:be.colorSuccess},[`${ke}-text`]:{color:be.colorSuccess}},[`&${ke}-status-success ${ke}-inner:not(${ke}-circle-gradient)`]:{[`${ke}-circle-path`]:{stroke:be.colorSuccess}}})}},Tt=be=>{const{componentCls:ke,iconCls:ot}=be;return{[ke]:{[`${ke}-circle-trail`]:{stroke:be.remainingColor},[`&${ke}-circle ${ke}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ke}-circle ${ke}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:be.circleTextColor,fontSize:be.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ot]:{fontSize:`${be.fontSize/be.fontSizeSM}em`}},[`${ke}-circle&-status-exception`]:{[`${ke}-text`]:{color:be.colorError}},[`${ke}-circle&-status-success`]:{[`${ke}-text`]:{color:be.colorSuccess}}},[`${ke}-inline-circle`]:{lineHeight:1,[`${ke}-inner`]:{verticalAlign:"bottom"}}}},qt=be=>{const{componentCls:ke}=be;return{[ke]:{[`${ke}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:be.progressStepMinWidth,marginInlineEnd:be.progressStepMarginInlineEnd,backgroundColor:be.remainingColor,transition:`all ${be.motionDurationSlow}`,"&-active":{backgroundColor:be.defaultColor}}}}}},ln=be=>{const{componentCls:ke,iconCls:ot}=be;return{[ke]:{[`${ke}-small&-line, ${ke}-small&-line ${ke}-text ${ot}`]:{fontSize:be.fontSizeSM}}}};var sn=(0,Je.Z)("Progress",be=>{const ke=be.marginXXS/2,ot=(0,et.TS)(be,{progressStepMarginInlineEnd:ke,progressStepMinWidth:ke,progressActiveMotionDuration:"2.4s"});return[Dt(ot),Tt(ot),qt(ot),ln(ot)]},be=>({circleTextColor:be.colorText,defaultColor:be.colorInfo,remainingColor:be.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),zt=function(be,ke){var ot={};for(var Lt in be)Object.prototype.hasOwnProperty.call(be,Lt)&&ke.indexOf(Lt)<0&&(ot[Lt]=be[Lt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Lt=Object.getOwnPropertySymbols(be);$t<Lt.length;$t++)ke.indexOf(Lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(be,Lt[$t])&&(ot[Lt[$t]]=be[Lt[$t]]);return ot};const Ot=null,Qt=["normal","exception","active","success"];var xn=te.forwardRef((be,ke)=>{const{prefixCls:ot,className:Lt,rootClassName:$t,steps:tn,strokeColor:an,percent:kt=0,size:Xt="default",showInfo:bn=!0,type:rn="line",status:Zn,format:Kn,style:Xn}=be,la=zt(be,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Dn=te.useMemo(()=>{var Be,ye;const vt=tt(be);return parseInt(vt!==void 0?(Be=vt!=null?vt:0)===null||Be===void 0?void 0:Be.toString():(ye=kt!=null?kt:0)===null||ye===void 0?void 0:ye.toString(),10)},[kt,be.success,be.successPercent]),An=te.useMemo(()=>!Qt.includes(Zn)&&Dn>=100?"success":Zn||"normal",[Zn,Dn]),{getPrefixCls:Yn,direction:ua,progress:ma}=te.useContext(Oe.E_),Rn=Yn("progress",ot),[Pa,Ga]=sn(Rn),ta=te.useMemo(()=>{if(!bn)return null;const Be=tt(be);let ye;const vt=Kn||(jt=>`${jt}%`),Rt=rn==="line";return Kn||An!=="exception"&&An!=="success"?ye=vt(Qe(kt),Qe(Be)):An==="exception"?ye=Rt?te.createElement(Ge.Z,null):te.createElement(fe.Z,null):An==="success"&&(ye=Rt?te.createElement(Pe.Z,null):te.createElement(Ye.Z,null)),te.createElement("span",{className:`${Rn}-text`,title:typeof ye=="string"?ye:void 0},ye)},[bn,kt,Dn,An,rn,Rn,Kn]),Ua=Array.isArray(an)?an[0]:an,eo=typeof an=="string"||Array.isArray(an)?an:void 0;let Qa;rn==="line"?Qa=tn?te.createElement(Ae,Object.assign({},be,{strokeColor:eo,prefixCls:Rn,steps:tn}),ta):te.createElement(Kt,Object.assign({},be,{strokeColor:Ua,prefixCls:Rn,direction:ua}),ta):(rn==="circle"||rn==="dashboard")&&(Qa=te.createElement(nt,Object.assign({},be,{strokeColor:Ua,prefixCls:Rn,progressStatus:An}),ta));const we=me()(Rn,`${Rn}-status-${An}`,`${Rn}-${rn==="dashboard"&&"circle"||tn&&"steps"||rn}`,{[`${Rn}-inline-circle`]:rn==="circle"&&pe(Xt,"circle")[0]<=20,[`${Rn}-show-info`]:bn,[`${Rn}-${Xt}`]:typeof Xt=="string",[`${Rn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,Lt,$t,Ga);return Pa(te.createElement("div",Object.assign({ref:ke,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),Xn),className:we,role:"progressbar","aria-valuenow":Dn},(0,Me.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),pn=xn},59810:function(De,mt,oe){"use strict";oe.d(mt,{default:function(){return Cn}});var te=oe(67294),Pe=oe(74902),Ye=oe(94184),Ge=oe.n(Ye),fe=oe(87462),Fe=oe(15671),me=oe(43144),Me=oe(60136),Oe=oe(51630),xe=oe(4942),Ve=oe(45987),je=oe(74165),Ze=oe(71002),ae=oe(15861),a=oe(64217);function y(ve,Ue){var ze="cannot ".concat(ve.method," ").concat(ve.action," ").concat(Ue.status,"'"),He=new Error(ze);return He.status=Ue.status,He.method=ve.method,He.url=ve.action,He}function E(ve){var Ue=ve.responseText||ve.response;if(!Ue)return Ue;try{return JSON.parse(Ue)}catch(ze){return Ue}}function b(ve){var Ue=new XMLHttpRequest;ve.onProgress&&Ue.upload&&(Ue.upload.onprogress=function(at){at.total>0&&(at.percent=at.loaded/at.total*100),ve.onProgress(at)});var ze=new FormData;ve.data&&Object.keys(ve.data).forEach(function(ht){var at=ve.data[ht];if(Array.isArray(at)){at.forEach(function(ut){ze.append("".concat(ht,"[]"),ut)});return}ze.append(ht,at)}),ve.file instanceof Blob?ze.append(ve.filename,ve.file,ve.file.name):ze.append(ve.filename,ve.file),Ue.onerror=function(at){ve.onError(at)},Ue.onload=function(){return Ue.status<200||Ue.status>=300?ve.onError(y(ve,Ue),E(Ue)):ve.onSuccess(E(Ue),Ue)},Ue.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in Ue&&(Ue.withCredentials=!0);var He=ve.headers||{};return He["X-Requested-With"]!==null&&Ue.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(ht){He[ht]!==null&&Ue.setRequestHeader(ht,He[ht])}),Ue.send(ze),{abort:function(){Ue.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(ve,Ue){if(ve&&Ue){var ze=Array.isArray(Ue)?Ue:Ue.split(","),He=ve.name||"",ht=ve.type||"",at=ht.replace(/\/.*$/,"");return ze.some(function(ut){var qe=ut.trim();if(/^\*(\/\*)?$/.test(ut))return!0;if(qe.charAt(0)==="."){var Jt=He.toLowerCase(),Gt=qe.toLowerCase(),gn=[Gt];return(Gt===".jpg"||Gt===".jpeg")&&(gn=[".jpg",".jpeg"]),gn.some(function(yn){return Jt.endsWith(yn)})}return/\/\*$/.test(qe)?at===qe.replace(/\/.*$/,""):ht===qe?!0:/^\w+$/.test(qe)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(qe,"'.Skip for check.")),!0):!1})}return!0};function ge(ve,Ue){var ze=ve.createReader(),He=[];function ht(){ze.readEntries(function(at){var ut=Array.prototype.slice.apply(at);He=He.concat(ut);var qe=!ut.length;qe?Ue(He):ht()})}ht()}var de=function(Ue,ze,He){var ht=function at(ut,qe){ut&&(ut.path=qe||"",ut.isFile?ut.file(function(Jt){He(Jt)&&(ut.fullPath&&!Jt.webkitRelativePath&&(Object.defineProperties(Jt,{webkitRelativePath:{writable:!0}}),Jt.webkitRelativePath=ut.fullPath.replace(/^\//,""),Object.defineProperties(Jt,{webkitRelativePath:{writable:!1}})),ze([Jt]))}):ut.isDirectory&&ge(ut,function(Jt){Jt.forEach(function(Gt){at(Gt,"".concat(qe).concat(ut.name,"/"))})}))};Ue.forEach(function(at){ht(at.webkitGetAsEntry())})},Se=de,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ne=function(ve){(0,Me.Z)(ze,ve);var Ue=(0,Oe.Z)(ze);function ze(){var He;(0,Fe.Z)(this,ze);for(var ht=arguments.length,at=new Array(ht),ut=0;ut<ht;ut++)at[ut]=arguments[ut];return He=Ue.call.apply(Ue,[this].concat(at)),He.state={uid:ee()},He.reqs={},He.fileInput=void 0,He._isMounted=void 0,He.onChange=function(qe){var Jt=He.props,Gt=Jt.accept,gn=Jt.directory,yn=qe.target.files,$n=(0,Pe.Z)(yn).filter(function(Ke){return!gn||re(Ke,Gt)});He.uploadFiles($n),He.reset()},He.onClick=function(qe){var Jt=He.fileInput;if(Jt){var Gt=He.props,gn=Gt.children,yn=Gt.onClick;if(gn&&gn.type==="button"){var $n=Jt.parentNode;$n.focus(),$n.querySelector("button").blur()}Jt.click(),yn&&yn(qe)}},He.onKeyDown=function(qe){qe.key==="Enter"&&He.onClick(qe)},He.onFileDrop=function(qe){var Jt=He.props.multiple;if(qe.preventDefault(),qe.type!=="dragover")if(He.props.directory)Se(Array.prototype.slice.call(qe.dataTransfer.items),He.uploadFiles,function(gn){return re(gn,He.props.accept)});else{var Gt=(0,Pe.Z)(qe.dataTransfer.files).filter(function(gn){return re(gn,He.props.accept)});Jt===!1&&(Gt=Gt.slice(0,1)),He.uploadFiles(Gt)}},He.uploadFiles=function(qe){var Jt=(0,Pe.Z)(qe),Gt=Jt.map(function(gn){return gn.uid=ee(),He.processFile(gn,Jt)});Promise.all(Gt).then(function(gn){var yn=He.props.onBatchStart;yn==null||yn(gn.map(function($n){var Ke=$n.origin,$a=$n.parsedFile;return{file:Ke,parsedFile:$a}})),gn.filter(function($n){return $n.parsedFile!==null}).forEach(function($n){He.post($n)})})},He.processFile=function(){var qe=(0,ae.Z)((0,je.Z)().mark(function Jt(Gt,gn){var yn,$n,Ke,$a,ba,Da,aa,lt,Bt;return(0,je.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(yn=He.props.beforeUpload,$n=Gt,!yn){St.next=14;break}return St.prev=3,St.next=6,yn(Gt,gn);case 6:$n=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),$n=!1;case 12:if($n!==!1){St.next=14;break}return St.abrupt("return",{origin:Gt,parsedFile:null,action:null,data:null});case 14:if(Ke=He.props.action,typeof Ke!="function"){St.next=21;break}return St.next=18,Ke(Gt);case 18:$a=St.sent,St.next=22;break;case 21:$a=Ke;case 22:if(ba=He.props.data,typeof ba!="function"){St.next=29;break}return St.next=26,ba(Gt);case 26:Da=St.sent,St.next=30;break;case 29:Da=ba;case 30:return aa=((0,Ze.Z)($n)==="object"||typeof $n=="string")&&$n?$n:Gt,aa instanceof File?lt=aa:lt=new File([aa],Gt.name,{type:Gt.type}),Bt=lt,Bt.uid=Gt.uid,St.abrupt("return",{origin:Gt,data:Da,parsedFile:Bt,action:$a});case 35:case"end":return St.stop()}},Jt,null,[[3,9]])}));return function(Jt,Gt){return qe.apply(this,arguments)}}(),He.saveFileInput=function(qe){He.fileInput=qe},He}return(0,me.Z)(ze,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ht){var at=this,ut=ht.data,qe=ht.origin,Jt=ht.action,Gt=ht.parsedFile;if(this._isMounted){var gn=this.props,yn=gn.onStart,$n=gn.customRequest,Ke=gn.name,$a=gn.headers,ba=gn.withCredentials,Da=gn.method,aa=qe.uid,lt=$n||b,Bt={action:Jt,filename:Ke,data:ut,file:Gt,headers:$a,withCredentials:ba,method:Da||"post",onProgress:function(St){var Pn=at.props.onProgress;Pn==null||Pn(St,Gt)},onSuccess:function(St,Pn){var vn=at.props.onSuccess;vn==null||vn(St,Gt,Pn),delete at.reqs[aa]},onError:function(St,Pn){var vn=at.props.onError;vn==null||vn(St,Pn,Gt),delete at.reqs[aa]}};yn(qe),this.reqs[aa]=lt(Bt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ht){var at=this.reqs;if(ht){var ut=ht.uid?ht.uid:ht;at[ut]&&at[ut].abort&&at[ut].abort(),delete at[ut]}else Object.keys(at).forEach(function(qe){at[qe]&&at[qe].abort&&at[qe].abort(),delete at[qe]})}},{key:"render",value:function(){var ht,at=this.props,ut=at.component,qe=at.prefixCls,Jt=at.className,Gt=at.disabled,gn=at.id,yn=at.style,$n=at.multiple,Ke=at.accept,$a=at.capture,ba=at.children,Da=at.directory,aa=at.openFileDialogOnClick,lt=at.onMouseEnter,Bt=at.onMouseLeave,Yt=(0,Ve.Z)(at,ce),St=Ge()((ht={},(0,xe.Z)(ht,qe,!0),(0,xe.Z)(ht,"".concat(qe,"-disabled"),Gt),(0,xe.Z)(ht,Jt,Jt),ht)),Pn=Da?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},vn=Gt?{}:{onClick:aa?this.onClick:function(){},onKeyDown:aa?this.onKeyDown:function(){},onMouseEnter:lt,onMouseLeave:Bt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(ut,(0,fe.Z)({},vn,{className:St,role:"button",style:yn}),te.createElement("input",(0,fe.Z)({},(0,a.Z)(Yt,{aria:!0,data:!0}),{id:gn,disabled:Gt,type:"file",ref:this.saveFileInput,onClick:function(ca){return ca.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ke},Pn,{multiple:$n,onChange:this.onChange},$a!=null?{capture:$a}:{})),ba)}}]),ze}(te.Component),Re=Ne;function yt(){}var Ut=function(ve){(0,Me.Z)(ze,ve);var Ue=(0,Oe.Z)(ze);function ze(){var He;(0,Fe.Z)(this,ze);for(var ht=arguments.length,at=new Array(ht),ut=0;ut<ht;ut++)at[ut]=arguments[ut];return He=Ue.call.apply(Ue,[this].concat(at)),He.uploader=void 0,He.saveUploader=function(qe){He.uploader=qe},He}return(0,me.Z)(ze,[{key:"abort",value:function(ht){this.uploader.abort(ht)}},{key:"render",value:function(){return te.createElement(Re,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),ze}(te.Component);Ut.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:yt,onError:yt,onSuccess:yt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var dn=Ut,Ce=dn,We=oe(5663),Ie=oe(73935),gt=oe(53124),ct=oe(98866),Qe=oe(10110),tt=oe(24457),st={icon:function(Ue,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ze}},{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:Ue}}]}},name:"file",theme:"twotone"},Mt=st,pe=oe(74643),Te=function(Ue,ze){return te.createElement(pe.Z,(0,fe.Z)({},Ue,{ref:ze,icon:Mt}))},rt=te.forwardRef(Te),xt=oe(3407),nt={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"},dt=nt,ue=function(Ue,ze){return te.createElement(pe.Z,(0,fe.Z)({},Ue,{ref:ze,icon:dt}))},it=te.forwardRef(ue),Ct={icon:function(Ue,ze){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:Ue}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ze}},{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:ze}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ze}},{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:Ue}}]}},name:"picture",theme:"twotone"},Kt=Ct,Pt=function(Ue,ze){return te.createElement(pe.Z,(0,fe.Z)({},Ue,{ref:ze,icon:Kt}))},Ae=te.forwardRef(Pt),Ee=oe(38379),Le=oe(57838),Je=oe(33603),et=oe(96159),bt=oe(71577);function Dt(ve){return Object.assign(Object.assign({},ve),{lastModified:ve.lastModified,lastModifiedDate:ve.lastModifiedDate,name:ve.name,size:ve.size,type:ve.type,uid:ve.uid,percent:0,originFileObj:ve})}function Tt(ve,Ue){const ze=(0,Pe.Z)(Ue),He=ze.findIndex(ht=>{let{uid:at}=ht;return at===ve.uid});return He===-1?ze.push(ve):ze[He]=ve,ze}function qt(ve,Ue){const ze=ve.uid!==void 0?"uid":"name";return Ue.filter(He=>He[ze]===ve[ze])[0]}function ln(ve,Ue){const ze=ve.uid!==void 0?"uid":"name",He=Ue.filter(ht=>ht[ze]!==ve[ze]);return He.length===Ue.length?null:He}const sn=function(){const Ue=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),He=Ue[Ue.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(He)||[""])[0]},zt=ve=>ve.indexOf("image/")===0,Ot=ve=>{if(ve.type&&!ve.thumbUrl)return zt(ve.type);const Ue=ve.thumbUrl||ve.url||"",ze=sn(Ue);return/^data:image\//.test(Ue)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ze)?!0:!(/^data:/.test(Ue)||ze)},Qt=200;function jn(ve){return new Promise(Ue=>{if(!ve.type||!zt(ve.type)){Ue("");return}const ze=document.createElement("canvas");ze.width=Qt,ze.height=Qt,ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qt}px; height: ${Qt}px; z-index: 9999; display: none;`,document.body.appendChild(ze);const He=ze.getContext("2d"),ht=new Image;if(ht.onload=()=>{const{width:at,height:ut}=ht;let qe=Qt,Jt=Qt,Gt=0,gn=0;at>ut?(Jt=ut*(Qt/at),gn=-(Jt-qe)/2):(qe=at*(Qt/ut),Gt=-(qe-Jt)/2),He.drawImage(ht,Gt,gn,qe,Jt);const yn=ze.toDataURL();document.body.removeChild(ze),window.URL.revokeObjectURL(ht.src),Ue(yn)},ht.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const at=new FileReader;at.onload=()=>{at.result&&(ht.src=at.result)},at.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const at=new FileReader;at.onload=()=>{at.result&&Ue(at.result)},at.readAsDataURL(ve)}else ht.src=window.URL.createObjectURL(ve)})}var xn=oe(84249),pn=oe(90674),be=oe(99569),ke=oe(38703),ot=oe(83062),$t=te.forwardRef((ve,Ue)=>{let{prefixCls:ze,className:He,style:ht,locale:at,listType:ut,file:qe,items:Jt,progress:Gt,iconRender:gn,actionIconRender:yn,itemRender:$n,isImgUrl:Ke,showPreviewIcon:$a,showRemoveIcon:ba,showDownloadIcon:Da,previewIcon:aa,removeIcon:lt,downloadIcon:Bt,onPreview:Yt,onDownload:St,onClose:Pn}=ve;var vn,sa;const{status:ca}=qe,[fa,Fo]=te.useState(ca);te.useEffect(()=>{ca!=="removed"&&Fo(ca)},[ca]);const[to,Io]=te.useState(!1);te.useEffect(()=>{const Qn=setTimeout(()=>{Io(!0)},300);return()=>{clearTimeout(Qn)}},[]);const xo=gn(qe);let Va=te.createElement("div",{className:`${ze}-icon`},xo);if(ut==="picture"||ut==="picture-card"||ut==="picture-circle")if(fa==="uploading"||!qe.thumbUrl&&!qe.url){const Qn=Ge()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:fa!=="uploading"});Va=te.createElement("div",{className:Qn},xo)}else{const Qn=Ke!=null&&Ke(qe)?te.createElement("img",{src:qe.thumbUrl||qe.url,alt:qe.name,className:`${ze}-list-item-image`,crossOrigin:qe.crossOrigin}):xo,Jn=Ge()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Ke&&!Ke(qe)});Va=te.createElement("a",{className:Jn,onClick:no=>Yt(qe,no),href:qe.url||qe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const va=Ge()(`${ze}-list-item`,`${ze}-list-item-${fa}`),io=typeof qe.linkProps=="string"?JSON.parse(qe.linkProps):qe.linkProps,po=ba?yn((typeof lt=="function"?lt(qe):lt)||te.createElement(xn.Z,null),()=>Pn(qe),ze,at.removeFile):null,yo=Da&&fa==="done"?yn((typeof Bt=="function"?Bt(qe):Bt)||te.createElement(pn.Z,null),()=>St(qe),ze,at.downloadFile):null,Ka=ut!=="picture-card"&&ut!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Ge()(`${ze}-list-item-actions`,{picture:ut==="picture"})},yo,po),Ra=Ge()(`${ze}-list-item-name`),fo=qe.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ra,title:qe.name},io,{href:qe.url,onClick:Qn=>Yt(qe,Qn)}),qe.name),Ka]:[te.createElement("span",{key:"view",className:Ra,onClick:Qn=>Yt(qe,Qn),title:qe.name},qe.name),Ka],un={pointerEvents:"none",opacity:.5},pa=$a?te.createElement("a",{href:qe.url||qe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:qe.url||qe.thumbUrl?void 0:un,onClick:Qn=>Yt(qe,Qn),title:at.previewFile},typeof aa=="function"?aa(qe):aa||te.createElement(be.Z,null)):null,Fa=(ut==="picture-card"||ut==="picture-circle")&&fa!=="uploading"&&te.createElement("span",{className:`${ze}-list-item-actions`},pa,fa==="done"&&yo,po),{getPrefixCls:Ma}=te.useContext(gt.E_),Ja=Ma(),La=te.createElement("div",{className:va},Va,fo,Fa,to&&te.createElement(Ee.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Qn=>{let{className:Jn}=Qn;const no="percent"in qe?te.createElement(ke.Z,Object.assign({},Gt,{type:"line",percent:qe.percent,"aria-label":qe["aria-label"],"aria-labelledby":qe["aria-labelledby"]})):null;return te.createElement("div",{className:Ge()(`${ze}-list-item-progress`,Jn)},no)})),Wo=qe.response&&typeof qe.response=="string"?qe.response:((vn=qe.error)===null||vn===void 0?void 0:vn.statusText)||((sa=qe.error)===null||sa===void 0?void 0:sa.message)||at.uploadError,wa=fa==="error"?te.createElement(ot.Z,{title:Wo,getPopupContainer:Qn=>Qn.parentNode},La):La;return te.createElement("div",{className:Ge()(`${ze}-list-item-container`,He),style:ht,ref:Ue},$n?$n(wa,qe,Jt,{download:St.bind(null,qe),preview:Yt.bind(null,qe),remove:Pn.bind(null,qe)}):wa)});const tn=(ve,Ue)=>{const{listType:ze="text",previewFile:He=jn,onPreview:ht,onDownload:at,onRemove:ut,locale:qe,iconRender:Jt,isImageUrl:Gt=Ot,prefixCls:gn,items:yn=[],showPreviewIcon:$n=!0,showRemoveIcon:Ke=!0,showDownloadIcon:$a=!1,removeIcon:ba,previewIcon:Da,downloadIcon:aa,progress:lt={size:[-1,2],showInfo:!1},appendAction:Bt,appendActionVisible:Yt=!0,itemRender:St,disabled:Pn}=ve,vn=(0,Le.Z)(),[sa,ca]=te.useState(!1);te.useEffect(()=>{ze!=="picture"&&ze!=="picture-card"&&ze!=="picture-circle"||(yn||[]).forEach(un=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(un.originFileObj instanceof File||un.originFileObj instanceof Blob)||un.thumbUrl!==void 0||(un.thumbUrl="",He&&He(un.originFileObj).then(pa=>{un.thumbUrl=pa||"",vn()}))})},[ze,yn,He]),te.useEffect(()=>{ca(!0)},[]);const fa=(un,pa)=>{if(ht)return pa==null||pa.preventDefault(),ht(un)},Fo=un=>{typeof at=="function"?at(un):un.url&&window.open(un.url)},to=un=>{ut==null||ut(un)},Io=un=>{if(Jt)return Jt(un,ze);const pa=un.status==="uploading",Fa=Gt&&Gt(un)?te.createElement(Ae,null):te.createElement(rt,null);let Ma=pa?te.createElement(xt.Z,null):te.createElement(it,null);return ze==="picture"?Ma=pa?te.createElement(xt.Z,null):Fa:(ze==="picture-card"||ze==="picture-circle")&&(Ma=pa?qe.uploading:Fa),Ma},xo=(un,pa,Fa,Ma)=>{const Ja={type:"text",size:"small",title:Ma,onClick:La=>{pa(),(0,et.l$)(un)&&un.props.onClick&&un.props.onClick(La)},className:`${Fa}-list-item-action`,disabled:Pn};if((0,et.l$)(un)){const La=(0,et.Tm)(un,Object.assign(Object.assign({},un.props),{onClick:()=>{}}));return te.createElement(bt.ZP,Object.assign({},Ja,{icon:La}))}return te.createElement(bt.ZP,Object.assign({},Ja),te.createElement("span",null,un))};te.useImperativeHandle(Ue,()=>({handlePreview:fa,handleDownload:Fo}));const{getPrefixCls:Va}=te.useContext(gt.E_),va=Va("upload",gn),io=Va(),po=Ge()(`${va}-list`,`${va}-list-${ze}`),yo=(0,Pe.Z)(yn.map(un=>({key:un.uid,file:un})));let Ra={motionDeadline:2e3,motionName:`${va}-${ze==="picture-card"||ze==="picture-circle"?"animate-inline":"animate"}`,keys:yo,motionAppear:sa};const fo=te.useMemo(()=>{const un=Object.assign({},(0,Je.Z)(io));return delete un.onAppearEnd,delete un.onEnterEnd,delete un.onLeaveEnd,un},[io]);return ze!=="picture-card"&&ze!=="picture-circle"&&(Ra=Object.assign(Object.assign({},fo),Ra)),te.createElement("div",{className:po},te.createElement(Ee.CSSMotionList,Object.assign({},Ra,{component:!1}),un=>{let{key:pa,file:Fa,className:Ma,style:Ja}=un;return te.createElement($t,{key:pa,locale:qe,prefixCls:va,className:Ma,style:Ja,file:Fa,items:yn,progress:lt,listType:ze,isImgUrl:Gt,showPreviewIcon:$n,showRemoveIcon:Ke,showDownloadIcon:$a,removeIcon:ba,previewIcon:Da,downloadIcon:aa,iconRender:Io,actionIconRender:xo,itemRender:St,onPreview:fa,onDownload:Fo,onClose:to})}),Bt&&te.createElement(Ee.default,Object.assign({},Ra,{visible:Yt,forceRender:!0}),un=>{let{className:pa,style:Fa}=un;return(0,et.Tm)(Bt,Ma=>({className:Ge()(Ma.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Ma.style)}))}))};var kt=te.forwardRef(tn),Xt=oe(14747),bn=oe(33507),rn=oe(67968),Zn=oe(45503),Xn=ve=>{const{componentCls:Ue,iconCls:ze}=ve;return{[`${Ue}-wrapper`]:{[`${Ue}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ve.colorFillAlter,border:`${ve.lineWidth}px dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[Ue]:{padding:`${ve.padding}px 0`},[`${Ue}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ue}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ue}-disabled):hover`]:{borderColor:ve.colorPrimaryHover},[`p${Ue}-drag-icon`]:{marginBottom:ve.margin,[ze]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${Ue}-text`]:{margin:`0 0 ${ve.marginXXS}px`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${Ue}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${Ue}-disabled`]:{cursor:"not-allowed",[`p${Ue}-drag-icon ${ze},
|
|
p${Ue}-text,
|
|
p${Ue}-hint
|
|
`]:{color:ve.colorTextDisabled}}}}}},Dn=ve=>{const{componentCls:Ue,antCls:ze,iconCls:He,fontSize:ht,lineHeight:at}=ve,ut=`${Ue}-list-item`,qe=`${ut}-actions`,Jt=`${ut}-action`,Gt=Math.round(ht*at);return{[`${Ue}-wrapper`]:{[`${Ue}-list`]:Object.assign(Object.assign({},(0,Xt.dF)()),{lineHeight:ve.lineHeight,[ut]:{position:"relative",height:ve.lineHeight*ht,marginTop:ve.marginXS,fontSize:ht,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${ut}-name`]:Object.assign(Object.assign({},Xt.vS),{padding:`0 ${ve.paddingXS}px`,lineHeight:at,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[qe]:{[Jt]:{opacity:0},[`${Jt}${ze}-btn-sm`]:{height:Gt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Jt}:focus-visible,
|
|
&.picture ${Jt}
|
|
`]:{opacity:1},[He]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[`&:hover ${He}`]:{color:ve.colorText}},[`${Ue}-icon ${He}`]:{color:ve.colorTextDescription,fontSize:ht},[`${ut}-progress`]:{position:"absolute",bottom:-ve.uploadProgressOffset,width:"100%",paddingInlineStart:ht+ve.paddingXS,fontSize:ht,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ut}:hover ${Jt}`]:{opacity:1,color:ve.colorText},[`${ut}-error`]:{color:ve.colorError,[`${ut}-name, ${Ue}-icon ${He}`]:{color:ve.colorError},[qe]:{[`${He}, ${He}:hover`]:{color:ve.colorError},[Jt]:{opacity:1}}},[`${Ue}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},An=oe(45930),Yn=oe(16932);const ua=new An.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ma=new An.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pa=ve=>{const{componentCls:Ue}=ve,ze=`${Ue}-animate-inline`;return[{[`${Ue}-wrapper`]:{[`${ze}-appear, ${ze}-enter, ${ze}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ze}-appear, ${ze}-enter`]:{animationName:ua},[`${ze}-leave`]:{animationName:ma}}},{[`${Ue}-wrapper`]:(0,Yn.J$)(ve)},ua,ma]},Ga=oe(47448),ta=oe(84780);const Ua=ve=>{const{componentCls:Ue,iconCls:ze,uploadThumbnailSize:He,uploadProgressOffset:ht}=ve,at=`${Ue}-list`,ut=`${at}-item`;return{[`${Ue}-wrapper`]:{[`
|
|
${at}${at}-picture,
|
|
${at}${at}-picture-card,
|
|
${at}${at}-picture-circle
|
|
`]:{[ut]:{position:"relative",height:He+ve.lineWidth*2+ve.paddingXS*2,padding:ve.paddingXS,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${ut}-thumbnail`]:Object.assign(Object.assign({},Xt.vS),{width:He,height:He,lineHeight:`${He+ve.paddingSM}px`,textAlign:"center",flex:"none",[ze]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ut}-progress`]:{bottom:ht,width:`calc(100% - ${ve.paddingSM*2}px)`,marginTop:0,paddingInlineStart:He+ve.paddingXS}},[`${ut}-error`]:{borderColor:ve.colorError,[`${ut}-thumbnail ${ze}`]:{[`svg path[fill='${Ga.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${Ga.blue.primary}']`]:{fill:ve.colorError}}},[`${ut}-uploading`]:{borderStyle:"dashed",[`${ut}-name`]:{marginBottom:ht}}},[`${at}${at}-picture-circle ${ut}`]:{[`&, &::before, ${ut}-thumbnail`]:{borderRadius:"50%"}}}}},eo=ve=>{const{componentCls:Ue,iconCls:ze,fontSizeLG:He,colorTextLightSolid:ht}=ve,at=`${Ue}-list`,ut=`${at}-item`,qe=ve.uploadPicCardSize;return{[`
|
|
${Ue}-wrapper${Ue}-picture-card-wrapper,
|
|
${Ue}-wrapper${Ue}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Xt.dF)()),{display:"inline-block",width:"100%",[`${Ue}${Ue}-select`]:{width:qe,height:qe,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ve.colorFillAlter,border:`${ve.lineWidth}px dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[`> ${Ue}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ue}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${at}${at}-picture-card, ${at}${at}-picture-circle`]:{[`${at}-item-container`]:{display:"inline-block",width:qe,height:qe,marginBlock:`0 ${ve.marginXS}px`,marginInline:`0 ${ve.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ve.paddingXS*2}px)`,height:`calc(100% - ${ve.paddingXS*2}px)`,backgroundColor:ve.colorBgMask,opacity:0,transition:`all ${ve.motionDurationSlow}`,content:'" "'}},[`${ut}:hover`]:{[`&::before, ${ut}-actions`]:{opacity:1}},[`${ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{zIndex:10,width:He,margin:`0 ${ve.marginXXS}px`,fontSize:He,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ut}-actions, ${ut}-actions:hover`]:{[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{color:new ta.C(ht).setAlpha(.65).toRgbString(),"&:hover":{color:ht}}},[`${ut}-thumbnail, ${ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ut}-name`]:{display:"none",textAlign:"center"},[`${ut}-file + ${ut}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${ve.paddingXS*2}px)`},[`${ut}-uploading`]:{[`&${ut}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${ze}-eye, ${ze}-download, ${ze}-delete`]:{display:"none"}},[`${ut}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${ve.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ue}-wrapper${Ue}-picture-circle-wrapper`]:{[`${Ue}${Ue}-select`]:{borderRadius:"50%"}}}};var we=ve=>{const{componentCls:Ue}=ve;return{[`${Ue}-rtl`]:{direction:"rtl"}}};const Be=ve=>{const{componentCls:Ue,colorTextDisabled:ze}=ve;return{[`${Ue}-wrapper`]:Object.assign(Object.assign({},(0,Xt.Wf)(ve)),{[Ue]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ue}-select`]:{display:"inline-block"},[`${Ue}-disabled`]:{color:ze,cursor:"not-allowed"}})}};var ye=(0,rn.Z)("Upload",ve=>{const{fontSizeHeading3:Ue,fontSize:ze,lineHeight:He,lineWidth:ht,controlHeightLG:at}=ve,ut=Math.round(ze*He),qe=(0,Zn.TS)(ve,{uploadThumbnailSize:Ue*2,uploadProgressOffset:ut/2+ht,uploadPicCardSize:at*2.55});return[Be(qe),Xn(qe),Ua(qe),eo(qe),Dn(qe),Pa(qe),we(qe),(0,bn.Z)(qe)]},ve=>({actionsColor:ve.colorTextDescription})),vt=function(ve,Ue,ze,He){function ht(at){return at instanceof ze?at:new ze(function(ut){ut(at)})}return new(ze||(ze=Promise))(function(at,ut){function qe(gn){try{Gt(He.next(gn))}catch(yn){ut(yn)}}function Jt(gn){try{Gt(He.throw(gn))}catch(yn){ut(yn)}}function Gt(gn){gn.done?at(gn.value):ht(gn.value).then(qe,Jt)}Gt((He=He.apply(ve,Ue||[])).next())})};const Rt=`__LIST_IGNORE_${Date.now()}__`,jt=(ve,Ue)=>{const{fileList:ze,defaultFileList:He,onRemove:ht,showUploadList:at=!0,listType:ut="text",onPreview:qe,onDownload:Jt,onChange:Gt,onDrop:gn,previewFile:yn,disabled:$n,locale:Ke,iconRender:$a,isImageUrl:ba,progress:Da,prefixCls:aa,className:lt,type:Bt="select",children:Yt,style:St,itemRender:Pn,maxCount:vn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Io}=ve,xo=te.useContext(ct.Z),Va=$n!=null?$n:xo,[va,io]=(0,We.Z)(He||[],{value:ze,postState:nn=>nn!=null?nn:[]}),[po,yo]=te.useState("drop"),Ka=te.useRef(null);te.useMemo(()=>{const nn=Date.now();(ze||[]).forEach((Fn,zn)=>{!Fn.uid&&!Object.isFrozen(Fn)&&(Fn.uid=`__AUTO__${nn}_${zn}__`)})},[ze]);const Ra=(nn,Fn,zn)=>{let En=(0,Pe.Z)(Fn),Wn=!1;vn===1?En=En.slice(-1):vn&&(Wn=En.length>vn,En=En.slice(0,vn)),(0,Ie.flushSync)(()=>{io(En)});const Ba={file:nn,fileList:En};zn&&(Ba.event=zn),(!Wn||En.some(bo=>bo.uid===nn.uid))&&(0,Ie.flushSync)(()=>{Gt==null||Gt(Ba)})},fo=(nn,Fn)=>vt(void 0,void 0,void 0,function*(){const{beforeUpload:zn,transformFile:En}=ve;let Wn=nn;if(zn){const Ba=yield zn(nn,Fn);if(Ba===!1)return!1;if(delete nn[Rt],Ba===Rt)return Object.defineProperty(nn,Rt,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Wn=Ba)}return En&&(Wn=yield En(Wn)),Wn}),un=nn=>{const Fn=nn.filter(Wn=>!Wn.file[Rt]);if(!Fn.length)return;const zn=Fn.map(Wn=>Dt(Wn.file));let En=(0,Pe.Z)(va);zn.forEach(Wn=>{En=Tt(Wn,En)}),zn.forEach((Wn,Ba)=>{let bo=Wn;if(Fn[Ba].parsedFile)Wn.status="uploading";else{const{originFileObj:ao}=Wn;let Lo;try{Lo=new File([ao],ao.name,{type:ao.type})}catch(Na){Lo=new Blob([ao],{type:ao.type}),Lo.name=ao.name,Lo.lastModifiedDate=new Date,Lo.lastModified=new Date().getTime()}Lo.uid=Wn.uid,bo=Lo}Ra(bo,En)})},pa=(nn,Fn,zn)=>{try{typeof nn=="string"&&(nn=JSON.parse(nn))}catch(Ba){}if(!qt(Fn,va))return;const En=Dt(Fn);En.status="done",En.percent=100,En.response=nn,En.xhr=zn;const Wn=Tt(En,va);Ra(En,Wn)},Fa=(nn,Fn)=>{if(!qt(Fn,va))return;const zn=Dt(Fn);zn.status="uploading",zn.percent=nn.percent;const En=Tt(zn,va);Ra(zn,En,nn)},Ma=(nn,Fn,zn)=>{if(!qt(zn,va))return;const En=Dt(zn);En.error=nn,En.response=Fn,En.status="error";const Wn=Tt(En,va);Ra(En,Wn)},Ja=nn=>{let Fn;Promise.resolve(typeof ht=="function"?ht(nn):ht).then(zn=>{var En;if(zn===!1)return;const Wn=ln(nn,va);Wn&&(Fn=Object.assign(Object.assign({},nn),{status:"removed"}),va==null||va.forEach(Ba=>{const bo=Fn.uid!==void 0?"uid":"name";Ba[bo]===Fn[bo]&&!Object.isFrozen(Ba)&&(Ba.status="removed")}),(En=Ka.current)===null||En===void 0||En.abort(Fn),Ra(Fn,Wn))})},La=nn=>{yo(nn.type),nn.type==="drop"&&(gn==null||gn(nn))};te.useImperativeHandle(Ue,()=>({onBatchStart:un,onSuccess:pa,onProgress:Fa,onError:Ma,fileList:va,upload:Ka.current}));const{getPrefixCls:Wo,direction:wa,upload:Qn}=te.useContext(gt.E_),Jn=Wo("upload",aa),no=Object.assign(Object.assign({onBatchStart:un,onError:Ma,onProgress:Fa,onSuccess:pa},ve),{data:sa,multiple:ca,action:fa,accept:Fo,supportServerRender:to,prefixCls:Jn,disabled:Va,beforeUpload:fo,onChange:void 0});delete no.className,delete no.style,(!Yt||Va)&&delete no.id;const[Do,Qo]=ye(Jn),[Lr]=(0,Qe.Z)("Upload",tt.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Zt,previewIcon:wt,downloadIcon:Nt}=typeof at=="boolean"?{}:at,It=(nn,Fn)=>at?te.createElement(kt,{prefixCls:Jn,listType:ut,items:va,previewFile:yn,onPreview:qe,onDownload:Jt,onRemove:Ja,showRemoveIcon:!Va&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Zt,previewIcon:wt,downloadIcon:Nt,iconRender:$a,locale:Object.assign(Object.assign({},Lr),Ke),isImageUrl:ba,progress:Da,appendAction:nn,appendActionVisible:Fn,itemRender:Pn,disabled:Va}):nn,Gn=Ge()(`${Jn}-wrapper`,lt,Io,Qo,Qn==null?void 0:Qn.className,{[`${Jn}-rtl`]:wa==="rtl",[`${Jn}-picture-card-wrapper`]:ut==="picture-card",[`${Jn}-picture-circle-wrapper`]:ut==="picture-circle"}),Sa=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),St);if(Bt==="drag"){const nn=Ge()(Qo,Jn,`${Jn}-drag`,{[`${Jn}-drag-uploading`]:va.some(Fn=>Fn.status==="uploading"),[`${Jn}-drag-hover`]:po==="dragover",[`${Jn}-disabled`]:Va,[`${Jn}-rtl`]:wa==="rtl"});return Do(te.createElement("span",{className:Gn},te.createElement("div",{className:nn,style:Sa,onDrop:La,onDragOver:La,onDragLeave:La},te.createElement(Ce,Object.assign({},no,{ref:Ka,className:`${Jn}-btn`}),te.createElement("div",{className:`${Jn}-drag-container`},Yt))),It()))}const ka=Ge()(Jn,`${Jn}-select`,{[`${Jn}-disabled`]:Va}),xa=(nn=>te.createElement("div",{className:ka,style:nn},te.createElement(Ce,Object.assign({},no,{ref:Ka}))))(Yt?void 0:{display:"none"});return Do(ut==="picture-card"||ut==="picture-circle"?te.createElement("span",{className:Gn},It(xa,!!Yt)):te.createElement("span",{className:Gn},xa,It()))};var Sn=te.forwardRef(jt),Bn=function(ve,Ue){var ze={};for(var He in ve)Object.prototype.hasOwnProperty.call(ve,He)&&Ue.indexOf(He)<0&&(ze[He]=ve[He]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,He=Object.getOwnPropertySymbols(ve);ht<He.length;ht++)Ue.indexOf(He[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,He[ht])&&(ze[He[ht]]=ve[He[ht]]);return ze},Ia=te.forwardRef((ve,Ue)=>{var{style:ze,height:He}=ve,ht=Bn(ve,["style","height"]);return te.createElement(Sn,Object.assign({ref:Ue},ht,{type:"drag",style:Object.assign(Object.assign({},ze),{height:He})}))});const ft=Sn;ft.Dragger=Ia,ft.LIST_IGNORE=Rt;var Cn=ft},62661:function(De,mt){"use strict";var oe;var te=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Ye=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),me=Symbol.for("react.context"),Me=Symbol.for("react.server_context"),Oe=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Ve=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),Ze=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case Ye:case fe:case Ge:case xe:case Ve:return E;default:switch(E=E&&E.$$typeof,E){case Me:case me:case Oe:case Ze:case je:case Fe:return E;default:return b}}case Pe:return b}}}oe=me,oe=Fe,oe=te,oe=Oe,oe=Ye,oe=Ze,oe=je,oe=Pe,oe=fe,oe=Ge,oe=xe,oe=Ve,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===me},oe=function(E){return y(E)===Fe},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return y(E)===Oe},oe=function(E){return y(E)===Ye},oe=function(E){return y(E)===Ze},mt.isMemo=function(E){return y(E)===je},oe=function(E){return y(E)===Pe},oe=function(E){return y(E)===fe},oe=function(E){return y(E)===Ge},oe=function(E){return y(E)===xe},oe=function(E){return y(E)===Ve},oe=function(E){return typeof E=="string"||typeof E=="function"||E===Ye||E===fe||E===Ge||E===xe||E===Ve||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Ze||E.$$typeof===je||E.$$typeof===Fe||E.$$typeof===me||E.$$typeof===Oe||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(De,mt,oe){"use strict";De.exports=oe(62661)},72665:function(De,mt){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,Pe=te?Symbol.for("react.element"):60103,Ye=te?Symbol.for("react.portal"):60106,Ge=te?Symbol.for("react.fragment"):60107,fe=te?Symbol.for("react.strict_mode"):60108,Fe=te?Symbol.for("react.profiler"):60114,me=te?Symbol.for("react.provider"):60109,Me=te?Symbol.for("react.context"):60110,Oe=te?Symbol.for("react.async_mode"):60111,xe=te?Symbol.for("react.concurrent_mode"):60111,Ve=te?Symbol.for("react.forward_ref"):60112,je=te?Symbol.for("react.suspense"):60113,Ze=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case Pe:switch(ne=ne.type,ne){case Oe:case xe:case Ge:case Fe:case fe:case je:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Me:case Ve:case a:case ae:case me:return ne;default:return re}}case Ye:return re}}}function ee(ne){return z(ne)===xe}oe=Oe,oe=xe,oe=Me,oe=me,oe=Pe,oe=Ve,oe=Ge,oe=a,oe=ae,oe=Ye,oe=Fe,oe=fe,oe=je,oe=function(ne){return ee(ne)||z(ne)===Oe},oe=ee,oe=function(ne){return z(ne)===Me},oe=function(ne){return z(ne)===me},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===Pe},oe=function(ne){return z(ne)===Ve},oe=function(ne){return z(ne)===Ge},oe=function(ne){return z(ne)===a},mt.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===Ye},oe=function(ne){return z(ne)===Fe},oe=function(ne){return z(ne)===fe},oe=function(ne){return z(ne)===je},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ge||ne===xe||ne===Fe||ne===fe||ne===je||ne===Ze||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===me||ne.$$typeof===Me||ne.$$typeof===Ve||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(De,mt,oe){"use strict";De.exports=oe(72665)},64217:function(De,mt,oe){"use strict";oe.d(mt,{Z:function(){return Me}});var te=oe(1413),Pe=`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`,Ye=`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`,Ge="".concat(Pe," ").concat(Ye).split(/[\s\n]+/),fe="aria-",Fe="data-";function me(Oe,xe){return Oe.indexOf(xe)===0}function Me(Oe){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve;xe===!1?Ve={aria:!0,data:!0,attr:!0}:xe===!0?Ve={aria:!0}:Ve=(0,te.Z)({},xe);var je={};return Object.keys(Oe).forEach(function(Ze){(Ve.aria&&(Ze==="role"||me(Ze,fe))||Ve.data&&me(Ze,Fe)||Ve.attr&&Ge.includes(Ze))&&(je[Ze]=Oe[Ze])}),je}}}]);
|