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
467 KiB
171 lines
467 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[9715],{84249:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},90674:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},33859:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},22751:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},24018:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},40043:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},91034:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});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"},Te=Ye,Se=oe(74643),Ce=function(Me,Fe){return Pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Fe,icon:Te}))},ue=Pe.forwardRef(Ce)},71736:function(Ie,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 Ie(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ie.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ie.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ie.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ie.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ie))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var 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,fe=NaN;if(re===0)if(ge===0)ae===y&&(de=ae,fe=a);else{var ce=(x-ee)/ge,De=x-ce*b;de=ae,fe=ce*de+De}else if(ge===0){var Ge=(a-E)/re,wt=a-Ge*ae;de=b,fe=Ge*de+wt}else{var Ge=(a-E)/re,ce=(x-ee)/ge,wt=a-Ge*ae,De=x-ce*b;de=(De-wt)/(Ge-ce),fe=Ge*de+wt}return ne.x=de,ne.y=fe,ne}function Te(ae,a,y,E,b,x,z,ee,ne,re,ge,de,fe,ce){var De=1-ne,Ge=ne,wt=ae*De+y*Ge,Ut=a*De+E*Ge,an=y*De+b*Ge,we=E*De+x*Ge,ke=b*De+z*Ge,We=x*De+ee*Ge,dt=wt*De+an*Ge,ft=Ut*De+we*Ge,Qe=an*De+ke*Ge,tt=we*De+We*Ge,lt=dt*De+Qe*Ge,zt=ft*De+tt*Ge;re.x=wt,re.y=Ut,ge.x=dt,ge.y=ft,de.x=lt,de.y=zt,fe.x=Qe,fe.y=tt,ce.x=ke,ce.y=We}var Se=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ie("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=Se,b.spot2=Ce,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,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ie("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ie("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ie("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Oe=[];function Me(){var ae=Oe.pop();return ae===void 0?[]:ae}function Fe(ae){ae.length=0,Oe.push(ae)}function Ve(ae){for(var a=Me(),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=Me();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 Fe(a),y}function Ze(ae){for(var a=Ve(ae),y=Me(),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],Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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()),Fe(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(),Fe(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(),Fe(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(),Fe(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(),Fe(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(),Fe(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(),Fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ie("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ie("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ie("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=Se,x.spot2=Ce,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ie("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ie("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=ue/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),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 Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ie("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ie("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*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*ue;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*ue,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*ue,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=ue*.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=ue*.4;var re=te(),ge=te(),de=te(),fe=te();Te(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,fe,fe);var ce=te(),De=te(),Ge=te();Te(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,fe,fe,Ge,ce,De);var wt=te(),Ut=te(),an=te();Te(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,wt,Ut,an,fe,fe);var we=te(),ke=te(),We=te();return Te(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,fe,fe,We,we,ke),ne.add(new go.PathSegment(go.PathSegment.Move,We.x*a,We.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,we.x*a,we.y*y,ke.x*a,ke.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,We.x*a,We.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,an.x*a,an.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,De.x*a,De.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,an.x*a,an.y*y,wt.x*a,wt.y*y,Ut.x*a,Ut.y*y).close()),Pe(re),Pe(ge),Pe(de),Pe(fe),Pe(ce),Pe(De),Pe(Ge),Pe(wt),Pe(Ut),Pe(an),Pe(we),Pe(ke),Pe(We),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),fe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Te(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),fe.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);Te(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var De=oe(re.x,re.y);fe.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),fe.add(new go.PathSegment(go.PathSegment.Line,a,0)),fe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),fe.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,.15*y)),fe.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,(De.y*.1+.05*.9)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),fe.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=ue*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var wt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(wt),Pe(ne),Pe(re),Pe(ge),Pe(de),Pe(ce),Pe(De),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*ue,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*ue;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 Ie("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ie("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,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 Ie("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ie("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,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 Ie("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var 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 Ie("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ie("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,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 Ie("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var 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 Ie("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ie("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,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 Ie("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=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 Ie("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=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 Ie("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var 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 Ie("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var 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 Ie("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.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=ue*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ue*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-ue*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ue*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-ue*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ue*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=ue*.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,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ue*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-ue*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ue*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-ue*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-ue*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=ue*.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-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*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+ue*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ue*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=ue*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*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-ue*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-ue*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=ue*b,ee=ue*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,fe=ue*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+fe)*a,(re-de)*y,(ne+de)*a,(re-fe)*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,fe=ue*de,ne=.825,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-fe)*y,(ne+fe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-fe)*a,(re-de)*y,(ne-de)*a,(re-fe)*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,fe=ue*de,ne=.5,re=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-fe)*y,(ne+fe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-fe)*a,(re-de)*y,(ne-de)*a,(re-fe)*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,fe=ue*de,ne=.175,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-fe)*y,(ne+fe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-fe)*a,(re-de)*y,(ne-de)*a,(re-fe)*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,fe=ue*de,ne=.05,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne-de)*a,(re-fe)*y,(ne-fe)*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 Ie("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.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=ue*.5,x=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.5,x=ue*.4,z=ue*.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=ue*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=ue*.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=ue*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=ue*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=ue*.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=ue*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=ue*.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=ue*.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=ue*.8,ee=.8,ne=0,re=.5,ge=(b-a)/2,de=(x-y)/2,fe=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(fe),fe.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)),fe.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)),fe.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)),fe.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=ue*.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=ue*.2,ee=.2,ne=.5,re=.5;var De=new go.PathFigure((ne-ee)*a+ge,re*y+de,!0);E.add(De),De.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)),De.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)),De.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)),De.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=ue*.4,ee=.4,ne=.8,re=.5;var Ge=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);E.add(Ge),Ge.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)),Ge.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)),Ge.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)),Ge.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=ue*.8,ee=.8,ne=1,re=.5;var wt=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);return E.add(wt),wt.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)),wt.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)),wt.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)),wt.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=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();Te(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var fe=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)),Te(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=ue*.3,x=.3,Te(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)),Te(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(fe),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*ue,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,fe=.5,ce=0,De=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(fe+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),De.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)),De.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)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),De.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,fe=z,ce=z,De=ge*fe,Ge=ge*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-fe)*a,ne*y,(ee-(De+fe)/2)*a,(ne+(ce+Ge)/2)*y,(ee-fe)*a,(ne+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-fe)*a,(ne-Ge)*y,(ee-De)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+fe)*a,ne*y,(ee+De)*a,(ne-ce)*y,(ee+fe)*a,(ne-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+fe)*a,(ne+Ge)*y,(ee+(De+fe)/2)*a,(ne+(ce+Ge)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var wt=new go.PathFigure(.2*a,y,!1);E.add(wt),wt.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=ue*.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=ue*.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=ue*.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=ue*.1,ge=.1,de=.9,fe=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),fe.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=ue*.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=ue*.05,fe=.175,ce=.95,ee=new go.PathFigure((fe-ge)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-ge)*y,(fe-ge)*a,(ce-de)*y,(fe-de)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ge)*a,ce*y,(fe+de)*a,(ce-ge)*y,(fe+ge)*a,(ce-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+ge)*y,(fe+ge)*a,(ce+de)*y,(fe+de)*a,(ce+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,ce*y,(fe-de)*a,(ce+ge)*y,(fe-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,fe=.375,ce=.95,ne=new go.PathFigure((fe-ge)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-ge)*y,(fe-ge)*a,(ce-de)*y,(fe-de)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ge)*a,ce*y,(fe+de)*a,(ce-ge)*y,(fe+ge)*a,(ce-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+ge)*y,(fe+ge)*a,(ce+de)*y,(fe+de)*a,(ce+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,ce*y,(fe-de)*a,(ce+ge)*y,(fe-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,fe=.625,ce=.95,re=new go.PathFigure((fe-ge)*a,ce*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-ge)*y,(fe-ge)*a,(ce-de)*y,(fe-de)*a,(ce-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ge)*a,ce*y,(fe+de)*a,(ce-ge)*y,(fe+ge)*a,(ce-de)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+ge)*y,(fe+ge)*a,(ce+de)*y,(fe+de)*a,(ce+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,ce*y,(fe-de)*a,(ce+ge)*y,(fe-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,fe=.825,ce=.95,De=new go.PathFigure((fe-ge)*a,ce*y,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-ge)*y,(fe-ge)*a,(ce-de)*y,(fe-de)*a,(ce-ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ge)*a,ce*y,(fe+de)*a,(ce-ge)*y,(fe+ge)*a,(ce-de)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+ge)*y,(fe+ge)*a,(ce+de)*y,(fe+de)*a,(ce+ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,ce*y,(fe-de)*a,(ce+ge)*y,(fe-ge)*a,(ce+de)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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*ue,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*ue,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*ue,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ie={},mt="5.0",oe={},te=null,Pe=!1,Ye=!1,Te=null,Se=!1,Ce=null,ue=null,Oe=0;Oe<arguments.length;Oe++){var Me=arguments[Oe];if(Me!==null)switch(typeof Me){case"number":mt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?mt=Me:Te=Me;break;case"object":typeof Me.is3D!="undefined"?te=Me:oe=Me;break;case"boolean":Pe=Me,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)),Te!==null&&oe.id===void 0&&(oe.id=Te);var Fe="",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(be){return parseFloat(be)>4?parseFloat(be):5};Ie.setHTML5Codebase=function(be,Ae){ue=be,tt(be,Ae)},Ie.setJavaCodebase=Ie.setJavaCodebaseVersion=Ie.isCompiledInstalled=Ie.setPreCompiledScriptPath=Ie.setPreCompiledResourcePath=function(){},Ie.setHTML5CodebaseVersion=function(be,Ae){var it=parseFloat(be);if(it!==NaN&&it<5){console.log("The GeoGebra HTML5 codebase version "+it+" is deprecated. Using version latest instead.");return}Ce=be,Qe(be,Ae)},Ie.getHTML5CodebaseVersion=function(){return ae},Ie.getParameters=function(){return oe},Ie.setFontsCSSURL=function(be){z=be},Ie.setGiacJSURL=function(be){},Ie.setJNLPFile=function(be){Fe=be},Ie.setJNLPBaseDir=function(be){},Ie.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",it=oe.id,xt,nt=!1,rt=0;rt<arguments.length;rt++){var me=arguments[rt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=me:it=arguments[rt]):typeof me=="boolean"?nt=me:me instanceof HTMLElement&&(xt=me)}gt();function gt(){if(!Se){setTimeout(gt,200);return}Ae=dt(Ae);var yt=xt||document.getElementById(it);if(!yt){console.log("possibly bug on ajax loading? ");return}if(Ie.removeExistingApplet(yt,!1),oe.width===void 0&&yt.clientWidth&&(oe.width=yt.clientWidth),oe.height===void 0&&yt.clientHeight&&(oe.height=yt.clientHeight),!(oe.width&&oe.height)&&Ae==="html5"&&(delete oe.width,delete oe.height),Ze=Ae,Ae==="screenshot")Ut(yt,oe);else{var on=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?on=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(on=(!re()||be())&&ge()),on?(Ze="screenshot",we(yt,oe,nt,Ae)):wt(yt,oe,nt)}}};function re(){try{return window.self!==window.top}catch(be){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ie.getViews=function(){return te},Ie.isJavaInstalled=function(){return!1};var de=function(be){var Ae=function(rt){var me=JSON.parse(rt),gt=function(Pt){return Pt.type=="G"||Pt.type=="E"},yt=me.elements?me.elements.filter(gt)[0]:me;if(!yt||!yt.url){it();return}oe.fileName=yt.url,fe(yt.settings||{}),te.is3D=!0;var on="https://www.geogebra.org/images/";Ie.setPreviewImage(E||yt.previewUrl,on+"GeoGebra_loading.png",on+"applet_play.png"),be()},it=function(){oe.onError&&oe.onError(),lt("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),Ae,it)};function fe(be){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(it){be[it]=!!be[it]}),Ae.forEach(function(it){oe[it]===void 0&&be[it]!==void 0&&(oe[it]=be[it])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ce(be,Ae,it){var xt=new XMLHttpRequest;xt.open("GET",be),xt.onload=function(){Ae(xt.responseText)},xt.onerror=it,xt.send()}Ie.isHTML5Installed=function(){return!0},Ie.getLoadedAppletType=function(){return Ze},Ie.setPreviewImage=function(be,Ae,it){E=be,b=Ae,x=it},Ie.removeExistingApplet=function(be,Ae){var it;typeof be=="string"&&(be=document.getElementById(be)),Ze=null;var xt=null;for(it=0;it<be.childNodes.length;it++){var nt=be.childNodes[it],rt=nt.className;rt==="applet_screenshot"?Ae?(nt.style.display="block",Ze="screenshot"):nt.style.display="none":rt!=="applet_scaler prerender"&&(be.removeChild(nt),xt=rt&&rt.indexOf("appletParameters")!=-1?nt.id:null,it--)}var me=oe.id!==void 0?oe.id:xt,gt=window[me];gt&&typeof gt.getBase64=="function"&&(gt.remove(),window[me]=null)},Ie.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=Ie.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Ie.startAnimation=function(){var be=Ie.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Ie.stopAnimation=function(){var be=Ie.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Ie.getAppletObject=function(){var be=oe.id!==void 0?oe.id:"ggbApplet";return window[be]},Ie.resize=function(){};var De=function(be,Ae,it){var xt=document.createElement("param");xt.setAttribute("name",Ae),xt.setAttribute("value",it),be.appendChild(xt)},Ge=function(be){return be&&be!=="false"},wt=function(be,Ae,it){ne(ae)<=4.2&&(it=!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 rt=Ae.width,me=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(ne(ae)<=4.4)Ge(Ae.showToolBar)&&(Ae.height-=7),Ge(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&Ge(Ae.showToolBar)&&(Ae.width=605,rt=605);else{var gt=100;(Ge(Ae.showToolBar)||Ge(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),gt=Ge(Ae.showMenuBar)?245:155),rt<gt&&(Ae.width=gt,rt=gt)}nt.style.border="none",nt.style.display="inline-block";for(var yt in Ae)Ae.hasOwnProperty(yt)&&yt!=="appletOnLoad"&&nt.setAttribute("data-param-"+yt,Ae[yt]);z&&nt.setAttribute("data-param-fontscssurl",z),Ie.resize=function(){GGBAppletUtils.responsiveResize(be,Ae)},window.addEventListener("resize",function(sn){Ie.resize()});var on=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!it&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||nt.setAttribute("data-param-showSplash","false");var Pt=be.querySelector(".applet_scaler.prerender"),Ne=Pt!==null;if(Ne)var xe=Pt.querySelector(".ggb_preview");else{var xe=We(rt,me,Ae.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=rt+"px",Pt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),ne(ae)>=5?(Ae.appletOnLoad=function(sn){var At=be.querySelector(".ggb_preview");At&&At.parentNode.removeChild(At),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),on(sn)},Ne||Pt.appendChild(xe)):nt.appendChild(xe),Pt.appendChild(nt),Ne||be.appendChild(Pt),setTimeout(function(){Ie.resize()},1)}else{var Le=document.createElement("div");Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.appendChild(nt),be.appendChild(Le),Ae.appletOnLoad=function(sn){Ie.resize(),on(sn)}}function Je(sn,At){At&&typeof At.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,At.appletOnLoad):renderGGBElement(sn),lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",At)}function et(sn,At){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:At}),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,At)}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 Jt=document.createElement("script"),ln=function(){et(nt,Ae)};Jt.src=Ve+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Jt.src,lt("GeoGebra HTML5 codebase loaded: '"+Ve+"'.",Ae),!ue&&(!Ce||Ce=="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):(Jt.onload=ln,be.appendChild(Jt))}else et(nt,Ae);Ae.height=me,Ae.width=rt},Ut=function(be,Ae,it){var xt=We(Ae.width,Ae.height,Ae.borderColor,it),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=Ae.width+"px",nt.style.height=Ae.height+"px",nt.className="applet_screenshot applet_scaler"+(it?" applet_screenshot_play":""),nt.appendChild(xt);var rt=GGBAppletUtils.getScale(Ae,be,it);it?(be.appendChild(ke()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),be.appendChild(nt),rt!==1&&!isNaN(rt)&&(GGBAppletUtils.scaleElement(nt,rt),nt.style.width=Ae.width+"px",nt.style.height=Ae.height+"px",nt.parentNode.style.width=Ae.width*rt+"px",nt.parentNode.style.height=Ae.height*rt+"px"),Ie.resize=function(){an(be,xt,nt,it)},window.addEventListener("resize",function(me){Ie.resize()}),Ie.resize()};function an(be,Ae,it,xt){if(be.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var nt=GGBAppletUtils.getScale(oe,be,xt);it.parentNode!==null&&(!isNaN(nt)&&nt!==1?(GGBAppletUtils.scaleElement(it,nt),it.parentNode.style.width=oe.width*nt+"px",it.parentNode.style.height=oe.height*nt+"px"):(GGBAppletUtils.scaleElement(it,1),it.parentNode.style.width=oe.width+"px",it.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ie.onExitFullscreen=function(be,Ae){Ae.appendChild(be)};var we=function(be,Ae,it,xt){Ut(be,Ae,!0);for(var nt=function(){var gt=[];for(me=0;me<be.childNodes.length;me++)gt.push(be.childNodes[me]);if(window.GGBT_wsf_view){var yt=window.GGBT_wsf_view.renderFullScreen(be,Ae.id),on=document.getElementById("fullscreencontainer"),Pt=jQuery(be).find(".fullscreencontent");Pt.length>0?(yt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(on).append(Pt),window.dispatchEvent(new Event("resize"))):wt(yt,Ae,!1),window.GGBT_wsf_view.launchFullScreen(on)}else Ze=xt,wt(be,Ae,!1);if(!window.GGBT_wsf_view)for(me=0;me<gt.length;me++)be.removeChild(gt[me])},rt=be.getElementsByClassName("ggb_preview_play"),me=0;me<rt.length;me++)rt[me].addEventListener("click",nt,!1),rt[me].addEventListener("ontouchstart",nt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ke=function(){var be=document.createElement("div");if(be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.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");}',it=document.createElement("style");it.styleSheet?it.styleSheet.cssText=Ae:it.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(it)}return be},We=function(be,Ae,it,xt){var nt=document.createElement("div");nt.className="ggb_preview",nt.style.position="absolute",nt.style.zIndex="90",nt.style.width=be-2+"px",nt.style.height=Ae-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var rt="lightgrey";it!==void 0&&(it==="none"?rt="transparent":rt=it),nt.style.border="1px solid "+rt;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",E!==null&&me.setAttribute("src",E),me.style.opacity=.7,b!==null){var gt,yt,on;if(!xt){gt=document.createElement("img"),gt.style.position="absolute",gt.style.zIndex="1001",gt.style.opacity=1,me.style.opacity=.3,yt=360,yt>be/4*3&&(yt=be/4*3),on=yt/5.8,gt.setAttribute("src",b),gt.setAttribute("width",yt),gt.setAttribute("height",on);var Pt=(be-yt)/2,Ne=(Ae-on)/2;gt.style.left=Pt+"px",gt.style.top=Ne+"px",nt.appendChild(gt)}}return nt.appendChild(me),nt},dt=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},ft=["web","webSimple","web3d","tablet","tablet3d","phone"],Qe=function(be,Ae){if(ae=be,Ae){tt(ae,!0);return}var it=!Pe;if(it){var xt=ne(ae);!isNaN(xt)&&xt<4.4&&(it=!1)}var nt,rt;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var me=ae.indexOf("//");me>0?rt=ae:me===0?rt=nt+ae:rt="https://www.geogebra.org/apps/5.2.814.0/";for(var gt in ft)if(ae.slice(ft[gt].length*-1)===ft[gt]||ae.slice((ft[gt].length+1)*-1)===ft[gt]+"/"){tt(rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&it&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ge(oe.showToolBar)&&!Ge(oe.showMenuBar)&&!Ge(oe.showAlgebraInput)&&!Ge(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?rt+="webSimple/":rt+="web3d/",tt(rt,!1)},tt=function(be,Ae){if(be.requirejs){Ve=be;return}be.slice(-1)!=="/"&&(be+="/"),Ve=be,Ae===null&&(Ae=be.indexOf("http")===-1),je=Ae,a="web.nocache.js",y=!1;var it=Ve.split("/");it.length>1&&(!Ae&&it[it.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ft.indexOf(it[it.length-2])>=0&&(a=it[it.length-2]+".nocache.js")),it=be.split("/"),ae=it[it.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&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead."),Qe("5.0",Ae))},lt=function(be,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(be)};oe.material_id!==void 0?de(zt):zt();function zt(){var be=mt;Ce!==null?be=Ce:parseFloat(be)<5&&(be="5.0"),Qe(be,!1),ue!==null&&tt(ue,je),Se=!0}return Ie},GGBAppletUtils=function(){"use strict";function Ie(){return window.GGBT_wsf_edit!==void 0}function mt(Se,Ce){Ce!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ce+","+Ce+")",Se.style.webkitTransform="scale("+Ce+","+Ce+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function oe(Se,Ce,ue,Oe,Me,Fe){var Ve=null;if(Fe!=null&&Fe!="")for(var je=Se.parentNode;je!=null;)if((" "+je.className+" ").indexOf(" "+Fe+" ")>-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(Oe?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),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Ze&&(Me===void 0||!Me)&&(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(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((ue===void 0||!ue)&&Ce>0&&Ce+y<Ze?Ze=Ce:Ze-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ae-=x)),{width:Ze,height:ae}}function te(Se,Ce,ue,Oe,Me){if(Se.isScreenshoGenerator)return 1;var Fe=Oe!==void 0&&Oe,Ve=Se.noScaleMargin!=null&&Se.noScaleMargin,je=function(ee){return ee&&ee!=="false"},Ze=je(Se.autoHeight),ae=oe(Ce,Se.width,ue,Ze,Fe&&window.GGBT_wsf_view||Ve,Me),a=parseInt(ae.width),y=Se.width,E=Se.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Fe?1:ae.height/E;return ue!==void 0&&!ue&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(Se,Ce,ue){var Oe=1,Me,Fe=!1;if(Se.hasOwnProperty("allowUpscale")&&(Fe=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Oe=parseFloat(Se.scale),(isNaN(Oe)||Oe===null||Oe===0)&&(Oe=1),Oe>1&&(Fe=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Fe=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Me=te(Se,Ce,Fe,ue,Se.scaleContainerClass);else return Oe;return Fe&&(!Se.hasOwnProperty("scale")||Oe===1)?Me:Math.min(Oe,Me)}function Ye(Se){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=Se.getBoundingClientRect(),Me=(Ce-Oe.width)/2,Fe=(ue-Oe.height)/2;Fe<0&&(Fe=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?Se.style.left="40px":Se.style.left=Me+"px",Se.style.top=Fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Fe<40?Se.style.top="40px":Se.style.top=Fe+"px",Se.style.left=Me+"px")}function Te(Se,Ce){var ue=Se.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Oe=Pe(Ce,Se);Ie()&&ue.setAttribute("data-param-scale",Oe);for(var Me=null,Fe=0;Fe<Se.childNodes.length;Fe++)if(Se.childNodes[Fe].className!==void 0&&Se.childNodes[Fe].className.match(/^applet_scaler/)){Me=Se.childNodes[Fe];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var Ve=Ce.id!==void 0?Ce.id:"ggbApplet",je=window[Ve];(je==null||!je.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(Oe)&&Oe!==1?(Me.parentNode.style.width=Ce.width*Oe+"px",Me.parentNode.style.height=Ce.height*Oe+"px",mt(Me,Oe)):(mt(Me,1),Me.parentNode.style.width=Ce.width+"px",Me.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ye(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:Ie,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 Ie=n.location.search;return Ie.indexOf(J)!=-1||Ie.indexOf(K)!=-1}function q(Ie,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(Ie){var mt=s[L].bindings;s[L].bindings=function(){for(var oe=mt?mt():{},te=Ie[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 Ie=o.createElement(Q);if(Ie.id=L,Ie.style.cssText=R+S,Ie.tabIndex=-1,o.body.appendChild(Ie),t=Ie.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var mt=document.compatMode==U?V:W;t.write(mt+X),t.close()}}}function w(Ie){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 Te(){if(!Ye){if(!Pe())return;Ye=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var Se=setInterval(function(){Te()},$)}function oe(te){var Pe=u(),Ye=Pe.body,Te=Pe.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=te,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ye.appendChild(Te)}mt(function(){oe(Ie)})}webModule.__startLoadingFragment=function(Ie){return C(Ie)},webModule.__installRunAsyncCode=function(Ie){var mt=u(),oe=mt.body,te=mt.createElement(_);te.language=ab,te.text=Ie,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(Ie){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ie){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ie){var mt=c[Ie];return mt==null?null:mt},r=d,webModule.__errFn=e}function B(){function Ie(Se){var Ce=Se.lastIndexOf(rb);Ce==-1&&(Ce=Se.length);var ue=Se.indexOf(sb);ue==-1&&(ue=Se.length);var Oe=Se.lastIndexOf(tb,Math.min(ue,Ce));return Oe>=O?Se.substring(O,Oe+P):W}function mt(Se){if(!Se.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=Se+vb,Se=Ie(Ce.src)}return Se}function oe(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function te(){for(var Se=o.getElementsByTagName(_),Ce=O;Ce<Se.length;++Ce)if(Se[Ce].src.indexOf(xb)!=-1)return Ie(Se[Ce].src);return W}function Pe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Ye(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Te=oe();return Te==W&&(Te=te()),Te==W&&(Te=Pe()),Te==W&&Ye()&&(Te=Ie(o.location.href)),Te=mt(Te),Te}function C(Ie){return Ie.match(/^\//)||Ie.match(/^[a-zA-Z]+:\/\//)?Ie:webModule.__moduleBase+Ie}function D(){var Ie=[],mt=O,oe=[],te=[];function Pe(Se){var Ce=te[Se](),ue=oe[Se];if(Ce in ue)return Ce;var Oe=[];for(var Me in ue)Oe[ue[Me]]=Me;throw r&&r(Se,Oe,Ce),null}if(__gwt_isKnownPropertyValue=function(Se,Ce){return Ce in oe[Se]},webModule.__getPropMap=function(){var Se={};for(var Ce in oe)oe.hasOwnProperty(Ce)&&(Se[Ce]=Pe(Ce));return Se},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ye;try{Ye=Cb;var Te=Ye.indexOf(Db);Te!=-1&&(mt=parseInt(Ye.substring(Te+P),$),Ye=Ye.substring(O,Te))}catch(Se){}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(Ie,mt,oe){"use strict";oe.d(mt,{Ax:function(){return Te},Ds:function(){return Se},KI:function(){return ue},SI:function(){return Ye},f1:function(){return Pe}});var te=oe(11320);function Pe(Oe){let Me=!0;if(Oe.length>0){for(let Fe=0;Fe<Oe.length;Fe++)if(Oe[Fe].compile_success==0||!Oe[Fe].compile_success){Me=!1;break}}else Me=!1;return Me}function Ye(Oe,Me=""){let Fe=[];for(let Ve=0;Ve<Oe.length;Ve++){let je=Oe[Ve],Ze=Me?`${Me}/${je.name}`:`${je.name}`;Fe.push({title:je.name,type:je.type,isLeaf:je.type!=="tree",key:Ze})}return Fe}function Te(Oe,Me,Fe){for(let Ve=0;Ve<Oe.length;Ve++){let je=Oe[Ve];if(je.key===Me){je.children=Fe;break}je.children&&Te(je.children,Me,Fe)}return Oe}function Se(Oe,Me,Fe){let Ve;return function(){let je=this,Ze=arguments,ae=function(){Ve=null,Fe||Oe.apply(je,Ze)},a=Fe&&!Ve;clearTimeout(Ve),Ve=setTimeout(ae,Me),a&&Oe.apply(je,Ze)}}const Ce=!0,ue=te.Z.API_SERVER},10191:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return an}});var te=oe(67294),Pe=oe(35973),Ye=oe(84567),Te=oe(24018),Se=oe(40043),Ce=oe(33170),ue=oe(22150),Oe=oe(42563),Me={},Fe=Object.defineProperty,Ve=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,ae=(we,ke,We)=>ke in we?Fe(we,ke,{enumerable:!0,configurable:!0,writable:!0,value:We}):we[ke]=We,a=(we,ke)=>{for(var We in ke||(ke={}))je.call(ke,We)&&ae(we,We,ke[We]);if(Ve)for(var We of Ve(ke))Ze.call(ke,We)&&ae(we,We,ke[We]);return we},y=(we,ke,We)=>new Promise((dt,ft)=>{var Qe=zt=>{try{lt(We.next(zt))}catch(be){ft(be)}},tt=zt=>{try{lt(We.throw(zt))}catch(be){ft(be)}},lt=zt=>zt.done?dt(zt.value):Promise.resolve(zt.value).then(Qe,tt);lt((We=We.apply(we,ke)).next())});const E=Ye.default.Group,b=({classroomList:we,loading:ke,user:We,exercise_id:dt=null,homework_common_id:ft=null,setitem:Qe,item:tt,type:lt,rz:zt,dispatch:be})=>{var Ae,it,xt,nt,rt,me,gt,yt;const[on,Pt]=(0,te.useState)([]);let[Ne,xe]=(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]=ue.default.useForm();(0,te.useEffect)(()=>{zt&&(Ne.zydatas=zt,xe(a({},Ne)),tt!=null&&tt.ec_course_id&&Jt())},[tt,zt]);function Jt(){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 At(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 Yt=yield(0,Ce.ZP)(`/api/ec_major_schools/${Ot}/ec_years/get_year_list.json`,{method:"get"});Ne.jbdatas=Yt==null?void 0:Yt.data,xe(a({},Ne)),Tt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function sn(Ot){return y(this,null,function*(){const Yt=yield(0,Ce.ZP)(`/api/ec_years/${Ot}/ec_courses/get_courses.json`,{method:"get"});Ne.kcdatas=Yt==null?void 0:Yt.data,xe(a({},Ne)),Tt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const At=Ot=>y(void 0,null,function*(){const Yt=yield(0,Ce.ZP)(`/api/ec_courses/${Ot}/ec_points.json`,{method:"get",params:{ec_course_id:Ot}});Ne.zsdatas=Yt==null?void 0:Yt.data,xe(a({},Ne))});return te.createElement("div",{className:Me.from},te.createElement(ue.default,{form:Tt,layout:"inline",onValuesChange:Ot=>{console.log("----",Ot),Ot.ec_major_school_id&&(Ne.jbdatas=[],Ne.kcdatas=[],Ne.zsdatas=[],xe(a({},Ne)),ln(Ot.ec_major_school_id)),Ot.ec_year_id&&(Ne.kcdatas=[],Ne.zsdatas=[],xe(a({},Ne)),sn(Ot.ec_year_id)),Ot.ec_course_id&&(Ne.zsdatas=[],xe(a({},Ne)),At(Ot.ec_course_id))},onFinish:Ot=>y(void 0,null,function*(){Qe(Ot)})},te.createElement(ue.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},te.createElement(Oe.default,{style:{width:150},disabled:((Ae=Ne.zydatas)==null?void 0:Ae.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(it=Ne==null?void 0:Ne.zydatas)==null?void 0:it.map((Ot,Yt)=>te.createElement(Oe.default.Option,{key:Yt,value:Ot==null?void 0:Ot.ec_major_school_id},Ot==null?void 0:Ot.name)))),te.createElement(ue.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},te.createElement(Oe.default,{style:{width:150},disabled:((xt=Ne.jbdatas)==null?void 0:xt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(nt=Ne==null?void 0:Ne.jbdatas)==null?void 0:nt.map((Ot,Yt)=>te.createElement(Oe.default.Option,{key:Yt,value:Ot==null?void 0:Ot.ec_year_id},Ot==null?void 0:Ot.year)))),te.createElement(ue.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},te.createElement(Oe.default,{style:{width:150},disabled:((rt=Ne.kcdatas)==null?void 0:rt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(me=Ne==null?void 0:Ne.kcdatas)==null?void 0:me.map((Ot,Yt)=>te.createElement(Oe.default.Option,{key:Yt,value:Ot==null?void 0:Ot.id},Ot==null?void 0:Ot.name)))),te.createElement(ue.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},te.createElement(Oe.default,{onChange:()=>{Tt.submit()},style:{width:150},mode:"multiple",disabled:((gt=Ne.zsdatas)==null?void 0:gt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(yt=Ne==null?void 0:Ne.zsdatas)==null?void 0:yt.map((Ot,Yt)=>te.createElement(Oe.default.Option,{key:Yt,value:Ot==null?void 0:Ot.id},Ot==null?void 0:Ot.name))))))};var x=(0,Pe.connect)(({classroomList:we,loading:ke,globalSetting:We,user:dt})=>({classroomList:we,globalSetting:We,loading:ke.effects,user:dt}))(b),z=Object.defineProperty,ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,fe=(we,ke,We)=>ke in we?z(we,ke,{enumerable:!0,configurable:!0,writable:!0,value:We}):we[ke]=We,ce=(we,ke)=>{for(var We in ke||(ke={}))ge.call(ke,We)&&fe(we,We,ke[We]);if(re)for(var We of re(ke))de.call(ke,We)&&fe(we,We,ke[We]);return we},De=(we,ke)=>ee(we,ne(ke)),Ge=(we,ke,We)=>new Promise((dt,ft)=>{var Qe=zt=>{try{lt(We.next(zt))}catch(be){ft(be)}},tt=zt=>{try{lt(We.throw(zt))}catch(be){ft(be)}},lt=zt=>zt.done?dt(zt.value):Promise.resolve(zt.value).then(Qe,tt);lt((We=We.apply(we,ke)).next())});const wt=Ye.default.Group,Ut=({classroomList:we,loading:ke,user:We,exercise_id:dt=null,homework_common_id:ft=null,setitem:Qe,type:tt,dispatch:lt})=>{var zt,be;let[Ae,it]=(0,te.useState)([{}]),[xt,nt]=(0,te.useState)([]);function rt(){return Ge(this,null,function*(){var gt,yt,on;let Pt=yield(0,Ce.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:dt,homework_common_id:ft}});if(((gt=Pt==null?void 0:Pt.data)==null?void 0:gt.length)>0){let Ne=[];(yt=Pt==null?void 0:Pt.data)==null||yt.map(xe=>{var Le;(Le=xe==null?void 0:xe.ec_point_ids)==null||Le.map(Je=>{Ne.push(Je)})}),Qe(De(ce({},(on=Pt==null?void 0:Pt.data)==null?void 0:on[0]),{ec_point_ids:Ne})),it(Pt==null?void 0:Pt.data)}})}(0,te.useEffect)(()=>{var gt,yt;(yt=(gt=We==null?void 0:We.userInfo)==null?void 0:gt.course)!=null&&yt.course_school_id&&me()},[(be=(zt=We==null?void 0:We.userInfo)==null?void 0:zt.course)==null?void 0:be.course_school_id]);function me(){return Ge(this,null,function*(){var gt,yt;const on=yield(0,Ce.ZP)(`/api/schools/${(yt=(gt=We==null?void 0:We.userInfo)==null?void 0:gt.course)==null?void 0:yt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});nt(on==null?void 0:on.data),(ft||dt)&&rt()})}return te.createElement("div",null,te.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ae==null?void 0:Ae.map((gt,yt)=>te.createElement("div",{key:yt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},te.createElement(x,{rz:xt,item:gt,type:yt,setitem:on=>{Ae.splice(yt,1,on),it([...Ae]);let Pt=[];Ae==null||Ae.map(Ne=>{var xe;(xe=Ne==null?void 0:Ne.ec_point_ids)==null||xe.map(Le=>{Pt.push(Le)})}),Qe(De(ce({},on),{ec_point_ids:Pt}))}}),yt!=0&&te.createElement(Te.Z,{onClick:()=>{Ae.splice(yt,1),it([...Ae])},style:{marginLeft:10,fontSize:"20px"}}),te.createElement(Se.Z,{onClick:()=>{Ae.push({}),it([...Ae])},style:{marginLeft:10,fontSize:"20px"}}))))};var an=(0,Pe.connect)(({classroomList:we,loading:ke,globalSetting:We,user:dt})=>({classroomList:we,globalSetting:We,loading:ke.effects,user:dt}))(Ut)},63205:function(Ie,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),Te=oe.n(Ye),Se=oe(57953),Ce=oe(15979),ue=oe(33170),Oe=oe(28706),Me=(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),[fe,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&&De()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[je==null?void 0:je.visible]);const De=()=>Me(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const we=yield(0,Oe.ZJ)(je==null?void 0:je.src);z.current.src="",z.current.src=we,z.current.onload=function(){an()},de(!1),ce("")}),Ge=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},wt=we=>Me(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ke=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:je.title,file:we.dataUrl}});ke!=null&&ke.id&&!x?(yield(0,ue.ZP)(`/api/attachments/${je.id}/add_subitem.json`,{method:"post",body:{subitem_id:ke==null?void 0:ke.id,settings:JSON.stringify(we.state)}})).status===0&&E():ke!=null&&ke.id&&E(ke),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),ce("")}),Ut=()=>{const we=document.querySelector('a[href="https://markerjs.com/"]');we&&we.parentNode&&(we.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(We=>{const dt=document.querySelector(We.name);dt&&dt.setAttribute("title",We.title)})},an=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",wt),ee.current.addEventListener("beforeclose",Ge),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),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(Se.Z,{spinning:ge,tip:fe,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Te()(Pe.imageDimensions,Ze,ae?Pe.fullWidth:""),style:a},te.createElement("img",{className:Pe.img,ref:z}))))}},36527:function(Ie,mt,oe){"use strict";var te=oe(67294),Pe=oe(71230),Ye=oe(15746),Te=oe(66368),Se=oe(71577),Ce=oe(85725),ue=oe(71736),Oe=oe(84279),Me=oe(67294);const Fe=(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:Me.createElement(Pe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Me.createElement(Ye.Z,{flex:"110px",className:ue.Z.item},Me.createElement("div",null,Me.createElement(Ce.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>Me.createElement("div",{key:ge},Me.createElement("h1",null,re.name),Me.createElement(Pe.Z,{gutter:[10,10]},re.data.map((de,fe)=>Me.createElement(Ye.Z,{key:fe,onClick:()=>b(de),className:ue.Z.diamond},Me.createElement(Ce.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Pe.Z,{className:ue.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Me.createElement(Ye.Z,{flex:"110px",className:ue.Z.item},Me.createElement("div",null,Me.createElement(Ce.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>Me.createElement("div",{key:ge},re.name&&Me.createElement("h1",null,re.name),Me.createElement(Pe.Z,{gutter:[10,10]},re.data.map((de,fe)=>Me.createElement(Ye.Z,{key:fe,onClick:()=>b(de),className:ue.Z.diamond},Me.createElement(Ce.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})),Me.createElement("div",{className:ue.Z.mathWrap},Me.createElement(Te.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ze||""),je&&Me.createElement("div",{className:ue.Z.button},Me.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});mt.Z=Fe},65866:function(Ie,mt,oe){"use strict";oe.d(mt,{z:function(){return dt},Z:function(){return ft}});var te=oe(67294),Pe=oe(59810),Ye=oe(2453),Te=oe(14446),Se=oe(71577),Ce=oe(11320),ue=oe(4440),Oe=Object.defineProperty,Me=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,je=(Qe,tt,lt)=>tt in Qe?Oe(Qe,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Qe[tt]=lt,Ze=(Qe,tt)=>{for(var lt in tt||(tt={}))Fe.call(tt,lt)&&je(Qe,lt,tt[lt]);if(Me)for(var lt of Me(tt))Ve.call(tt,lt)&&je(Qe,lt,tt[lt]);return Qe},ae=(Qe,tt,lt)=>new Promise((zt,be)=>{var Ae=nt=>{try{xt(lt.next(nt))}catch(rt){be(rt)}},it=nt=>{try{xt(lt.throw(nt))}catch(rt){be(rt)}},xt=nt=>nt.done?zt(nt.value):Promise.resolve(nt.value).then(Ae,it);xt((lt=lt.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 lt=parseInt(""+Math.floor(Math.log(Qe)/Math.log(1024)),10);return(Qe/Math.pow(1024,lt)).toFixed(1)+" "+tt[lt]}var E=({value:Qe=[],action:tt,onChange:lt,className:zt,maxSize:be=150,title:Ae="\u6587\u4EF6\u4E0A\u4F20",accept:it=null})=>{const xt={multiple:!1,fileList:Qe,accept:it,withCredentials:!0,beforeUpload:rt=>rt.size/1024/1024<be?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${be}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(rt){var me,gt,yt,on;let Pt=[...rt.fileList];if(Pt=Pt.map(Ne=>(Ne.name.indexOf(a)===-1&&(Ne.name=`${Ne.name}${a}${y(Ne.size)}`),Ze({},Ne))),rt.file.status==="done"&&((gt=(me=rt.file)==null?void 0:me.response)==null?void 0:gt.status)===-1){message.error((on=(yt=rt.file)==null?void 0:yt.response)==null?void 0:on.message),lt([]);return}lt(Pt)},onRemove:rt=>ae(void 0,null,function*(){const me=rt.size/1024/1024;return rt.status==="uploading"?!0:me<be&&(rt.response?rt.response.id:rt.uid)?yield removeAttachment(rt.response?rt.response.id:rt.id):!0})};function nt(rt){rt.preventDefault(),rt.stopPropagation()}return React.createElement("div",{className:`single-upload ${zt||""}`},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},Ae),React.createElement("span",{onClick:nt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",be,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(Qe,tt,lt)=>tt in Qe?z(Qe,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Qe[tt]=lt,de=(Qe,tt)=>{for(var lt in tt||(tt={}))ne.call(tt,lt)&&ge(Qe,lt,tt[lt]);if(ee)for(var lt of ee(tt))re.call(tt,lt)&&ge(Qe,lt,tt[lt]);return Qe};const fe=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=",De=Object.defineProperty,Ge=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,an=(Qe,tt,lt)=>tt in Qe?De(Qe,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Qe[tt]=lt,we=(Qe,tt)=>{for(var lt in tt||(tt={}))wt.call(tt,lt)&&an(Qe,lt,tt[lt]);if(Ge)for(var lt of Ge(tt))Ut.call(tt,lt)&&an(Qe,lt,tt[lt]);return Qe},ke=(Qe,tt,lt)=>new Promise((zt,be)=>{var Ae=nt=>{try{xt(lt.next(nt))}catch(rt){be(rt)}},it=nt=>{try{xt(lt.throw(nt))}catch(rt){be(rt)}},xt=nt=>nt.done?zt(nt.value):Promise.resolve(nt.value).then(Ae,it);xt((lt=lt.apply(Qe,tt)).next())});const{Dragger:We}=Pe.default;function dt(Qe){let tt=[];return Qe&&Qe.length>0&&(tt=Qe.map(lt=>({uid:lt.id,id:lt.id,name:lt.title+a+lt.filesize,url:lt.url,filesize:lt.filesize,status:"done",response:{id:lt.id}}))),tt}var ft=({value:Qe,onChange:tt,action:lt,data:zt,className:be,maxSize:Ae=150,title:it="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:xt=!1,accept:nt="",additionalText:rt,isDragger:me,number:gt=1e3,aloneClear:yt=!1,realTimeRemove:on=!0,uploadText:Pt,setFileProgress:Ne,showFileProgress:xe})=>{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),gt===(Qe==null?void 0:Qe.length)&&Je(!0))},[Qe]);const Jt=()=>{setTimeout(()=>{et.pop(),Je(!1),bt([...et])},500)};xe&&Ne(et.some(At=>At.status==="uploading"));const ln={multiple:!0,accept:nt,withCredentials:!0,fileList:et,beforeUpload:(At,Ot)=>{const Yt=At.size/1024/1024;if(et.concat(Ot).length>gt)return et.pop(),bt([...et]),Ye.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${gt}\u4E2A\u6587\u4EF6`),yt?Promise.reject():(Jt(),!1);if(!(Yt<Ae)){if(Ye.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ae}MB).`),yt)return Promise.reject();Jt()}return!0},data:zt,action:lt||`${Ce.Z.API_SERVER}/api/attachments.json`,onChange(At){var Ot,Yt,jn,xn;if(At.file.status==="removed"?et=At.fileList:et=(0,x.uniqBy)([...At.fileList,...et],"uid"),At.file.status==="done"&&((Yt=(Ot=At.file)==null?void 0:Ot.response)==null?void 0:Yt.status)===-1){Ye.ZP.error((xn=(jn=At.file)==null?void 0:jn.response)==null?void 0:xn.message);return}et.length>=gt?Je(!0):Je(!1),bt([...et]),et=et.map(pn=>{var ye,Re;return(ye=pn==null?void 0:pn.response)!=null&&ye.id&&(pn.url=(Re=pn==null?void 0:pn.response)==null?void 0:Re.url),pn.name.indexOf(a)===-1&&(pn.name=`${pn.name}${a}${y(pn.size)}`),we({},pn)}),console.log("info:",At,et),tt(et)},onRemove:At=>ke(void 0,null,function*(){if(!on)return!0;const Ot=()=>ke(void 0,null,function*(){if(At.response?At.response.id:At.id){let jn=yield(0,ue.JZ)(At.response?At.response.id:At.uid);return Promise.resolve(jn)}else return!0});if(xt)return new Promise((Yt,jn)=>{Te.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:()=>ke(void 0,null,function*(){const xn=yield Ot();Ye.ZP.success("\u5220\u9664\u6210\u529F"),Yt(!0)}),onCancel:()=>Yt(!1)})});{const Yt=yield Ot();return et.length-1<gt&&Je(!1),Yt}})};function sn(At){At.preventDefault(),At.stopPropagation()}return te.createElement("div",{className:`multi-upload ${be||""}`},me&&te.createElement(We,we({},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",Ae,"MB)"," "),rt),!me&&te.createElement(Pe.default,we({},ln),te.createElement(Se.ZP,{disabled:Le,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:ce}),it),te.createElement("span",{onClick:sn,className:"upload_text"},Pt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ae}MB)`)))}},57444:function(Ie,mt,oe){"use strict";oe.d(mt,{h:function(){return ee}});var te=oe(67294),Pe=oe(42563),Ye=oe(22150),Te=oe(71577),Se=oe(4631),Ce=oe.n(Se),ue=oe(71749),Oe=oe(30483),Me=Object.defineProperty,Fe=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ge)=>re in ne?Me(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)=>Fe(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 fe(De){de(z[De][1])}function ce(De){ne(De)}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:De=>De.parentNode,onChange:fe},Object.keys(z).map(De=>te.createElement(b,{key:De,value:De},z[De][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(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Te.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const fe=(0,te.useRef)(),[ce,De]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let Ge=function(wt){const Ut=wt.getValue();re&&re(Ut)};return ce.on("change",Ge),()=>{ce.off("change",Ge)}}},[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(fe.current&&!ce){const Ge=Ce().fromTextArea(fe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));De(Ge)}},[fe.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:fe}))}},35567:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Qa}});var te=oe(67294),Pe=oe(4631),Ye=oe.n(Pe),Te=oe(91033),Se=oe(71749),Ce=oe(57341),ue=oe(82801),Oe=oe(88386),Me=oe(49047),Fe=oe(80785),Ve=oe(85725),je=({value:Ee="",className:Be,showTextOnly:pe,showLines:vt,style:Rt={}})=>{const jt=(0,te.useMemo)(()=>"",[Ee]);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=(Ee,Be,pe)=>Be in Ee?ae(Ee,Be,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ee[Be]=pe,ee=(Ee,Be)=>{for(var pe in Be||(Be={}))b.call(Be,pe)&&z(Ee,pe,Be[pe]);if(E)for(var pe of E(Be))x.call(Be,pe)&&z(Ee,pe,Be[pe]);return Ee},ne=(Ee,Be)=>a(Ee,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:Ee,title:Be,icon:pe,actionName:vt,className:Rt="",children:jt}){function kn(){Ee(vt)}return Ze.createElement("a",{title:Be,className:Rt,onClick:kn},Ze.createElement("i",{className:`${pe}`}),jt)}var de=({watch:Ee,showNullButton:Be,showNullProgramButton:pe,onActionCallback:vt,fullScreen:Rt,insertTemp:jt,hidetoolBar:kn,extraUse:Sn})=>{const Bn=[...re,{title:`${Ee?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ee?"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,pe?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})))},fe=oe(76621),ce=oe(22150),De=oe(69677),Ge=oe(71577),wt=Object.defineProperty,Ut=Object.defineProperties,an=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,dt=(Ee,Be,pe)=>Be in Ee?wt(Ee,Be,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ee[Be]=pe,ft=(Ee,Be)=>{for(var pe in Be||(Be={}))ke.call(Be,pe)&&dt(Ee,pe,Be[pe]);if(we)for(var pe of we(Be))We.call(Be,pe)&&dt(Ee,pe,Be[pe]);return Ee},Qe=(Ee,Be)=>Ut(Ee,an(Be));const tt={labelCol:{span:4},wrapperCol:{span:20}};var lt=({callback:Ee,onCancel:Be})=>{function pe(vt){Ee(vt)}return te.createElement(ce.default,Qe(ft({},tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,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(De.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(De.default,null)),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:Be},"\u53D6\u6D88")))},zt=oe(57444),be=oe(70859),Ae=oe(14446),it=oe(71230),xt=oe(63205),nt=oe(67294),rt=({callback:Ee,onCancel:Be})=>{const pe=document.createElement("canvas"),vt=pe.getContext("2d");pe.width=1e3,pe.height=800,vt.fillStyle="#ffffff",vt.fillRect(0,0,pe.width,pe.height);const Rt=pe.toDataURL("image/png");return nt.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nt.createElement(it.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=>{Ee({src:jt.url})},onClose:Be})))},me=oe(23495);function gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(gt,go.CommandHandler),gt.prototype.canAlignSelection=function(){var Ee=this.diagram;return!(Ee===null||Ee.isReadOnly||Ee.isModelReadOnly||Ee.selection.count<2)},gt.prototype.alignLeft=function(){var Ee=this.diagram;Ee.startTransaction("aligning left");var Be=1/0;Ee.selection.each(function(pe){pe instanceof go.Link||(Be=Math.min(pe.position.x,Be))}),Ee.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Be,pe.position.y))}),Ee.commitTransaction("aligning left")},gt.prototype.alignRight=function(){var Ee=this.diagram;Ee.startTransaction("aligning right");var Be=-1/0;Ee.selection.each(function(pe){if(!(pe instanceof go.Link)){var vt=pe.actualBounds.x+pe.actualBounds.width;Be=Math.max(vt,Be)}}),Ee.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Be-pe.actualBounds.width,pe.position.y))}),Ee.commitTransaction("aligning right")},gt.prototype.alignTop=function(){var Ee=this.diagram;Ee.startTransaction("alignTop");var Be=1/0;Ee.selection.each(function(pe){pe instanceof go.Link||(Be=Math.min(pe.position.y,Be))}),Ee.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,Be))}),Ee.commitTransaction("alignTop")},gt.prototype.alignBottom=function(){var Ee=this.diagram;Ee.startTransaction("aligning bottom");var Be=-1/0;Ee.selection.each(function(pe){if(!(pe instanceof go.Link)){var vt=pe.actualBounds.y+pe.actualBounds.height;Be=Math.max(vt,Be)}}),Ee.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,Be-pe.actualBounds.height))}),Ee.commitTransaction("aligning bottom")},gt.prototype.alignCenterX=function(){var Ee=this.diagram,Be=Ee.selection.first();if(Be){Ee.startTransaction("aligning Center X");var pe=Be.actualBounds.x+Be.actualBounds.width/2;Ee.selection.each(function(vt){vt instanceof go.Link||vt.move(new go.Point(pe-vt.actualBounds.width/2,vt.actualBounds.y))}),Ee.commitTransaction("aligning Center X")}},gt.prototype.alignCenterY=function(){var Ee=this.diagram,Be=Ee.selection.first();if(Be){Ee.startTransaction("aligning Center Y");var pe=Be.actualBounds.y+Be.actualBounds.height/2;Ee.selection.each(function(vt){vt instanceof go.Link||vt.move(new go.Point(vt.actualBounds.x,pe-vt.actualBounds.height/2))}),Ee.commitTransaction("aligning Center Y")}},gt.prototype.alignColumn=function(Ee){var Be=this.diagram;Be.startTransaction("align Column"),Ee===void 0&&(Ee=0),Ee=parseFloat(Ee);var pe=new Array;Be.selection.each(function(Sn){Sn instanceof go.Link||pe.push(Sn)});for(var vt=0;vt<pe.length-1;vt++){var Rt=pe[vt],jt=Rt.actualBounds.y+Rt.actualBounds.height+Ee,kn=pe[vt+1];kn.move(new go.Point(Rt.actualBounds.x,jt))}Be.commitTransaction("align Column")},gt.prototype.alignRow=function(Ee){Ee===void 0&&(Ee=0),Ee=parseFloat(Ee);var Be=this.diagram;Be.startTransaction("align Row");var pe=new Array;Be.selection.each(function(Sn){Sn instanceof go.Link||pe.push(Sn)});for(var vt=0;vt<pe.length-1;vt++){var Rt=pe[vt],jt=Rt.actualBounds.x+Rt.actualBounds.width+Ee,kn=pe[vt+1];kn.move(new go.Point(jt,Rt.actualBounds.y))}Be.commitTransaction("align Row")},gt.prototype.canRotate=function(Ee){var Be=this.diagram;return!(Be===null||Be.isReadOnly||Be.isModelReadOnly||Be.selection.count<1)},gt.prototype.rotate=function(Ee){Ee===void 0&&(Ee=90);var Be=this.diagram;Be.startTransaction("rotate "+Ee.toString());var Be=this.diagram;Be.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=Ee)}),Be.commitTransaction("rotate "+Ee.toString())},gt.prototype.pullToFront=function(){var Ee=this.diagram;Ee.startTransaction("pullToFront");var Be=new go.Map;Ee.selection.each(function(pe){Be.set(pe.layer,0)}),Be.iteratorKeys.each(function(pe){var vt=0;pe.parts.each(function(Rt){if(!Rt.isSelected){var jt=Rt.zOrder;isNaN(jt)?Rt.zOrder=0:vt=Math.max(vt,jt)}}),Be.set(pe,vt)}),Ee.selection.each(function(pe){gt._assignZOrder(pe,Be.get(pe.layer)+1)}),Ee.commitTransaction("pullToFront")},gt.prototype.pushToBack=function(){var Ee=this.diagram;Ee.startTransaction("pushToBack");var Be=new go.Map;Ee.selection.each(function(pe){Be.set(pe.layer,0)}),Be.iteratorKeys.each(function(pe){var vt=0;pe.parts.each(function(Rt){if(!Rt.isSelected){var jt=Rt.zOrder;isNaN(jt)?Rt.zOrder=0:vt=Math.min(vt,jt)}}),Be.set(pe,vt)}),Ee.selection.each(function(pe){gt._assignZOrder(pe,Be.get(pe.layer)-1-gt._findGroupDepth(pe))}),Ee.commitTransaction("pushToBack")},gt._assignZOrder=function(Ee,Be,pe){pe===void 0&&(pe=Ee),Ee.layer===pe.layer&&(Ee.zOrder=Be),Ee instanceof go.Group&&Ee.memberParts.each(function(vt){gt._assignZOrder(vt,Be+1,pe)})},gt._findGroupDepth=function(Ee){if(Ee instanceof go.Group){var Be=0;return Ee.memberParts.each(function(pe){Be=Math.max(Be,gt._findGroupDepth(pe))}),Be+1}else return 0},gt.prototype.doKeyDown=function(){var Ee=this.diagram;if(Ee!==null){var Be=Ee.lastInput;if(Be.key==="Up"||Be.key==="Down"||Be.key==="Left"||Be.key==="Right"){var pe=this.arrowKeyBehavior;if(pe==="none")return;if(pe==="select"){this._arrowKeySelect();return}else if(pe==="move"){this._arrowKeyMove();return}else if(pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},gt.prototype._getAllParts=function(){var Ee=new Array;return this.diagram.nodes.each(function(Be){Ee.push(Be)}),this.diagram.parts.each(function(Be){Ee.push(Be)}),Ee},gt.prototype._arrowKeyMove=function(){var Ee=this.diagram,Be=Ee.lastInput,pe=0,vt=0;if(Be.control||Be.meta)pe=1,vt=1;else if(Ee.grid!==null){var Rt=Ee.grid.gridCellSize;vt=Rt.width,pe=Rt.height}Ee.startTransaction("arrowKeyMove"),Ee.selection.each(function(jt){Be.key==="Up"?jt.move(new go.Point(jt.actualBounds.x,jt.actualBounds.y-pe)):Be.key==="Down"?jt.move(new go.Point(jt.actualBounds.x,jt.actualBounds.y+pe)):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))}),Ee.commitTransaction("arrowKeyMove")},gt.prototype._arrowKeySelect=function(){var Ee=this.diagram,Be=Ee.lastInput,pe=null;Be.key==="Up"?pe=this._findNearestPartTowards(270):Be.key==="Down"?pe=this._findNearestPartTowards(90):Be.key==="Left"?pe=this._findNearestPartTowards(180):Be.key==="Right"&&(pe=this._findNearestPartTowards(0)),pe!==null&&(Be.shift?pe.isSelected=!0:Be.control||Be.meta?pe.isSelected=!pe.isSelected:Ee.select(pe))},gt.prototype._findNearestPartTowards=function(Ee){var Be=this.diagram.selection.first();if(Be===null)return null;for(var pe=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=pe.directionPoint(Bn),Ia=this._angleCloseness(na,Ee);if(Ia<=45){var ct=pe.distanceSquaredPoint(Bn);ct*=1+Math.sin(Ia*Math.PI/180),ct<Rt&&(Rt=ct,jt=Sn)}}}return jt},gt.prototype._angleCloseness=function(Ee,Be){return Math.min(Math.abs(Be-Ee),Math.min(Math.abs(Be+360-Ee),Math.abs(Be-360-Ee)))},gt.prototype._arrowKeyTree=function(){var Ee=this.diagram,Be=Ee.selection.first();if(Be instanceof go.Node){var pe=Ee.lastInput;if(pe.key==="Right"){if(!Be.isTreeLeaf)if(!Be.isTreeExpanded)Ee.commandHandler.canExpandTree(Be)&&Ee.commandHandler.expandTree(Be);else{var vt=this._sortTreeChildrenByY(Be).first();vt!==null&&Ee.select(vt)}}else if(pe.key==="Left")if(!Be.isTreeLeaf&&Be.isTreeExpanded)Ee.commandHandler.canCollapseTree(Be)&&Ee.commandHandler.collapseTree(Be);else{var Rt=Be.findTreeParentNode();Rt!==null&&Ee.select(Rt)}else if(pe.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&&Ee.select(Sn)}else Ee.select(Rt)}}else if(pe.key==="Down")if(Be.isTreeExpanded&&!Be.isTreeLeaf){var vt=this._sortTreeChildrenByY(Be).first();vt!==null&&Ee.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){Ee.select(jt.elt(kn+1));break}else Be=Rt}var na=Ee.selection.first();na!==null&&Ee.scrollToRect(na.actualBounds)}},gt.prototype._sortTreeChildrenByY=function(Ee){var Be=new go.List().addAll(Ee.findTreeChildrenNodes());return Be.sort(function(pe,vt){var Rt=pe.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},gt.prototype.copyToClipboard=function(Ee){go.CommandHandler.prototype.copyToClipboard.call(this,Ee),this._lastPasteOffset.set(this.pasteOffset)},gt.prototype.pasteFromClipboard=function(){var Ee=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ee,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ee},Object.defineProperty(gt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ee){if(Ee!=="move"&&Ee!=="select"&&Ee!=="scroll"&&Ee!=="tree"&&Ee!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ee);this._arrowKeyBehavior=Ee}}),Object.defineProperty(gt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ee){if(!(Ee instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ee);this._pasteOffset.set(Ee)}});var yt=gt,on=oe(18023),Pt=oe(15746),Ne=oe(33170),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Le=oe(67294),Je=(Ee,Be,pe)=>new Promise((vt,Rt)=>{var jt=Bn=>{try{Sn(pe.next(Bn))}catch(na){Rt(na)}},kn=Bn=>{try{Sn(pe.throw(Bn))}catch(na){Rt(na)}},Sn=Bn=>Bn.done?vt(Bn.value):Promise.resolve(Bn.value).then(jt,kn);Sn((pe=pe.apply(Ee,Be)).next())});function et({onCancel:Ee,callback:Be}){let pe=(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 ct=me.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"};pe.current=new me.S0(vt.current,{padding:20,grid:ct(me.s_,"Grid",ct(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ct(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:st=>{var Bt=st.diagram.commandHandler.addTopLevelParts(st.diagram.selection,!0);Bt||st.diagram.currentTool.doCancel()},commandHandler:ct(yt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:st=>{var Bt=st.subject;Bt.location=Bt.location.copy().snapToGridPoint(st.diagram.grid.gridOrigin,st.diagram.grid.gridCellSize),setTimeout(()=>{st.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:st=>{var Bt=st.subject;setTimeout(()=>{st.diagram.commandHandler.editTextBlock()})},LinkRelinked:st=>{var Bt=st.parameter.part;Bt.invalidateConnectedLinks();var Xt=st.subject;st.diagram.toolManager.linkingTool.isForwards?Xt.toNode.invalidateConnectedLinks():Xt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=ct(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),ct(me.bn,{name:"SHAPE",fill:Cn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ct(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ct(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),pe.current.nodeTemplate.toolTip=ct("ToolTip",ct(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},ct(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),ct(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function ve(st,Bt){var Xt=(St,Pn)=>{St.handled=!0,St.diagram.model.commit(vn=>{var sa=Pn.part.adornedPart,ca=new me.E9().setRectSpot(sa.actualBounds,st);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 ct(me.bn,{figure:Bt,alignment:st,alignmentFocus:st.opposite(),width:st.equals(me.z6.Top)||st.equals(me.z6.Bottom)?25:18,height:st.equals(me.z6.Top)||st.equals(me.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:Xt,contextClick:Xt})}function Ue(st){return ct(me.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,Xt)=>Xt.fill="dodgerblue",mouseLeave:(Bt,Xt)=>Xt.fill="orange",click:(Bt,Xt)=>{Bt.diagram.commandHandler.showContextMenu(Xt.part.adornedPart)}},st||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=ct(me.uz,"Spot",ct(me.Vm,{padding:10}),ve(me.z6.Top,"TriangleUp"),ve(me.z6.Left,"TriangleLeft"),ve(me.z6.Right,"TriangleRight"),ve(me.z6.Bottom,"TriangleDown"),Ue({alignment:new me.z6(.75,0)}));function ze(st,Bt){return(Xt,St)=>{Xt.handled=!0,Xt.diagram.model.commit(Pn=>{Pn.set(St.part.adornedPart.data,st,Bt)})}}function He(st,Bt){return Bt||(Bt="color"),ct(me.bn,{width:16,height:16,stroke:"lightgray",fill:st,margin:1,background:"transparent",mouseEnter:(Xt,St)=>St.stroke="dodgerblue",mouseLeave:(Xt,St)=>St.stroke="lightgray",click:ze(Bt,st),contextClick:ze(Bt,st)})}function ht(){return[ct("ContextMenuButton",ct(me.s_,"Horizontal",He(Cn.white,"fill"),He(Cn.beige,"fill"),He(Cn.extralightblue,"fill"),He(Cn.extralightred,"fill"))),ct("ContextMenuButton",ct(me.s_,"Horizontal",He(Cn.lightgray,"fill"),He(Cn.lightgreen,"fill"),He(Cn.lightblue,"fill"),He(Cn.lightred,"fill")))]}function at(){return[ct("ContextMenuButton",ct(me.s_,"Horizontal",He(Cn.black),He(Cn.green),He(Cn.blue),He(Cn.red))),ct("ContextMenuButton",ct(me.s_,"Horizontal",He(Cn.white),He(Cn.magenta),He(Cn.purple),He(Cn.orange)))]}function ut(st,Bt){return Bt||(Bt="thickness"),ct(me.bn,"LineH",{width:16,height:16,strokeWidth:st,margin:1,background:"transparent",mouseEnter:(Xt,St)=>St.background="dodgerblue",mouseLeave:(Xt,St)=>St.background="transparent",click:ze(Bt,st),contextClick:ze(Bt,st)})}function qe(st,Bt){return Bt||(Bt="dash"),ct(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:st,margin:1,background:"transparent",mouseEnter:(Xt,St)=>St.background="dodgerblue",mouseLeave:(Xt,St)=>St.background="transparent",click:ze(Bt,st),contextClick:ze(Bt,st)})}function Qt(){return[ct("ContextMenuButton",ct(me.s_,"Horizontal",ut(1),ut(2),ut(3),ut(4))),ct("ContextMenuButton",ct(me.s_,"Horizontal",qe(null),qe([2,4]),qe([4,4])))]}function Gt(st,Bt){return Bt||(Bt="figure"),ct(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:st,margin:1,background:"transparent",mouseEnter:(Xt,St)=>St.fill="dodgerblue",mouseLeave:(Xt,St)=>St.fill="lightgray",click:ze(Bt,st),contextClick:ze(Bt,st)})}pe.current.nodeTemplate.contextMenu=ct("ContextMenu",ct("ContextMenuButton",ct(me.s_,"Horizontal",Gt("Rectangle"),Gt("RoundedRectangle"),Gt("Ellipse"),Gt("Diamond"))),ct("ContextMenuButton",ct(me.s_,"Horizontal",Gt("Parallelogram2"),Gt("ManualOperation"),Gt("Procedure"),Gt("Cylinder1"))),ct("ContextMenuButton",ct(me.s_,"Horizontal",Gt("Terminator"),Gt("CreateRequest"),Gt("Document"),Gt("TriangleDown"))),ht(),at(),Qt()),pe.current.groupTemplate=ct(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(st,Bt)=>{var Xt=Bt.addMembers(Bt.diagram.selection,!0);Xt||Bt.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),ct(me.s_,"Auto",{name:"BODY"},ct(me.bn,{parameter1:10,fill:Cn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ct(me.Vm,{background:"transparent",margin:20})),ct(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),pe.current.groupTemplate.selectionAdornmentTemplate=ct(me.uz,"Spot",ct(me.s_,"Auto",ct(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ct(me.Vm,{margin:1.5})),Ue({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),pe.current.groupTemplate.contextMenu=ct("ContextMenu",ht(),at(),Qt()),pe.current.linkTemplate=ct(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",st=>st>=1?10:0),new me.KX("toShortLength","dir",st=>st>=1?10:0),new me.KX("points").makeTwoWay(),ct(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ct(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",st=>st===1)),ct(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",st=>st>=1),new me.KX("width","thickness",st=>7+3*st),new me.KX("height","thickness",st=>7+3*st),new me.KX("segmentOffset","thickness",st=>new me.E9(-15,4+1.5*st))),ct(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",st=>st===2),new me.KX("width","thickness",st=>7+3*st),new me.KX("height","thickness",st=>7+3*st),new me.KX("segmentOffset","thickness",st=>new me.E9(-15,4+1.5*st))),ct(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),pe.current.linkTemplate.selectionAdornmentTemplate=ct(me.uz,ct(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:dn(2)},new me.KX("pathPattern","thickness",dn)),Ue({alignmentFocus:new me.z6(0,0,-6,-4)}));function dn(st){return ct(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(st+4).toString()+" H3"})}function yn(st){var Bt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return st===0?Bt="M0 0 M16 16 M0 8 L16 8":st===2&&(Bt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ct(me.bn,{geometryString:Bt,margin:2,background:"transparent",mouseEnter:(Xt,St)=>St.background="dodgerblue",mouseLeave:(Xt,St)=>St.background="transparent",click:ze("dir",st),contextClick:ze("dir",st)})}function $n(st){var Bt=(Xt,St)=>{Xt.handled=!0,Xt.diagram.model.commit(Pn=>{var vn=St.part.adornedPart;Pn.set(vn.data,st?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(st?vn.toNode:vn.fromNode).invalidateConnectedLinks()})};return ct(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Xt,St)=>St.background="dodgerblue",mouseLeave:(Xt,St)=>St.background="transparent",click:Bt,contextClick:Bt})}function Ke(st,Bt){var Xt=0,St=me.z6.RightSide;st.equals(me.z6.Top)?(Xt=270,St=me.z6.TopSide):st.equals(me.z6.Left)?(Xt=180,St=me.z6.LeftSide):st.equals(me.z6.Bottom)&&(Xt=90,St=me.z6.BottomSide),Bt||(Xt-=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",me.z6.stringify(St)),(Bt?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return ct(me.bn,{alignment:st,alignmentFocus:st.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Xt,background:"transparent",mouseEnter:(vn,sa)=>sa.background="dodgerblue",mouseLeave:(vn,sa)=>sa.background="transparent",click:Pn,contextClick:Pn})}pe.current.linkTemplate.contextMenu=ct("ContextMenu",at(),Qt(),ct("ContextMenuButton",ct(me.s_,"Horizontal",yn(0),yn(1),yn(2))),ct("ContextMenuButton",ct(me.s_,"Horizontal",ct(me.s_,"Spot",$n(!1),Ke(me.z6.Top,!1),Ke(me.z6.Left,!1),Ke(me.z6.Right,!1),Ke(me.z6.Bottom,!1)),ct(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},$n(!0),Ke(me.z6.Top,!0),Ke(me.z6.Left,!0),Ke(me.z6.Right,!0),Ke(me.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(st){return console.log("shapeName:",st),ba.indexOf(st)>=0}var aa=new me.YI(Rt.current,{maxSelectionCount:1,linkTemplate:ct(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:ct(me.uz,"Link",{locationSpot:me.z6.Center},ct(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ct(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),ct(me.bn,{isPanelMain:!0,strokeWidth:2}),ct(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(st=>({text:"\u672A\u547D\u540D",size:"100 100",figure:st.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(st){var Bt;const Xt=st.subject.part;var St=(Bt=document.activeElement)==null?void 0:Bt.value;typeof St=="string"&&St.trim()===""&&pe.current.model.commit(function(Pn){Pn.set(Xt.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),aa.nodeTemplate=ct(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),ct(me.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 me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),ct(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{pe.current.grid=ct(me.s_,"Grid",ct(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ct(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pe.current.grid.visible=!0,pe.current.grid.gridCellStroke="darkgray",pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pe.current,pe.current}const Ia=()=>Je(this,null,function*(){var ct=pe.current.makeImage();const Cn=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ct.src}});Be({src:Cn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{na()},500),Bn(Sn+1),()=>{pe.current=null}),[]),Le.createElement("div",{ref:kn,className:jt.current?`${xe.maxH60} body-overflow-initial`:"body-overflow-initial"},Le.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Sn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Le.createElement(it.Z,null,Le.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Le.createElement(Pt.Z,{onClick:()=>{var ct,Cn,ve=pe.current.selection.first();if(jt.current=!jt.current,document.activeElement&&ve){let Ue=(Cn=(ct=document.activeElement)==null?void 0:ct.value)==null?void 0:Cn.trim();typeof Ue=="string"&&pe.current.model.commit(function(ze){ze.set(ve.data,"text",Ue||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}Bn(Sn+1)}},Le.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ee},Le.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:xe.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:xe.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(Ge.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 Jt=Dt.ZP.Group,ln={margin:"0 8px"};var sn=({callback:Ee,onCancel:Be})=>{function pe(vt){Ee(vt)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},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(Jt,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(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ge.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},At=oe(47897),Ot=oe(61016),Yt=oe.n(Ot),xn=(0,te.forwardRef)(({use3d:Ee,width:Be,height:pe,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:pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Sn.current=new(Yt())(Ia.current,!0),window.onload=function(){Sn.current.inject("applet_container")}},[]);const ct=()=>{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(Ee)},[Ee]),(0,te.useImperativeHandle)(jt,()=>({getImgData:ct})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kn}),te.createElement(it.Z,{align:"middle"},te.createElement(Pt.Z,{flex:1},te.createElement(At.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(Ge.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=oe(36527),ye=oe(25934),Re=oe(2453);const ot="link",Lt="upload-image",$t="add-flowchart",en="draw-image",nn="add-flowchart",kt="code-block",Kt="add-table",bn="------------",gn={default:bn,left:`:${bn}`,center:`:${bn}:`,right:`${bn}:`};var Zn=oe(99914),Kn=(Ee,Be,pe)=>new Promise((vt,Rt)=>{var jt=Bn=>{try{Sn(pe.next(Bn))}catch(na){Rt(na)}},kn=Bn=>{try{Sn(pe.throw(Bn))}catch(na){Rt(na)}},Sn=Bn=>Bn.done?vt(Bn.value):Promise.resolve(Bn.value).then(jt,kn);Sn((pe=pe.apply(Ee,Be)).next())});function Xn(){}let la=0;const Dn=1e4,zn="\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(Ee){return/^\d+$/.test(Ee)?`${Ee}px`:Ee}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",[en]:"\u6DFB\u52A0\u753B\u56FE",[$t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qa=({defaultValue:Ee="",onChange:Be,width:pe="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:ct=!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:Qt=!1,disabledFill:Gt=!1,placeholder:dn="",values:yn="",extraUse:$n})=>{const[Ke,$a]=(0,te.useState)(null),[ba,Da]=(0,te.useState)(Ee),[aa,st]=(0,te.useState)(kn),[Bt,Xt]=(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,ye.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 Et=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Io.current}});(Zt=Et==null?void 0:Et.attachments)!=null&&Zt.length&&(console.log("cm:",Ke,Ka),Et.attachments.map(Mt=>{Mt.content_type.indexOf("image")>-1?Ke.replaceSelection(``):Mt.content_type.indexOf("video")>-1?Ke.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Mt.content_type.indexOf("pdf")>-1?Ke.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Mt.id}?type=${Mt.content_type}&disposition=inline" target="_blank">${Mt.name}</a>`):Ke.replaceSelection(`[${Mt.name}](${ENV.API_SERVER}/api/attachments/${Mt.id}?type=${Mt.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(Mt,It){var Gn;if(qe){It.preventDefault();return}const Sa=It.clipboardData;if(Sa){const ka=Sa.types.toString(),Ma=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(It.preventDefault(),Bn=="stex")return;try{let xa=Ma[1];((Gn=Ma[0])==null?void 0:Gn.kind)==="file"&&(xa=Ma[0]);const tn=xa.getAsFile(),Fn=tn.name.split(".").pop();(0,be.I)(tn,An=>{var En,Wn,Ba;An.id?((En=tn==null?void 0:tn.type)==null?void 0:En.indexOf("image"))>-1?Et.replaceSelection(`<img width="100%" src="/api/attachments/${An.id}?type=${An.content_type})" alt="" />`):((Wn=tn==null?void 0:tn.type)==null?void 0:Wn.indexOf("video"))>-1?Et.replaceSelection(`<video width="100%" controls src="/api/attachments/${An.id}"></video>`):((Ba=tn==null?void 0:tn.type)==null?void 0:Ba.indexOf("pdf"))>-1?Et.replaceSelection(`<a href="/api/attachments/${An.id}?type=${tn.type}&disposition=inline" target="_blank">${tn.name}</a>`):Rn.includes(Fn)?Et.replaceSelection(`<a href="/api/attachments/${An.id}?type=office&disposition=inline" target="_blank">${tn.name}</a>`):Et.replaceSelection(`[${tn.name}](/api/attachments/${An.id}?type=${An.content_type})`):(An==null?void 0:An.status)===401&&(Re.ZP.warning((An==null?void 0:An.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){Re.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Et=Ye().fromTextArea(Ka.current,{mode:Bn,lineNumbers:!Rt,lineWrapping:!0,value:Ee,autoCloseTags:!ve,autoCloseBrackets:!0});return Et.on("keyup",function(Mt,It){It.keyCode===8&&(Mt.getValue()==""?Et.setOption("placeholder",dn):Et.setOption("placeholder",null))}),Et.on("keydown",function(Mt,It){if(It.keyCode===8){var Gn=Oa(Mt);Gn&&It.preventDefault()}}),jt&&Et.focus(),Et.on("paste",Zt),Et.on("dragleave",function(Mt,It){Ra.current.classList.remove("mouse-hover-md")}),Qt&&Et.on("beforeChange",function(Mt,It){(It.origin==="paste"||It.origin==="+input")&&It.cancel()}),$a(Et),()=>{Et.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 Et=new Te.Z(Mt=>{for(let It of Mt)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&(Fa(),Ke.setSize("100%","100%"),Ke.refresh())});return Et.observe(Ka.current.parentElement),Et}if(Ke){const Et=Zt();return()=>{var Mt,It;(Mt=Ka.current)!=null&&Mt.parentElement&&Et.unobserve((It=Ka.current)==null?void 0:It.parentElement)}}},[Ke,Fa]),(0,te.useEffect)(()=>{if(Ke){let Zt=[];for(const[Et,Mt]of Object.entries(Ua)){let It={[Et]:()=>{Ja(Mt)}};Zt.push(It),Ke.addKeyMap(It)}return Va.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Va.current);for(let Et of Zt)Ke.removeKeyMap(Et)}}},[Ke]),(0,te.useEffect)(()=>{ze!==Bt&&Xt(ze)},[ze]),(0,Zn.Z)(()=>{if(!ct&&vn>0){let Zt=new Date().getTime(),Et=window.sessionStorage.getItem(na);Zt>=vn+Dn&&(!Et||Et!==ba)&&(window.sessionStorage.setItem(na,ba),to(!0))}},Dn),(0,te.useEffect)(()=>{st(kn)},[Ke,kn]),(0,te.useEffect)(()=>{Ke&&jt&&Ke.focus()},[Ke,jt]),(0,te.useEffect)(()=>{if(aa&&Ke){let Zt=function(Mt){let It=Mt.target;if(un.current){let Gn=It.scrollTop/It.scrollHeight;un.current.scrollTop=un.current.scrollHeight*Gn}};const Et=Ke.getScrollerElement();return Et.addEventListener("scroll",Zt),()=>{Et.removeEventListener("scroll",Zt)}}},[Ke,aa]),(0,te.useEffect)(()=>{if(Ke&&ht){let Zt=function(Et,Mt){ht(Et,Mt)};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 Oa(Zt,Et){var Mt=Zt.getDoc(),It=Mt.getCursor(),Gn=Mt.getLine(It.line),Sa=Gn.charAt(It.ch-1),ka=Gn.lastIndexOf("@\u2581@",It.ch),Ma=Gn.lastIndexOf("@\u2581\u2581@",It.ch),xa=ka>Ma?ka:Ma,tn=ka>Ma?3:4;if(Yn.indexOf(Sa)===-1)return null;if(console.log("change1:",Et,Zt,Gn,It,xa,ka,Ma,Sa),xa>=0&&It.ch-xa<5){var Fn=xa+tn;return Mt.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(Et,Mt){const It=Et.getValue();Da(It),sa(new Date().getTime()),Et.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(Ee==null)Ke.setValue(""),Da("");else{const Zt=window.scrollY||window.pageYOffset;Ee!==Ke.getValue()&&(Ke.setValue(Ee),Da(Ee),Ke.setCursor(Qt?1:Ke.lineCount(),0),window.scrollTo(0,Zt))}},[Ke,Ee]);const Ja=(0,te.useCallback)(Zt=>{const Et=Ke.getCursor(),Mt=Ke.getSelection();let It=Mt.split(`
|
|
`);switch(Zt){case"bold":return Ke.replaceSelection("**"+Mt+"**"),Mt===""&&Ke.setCursor(Et.line,Et.ch+2),Ke.focus();case"italic":return Ke.replaceSelection("*"+Mt+"*"),Mt===""&&Ke.setCursor(Et.line,Et.ch+1),Ke.focus();case"code":return Ke.replaceSelection("`"+Mt+"`"),Mt===""&&Ke.setCursor(Et.line,Et.ch+1),Ke.focus();case"inline-latex":return Pn("inline-latex"),Ke.focus();case"latex":return Ke.replaceSelection("```latex\n"+Mt+"\n```"),Ke.setCursor(Et.line+1,Mt.length+1),Ke.focus();case"line-break":return Ke.replaceSelection(`<br/>
|
|
`),Ke.focus();case"list-ul":return Mt===""?Ke.replaceSelection("- "+Mt):Ke.replaceSelection(It.map(Gn=>Gn===""?"":`- ${Gn}`).join(`
|
|
`)),Ke.focus();case"list-ol":return Mt===""?Ke.replaceSelection("1. "+Mt):Ke.replaceSelection(It.map((Gn,Sa)=>Gn===""?"":`${Sa+1}. ${Gn}`).join(`
|
|
`)),Ke.focus();case"add-null-ch":return Mt===""&&Ke.setCursor(Et.line,Et.ch),Ke.replaceSelection(zn),Ke.focus();case"add-signal":return Mt===""&&Ke.setCursor(Et.line,Et.ch),Ke.replaceSelection(ua),Ke.focus();case"add-multiple":return Mt===""&&Ke.setCursor(Et.line,Et.ch),Ke.replaceSelection(Yn),Ke.focus();case"inster-template-1":return Mt===""&&Ke.setCursor(Et.line,Et.ch),Ke.replaceSelection(ma),Ke.focus();case"eraser":return Ke.setValue(""),Ke.focus();case"trigger-watch":return st(!aa),Ke.focus();case"trigger-full-screen":return Xt(!Bt),Ke.focus();case ot:Pn(ot);return;case kt:Pn(kt);return;case Lt:Pn(Lt);return;case en:Pn(en);return;case"maths-latex":Pn("maths-latex");return;case $t:Pn($t);return;case Kt:Pn(Kt);return;default:throw new Error}},[Ke,aa,Bt]),La=(0,te.useCallback)((Zt,Et)=>{var Mt,It,Gn,Sa,ka,Ma;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),tn=new Uint8Array(xa.length),Fn=0;Fn<xa.length;Fn++)tn[Fn]=xa.charCodeAt(Fn);var An=new Blob([tn],{type:"image/png"});(0,be.I)(An,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 en:case nn:const{src:ao,alt:Lo}=Zt,Na=Et,Tr=(Gn=(It=(Mt=Na==null?void 0:Na.name)==null?void 0:Mt.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>`):((Ma=Na==null?void 0:Na.type)==null?void 0:Ma.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 Kt: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(gn[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(lt,{callback:La,onCancel:wa});case kt:return te.createElement(zt.Z,{callback:La,onCancel:wa});case Lt:return te.createElement(be.Z,{callback:La,onCancel:wa});case $t:return te.createElement(bt,{callback:La,onCancel:wa});case Kt: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},Et=function(){Gn=!1},Mt=function(ka){if(Gn){let Ma=ka.pageY-Sa;Ma<0&&(Ma=0),Ma>300&&(Ma=300);let xa=vt+Ma+"px";fa(xa)}},It=fo.current,Gn=!1,Sa=0;return It.addEventListener("mousedown",Zt),document.addEventListener("mousemove",Mt),document.addEventListener("mouseup",Et),()=>{It.removeEventListener("mousedown",Zt),document.removeEventListener("mousemove",Mt),document.removeEventListener("mouseup",Et)}}},[Ke,fo]),(0,te.useEffect)(()=>{fa(vt)},[vt]);const Qn=Pa(pe),Jn=Pa(ca),no={width:Qn,height:Jn},Do=(0,te.useMemo)(()=>{if(vn){let Zt=new Date(vn),Et=Zt.getHours(),Mt=Zt.getMinutes(),It=Zt.getSeconds();return Et=Et<10?"0"+Et:Et,Mt=Mt<10?"0"+Mt:Mt,It=It<10?"0"+It:It,`${Et}:${Mt}:${It}`}return 0},[vn]),Qo=Zt=>{const Et=[];if(ve){let Mt=-1;Zt=Zt.replace(/(@▁▁@|@▁@)/g,function(It,Gn,Sa){Et.push({multiLine:It!==ua})})}return Et};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!==en&&St!==$t&&setTimeout(()=>{const Zt=document.getElementsByClassName("markdown-popup-form")[0],Et=window.innerWidth/2-Zt.offsetWidth/2,Mt=window.innerHeight/2-Zt.offsetHeight/2;io(Et),yo(Mt)},0)},[St]);const Jo=Zt=>{Zt.preventDefault();const Et=Zt.clientX-va,Mt=Zt.clientY-po;document.body.onmousemove=It=>{let Gn=It.clientX-Et,Sa=It.clientY-Mt;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ma=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;Gn=Math.max(0,Math.min(Gn,Ma)),Sa=Math.max(0,Math.min(Sa,xa)),mr(It.clientX,It.clientY,Et,Mt)&&(io(Gn),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(Zt,Et,Mt,It)=>{const Gn=document.body.clientHeight,Sa=document.body.clientWidth;return Zt<20&&Mt>Zt||Zt>Sa-20&&Mt<Zt||Et<20&&It>Et||Et>Gn-20&&It<Et?(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:dn})),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===en&&te.createElement(rt,{callback:La,onCancel:wa}),St===$t&&te.createElement(bt,{callback:La,onCancel:wa}),te.createElement(fe.Z,null,eo[St]&&St!==en&&St!==$t?te.createElement(Ae.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(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return ge},I:function(){return fe}});var te=oe(22150),Pe=oe(2453),Ye=oe(69677),Te=oe(93421),Se=oe(31795),Ce=oe(78045),ue=oe(71577),Oe=oe(15476),Me=oe(67294),Fe=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,De,Ge)=>De in ce?je(ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):ce[De]=Ge,x=(ce,De)=>{for(var Ge in De||(De={}))y.call(De,Ge)&&b(ce,Ge,De[Ge]);if(a)for(var Ge of a(De))E.call(De,Ge)&&b(ce,Ge,De[Ge]);return ce},z=(ce,De)=>Ze(ce,ae(De));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ce,onCancel:De})=>{const[Ge]=ee();let wt=(0,Me.useRef)();function Ut(ke){wt.current.width=Ge.getFieldValue("width"),wt.current.align=Ge.getFieldValue("align"),ce(ke,wt.current)}function an(ke,We){if(ke.status===-1){Pe.ZP.error(ke.message);return}Ge.setFieldsValue({src:`/api/attachments/${ke.id}`,type:We.type})}function we(ke){let We=ke.target.files[0];wt.current=We,fe(We,an)}return Ve.createElement(te.default,z(x({form:Ge},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:we}))),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(Te.Z,null,Ve.createElement(te.default.Item,{name:"width",style:{margin:0}},Ve.createElement(Se.Z,{style:{width:264}})),Ve.createElement("span",{className:"ml8"},"%"))),Ve.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ve.createElement(Ce.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(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ve.createElement(ue.ZP,{type:"default",onClick:De},"\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 fe(ce,De){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Fe.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",ce),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var wt=new window.XMLHttpRequest;wt.withCredentials=!0,wt.addEventListener("load",function(Ut){De(JSON.parse(Ut.target.responseText),ce)},!1),wt.addEventListener("error",function(Ut){console.error(Ut)},!1),wt.open("POST",`${Oe.KI}/api/attachments.json`),wt.send(Ge)}},76621:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ye}});var te=oe(67294),Pe=oe(73935);class Ye extends te.Component{constructor(Se){super(Se);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,Pe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Pe}});var te=oe(67294);function Pe(Ye,Te){const Se=(0,te.useRef)();(0,te.useEffect)(()=>{Se.current=Ye}),(0,te.useEffect)(()=>{function Ce(){Se.current()}if(Te!==null){let ue=setInterval(Ce,Te);return()=>clearInterval(ue)}},[Te])}},61712:function(Ie,mt,oe){"use strict";oe.r(mt),oe.d(mt,{default:function(){return ge}});var te=oe(67294),Pe=oe(35973),Ye=oe(22150),Te=oe(85673),Se=oe(69677),Ce=oe(71577),ue=oe(35567),Oe=oe(86763),Me={bg:"bg___ZTexa",flexRow:"flexRow___VO4ro",flexJustifyCenter:"flexJustifyCenter___OXFkk",flexAlignEnd:"flexAlignEnd___d6zIM",flexAlignCenter:"flexAlignCenter___YzqD8",flexColumn:"flexColumn___RKoTE",formWrap:"formWrap___BxAFG",titleWrap:"titleWrap___tvKuf",fieldWrap:"fieldWrap___eigdN",mdWrap:"mdWrap___cmz87",backgroundFa:"backgroundFa___b57J2",button:"button___VVH5U"},Fe=oe(65866),Ve=oe(10191),je=oe(33170),Ze=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(de,fe,ce)=>fe in de?Ze(de,fe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):de[fe]=ce,z=(de,fe)=>{for(var ce in fe||(fe={}))E.call(fe,ce)&&x(de,ce,fe[ce]);if(y)for(var ce of y(fe))b.call(fe,ce)&&x(de,ce,fe[ce]);return de},ee=(de,fe)=>ae(de,a(fe)),ne=(de,fe,ce)=>new Promise((De,Ge)=>{var wt=we=>{try{an(ce.next(we))}catch(ke){Ge(ke)}},Ut=we=>{try{an(ce.throw(we))}catch(ke){Ge(ke)}},an=we=>we.done?De(we.value):Promise.resolve(we.value).then(wt,Ut);an((ce=ce.apply(de,fe)).next())});const re=({shixunHomeworks:de,newCourse:fe,globalSetting:ce,user:De,loading:Ge,dispatch:wt})=>{var Ut,an,we;const ke=(0,Pe.useParams)(),[We]=Ye.default.useForm(),[dt,ft]=(0,te.useState)({}),[Qe,tt]=(0,te.useState)(!1);let[lt,zt]=(0,te.useState)({});const be=(0,te.useRef)(),{commonHomeWorkEditDefaultData:Ae}=de;(0,te.useEffect)(()=>{it()},[ke.categoryId]);const it=()=>ne(void 0,null,function*(){const rt=yield wt({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ee(z({},ke),{type:1})});if(rt){const me={name:rt.name,description:rt.description,reference_answer:rt.reference_answer,attachment_ids:(0,Fe.z)(rt.attachments),reference_attachment_ids:(0,Fe.z)(rt.ref_attachments)};We.setFieldsValue(z({},me)),ft(z({},me)),tt(!0)}});function xt(rt){return ne(this,null,function*(){if(!(lt!=null&<.ec_point_ids))return;let me=yield(0,je.ZP)(`/api/ec_courses/${lt==null?void 0:lt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:z({homework_common_id:rt},lt)})})}const nt=rt=>ne(void 0,null,function*(){var me,gt;const yt=z({},dt);yt.attachment_ids&&(yt.attachment_ids=(me=yt==null?void 0:yt.attachment_ids)==null?void 0:me.map(Pt=>{var Ne;return(Ne=Pt.response)==null?void 0:Ne.id})),yt.reference_attachment_ids&&(yt.reference_attachment_ids=(gt=yt==null?void 0:yt.reference_attachment_ids)==null?void 0:gt.map(Pt=>{var Ne;return(Ne=Pt.response)==null?void 0:Ne.id}));const on=yield(0,Oe.Ar)(ee(z(z({},ke),yt),{base_on_project:!0,type:1}));xt(ke.categoryId),on&&Pe.history.push(`/classrooms/${ke.coursesId}/common_homework/${ke.categoryId}/detail`)});return te.createElement("section",{className:Me.bg},Ae.course_name&&te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},Ae.category&&te.createElement(Te.Z,{separator:">"},te.createElement(Te.Z.Item,null,te.createElement(Pe.Link,{to:`/classrooms/${ke.coursesId}/common_homework`},Ae.course_name)),te.createElement(Te.Z.Item,null,te.createElement(Pe.Link,{to:`/classrooms/${ke.coursesId}/common_homework`},Ae.category.category_name)),te.createElement(Te.Z.Item,null,"\u7F16\u8F91")))),te.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u56FE\u6587\u4F5C\u4E1A"),te.createElement(Ye.default,{form:We,className:Me.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ft(z({},We.getFieldsValue()))},onFinish:nt},te.createElement("div",{className:Me.fieldWrap},te.createElement(Ye.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},te.createElement(Se.default,{maxLength:60,suffix:`${((Ut=dt.name)==null?void 0:Ut.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),te.createElement("div",{className:Me.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(ue.Z,{watch:!0,defaultValue:Ae.description})),te.createElement("div",null,te.createElement(Ye.default.Item,{name:"attachment_ids"},Qe&&te.createElement(Fe.Z,null)))),te.createElement("div",{className:Me.mdWrap},te.createElement(Ye.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},te.createElement(ue.Z,{defaultValue:Ae.reference_answer,watch:!0})),te.createElement("div",null,te.createElement(Ye.default.Item,{name:"reference_attachment_ids"},Qe&&te.createElement(Fe.Z,null))))),te.createElement("div",{className:Me.mdWrap,style:{display:(an=ce==null?void 0:ce.setting)!=null&&an.hide_ec?"none":(we=De.userInfo.course)!=null&&we.is_openengineering?"":"none"}},te.createElement(Ve.Z,{setitem:rt=>zt(z({},rt)),homework_common_id:ke.categoryId})),te.createElement("div",{className:Me.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(Ye.default.Item,null,te.createElement(Ce.ZP,{size:"middle",type:"primary",className:`${Me.button} mr20`,htmlType:"submit",onClick:()=>{We.submit()},loading:Ge["newCourse/editCourse"]||Ge["newCourse/submitCourse"]},"\u63D0\u4EA4"),te.createElement(Ce.ZP,{size:"middle",type:"primary",ghost:!0,className:Me.button,onClick:()=>Pe.history.push(`/classrooms/${ke.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ge=(0,Pe.connect)(({shixunHomeworks:de,newCourse:fe,loading:ce,user:De,globalSetting:Ge})=>({shixunHomeworks:de,newCourse:fe,globalSetting:Ge,user:De,loading:ce.effects}))(re)},4440:function(Ie,mt,oe){"use strict";oe.d(mt,{$J:function(){return Ye},JZ:function(){return Se},bN:function(){return ue},jP:function(){return Ce},rO:function(){return Te}});var te=oe(33170),Pe=(Oe,Me,Fe)=>new Promise((Ve,je)=>{var Ze=y=>{try{a(Fe.next(y))}catch(E){je(E)}},ae=y=>{try{a(Fe.throw(y))}catch(E){je(E)}},a=y=>y.done?Ve(y.value):Promise.resolve(y.value).then(Ze,ae);a((Fe=Fe.apply(Oe,Me)).next())});function Ye(Oe){return(0,te.U2)(`libraries/${Oe}.json`)}function Te(Oe){return(0,te.U2)("library_tags.json",Oe)}function Se(Oe){return Pe(this,null,function*(){return(yield(0,te.IV)(`attachments/${Oe}.json`)).status===0})}function Ce(Oe){return(0,te.v_)("libraries.json",Oe)}function ue(Oe,Me){return(0,te.gz)(`libraries/${Oe}.json`,Me)}},57838:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Pe}});var te=oe(67294);function Pe(){const[,Ye]=te.useReducer(Te=>Te+1,0);return Ye}},85673:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return an}});var te=oe(94184),Pe=oe.n(te),Ye=oe(37419),Te=oe(1337),Se=oe(67294),Ce=oe(96159),ue=oe(53124),Oe=oe(42922),Me=oe(56153);const Fe=we=>{let{children:ke}=we;const{getPrefixCls:We}=Se.useContext(ue.E_),dt=We("breadcrumb");return Se.createElement("li",{className:`${dt}-separator`,"aria-hidden":"true"},ke===""?ke:ke||"/")};Fe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ve=Fe,je=function(we,ke){var We={};for(var dt in we)Object.prototype.hasOwnProperty.call(we,dt)&&ke.indexOf(dt)<0&&(We[dt]=we[dt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,dt=Object.getOwnPropertySymbols(we);ft<dt.length;ft++)ke.indexOf(dt[ft])<0&&Object.prototype.propertyIsEnumerable.call(we,dt[ft])&&(We[dt[ft]]=we[dt[ft]]);return We};function Ze(we,ke){if(we.title===void 0||we.title===null)return null;const We=Object.keys(ke).join("|");return typeof we.title=="object"?we.title:String(we.title).replace(new RegExp(`:(${We})`,"g"),(dt,ft)=>ke[ft]||dt)}function ae(we,ke,We,dt){if(We==null)return null;const{className:ft,onClick:Qe}=ke,tt=je(ke,["className","onClick"]),lt=Object.assign(Object.assign({},(0,Te.Z)(tt,{data:!0,aria:!0})),{onClick:Qe});return dt!==void 0?Se.createElement("a",Object.assign({},lt,{className:Pe()(`${we}-link`,ft),href:dt}),We):Se.createElement("span",Object.assign({},lt,{className:Pe()(`${we}-link`,ft)}),We)}function a(we,ke){return(dt,ft,Qe,tt,lt)=>{if(ke)return ke(dt,ft,Qe,tt);const zt=Ze(dt,ft);return ae(we,dt,zt,lt)}}var y=function(we,ke){var We={};for(var dt in we)Object.prototype.hasOwnProperty.call(we,dt)&&ke.indexOf(dt)<0&&(We[dt]=we[dt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,dt=Object.getOwnPropertySymbols(we);ft<dt.length;ft++)ke.indexOf(dt[ft])<0&&Object.prototype.propertyIsEnumerable.call(we,dt[ft])&&(We[dt[ft]]=we[dt[ft]]);return We};const E=we=>{const{prefixCls:ke,separator:We="/",children:dt,menu:ft,overlay:Qe,dropdownProps:tt,href:lt}=we,be=(Ae=>{if(ft||Qe){const it=Object.assign({},tt);if(ft){const xt=ft||{},{items:nt}=xt,rt=y(xt,["items"]);it.menu=Object.assign(Object.assign({},rt),{items:nt==null?void 0:nt.map((me,gt)=>{var{key:yt,title:on,label:Pt,path:Ne}=me,xe=y(me,["key","title","label","path"]);let Le=Pt!=null?Pt:on;return Ne&&(Le=Se.createElement("a",{href:`${lt}${Ne}`},Le)),Object.assign(Object.assign({},xe),{key:yt!=null?yt:gt,label:Le})})})}else Qe&&(it.overlay=Qe);return Se.createElement(Me.Z,Object.assign({placement:"bottom"},it),Se.createElement("span",{className:`${ke}-overlay-link`},Ae,Se.createElement(Oe.Z,null)))}return Ae})(dt);return be!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,be),We&&Se.createElement(Ve,null,We)):null},b=we=>{const{prefixCls:ke,children:We,href:dt}=we,ft=y(we,["prefixCls","children","href"]),{getPrefixCls:Qe}=Se.useContext(ue.E_),tt=Qe("breadcrumb",ke);return Se.createElement(E,Object.assign({},ft,{prefixCls:tt}),ae(tt,ft,We,dt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=we=>{const{componentCls:ke,iconCls:We}=we;return{[ke]:Object.assign(Object.assign({},(0,z.Wf)(we)),{color:we.itemColor,fontSize:we.fontSize,[We]:{fontSize:we.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:we.linkColor,transition:`color ${we.motionDurationMid}`,padding:`0 ${we.paddingXXS}px`,borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",marginInline:-we.marginXXS,"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover}},(0,z.Qy)(we)),"li:last-child":{color:we.lastItemColor},[`${ke}-separator`]:{marginInline:we.separatorMargin,color:we.separatorColor},[`${ke}-link`]:{[`
|
|
> ${We} + span,
|
|
> ${We} + a
|
|
`]:{marginInlineStart:we.marginXXS}},[`${ke}-overlay-link`]:{borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",padding:`0 ${we.paddingXXS}px`,marginInline:-we.marginXXS,[`> ${We}`]:{marginInlineStart:we.marginXXS,fontSize:we.fontSizeIcon},"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover,a:{color:we.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${we.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",we=>{const ke=(0,ne.TS)(we,{});return[re(ke)]},we=>({itemColor:we.colorTextDescription,lastItemColor:we.colorText,iconFontSize:we.fontSize,linkColor:we.colorTextDescription,linkHoverColor:we.colorText,separatorColor:we.colorTextDescription,separatorMargin:we.marginXS})),de=function(we,ke){var We={};for(var dt in we)Object.prototype.hasOwnProperty.call(we,dt)&&ke.indexOf(dt)<0&&(We[dt]=we[dt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,dt=Object.getOwnPropertySymbols(we);ft<dt.length;ft++)ke.indexOf(dt[ft])<0&&Object.prototype.propertyIsEnumerable.call(we,dt[ft])&&(We[dt[ft]]=we[dt[ft]]);return We};function fe(we){const{breadcrumbName:ke,children:We}=we,dt=de(we,["breadcrumbName","children"]),ft=Object.assign({title:ke},dt);return We&&(ft.menu={items:We.map(Qe=>{var{breadcrumbName:tt}=Qe,lt=de(Qe,["breadcrumbName"]);return Object.assign(Object.assign({},lt),{title:tt})})}),ft}function ce(we,ke){return(0,Se.useMemo)(()=>we||(ke?ke.map(fe):null),[we,ke])}var De=function(we,ke){var We={};for(var dt in we)Object.prototype.hasOwnProperty.call(we,dt)&&ke.indexOf(dt)<0&&(We[dt]=we[dt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,dt=Object.getOwnPropertySymbols(we);ft<dt.length;ft++)ke.indexOf(dt[ft])<0&&Object.prototype.propertyIsEnumerable.call(we,dt[ft])&&(We[dt[ft]]=we[dt[ft]]);return We};const Ge=(we,ke)=>{if(ke===void 0)return ke;let We=(ke||"").replace(/^\//,"");return Object.keys(we).forEach(dt=>{We=We.replace(`:${dt}`,we[dt])}),We},wt=we=>{const{prefixCls:ke,separator:We="/",style:dt,className:ft,rootClassName:Qe,routes:tt,items:lt,children:zt,itemRender:be,params:Ae={}}=we,it=De(we,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xt,direction:nt,breadcrumb:rt}=Se.useContext(ue.E_);let me;const gt=xt("breadcrumb",ke),[yt,on]=ge(gt),Pt=ce(lt,tt),Ne=a(gt,be);if(Pt&&Pt.length>0){const Je=[],et=lt||tt;me=Pt.map((bt,Dt)=>{const{path:Tt,key:Jt,type:ln,menu:sn,overlay:At,onClick:Ot,className:Yt,separator:jn,dropdownProps:xn}=bt,pn=Ge(Ae,Tt);pn!==void 0&&Je.push(pn);const ye=Jt!=null?Jt:Dt;if(ln==="separator")return Se.createElement(Ve,{key:ye},jn);const Re={},ot=Dt===Pt.length-1;sn?Re.menu=sn:At&&(Re.overlay=At);let{href:Lt}=bt;return Je.length&&pn!==void 0&&(Lt=`#/${Je.join("/")}`),Se.createElement(E,Object.assign({key:ye},Re,(0,Te.Z)(bt,{data:!0,aria:!0}),{className:Yt,dropdownProps:xn,href:Lt,separator:ot?"":We,onClick:Ot,prefixCls:gt}),Ne(bt,Ae,et,Je,Lt))})}else if(zt){const Je=(0,Ye.Z)(zt).length;me=(0,Ye.Z)(zt).map((et,bt)=>{if(!et)return et;const Dt=bt===Je-1;return(0,Ce.Tm)(et,{separator:Dt?"":We,key:bt})})}const xe=Pe()(gt,rt==null?void 0:rt.className,{[`${gt}-rtl`]:nt==="rtl"},ft,Qe,on),Le=Object.assign(Object.assign({},rt==null?void 0:rt.style),dt);return yt(Se.createElement("nav",Object.assign({className:xe,style:Le},it),Se.createElement("ol",null,me)))};wt.Item=x,wt.Separator=Ve;var Ut=wt,an=Ut},84567:function(Ie,mt,oe){"use strict";oe.d(mt,{default:function(){return ge}});var te=oe(94184),Pe=oe.n(te),Ye=oe(95860),Te=oe(67294),Se=oe(53124),Ce=oe(98866),ue=oe(65223),Me=Te.createContext(null),Fe=oe(63185),Ve=oe(45353),je=oe(92429),Ze=function(de,fe){var ce={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&fe.indexOf(De)<0&&(ce[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,De=Object.getOwnPropertySymbols(de);Ge<De.length;Ge++)fe.indexOf(De[Ge])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ge])&&(ce[De[Ge]]=de[De[Ge]]);return ce};const ae=(de,fe)=>{var ce;const{prefixCls:De,className:Ge,rootClassName:wt,children:Ut,indeterminate:an=!1,style:we,onMouseEnter:ke,onMouseLeave:We,skipGroup:dt=!1,disabled:ft}=de,Qe=Ze(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:tt,direction:lt,checkbox:zt}=Te.useContext(Se.E_),be=Te.useContext(Me),{isFormItemInput:Ae}=Te.useContext(ue.aM),it=Te.useContext(Ce.Z),xt=(ce=(be==null?void 0:be.disabled)||ft)!==null&&ce!==void 0?ce:it,nt=Te.useRef(Qe.value);Te.useEffect(()=>{be==null||be.registerValue(Qe.value)},[]),Te.useEffect(()=>{if(!dt)return Qe.value!==nt.current&&(be==null||be.cancelValue(nt.current),be==null||be.registerValue(Qe.value),nt.current=Qe.value),()=>be==null?void 0:be.cancelValue(Qe.value)},[Qe.value]);const rt=tt("checkbox",De),[me,gt]=(0,Fe.ZP)(rt),yt=Object.assign({},Qe);be&&!dt&&(yt.onChange=function(){Qe.onChange&&Qe.onChange.apply(Qe,arguments),be.toggleOption&&be.toggleOption({label:Ut,value:Qe.value})},yt.name=be.name,yt.checked=be.value.includes(Qe.value));const on=Pe()(`${rt}-wrapper`,{[`${rt}-rtl`]:lt==="rtl",[`${rt}-wrapper-checked`]:yt.checked,[`${rt}-wrapper-disabled`]:xt,[`${rt}-wrapper-in-form-item`]:Ae},zt==null?void 0:zt.className,Ge,wt,gt),Pt=Pe()({[`${rt}-indeterminate`]:an},je.A,gt),Ne=an?"mixed":void 0;return me(Te.createElement(Ve.Z,{component:"Checkbox",disabled:xt},Te.createElement("label",{className:on,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),we),onMouseEnter:ke,onMouseLeave:We},Te.createElement(Ye.Z,Object.assign({"aria-checked":Ne},yt,{prefixCls:rt,className:Pt,disabled:xt,ref:fe})),Ut!==void 0&&Te.createElement("span",null,Ut))))};var y=Te.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(de,fe){var ce={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&fe.indexOf(De)<0&&(ce[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,De=Object.getOwnPropertySymbols(de);Ge<De.length;Ge++)fe.indexOf(De[Ge])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ge])&&(ce[De[Ge]]=de[De[Ge]]);return ce};const z=(de,fe)=>{const{defaultValue:ce,children:De,options:Ge=[],prefixCls:wt,className:Ut,rootClassName:an,style:we,onChange:ke}=de,We=x(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:dt,direction:ft}=Te.useContext(Se.E_),[Qe,tt]=Te.useState(We.value||ce||[]),[lt,zt]=Te.useState([]);Te.useEffect(()=>{"value"in We&&tt(We.value||[])},[We.value]);const be=Te.useMemo(()=>Ge.map(xe=>typeof xe=="string"||typeof xe=="number"?{label:xe,value:xe}:xe),[Ge]),Ae=xe=>{zt(Le=>Le.filter(Je=>Je!==xe))},it=xe=>{zt(Le=>[].concat((0,E.Z)(Le),[xe]))},xt=xe=>{const Le=Qe.indexOf(xe.value),Je=(0,E.Z)(Qe);Le===-1?Je.push(xe.value):Je.splice(Le,1),"value"in We||tt(Je),ke==null||ke(Je.filter(et=>lt.includes(et)).sort((et,bt)=>{const Dt=be.findIndex(Jt=>Jt.value===et),Tt=be.findIndex(Jt=>Jt.value===bt);return Dt-Tt}))},nt=dt("checkbox",wt),rt=`${nt}-group`,[me,gt]=(0,Fe.ZP)(nt),yt=(0,b.Z)(We,["value","disabled"]),on=Ge.length?be.map(xe=>Te.createElement(y,{prefixCls:nt,key:xe.value.toString(),disabled:"disabled"in xe?xe.disabled:We.disabled,value:xe.value,checked:Qe.includes(xe.value),onChange:xe.onChange,className:`${rt}-item`,style:xe.style,title:xe.title},xe.label)):De,Pt={toggleOption:xt,value:Qe,disabled:We.disabled,name:We.name,registerValue:it,cancelValue:Ae},Ne=Pe()(rt,{[`${rt}-rtl`]:ft==="rtl"},Ut,an,gt);return me(Te.createElement("div",Object.assign({className:Ne,style:we},yt,{ref:fe}),Te.createElement(Me.Provider,{value:Pt},on)))},ee=Te.forwardRef(z);var ne=Te.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ge=re},63185:function(Ie,mt,oe){"use strict";oe.d(mt,{C2:function(){return Se}});var te=oe(14747),Pe=oe(45503),Ye=oe(67968);const Te=Ce=>{const{checkboxCls:ue}=Ce,Oe=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,te.Wf)(Ce)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ce.marginXS,[`> ${Ce.antCls}-row`]:{flex:1}}),[Oe]:Object.assign(Object.assign({},(0,te.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Oe}`]:{marginInlineStart:0},[`&${Oe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,te.Wf)(Ce)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ce.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,te.oN)(Ce))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ce.checkboxSize,height:Ce.checkboxSize,direction:"ltr",backgroundColor:Ce.colorBgContainer,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ce.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ce.checkboxSize/14*5,height:Ce.checkboxSize/14*8,border:`${Ce.lineWidthBold}px solid ${Ce.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ce.motionDurationFast} ${Ce.motionEaseInBack}, opacity ${Ce.motionDurationFast}`}},"& + span":{paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS}})},{[`
|
|
${Oe}:not(${Oe}-disabled),
|
|
${ue}:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{borderColor:Ce.colorPrimary}},[`${Oe}:not(${Oe}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Ce.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Ce.colorPrimary,borderColor:Ce.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseOutBack} ${Ce.motionDurationFast}`}}},[`
|
|
${Oe}-checked:not(${Oe}-disabled),
|
|
${ue}-checked:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Ce.colorBgContainer,borderColor:Ce.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ce.fontSizeLG/2,height:Ce.fontSizeLG/2,backgroundColor:Ce.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Oe}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,"&:after":{borderColor:Ce.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ce.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Ce.colorTextDisabled}}}]};function Se(Ce,ue){const Oe=(0,Pe.TS)(ue,{checkboxCls:`.${Ce}`,checkboxSize:ue.controlInteractiveSize});return[Te(Oe)]}mt.ZP=(0,Ye.Z)("Checkbox",(Ce,ue)=>{let{prefixCls:Oe}=ue;return[Se(Oe,Ce)]})},56153:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Sg}});var te=oe(67294),Pe=oe.t(te,2),Ye=oe(91034),Te=oe(94184),Se=oe.n(Te),Ce=oe(87462),ue=oe(4942),Oe=oe(97685),Me=oe(45987),Fe=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 fe(){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 De=te.createContext(null),Ge=De,wt=oe(74902),Ut=je()?te.useLayoutEffect:te.useEffect,an=Ut,we=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}},[])},ke=[];function We(ie,le){var se=te.useState(function(){if(!je())return null;var rn=document.createElement("div");return rn}),he=(0,Oe.Z)(se,1),$e=he[0],_e=te.useRef(!1),Xe=te.useContext(Ge),pt=te.useState(ke),Nt=(0,Oe.Z)(pt,2),Ct=Nt[0],_t=Nt[1],Ft=Xe||(_e.current?void 0:function(rn){_t(function(On){var hn=[rn].concat((0,wt.Z)(On));return hn})});function Vt(){$e.parentElement||document.body.appendChild($e),_e.current=!0}function Ht(){var rn;(rn=$e.parentElement)===null||rn===void 0||rn.removeChild($e),_e.current=!1}return an(function(){return ie?Xe?Xe(Vt):Vt():Ht(),Ht},[ie]),an(function(){Ct.length&&(Ct.forEach(function(rn){return rn()}),_t(ke))},[Ct]),[$e,Ft]}function dt(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 ft="data-rc-order",Qe="rc-util-key",tt=new Map;function lt(){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 zt(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function be(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function Ae(ie){return Array.from((tt.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function it(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(ft,be(he)),se!=null&&se.nonce&&($e.nonce=se==null?void 0:se.nonce),$e.innerHTML=ie;var _e=zt(le),Xe=_e.firstChild;if(he){if(he==="queue"){var pt=Ae(_e).filter(function(Nt){return["prepend","prependQueue"].includes(Nt.getAttribute(ft))});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=zt(le);return Ae(se).find(function(he){return he.getAttribute(lt(le))===ie})}function nt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=xt(ie,le);if(se){var he=zt(le);he.removeChild(se)}}function rt(ie,le){var se=tt.get(ie);if(!se||!dt(document,se)){var he=it("",le),$e=he.parentNode;tt.set(ie,$e),ie.removeChild(he)}}function me(){tt.clear()}function gt(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=zt(se);rt(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 Nt=it(ie,se);return Nt.setAttribute(lt(se),le),Nt}var yt;function on(ie){if(typeof document=="undefined")return 0;if(ie||yt===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),yt=$e-_e}return yt}function Pt(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?on():se}function Ne(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 xe(){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,Oe.Z)(se,1),$e=he[0];an(function(){if(le){var _e=Ne(document.body).width,Xe=xe();gt(`
|
|
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},Jt=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,Nt=ie.children,Ct=te.useState(se),_t=(0,Oe.Z)(Ct,2),Ft=_t[0],Vt=_t[1],Ht=Ft||se;te.useEffect(function(){(pt||se)&&Vt(se)},[se,pt]);var rn=te.useState(function(){return Tt($e)}),On=(0,Oe.Z)(rn,2),hn=On[0],In=On[1];te.useEffect(function(){var ha=Tt($e);In(ha!=null?ha:null)});var Ln=We(Ht&&!hn,_e),mn=(0,Oe.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(Nt&&ce(Nt)&&le){var ya=Nt;ia=ya.ref}var ja=fe(ia,le);if(!Ht||!je()||hn===void 0)return null;var Un=qn===!1||Dt(),Tn=Nt;return le&&(Tn=te.cloneElement(Nt,{ref:ja})),te.createElement(Ge.Provider,{value:ra},Un?Tn:(0,Ve.createPortal)(Tn,qn))}),ln=Jt,sn=ln,At=oe(48555);function Ot(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Yt(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 ye(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 Re(){var ie=(0,Fe.Z)({},Pe);return ie.useId}var ot=0;function Lt(){}var $t=Re(),en=$t?function(le){var se=$t();return le||se}:function(le){var se=te.useState("ssr-id"),he=(0,Oe.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 nn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var kt=nn()?te.useLayoutEffect:te.useEffect,Kt=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){Kt(function(he){if(!he)return le()},se)},gn=Kt,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 zn=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,Nt=_e[Xe];if(Yn((pt=ie[Nt])===null||pt===void 0?void 0:pt.points,$e,he))return"".concat(le,"-placement-").concat(Nt)}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(Nt){return he.includes(Nt)})&&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,Fe.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,Nt=$e.borderBottomWidth,Ct=$e.borderLeftWidth,_t=$e.borderRightWidth,Ft=he.getBoundingClientRect(),Vt=he.offsetHeight,Ht=he.clientHeight,rn=he.offsetWidth,On=he.clientWidth,hn=ta(pt),In=ta(Nt),Ln=ta(Ct),mn=ta(_t),Wt=Ga(Math.round(Ft.width/rn*1e3)/1e3),ra=Ga(Math.round(Ft.height/Vt*1e3)/1e3),qn=(rn-On-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 Mn=Ft.x+Un-ha,_n=Ft.y+ya-Ea,wn=Mn+Ft.width+2*ha-Un-Tn-qn,Za=_n+Ft.height+2*Ea-ya-ja-ia;se.left=Math.max(se.left,Mn),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,Oe.Z)(se,2),$e=he[0],_e=he[1];return[eo(ie.width,$e),eo(ie.height,_e)]}function Ee(){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 pe(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]||{}}),Nt=(0,Oe.Z)(pt,2),Ct=Nt[0],_t=Nt[1],Ft=te.useRef(0),Vt=te.useMemo(function(){return le?Pa(le):[]},[le]),Ht=te.useRef({}),rn=function(){Ht.current={}};ie||rn();var On=ye(function(){if(le&&se&&ie){let Co=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ha,Ar=Vn.x+ti,br=Vn.y+ur,ni=Ar+oa,bi=br+Ca,Li=Math.max(Ar,Yo.left),wi=Math.max(br,Yo.top),Ei=Math.min(ni,Yo.right),qt=Math.min(bi,Yo.bottom);return Math.max(0,(Ei-Li)*(qt-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,Mn=(0,Fe.Z)((0,Fe.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,za=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=Mn.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 zo=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)&&!zn(se))return;var ii=Mn.offset,Rr=Mn.targetOffset,Bo=Qa(Vn,ii),kr=(0,Oe.Z)(Bo,2),$o=kr[0],Oo=kr[1],jr=Qa(wn,Rr),Mo=(0,Oe.Z)(jr,2),gi=Mo[0],di=Mo[1];wn.x-=gi,wn.y-=di;var Pr=Mn.points||[],ho=(0,Oe.Z)(Pr,2),_o=ho[0],li=ho[1],ko=Ee(li),Po=Ee(_o),Zr=Be(wn,ko),Cr=Be(Vn,Po),Vo=(0,Fe.Z)({},Mn),Wa=Zr.x-Cr.x+$o,ea=Zr.y-Cr.y+Oo,Ao=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=Mn.overflow||{},Hr=vr.adjustX,$r=vr.adjustY,Or=vr.shiftX,Wr=vr.shiftY,Mr=function(ur){return typeof ur=="boolean"?ur:ur>=0},jo,nr,ar,or;Ho();var Nr=Mr($r),Ur=Po[0]===ko[0];if(Nr&&Po[0]==="t"&&(nr>co.bottom||Ht.current.bt)){var Go=ea;Ur?Go-=Ca-za:Go=Fr.y-Eo.y-Oo;var _r=Co(Wa,Go),vo=Co(Wa,Go,cn);_r>Ao||_r===Ao&&(!ro||vo>=To)?(Ht.current.bt=!0,ea=Go,Oo=-Oo,Vo.points=[pe(Po,0),pe(ko,0)]):Ht.current.bt=!1}if(Nr&&Po[0]==="b"&&(jo<co.top||Ht.current.tb)){var rr=ea;Ur?rr+=Ca-za:rr=Br.y-xr.y-Oo;var Vr=Co(Wa,rr),si=Co(Wa,rr,cn);Vr>Ao||Vr===Ao&&(!ro||si>=To)?(Ht.current.tb=!0,ea=rr,Oo=-Oo,Vo.points=[pe(Po,0),pe(ko,0)]):Ht.current.tb=!1}var Kr=Mr(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>Ao||Yr===Ao&&(!ro||ui>=To)?(Ht.current.rl=!0,Wa=ir,$o=-$o,Vo.points=[pe(Po,1),pe(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),zr=Co(gr,ea,cn);dr>Ao||dr===Ao&&(!ro||zr>=To)?(Ht.current.lr=!0,Wa=gr,$o=-$o,Vo.points=[pe(Po,1),pe(ko,1)]):Ht.current.lr=!1}Ho();var lr=Or===!0?0:Or;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-Oo,wn.y+za<cn.top+Ko&&(ea+=wn.y-cn.top+za-Ko)),nr>cn.bottom&&(ea-=nr-cn.bottom-Oo,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+za,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=zo.right-Vn.x-(Wa+Vn.width),yi=zo.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&&On()})},In=function(){_t(function(mn){return(0,Fe.Z)((0,Fe.Z)({},mn),{},{ready:!1})})};return gn(In,[he]),gn(function(){ie||In()},[ie]),[Ct.ready,Ct.offsetX,Ct.offsetY,Ct.offsetR,Ct.offsetB,Ct.arrowX,Ct.arrowY,Ct.scaleX,Ct.scaleY,Ct.align,hn]}function Rt(ie,le,se,he,$e){gn(function(){if(ie&&le&&se){let Ft=function(){he(),$e()};var _e=le,Xe=se,pt=Pa(_e),Nt=Pa(Xe),Ct=Rn(Xe),_t=new Set([Ct].concat((0,wt.Z)(pt),(0,wt.Z)(Nt)));return _t.forEach(function(Vt){Vt.addEventListener("scroll",Ft,{passive:!0})}),Ct.addEventListener("resize",Ft,{passive:!0}),he(),function(){_t.forEach(function(Vt){Vt.removeEventListener("scroll",Ft),Ct.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,Nt){Nt&&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}),Nt=_slicedToArray(pt,2),Ct=Nt[0],_t=Nt[1],Ft=$e!==void 0?$e:Ct,Vt=Xe?Xe(Ft):Ft,Ht=useEvent(_e),rn=useState([Ft]),On=_slicedToArray(rn,2),hn=On[0],In=On[1];useLayoutUpdateEffect(function(){var mn=hn[0];Ct!==mn&&Ht(Ct,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 ct(){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 ct.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 Nt=new Set(pt),Ct=get($e,Xe),_t=Array.isArray(Ct);if(_t||ht(Ct)){if(!Nt.has(Ct)){Nt.add(Ct);var Ft=get(he,Xe);_t?he=He(he,Xe,[]):(!Ft||_typeof(Ft)!=="object")&&(he=He(he,Xe,at(Ct))),ut(Ct).forEach(function(Vt){_e([].concat(_toConsumableArray(Xe),[Vt]),Nt)})}}else he=He(he,Xe,Ct)}_e([])}),he}var Qt={},Gt=[],dn=function(le){Gt.push(le)};function yn(ie,le){if(0)var se}function $n(ie,le){if(0)var se}function Ke(){Qt={}}function $a(ie,le,se){!le&&!Qt[se]&&(ie(!1,se),Qt[se]=!0)}function ba(ie,le){$a(yn,ie,le)}function Da(ie,le){$a($n,ie,le)}ba.preMessage=dn,ba.resetWarned=Ke,ba.noteOnce=Da;var aa=null,st=function(le){return+setTimeout(le,16)},Bt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(st=function(le){return window.requestAnimationFrame(le)},Bt=function(le){return window.cancelAnimationFrame(le)});var Xt=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;Xt+=1;var he=Xt;function $e(_e){if(_e===0)Pn(he),le();else{var Xe=st(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 Nt=te.useRef(ie),Ct=te.useRef(!1);Nt.current!==ie&&(Ct.current=!0,Nt.current=ie),te.useEffect(function(){var _t=sa(function(){Ct.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 Mn=ga.target;Un=Xe(Mn)},ha=function(ga){var Mn=ga.target;!Ct.current&&Nt.current&&!Un&&!Xe(Mn)&&pt(!1)};return[Tn,ha]},Ft=_t(),Vt=(0,Oe.Z)(Ft,2),Ht=Vt[0],rn=Vt[1],On=_t(),hn=(0,Oe.Z)(On,2),In=hn[0],Ln=hn[1],mn=Rn(he);mn.addEventListener("mousedown",Ht,!0),mn.addEventListener("click",rn,!0),mn.addEventListener("contextmenu",rn,!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",rn,!0),mn.removeEventListener("contextmenu",rn,!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",Oa="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,Oe.Z)(se,2),$e=he[0],_e=he[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Xe(pt,Nt){Nt&&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 Et=Zt,Mt=function(){var ie=te.useRef(null);function le(){Et.cancel(ie.current)}function se(he){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var _e=Et(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,Ma=!0;function xa(ie){return ie===Jn||ie===no}var tn=function(ie,le){var se=Do(Wo),he=(0,Oe.Z)(se,2),$e=he[0],_e=he[1],Xe=Mt(),pt=(0,Oe.Z)(Xe,2),Nt=pt[0],Ct=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):Nt(function(rn){function On(){rn.isCanceled()||_e(Vt,!0)}Ht===!0?On():Promise.resolve(Ht).then(On)})}},[ie,$e]),te.useEffect(function(){return function(){Ct()}},[]),[_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 An(ie,le,se,he){var $e=he.motionEnter,_e=$e===void 0?!0:$e,Xe=he.motionAppear,pt=Xe===void 0?!0:Xe,Nt=he.motionLeave,Ct=Nt===void 0?!0:Nt,_t=he.motionDeadline,Ft=he.motionLeaveImmediately,Vt=he.onAppearPrepare,Ht=he.onEnterPrepare,rn=he.onLeavePrepare,On=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,Oe.Z)(ja,2),Tn=Un[0],ha=Un[1],Ea=Do(Fa),ga=(0,Oe.Z)(Ea,2),Mn=ga[0],_n=ga[1],wn=Do(null),Za=(0,Oe.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;Mn===Oa&&Ha?co=ra==null?void 0:ra(cn,da):Mn===Ja&&Ha?co=qn==null?void 0:qn(cn,da):Mn===La&&Ha&&(co=ia==null?void 0:ia(cn,da)),Mn!==Fa&&Ha&&co!==!1&&(_n(Fa,!0),_a(null,!0))}}var mo=Fn(Hn),Ca=(0,Oe.Z)(mo,1),oa=Ca[0],za=te.useMemo(function(){var da,cn,Ha;switch(Mn){case Oa:return da={},(0,ue.Z)(da,wa,Vt),(0,ue.Z)(da,Qn,On),(0,ue.Z)(da,Jn,Ln),da;case Ja:return cn={},(0,ue.Z)(cn,wa,Ht),(0,ue.Z)(cn,Qn,hn),(0,ue.Z)(cn,Jn,mn),cn;case La:return Ha={},(0,ue.Z)(Ha,wa,rn),(0,ue.Z)(Ha,Qn,In),(0,ue.Z)(Ha,Jn,Wt),Ha;default:return{}}},[Mn]),wo=tn(Mn,function(da){if(da===wa){var cn=za[wa];return cn?cn(uo()):ka}if(qa in za){var Ha;_a(((Ha=za[qa])===null||Ha===void 0?void 0:Ha.call(za,uo(),null))||null)}return qa===Jn&&(oa(uo()),_t>0&&(clearTimeout(Xa.current),Xa.current=setTimeout(function(){Hn({deadline:!0})},_t))),Ma}),Ro=(0,Oe.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=Oa),da&&le&&_e&&(cn=Ja),(da&&!le&&Ct||!da&&Ft&&!le&&Ct)&&(cn=La),cn&&(_n(cn),Uo())}},[le]),(0,te.useEffect)(function(){(Mn===Oa&&!pt||Mn===Ja&&!_e||Mn===La&&!Ct)&&_n(Fa)},[pt,_e,Ct]),(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&&Mn===Fa&&((No.current||Tn)&&(ya==null||ya(Tn)),No.current=!0)},[Tn,Mn]);var ro=Vn;return za[wa]&&qa===Qn&&(ro=(0,Fe.Z)({transition:"none"},ro)),[Mn,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,Nt=$e.removeOnLeave,Ct=Nt===void 0?!0:Nt,_t=$e.forceRender,Ft=$e.children,Vt=$e.motionName,Ht=$e.leavedClassName,rn=$e.eventProps,On=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=An(On,pt,Ln,$e),Wt=(0,Oe.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,Fe.Z)((0,Fe.Z)({},rn),{},{visible:pt});if(!Ft)Tn=null;else if(ra===Fa||!se($e))ya?Tn=Ft((0,Fe.Z)({},ha),Un):!Ct&&ja.current&&Ht?Tn=Ft((0,Fe.Z)((0,Fe.Z)({},ha),{},{className:Ht}),Un):_t||!Ct&&!Ht?Tn=Ft((0,Fe.Z)((0,Fe.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,Fe.Z)((0,Fe.Z)({},ha),{},{className:Se()(pa(Vt,ra),(Ea={},(0,ue.Z)(Ea,pa(Vt,"".concat(ra,"-").concat(ga)),ga),(0,ue.Z)(Ea,Vt,typeof Vt=="string"),Ea)),style:ia}),Un)}if(te.isValidElement(Tn)&&ce(Tn)){var Mn=Tn,_n=Mn.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,Fe.Z)((0,Fe.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(Ct){for(var _t=!1,Ft=he;Ft<$e;Ft+=1){var Vt=Xe[Ft];if(Vt.key===Ct.key){he<Ft&&(se=se.concat(Xe.slice(he,Ft).map(function(Ht){return(0,Fe.Z)((0,Fe.Z)({},Ht),{},{status:cr})})),he=Ft),se.push((0,Fe.Z)((0,Fe.Z)({},Vt),{},{status:Er})),he+=1,_t=!0;break}}_t||se.push((0,Fe.Z)((0,Fe.Z)({},Ct),{},{status:qo}))}),he<$e&&(se=se.concat(Xe.slice(he).map(function(Ct){return(0,Fe.Z)((0,Fe.Z)({},Ct),{},{status:cr})})));var pt={};se.forEach(function(Ct){var _t=Ct.key;pt[_t]=(pt[_t]||0)+1});var Nt=Object.keys(pt).filter(function(Ct){return pt[Ct]>1});return Nt.forEach(function(Ct){se=se.filter(function(_t){var Ft=_t.key,Vt=_t.status;return Ft!==Ct||Vt!==qo}),se.forEach(function(_t){_t.key===Ct&&(_t.status=Er)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Oi=["status"],Mi=["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,Nt=new Array(pt),Ct=0;Ct<pt;Ct++)Nt[Ct]=arguments[Ct];return Xe=$e.call.apply($e,[this].concat(Nt)),(0,ue.Z)((0,Gr.Z)(Xe),"state",{keyEntities:[]}),(0,ue.Z)((0,Gr.Z)(Xe),"removeKey",function(_t){var Ft=Xe.state.keyEntities,Vt=Ft.map(function(Ht){return Ht.key!==_t?Ht:(0,Fe.Z)((0,Fe.Z)({},Ht),{},{status:lo})});return Xe.setState({keyEntities:Vt}),Vt.filter(function(Ht){var rn=Ht.status;return rn!==lo}).length}),Xe}return(0,Wn.Z)(_e,[{key:"render",value:function(){var pt=this,Nt=this.state.keyEntities,Ct=this.props,_t=Ct.component,Ft=Ct.children,Vt=Ct.onVisibleChanged,Ht=Ct.onAllRemoved,rn=(0,Me.Z)(Ct,$i),On=_t||te.Fragment,hn={};return Mi.forEach(function(In){hn[In]=rn[In],delete rn[In]}),delete rn.keys,te.createElement(On,rn,Nt.map(function(In){var Ln=In.status,mn=(0,Me.Z)(In,Oi),Wt=Ln===cr||Ln===Er;return te.createElement(le,(0,Ce.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,Nt){var Ct=pt.keys,_t=Nt.keyEntities,Ft=fr(Ct),Vt=Dr(_t,Ft);return{keyEntities:Vt.filter(function(Ht){var rn=_t.find(function(On){var hn=On.key;return Ht.key===hn});return!(rn&&rn.status===lo&&Ht.status===qo)})}}}]),_e}(te.Component);return(0,ue.Z)(se,"defaultProps",{component:"div"}),se}var hg=Ni(Ra),Fi=Tr;function zi(ie){var le=ie.prefixCls,se=ie.align,he=ie.arrow,$e=ie.arrowPos,_e=he||{},Xe=_e.className,pt=_e.content,Nt=$e.x,Ct=Nt===void 0?0:Nt,_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 rn=se.points[0],On=se.points[1],hn=rn[0],In=rn[1],Ln=On[0],mn=On[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=Ct:In==="l"?Ht.left=0:Ht.right=0}return te.createElement("div",{ref:Vt,className:Se()("".concat(le,"-arrow"),Xe),style:Ht},pt)}function Ai(ie){var le=ie.prefixCls,se=ie.open,he=ie.zIndex,$e=ie.mask,_e=ie.motion;return $e?te.createElement(Fi,(0,Ce.Z)({},_e,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(Xe){var pt=Xe.className;return te.createElement("div",{style:{zIndex:he},className:Se()("".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,Nt=ie.open,Ct=ie.keepDom,_t=ie.fresh,Ft=ie.onClick,Vt=ie.mask,Ht=ie.arrow,rn=ie.arrowPos,On=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,Mn=ie.onAlign,_n=ie.onPrepare,wn=ie.stretch,Za=ie.targetWidth,Vn=ie.targetHeight,_a=typeof se=="function"?se():se,so=Nt||Ct,Xa=(mn==null?void 0:mn.length)>0,uo=te.useState(!mn||!Xa),So=(0,Oe.Z)(uo,2),Hn=So[0],mo=So[1];if(gn(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||!Nt){var za,wo=On.points,Ro=On.dynamicInset||((za=On._experimental)===null||za===void 0?void 0:za.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)),Nt||(oo.pointerEvents="none"),te.createElement(ra,{open:Ln||so,getContainer:mn&&function(){return mn(Xe)},autoDestroy:Wt},te.createElement(Ai,{prefixCls:$e,open:Nt,zIndex:qn,mask:Vt,motion:In}),te.createElement(At.Z,{onResize:Mn,disabled:!Nt},function(No){return te.createElement(Fi,(0,Ce.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ln,leavedClassName:"".concat($e,"-hidden")},hn,{onAppearPrepare:_n,onEnterPrepare:_n,visible:Nt,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=Se()($e,cn,he);return te.createElement("div",{ref:ct(No,le,da),className:co,style:(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({"--arrow-x":"".concat(rn.x||0,"px"),"--arrow-y":"".concat(rn.y||0,"px")},oa),oo),Ha),{},{boxSizing:"border-box",zIndex:qn},_e),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:Ft},Ht&&te.createElement(zi,{prefixCls:$e,arrow:Ht,arrowPos:rn,align:On}),te.createElement(Gi,{cache:!Nt&&!_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,Nt=pt===void 0?"hover":pt,Ct=se.showAction,_t=se.hideAction,Ft=se.popupVisible,Vt=se.defaultPopupVisible,Ht=se.onPopupVisibleChange,rn=se.afterPopupVisibleChange,On=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,Mn=se.builtinPlacements,_n=Mn===void 0?{}:Mn,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,za=se.popupAnimation,wo=se.maskTransitionName,Ro=se.maskAnimation,Uo=se.className,qa=se.getTriggerDOMNode,oo=(0,Me.Z)(se,ji),No=ja||Un||!1,ro=te.useState(!1),da=(0,Oe.Z)(ro,2),cn=da[0],Ha=da[1];gn(function(){Ha(Zn())},[]);var co=te.useRef({}),zo=te.useContext(Xn),er=te.useMemo(function(){return{registerSubPopup:function(Nn,Aa){co.current[Nn]=Aa,zo==null||zo.registerSubPopup(Nn,Aa)}}},[zo]),tr=en(),ii=te.useState(null),Rr=(0,Oe.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=ye(function(qt){Ot(qt)&&Bo!==qt&&kr(qt),zo==null||zo.registerSubPopup(tr,qt)}),Oo=te.useState(null),jr=(0,Oe.Z)(Oo,2),Mo=jr[0],gi=jr[1],di=ye(function(qt){Ot(qt)&&Mo!==qt&&gi(qt)}),Pr=te.Children.only(Xe),ho=(Pr==null?void 0:Pr.props)||{},_o={},li=ye(function(qt){var Nn,Aa,Ya=Mo;return(Ya==null?void 0:Ya.contains(qt))||((Nn=pn(Ya))===null||Nn===void 0?void 0:Nn.host)===qt||qt===Ya||(Bo==null?void 0:Bo.contains(qt))||((Aa=pn(Bo))===null||Aa===void 0?void 0:Aa.host)===qt||qt===Bo||Object.values(co.current).some(function(Ta){return(Ta==null?void 0:Ta.contains(qt))||qt===Ta})}),ko=ma(_e,mo,za,oa),Po=ma(_e,Ca,Ro,wo),Zr=te.useState(Vt||!1),Cr=(0,Oe.Z)(Zr,2),Vo=Cr[0],Wa=Cr[1],ea=Ft!=null?Ft:Vo,Ao=ye(function(qt){Ft===void 0&&Wa(qt)});gn(function(){Wa(Ft||!1)},[Ft]);var To=te.useRef(ea);To.current=ea;var Fr=ye(function(qt){(0,Ve.flushSync)(function(){ea!==qt&&(Ao(qt),Ht==null||Ht(qt))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Eo=function(Nn){var Aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),Aa===0?Fr(Nn):xr.current=setTimeout(function(){Fr(Nn)},Aa*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Hr=(0,Oe.Z)(vr,2),$r=Hr[0],Or=Hr[1];gn(function(qt){(!qt||ea)&&Or(!0)},[ea]);var Wr=te.useState(null),Mr=(0,Oe.Z)(Wr,2),jo=Mr[0],nr=Mr[1],ar=te.useState([0,0]),or=(0,Oe.Z)(ar,2),Nr=or[0],Ur=or[1],Go=function(Nn){Ur([Nn.clientX,Nn.clientY])},_r=vt(ea,Bo,Xa?Nr:Mo,ga,_n,wn,So),vo=(0,Oe.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],zr=vo[10],lr=Dn(cn,Nt,Ct,_t),Ko=(0,Oe.Z)(lr,2),Xo=Ko[0],sr=Ko[1],pr=Xo.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Zo=ye(function(){$r||zr()}),mi=function(){To.current&&Xa&&yr&&Eo(!1)};Rt(ea,Mo,Bo,Zo,mi),gn(function(){Zo()},[Nr,ga]),gn(function(){ea&&!(_n!=null&&_n[ga])&&Zo()},[JSON.stringify(wn)]);var Qr=te.useMemo(function(){var qt=ua(_n,_e,dr,Xa);return Se()(qt,_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,Oe.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Oe.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Vn&&Mo){var Nn=Mo.getBoundingClientRect();Si(Nn.width),vi(Nn.height)}},pi=function(){ei(),Zo()},yi=function(Nn){Or(!1),zr(),rn==null||rn(Nn)},Co=function(){return new Promise(function(Nn){ei(),nr(function(){return Nn})})};gn(function(){jo&&(zr(),jo(),nr(null))},[jo]);function Ho(qt,Nn,Aa,Ya){_o[qt]=function(Ta){var ai;Ya==null||Ya(Ta),Eo(Nn,Aa);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[qt])===null||ai===void 0||ai.call.apply(ai,[ho,Ta].concat(Bi))}}(pr||yr)&&(_o.onClick=function(qt){var Nn;To.current&&yr?Eo(!1):!To.current&&pr&&(Go(qt),Eo(!0));for(var Aa=arguments.length,Ya=new Array(Aa>1?Aa-1:0),Ta=1;Ta<Aa;Ta++)Ya[Ta-1]=arguments[Ta];(Nn=ho.onClick)===null||Nn===void 0||Nn.call.apply(Nn,[ho,qt].concat(Ya))}),ca(ea,yr,Mo,Bo,Wt,qn,li,Eo);var ti=Xo.has("hover"),ur=sr.has("hover"),Yo,Ar;ti&&(Ho("onMouseEnter",!0,On,function(qt){Go(qt)}),Ho("onPointerEnter",!0,On,function(qt){Go(qt)}),Yo=function(){(ea||$r)&&Eo(!0,On)},Xa&&(_o.onMouseMove=function(qt){var Nn;(Nn=ho.onMouseMove)===null||Nn===void 0||Nn.call(ho,qt)})),ur&&(Ho("onMouseLeave",!1,In),Ho("onPointerLeave",!1,In),Ar=function(){Eo(!1,In)}),Xo.has("focus")&&Ho("onFocus",!0,Ln),sr.has("focus")&&Ho("onBlur",!1,mn),Xo.has("contextMenu")&&(_o.onContextMenu=function(qt){var Nn;To.current&&sr.has("contextMenu")?Eo(!1):(Go(qt),Eo(!0)),qt.preventDefault();for(var Aa=arguments.length,Ya=new Array(Aa>1?Aa-1:0),Ta=1;Ta<Aa;Ta++)Ya[Ta-1]=arguments[Ta];(Nn=ho.onContextMenu)===null||Nn===void 0||Nn.call.apply(Nn,[ho,qt].concat(Ya))}),Uo&&(_o.className=Se()(ho.className,Uo));var br=(0,Fe.Z)((0,Fe.Z)({},ho),_o),ni={},bi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];bi.forEach(function(qt){oo[qt]&&(ni[qt]=function(){for(var Nn,Aa=arguments.length,Ya=new Array(Aa),Ta=0;Ta<Aa;Ta++)Ya[Ta]=arguments[Ta];(Nn=br[qt])===null||Nn===void 0||Nn.call.apply(Nn,[br].concat(Ya)),oo[qt].apply(oo,Ya)})});var Li=te.cloneElement(Pr,(0,Fe.Z)((0,Fe.Z)({},br),ni)),wi={x:ir,y:Yr},Ei=Hn?(0,Fe.Z)({},Hn!==!0?Hn:{}):null;return te.createElement(te.Fragment,null,te.createElement(At.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:Se()(ha,Qr),style:Ea,target:Mo,onMouseEnter:Yo,onMouseLeave:Ar,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)}},Nt=function(){var Ft;return(Ft=_e.current)!==null&&Ft!==void 0&&Ft.focus?(_e.current.focus(),Xe.current=!0,!0):!1},Ct=function(Ft){switch(Ft.keyCode){case Wi:pt();break;case Ui:{var Vt=!1;Xe.current||(Vt=Nt()),Vt?Ft.preventDefault():pt();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",Ct),$e&&Et(Nt,3),function(){window.removeEventListener("keydown",Ct),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,Nt=ie.animation,Ct=ie.align,_t=ie.placement,Ft=_t===void 0?"bottomLeft":_t,Vt=ie.placements,Ht=Vt===void 0?Yi:Vt,rn=ie.getPopupContainer,On=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,Me.Z)(ie,Qi),Tn=te.useState(),ha=(0,Oe.Z)(Tn,2),Ea=ha[0],ga=ha[1],Mn="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:Mn,triggerRef:Za,onVisibleChange:Vn,autoFocus:qn,overlayRef:wn});var _a=function(oa){var za=ie.onOverlayClick;ga(!1),za&&za(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,za=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?oa:!za},So=function(){var oa=ie.openClassName;return oa!==void 0?oa:"".concat(Xe,"-open")},Hn=te.cloneElement(ya,{className:Se()((se=ya.props)===null||se===void 0?void 0:se.className,Mn&&So()),ref:ce(ya)?de(Za,ya.ref):void 0}),mo=hn;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Hi,(0,Ce.Z)({builtinPlacements:Ht},Un,{prefixCls:Xe,ref:_n,popupClassName:Se()(In,(0,ue.Z)({},"".concat(Xe,"-show-arrow"),$e)),popupStyle:Ln,action:ra,showAction:On,hideAction:mo,popupPlacement:Ft,popupAlign:Ct,popupTransitionName:pt,popupAnimation:Nt,popupVisible:Mn,stretch:uo()?"minWidth":"",popup:Xa(),onPopupVisibleChange:Vn,onPopupClick:_a,getPopupContainer:rn}),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:Nt,overlayClassName:Ct,rootClassName:_t,open:Ft,onOpenChange:Vt,visible:Ht,onVisibleChange:rn,mouseEnterDelay:On=.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),Mn=(0,ig.Tm)(ga,{className:Se()(`${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),rn==null||rn(Hn),Vn(Hn)}),so=Se()(Ct,_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:On,mouseLeaveDelay:hn,visible:Za,builtinPlacements:Xa,arrow:!!se,overlayClassName:so,prefixCls:Un,getPopupContainer:Nt||ra,transitionName:ya,trigger:_n,overlay:So,placement:ja,onVisibleChange:_a}),Mn))};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(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ve}});var te=oe(14747),Pe=oe(67771),Ye=oe(33297),Te=oe(50438),Se=oe(97414),Ce=oe(67968),ue=oe(45503),Me=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 Fe=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:fe,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,Se.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 ${fe}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 ${fe}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:fe+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,Te._y)(je,"zoom-big")]]};var Ve=(0,Ce.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,Se.fS)({contentRadius:ne}),de=(0,ue.TS)(je,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Fe(de),Me(de)]},je=>({zIndexPopup:je.zIndexPopupBase+50}))},71322:function(Ie,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"},Te=Ye,Se=oe(74643),Ce=function(ge,de){return Pe.createElement(Se.Z,(0,te.Z)({},ge,{ref:de,icon:Te}))},ue=Pe.forwardRef(Ce),Oe=oe(22751),Me=oe(91034),Fe=oe(94184),Ve=oe.n(Fe),je=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ge){var de={};for(var fe in re)Object.prototype.hasOwnProperty.call(re,fe)&&ge.indexOf(fe)<0&&(de[fe]=re[fe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,fe=Object.getOwnPropertySymbols(re);ce<fe.length;ce++)ge.indexOf(fe[ce])<0&&Object.prototype.propertyIsEnumerable.call(re,fe[ce])&&(de[fe[ce]]=re[fe[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:fe,trigger:ce,children:De,defaultCollapsed:Ge=!1,theme:wt="dark",style:Ut={},collapsible:an=!1,reverseArrow:we=!1,width:ke=200,collapsedWidth:We=80,zeroWidthTriggerStyle:dt,breakpoint:ft,onCollapse:Qe,onBreakpoint:tt}=re,lt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:zt}=(0,Pe.useContext)(y.Gs),[be,Ae]=(0,Pe.useState)("collapsed"in re?re.collapsed:Ge),[it,xt]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&Ae(re.collapsed)},[re.collapsed]);const nt=(Pt,Ne)=>{"collapsed"in re||Ae(Pt),Qe==null||Qe(Pt,Ne)},rt=(0,Pe.useRef)();rt.current=Pt=>{xt(Pt.matches),tt==null||tt(Pt.matches),be!==Pt.matches&&nt(Pt.matches,"responsive")},(0,Pe.useEffect)(()=>{function Pt(xe){return rt.current(xe)}let Ne;if(typeof window!="undefined"){const{matchMedia:xe}=window;if(xe&&ft&&ft in b){Ne=xe(`(max-width: ${b[ft]})`);try{Ne.addEventListener("change",Pt)}catch(Le){Ne.addListener(Pt)}Pt(Ne)}}return()=>{try{Ne==null||Ne.removeEventListener("change",Pt)}catch(xe){Ne==null||Ne.removeListener(Pt)}}},[ft]),(0,Pe.useEffect)(()=>{const Pt=z("ant-sider-");return zt.addSider(Pt),()=>zt.removeSider(Pt)},[]);const me=()=>{nt(!be,"clickTrigger")},{getPrefixCls:gt}=(0,Pe.useContext)(a.E_),yt=()=>{const Pt=gt("layout-sider",de),Ne=(0,je.Z)(lt,["collapsed"]),xe=be?We:ke,Le=ae(xe)?`${xe}px`:String(xe),Je=parseFloat(String(We||0))===0?Pe.createElement("span",{onClick:me,className:Ve()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${we?"right":"left"}`),style:dt},ce||Pe.createElement(ue,null)):null,Dt={expanded:we?Pe.createElement(Me.Z,null):Pe.createElement(Oe.Z,null),collapsed:we?Pe.createElement(Oe.Z,null):Pe.createElement(Me.Z,null)}[be?"collapsed":"expanded"],Tt=ce!==null?Je||Pe.createElement("div",{className:`${Pt}-trigger`,onClick:me,style:{width:Le}},ce||Dt):null,Jt=Object.assign(Object.assign({},Ut),{flex:`0 0 ${Le}`,maxWidth:Le,minWidth:Le,width:Le}),ln=Ve()(Pt,`${Pt}-${wt}`,{[`${Pt}-collapsed`]:!!be,[`${Pt}-has-trigger`]:an&&ce!==null&&!Je,[`${Pt}-below`]:!!it,[`${Pt}-zero-width`]:parseFloat(Le)===0},fe);return Pe.createElement("aside",Object.assign({className:ln},Ne,{style:Jt,ref:ge}),Pe.createElement("div",{className:`${Pt}-children`},De),an||it&&Je?Tt:null)},on=Pe.useMemo(()=>({siderCollapsed:be}),[be]);return Pe.createElement(x.Provider,{value:on},yt())})},84321:function(Ie,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),Te=oe(10366),Se=oe(67294),Ce=oe(53124),ue=oe(67968),Me=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:fe,lightTriggerColor:ce}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:ce,background:fe},[`${re}-sider-zero-width-trigger`]:{color:ce,background:fe,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Fe=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:fe,footerBg:ce,triggerBg:De,headerHeight:Ge,headerPadding:wt,headerColor:Ut,footerPadding:an,triggerHeight:we,zeroTriggerHeight:ke,zeroTriggerWidth:We,motionDurationMid:dt,motionDurationSlow:ft,fontSize:Qe,borderRadius:tt,bodyBg:lt,headerBg:zt,siderBg:be}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:lt,"&, *":{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:be,transition:`all ${dt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:fe,lineHeight:`${we}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${dt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-We,zIndex:1,width:We,height:ke,color:fe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:tt,borderEndEndRadius:tt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ft} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ft}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:tt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:tt}}}}},Me(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ge,padding:wt,color:Ut,lineHeight:`${Ge}px`,background:zt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:an,color:de,fontSize:Qe,background:ce},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ve=(0,ue.Z)("Layout",ne=>[Fe(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:fe,controlHeightSM:ce,marginXXS:De,colorTextLightSolid:Ge,colorBgContainer:wt}=ne,Ut=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Ut}px`,headerColor:fe,footerPadding:`${ce}px ${Ut}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+De*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:wt,lightTriggerBg:wt,lightTriggerColor:fe}},{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 fe=0,de=Object.getOwnPropertySymbols(ne);fe<de.length;fe++)re.indexOf(de[fe])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[fe])&&(ge[de[fe]]=ne[de[fe]]);return ge};const Ze=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return fe=>Se.forwardRef((De,Ge)=>Se.createElement(fe,Object.assign({ref:Ge,suffixCls:re,tagName:ge},De)))}const a=Se.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:fe,tagName:ce}=ne,De=je(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=Se.useContext(Ce.E_),wt=Ge("layout",ge),[Ut,an]=Ve(wt),we=de?`${wt}-${de}`:wt;return Ut(Se.createElement(ce,Object.assign({className:Ye()(ge||we,fe,an),ref:re},De)))}),y=Se.forwardRef((ne,re)=>{const{direction:ge}=Se.useContext(Ce.E_),[de,fe]=Se.useState([]),{prefixCls:ce,className:De,rootClassName:Ge,children:wt,hasSider:Ut,tagName:an,style:we}=ne,ke=je(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,Te.Z)(ke,["suffixCls"]),{getPrefixCls:dt,layout:ft}=Se.useContext(Ce.E_),Qe=dt("layout",ce),[tt,lt]=Ve(Qe),zt=Ye()(Qe,{[`${Qe}-has-sider`]:typeof Ut=="boolean"?Ut:de.length>0,[`${Qe}-rtl`]:ge==="rtl"},ft==null?void 0:ft.className,De,Ge,lt),be=Se.useMemo(()=>({siderHook:{addSider:Ae=>{fe(it=>[].concat((0,te.Z)(it),[Ae]))},removeSider:Ae=>{fe(it=>it.filter(xt=>xt!==Ae))}}}),[]);return tt(Se.createElement(Ze.Provider,{value:be},Se.createElement(an,Object.assign({ref:re,className:zt,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),we)},We),wt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ie,mt,oe){"use strict";oe.d(mt,{J:function(){return Ce}});var te=oe(67294),Pe=oe(4173),Ye=oe(60276),Te=function(ue,Oe){var Me={};for(var Fe in ue)Object.prototype.hasOwnProperty.call(ue,Fe)&&Oe.indexOf(Fe)<0&&(Me[Fe]=ue[Fe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Fe=Object.getOwnPropertySymbols(ue);Ve<Fe.length;Ve++)Oe.indexOf(Fe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ue,Fe[Ve])&&(Me[Fe[Ve]]=ue[Fe[Ve]]);return Me};const Se=te.createContext(null),Ce=te.forwardRef((ue,Oe)=>{const{children:Me}=ue,Fe=Te(ue,["children"]),Ve=te.useContext(Se),je=te.useMemo(()=>Object.assign(Object.assign({},Ve),Fe),[Ve,Fe.prefixCls,Fe.mode,Fe.selectable]);return te.createElement(Se.Provider,{value:je},te.createElement(Pe.BR,null,(0,Ye.supportNodeRef)(Me)?te.cloneElement(Me,{ref:Oe}):Me))});mt.Z=Se},68508:function(Ie,mt,oe){"use strict";oe.d(mt,{default:function(){return Pt}});var te=oe(52073),Pe=oe(67294),Ye=oe(71322),Te=oe(94184),Se=oe.n(Te),Ce=oe(53124),ue=function(Ne,xe){var Le={};for(var Je in Ne)Object.prototype.hasOwnProperty.call(Ne,Je)&&xe.indexOf(Je)<0&&(Le[Je]=Ne[Je]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(Ne);et<Je.length;et++)xe.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Je[et])&&(Le[Je[et]]=Ne[Je[et]]);return Le},Me=Ne=>{const{prefixCls:xe,className:Le,dashed:Je}=Ne,et=ue(Ne,["prefixCls","className","dashed"]),{getPrefixCls:bt}=Pe.useContext(Ce.E_),Dt=bt("menu",xe),Tt=Se()({[`${Dt}-item-divider-dashed`]:!!Je},Le);return Pe.createElement(te.iz,Object.assign({className:Tt},et))},Fe=oe(37419),Ve=oe(10366),je=oe(83062),Ze=oe(96159),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ne=>{var xe;const{className:Le,children:Je,icon:et,title:bt,danger:Dt}=Ne,{prefixCls:Tt,firstLevel:Jt,direction:ln,disableMenuItemTitleTooltip:sn,inlineCollapsed:At}=Pe.useContext(a),Ot=Re=>{const ot=Pe.createElement("span",{className:`${Tt}-title-content`},Je);return(!et||(0,Ze.l$)(Je)&&Je.type==="span")&&Je&&Re&&Jt&&typeof Je=="string"?Pe.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},Je.charAt(0)):ot},{siderCollapsed:Yt}=Pe.useContext(Ye.D);let jn=bt;typeof bt=="undefined"?jn=Jt?Je:"":bt===!1&&(jn="");const xn={title:jn};!Yt&&!At&&(xn.title=null,xn.open=!1);const pn=(0,Fe.Z)(Je).length;let ye=Pe.createElement(te.ck,Object.assign({},(0,Ve.Z)(Ne,["title","icon","danger"]),{className:Se()({[`${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:Se()((0,Ze.l$)(et)?(xe=et.props)===null||xe===void 0?void 0:xe.className:"",`${Tt}-item-icon`)}),Ot(At));return sn||(ye=Pe.createElement(je.Z,Object.assign({},xn,{placement:ln==="rtl"?"left":"right",overlayClassName:`${Tt}-inline-collapsed-tooltip`}),ye)),ye},x=Ne=>{var xe;const{popupClassName:Le,icon:Je,title:et,theme:bt}=Ne,Dt=Pe.useContext(a),{prefixCls:Tt,inlineCollapsed:Jt,theme:ln}=Dt,sn=(0,te.Xl)();let At;if(!Je)At=Jt&&!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 Yt=(0,Ze.l$)(et)&&et.type==="span";At=Pe.createElement(Pe.Fragment,null,(0,Ze.Tm)(Je,{className:Se()((0,Ze.l$)(Je)?(xe=Je.props)===null||xe===void 0?void 0:xe.className:"",`${Tt}-item-icon`)}),Yt?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)(Ne,["icon"]),{title:At,popupClassName:Se()(Tt,Le,`${Tt}-${bt||ln}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Ne,xe){var Le={};for(var Je in Ne)Object.prototype.hasOwnProperty.call(Ne,Je)&&xe.indexOf(Je)<0&&(Le[Je]=Ne[Je]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(Ne);et<Je.length;et++)xe.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Je[et])&&(Le[Je[et]]=Ne[Je[et]]);return Le};function de(Ne){return(Ne||[]).map((xe,Le)=>{if(xe&&typeof xe=="object"){const Je=xe,{label:et,children:bt,key:Dt,type:Tt}=Je,Jt=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},Jt,{title:et}),de(bt)):Pe.createElement(x,Object.assign({key:ln},Jt,{title:et}),de(bt)):Tt==="divider"?Pe.createElement(Me,Object.assign({key:ln},Jt)):Pe.createElement(E,Object.assign({key:ln},Jt),et)}return null}).filter(xe=>xe)}function fe(Ne){return Pe.useMemo(()=>Ne&&de(Ne),[Ne])}var ce=oe(84780),De=oe(14747),Ge=oe(33507),wt=oe(67771),Ut=oe(50438),an=oe(67968),we=oe(45503),We=Ne=>{const{componentCls:xe,motionDurationSlow:Le,horizontalLineHeight:Je,colorSplit:et,lineWidth:bt,lineType:Dt,itemPaddingInline:Tt}=Ne;return{[`${xe}-horizontal`]:{lineHeight:Je,border:0,borderBottom:`${bt}px ${Dt} ${et}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${xe}-item, ${xe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Tt},[`> ${xe}-item:hover,
|
|
> ${xe}-item-active,
|
|
> ${xe}-submenu ${xe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${xe}-item, ${xe}-submenu-title`]:{transition:[`border-color ${Le}`,`background ${Le}`].join(",")},[`${xe}-submenu-arrow`]:{display:"none"}}}},ft=Ne=>{let{componentCls:xe,menuArrowOffset:Le}=Ne;return{[`${xe}-rtl`]:{direction:"rtl"},[`${xe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${xe}-rtl${xe}-vertical,
|
|
${xe}-submenu-rtl ${xe}-vertical`]:{[`${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Le})`},"&::after":{transform:`rotate(45deg) translateY(${Le})`}}}}};const Qe=Ne=>Object.assign({},(0,De.oN)(Ne));var lt=(Ne,xe)=>{const{componentCls:Le,itemColor:Je,itemSelectedColor:et,groupTitleColor:bt,itemBg:Dt,subMenuItemBg:Tt,itemSelectedBg:Jt,activeBarHeight:ln,activeBarWidth:sn,activeBarBorderWidth:At,motionDurationSlow:Ot,motionEaseInOut:Yt,motionEaseOut:jn,itemPaddingInline:xn,motionDurationMid:pn,itemHoverColor:ye,lineType:Re,colorSplit:ot,itemDisabledColor:Lt,dangerItemColor:$t,dangerItemHoverColor:en,dangerItemSelectedColor:nn,dangerItemActiveBg:kt,dangerItemSelectedBg:Kt,itemHoverBg:bn,itemActiveBg:gn,menuSubMenuBg:Zn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:Xn,horizontalItemBorderRadius:la,horizontalItemHoverBg:Dn,popupBg:zn}=Ne;return{[`${Le}-${xe}, ${Le}-${xe} > ${Le}`]:{color:Je,background:Dt,[`&${Le}-root:focus-visible`]:Object.assign({},Qe(Ne)),[`${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:ye}},[`&:not(${Le}-horizontal)`]:{[`${Le}-item:not(${Le}-item-selected)`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:gn}},[`${Le}-submenu-title`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:gn}}},[`${Le}-item-danger`]:{color:$t,[`&${Le}-item:hover`]:{[`&:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{color:en}},[`&${Le}-item:active`]:{background:kt}},[`${Le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Le}-item-selected`]:{color:et,[`&${Le}-item-danger`]:{color:nn},"a, a:hover":{color:"inherit"}},[`& ${Le}-item-selected`]:{backgroundColor:Jt,[`&${Le}-item-danger`]:{backgroundColor:Kt}},[`${Le}-item, ${Le}-submenu-title`]:{[`&:not(${Le}-item-disabled):focus-visible`]:Object.assign({},Qe(Ne))},[`&${Le}-submenu > ${Le}`]:{backgroundColor:Zn},[`&${Le}-popup > ${Le}`]:{backgroundColor:zn},[`&${Le}-horizontal`]:Object.assign(Object.assign({},xe==="dark"?{borderBottom:0}:{}),{[`> ${Le}-item, > ${Le}-submenu`]:{top:At,marginTop:-At,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${ln}px solid transparent`,transition:`border-color ${Ot} ${Yt}`,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:`${At}px ${Re} ${ot}`}},[`&${Le}-inline`]:{[`${Le}-sub${Le}-inline`]:{background:Tt},[`${Le}-item, ${Le}-submenu-title`]:At&&sn?{width:`calc(100% + ${At}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:nn}}},[`${Le}-selected, ${Le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${pn} ${Yt}`,`opacity ${pn} ${Yt}`].join(",")}}}}}};const zt=Ne=>{const{componentCls:xe,itemHeight:Le,itemMarginInline:Je,padding:et,menuArrowSize:bt,marginXS:Dt,itemMarginBlock:Tt}=Ne,Jt=et+bt+Dt;return{[`${xe}-item`]:{position:"relative",overflow:"hidden"},[`${xe}-item, ${xe}-submenu-title`]:{height:Le,lineHeight:`${Le}px`,paddingInline:et,overflow:"hidden",textOverflow:"ellipsis",marginInline:Je,marginBlock:Tt,width:`calc(100% - ${Je*2}px)`},[`> ${xe}-item,
|
|
> ${xe}-submenu > ${xe}-submenu-title`]:{height:Le,lineHeight:`${Le}px`},[`${xe}-item-group-list ${xe}-submenu-title,
|
|
${xe}-submenu-title`]:{paddingInlineEnd:Jt}}};var Ae=Ne=>{const{componentCls:xe,iconCls:Le,itemHeight:Je,colorTextLightSolid:et,dropdownWidth:bt,controlHeightLG:Dt,motionDurationMid:Tt,motionEaseOut:Jt,paddingXL:ln,itemMarginInline:sn,fontSizeLG:At,motionDurationSlow:Ot,paddingXS:Yt,boxShadowSecondary:jn,collapsedWidth:xn,collapsedIconSize:pn}=Ne,ye={height:Je,lineHeight:`${Je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[xe]:{"&-inline, &-vertical":Object.assign({[`&${xe}-root`]:{boxShadow:"none"}},zt(Ne))},[`${xe}-submenu-popup`]:{[`${xe}-vertical`]:Object.assign(Object.assign({},zt(Ne)),{boxShadow:jn})}},{[`${xe}-submenu-popup ${xe}-vertical${xe}-sub`]:{minWidth:bt,maxHeight:`calc(100vh - ${Dt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${xe}-inline`]:{width:"100%",[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ot}`,`background ${Ot}`,`padding ${Tt} ${Jt}`].join(","),[`> ${xe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${xe}-sub${xe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${xe}-submenu > ${xe}-submenu-title`]:ye,[`& ${xe}-item-group-title`]:{paddingInlineStart:ln}},[`${xe}-item`]:ye}},{[`${xe}-inline-collapsed`]:{width:xn,[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu ${xe}-submenu-title`]:{[`> ${xe}-inline-collapsed-noicon`]:{fontSize:At,textAlign:"center"}}},[`> ${xe}-item,
|
|
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-item,
|
|
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-submenu > ${xe}-submenu-title,
|
|
> ${xe}-submenu > ${xe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${At/2}px - ${sn}px)`,textOverflow:"clip",[`
|
|
${xe}-submenu-arrow,
|
|
${xe}-submenu-expand-icon
|
|
`]:{opacity:0},[`${xe}-item-icon, ${Le}`]:{margin:0,fontSize:pn,lineHeight:`${Je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${xe}-item-icon, ${Le}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${xe}-item-icon, ${Le}`]:{display:"none"},"a, a:hover":{color:et}},[`${xe}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Yt})}}]};const it=Ne=>{const{componentCls:xe,motionDurationSlow:Le,motionDurationMid:Je,motionEaseInOut:et,motionEaseOut:bt,iconCls:Dt,iconSize:Tt,iconMarginInlineEnd:Jt}=Ne;return{[`${xe}-item, ${xe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Le}`,`background ${Le}`,`padding ${Le} ${et}`].join(","),[`${xe}-item-icon, ${Dt}`]:{minWidth:Tt,fontSize:Tt,transition:[`font-size ${Je} ${bt}`,`margin ${Le} ${et}`,`color ${Le}`].join(","),"+ span":{marginInlineStart:Jt,opacity:1,transition:[`opacity ${Le} ${et}`,`margin ${Le}`,`color ${Le}`].join(",")}},[`${xe}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${xe}-item-only-child`]:{[`> ${Dt}, > ${xe}-item-icon`]:{marginInlineEnd:0}}},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${xe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},xt=Ne=>{const{componentCls:xe,motionDurationSlow:Le,motionEaseInOut:Je,borderRadius:et,menuArrowSize:bt,menuArrowOffset:Dt}=Ne;return{[`${xe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ne.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=Ne=>{const{antCls:xe,componentCls:Le,fontSize:Je,motionDurationSlow:et,motionDurationMid:bt,motionEaseInOut:Dt,paddingXS:Tt,padding:Jt,colorSplit:ln,lineWidth:sn,zIndexPopup:At,borderRadiusLG:Ot,subMenuItemBorderRadius:Yt,menuArrowSize:jn,menuArrowOffset:xn,lineType:pn,menuPanelMaskInset:ye,groupTitleLineHeight:Re,groupTitleFontSize:ot}=Ne;return[{"":{[`${Le}`]:Object.assign(Object.assign({},(0,De.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,De.Wf)(Ne)),(0,De.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:Ne.itemBorderRadius},[`${Le}-item-group-title`]:{padding:`${Tt}px ${Jt}px`,fontSize:ot,lineHeight:Re,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"}}}),it(Ne)),{[`${Le}-item-group`]:{[`${Le}-item-group-list`]:{margin:0,padding:0,[`${Le}-item, ${Le}-submenu-title`]:{paddingInline:`${Je*2}px ${Jt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:At,borderRadius:Ot,boxShadow:"none",transformOrigin:"0 0",[`&${Le}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ne.paddingXS},[`> ${Le}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ot},it(Ne)),xt(Ne)),{[`${Le}-item, ${Le}-submenu > ${Le}-submenu-title`]:{borderRadius:Yt},[`${Le}-submenu-title::after`]:{transition:`transform ${et} ${Dt}`}})}}),xt(Ne)),{[`&-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})`}}})},{[`${xe}-layout-header`]:{[Le]:{lineHeight:"inherit"}}}]};var rt=(Ne,xe)=>(0,an.Z)("Menu",Je=>{if(xe===!1)return[];const{colorBgElevated:et,colorPrimary:bt,colorTextLightSolid:Dt,controlHeightLG:Tt,fontSize:Jt,darkItemColor:ln,darkDangerItemColor:sn,darkItemBg:At,darkSubMenuItemBg:Ot,darkItemSelectedColor:Yt,darkItemSelectedBg:jn,darkDangerItemSelectedBg:xn,darkItemHoverBg:pn,darkGroupTitleColor:ye,darkItemHoverColor:Re,darkItemDisabledColor:ot,darkDangerItemHoverColor:Lt,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:en}=Je,nn=Jt/7*5,kt=(0,we.TS)(Je,{menuArrowSize:nn,menuHorizontalHeight:Tt*1.15,menuArrowOffset:`${nn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:et}),Kt=(0,we.TS)(kt,{itemColor:ln,itemHoverColor:Re,groupTitleColor:ye,itemSelectedColor:Yt,itemBg:At,popupBg:At,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:jn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pn,itemDisabledColor:ot,dangerItemColor:sn,dangerItemHoverColor:Lt,dangerItemSelectedColor:$t,dangerItemActiveBg:en,dangerItemSelectedBg:xn,menuSubMenuBg:Ot,horizontalItemSelectedColor:Dt,horizontalItemSelectedBg:bt});return[nt(kt),We(kt),Ae(kt),lt(kt,"light"),lt(Kt,"dark"),ft(kt),(0,Ge.Z)(kt),(0,wt.oN)(kt,"slide-up"),(0,wt.oN)(kt,"slide-down"),(0,Ut._y)(kt,"zoom-big")]},Je=>{const{colorPrimary:et,colorError:bt,colorTextDisabled:Dt,colorErrorBg:Tt,colorText:Jt,colorTextDescription:ln,colorBgContainer:sn,colorFillAlter:At,colorFillContent:Ot,lineWidth:Yt,lineWidthBold:jn,controlItemBgActive:xn,colorBgTextHover:pn,controlHeightLG:ye,lineHeight:Re,colorBgElevated:ot,marginXXS:Lt,padding:$t,fontSize:en,controlHeightSM:nn,fontSizeLG:kt,colorTextLightSolid:Kt,colorErrorHover:bn}=Je,gn=new ce.C(Kt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Je.zIndexPopupBase+50,radiusItem:Je.borderRadiusLG,itemBorderRadius:Je.borderRadiusLG,radiusSubMenuItem:Je.borderRadiusSM,subMenuItemBorderRadius:Je.borderRadiusSM,colorItemText:Jt,itemColor:Jt,colorItemTextHover:Jt,itemHoverColor:Jt,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:At,subMenuItemBg:At,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jn,activeBarHeight:jn,colorActiveBarBorderSize:Yt,activeBarBorderWidth:Yt,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:ye,groupTitleLineHeight:Re,collapsedWidth:ye*2,popupBg:ot,itemMarginBlock:Lt,itemPaddingInline:$t,horizontalLineHeight:`${ye*1.15}px`,iconSize:en,iconMarginInlineEnd:nn-en,collapsedIconSize:kt,groupTitleFontSize:en,darkItemDisabledColor:new ce.C(Kt).setAlpha(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:bt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:et,darkDangerItemSelectedBg:bt,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:Kt,darkDangerItemHoverColor:bn,darkDangerItemSelectedColor:Kt,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"]]})(Ne),me=function(Ne,xe){var Le={};for(var Je in Ne)Object.prototype.hasOwnProperty.call(Ne,Je)&&xe.indexOf(Je)<0&&(Le[Je]=Ne[Je]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(Ne);et<Je.length;et++)xe.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Je[et])&&(Le[Je[et]]=Ne[Je[et]]);return Le},yt=(0,Pe.forwardRef)((Ne,xe)=>{var Le,Je;const et=Pe.useContext(re.Z),bt=et||{},{getPrefixCls:Dt,getPopupContainer:Tt,direction:Jt,menu:ln}=Pe.useContext(Ce.E_),sn=Dt(),{prefixCls:At,className:Ot,style:Yt,theme:jn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:pn,inlineCollapsed:ye,siderCollapsed:Re,items:ot,children:Lt,rootClassName:$t,mode:en,selectable:nn,onClick:kt,overflowedIndicatorPopupClassName:Kt}=Ne,bn=me(Ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gn=(0,Ve.Z)(bn,["collapsedWidth"]),Zn=fe(ot)||Lt;(Le=bt.validator)===null||Le===void 0||Le.call(bt,{mode:en});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||en,la=nn!=null?nn:bt.selectable,Dn=Pe.useMemo(()=>Re!==void 0?Re:ye,[ye,Re]),zn={horizontal:{motionName:`${sn}-slide-up`},inline:(0,ne.Z)(sn),other:{motionName:`${sn}-zoom-big`}},Yn=Dt("menu",At||bt.prefixCls),[ua,ma]=rt(Yn,!et),Rn=Se()(`${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:Se()(`${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:Jt,firstLevel:!0,theme:jn,mode:Xn,disableMenuItemTitleTooltip:pn}),[Yn,Dn,Jt,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:Se()(Yn,`${Yn}-${jn}`,Kt),mode:Xn,selectable:la,onClick:Kn},gn,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Yt),className:Rn,prefixCls:Yn,direction:Jt,defaultMotions:zn,expandIcon:Pa,ref:xe,rootClassName:Se()($t,ma)}),Zn))))});const on=(0,Pe.forwardRef)((Ne,xe)=>{const Le=(0,Pe.useRef)(null),Je=Pe.useContext(Ye.D);return(0,Pe.useImperativeHandle)(xe,()=>({menu:Le.current,focus:et=>{var bt;(bt=Le.current)===null||bt===void 0||bt.focus(et)}})),Pe.createElement(yt,Object.assign({ref:Le},Ne,Je))});on.Item=E,on.SubMenu=x,on.Divider=Me,on.ItemGroup=te.BW;var Pt=on},38703:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return pn}});var te=oe(67294),Pe=oe(87725),Ye=oe(18299),Te=oe(16646),Se=oe(73475),Ce=oe(94184),ue=oe.n(Ce),Oe=oe(10366),Me=oe(53124),Fe=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 Re=(0,te.useRef)([]),ot=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Lt=Date.now(),$t=!1;Re.current.forEach(function(en){if(en){$t=!0;var nn=en.style;nn.transitionDuration=".3s, .3s, .3s, .06s",ot.current&&Lt-ot.current<100&&(nn.transitionDuration="0s, 0s")}}),$t&&(ot.current=Date.now())}),Re.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Re){var ot=(0,Ve.Z)((0,Ve.Z)({},Ze),Re),Lt=ot.className,$t=ot.percent,en=ot.prefixCls,nn=ot.strokeColor,kt=ot.strokeLinecap,Kt=ot.strokeWidth,bn=ot.style,gn=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(nn)?nn:[nn],zn=ae(),Yn=Kt/2,ua=100-Kt/2,ma="M ".concat(kt==="round"?Yn:0,",").concat(Yn,`
|
|
L `).concat(kt==="round"?ua:100,",").concat(Yn),Rn="0 0 100 ".concat(Kt),Pa=0;return te.createElement("svg",(0,Fe.Z)({className:ue()("".concat(en,"-line"),Lt),viewBox:Rn,preserveAspectRatio:"none",style:bn},Xn),te.createElement("path",{className:"".concat(en,"-line-trail"),d:ma,strokeLinecap:kt,stroke:gn,strokeWidth:Zn||Kt,fillOpacity:"0"}),la.map(function(Ga,ta){var Ua=1;switch(kt){case"round":Ua=1-Kt/100;break;case"square":Ua=1-Kt/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(en,"-line-path"),d:ma,strokeLinecap:kt,stroke:Qa,strokeWidth:Kt,fillOpacity:"0",ref:function(Be){zn[ta]=Be},style:eo})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var ye;return ne?(ye=ee,ee+=1):ye="TEST_OR_SSR",ye}var ge=function(ye){var Re=te.useState(),ot=(0,x.Z)(Re,2),Lt=ot[0],$t=ot[1];return te.useEffect(function(){$t("rc_progress_".concat(re()))},[]),ye||Lt},de=function(Re){var ot=Re.bg,Lt=Re.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:ot}},Lt)};function fe(ye,Re){return Object.keys(ye).map(function(ot){var Lt=parseFloat(ot),$t="".concat(Math.floor(Lt*Re),"%");return"".concat(ye[ot]," ").concat($t)})}var ce=te.forwardRef(function(ye,Re){var ot=ye.prefixCls,Lt=ye.color,$t=ye.gradientId,en=ye.radius,nn=ye.style,kt=ye.ptg,Kt=ye.strokeLinecap,bn=ye.strokeWidth,gn=ye.size,Zn=ye.gapDegree,Kn=Lt&&(0,b.Z)(Lt)==="object",Xn=Kn?"#FFF":void 0,la=gn/2,Dn=te.createElement("circle",{className:"".concat(ot,"-circle-path"),r:en,cx:la,cy:la,stroke:Xn,strokeLinecap:Kt,strokeWidth:bn,opacity:kt===0?0:1,style:nn,ref:Re});if(!Kn)return Dn;var zn="".concat($t,"-conic"),Yn=Zn?"".concat(180+Zn/2,"deg"):"0deg",ua=fe(Lt,(360-Zn)/360),ma=fe(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:zn},Dn),te.createElement("foreignObject",{x:0,y:0,width:gn,height:gn,mask:"url(#".concat(zn,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Rn}))))}),De=ce,Ge=100,wt=function(Re,ot,Lt,$t,en,nn,kt,Kt,bn,gn){var Zn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Kn=Lt/100*360*((360-nn)/360),Xn=nn===0?0:{bottom:0,top:180,left:90,right:-90}[kt],la=(100-$t)/100*ot;bn==="round"&&$t!==100&&(la+=gn/2,la>=ot&&(la=ot-.01));var Dn=Ge/2;return{stroke:typeof Kt=="string"?Kt:void 0,strokeDasharray:"".concat(ot,"px ").concat(Re),strokeDashoffset:la+Zn,transform:"rotate(".concat(en+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 an(ye){var Re=ye!=null?ye:[];return Array.isArray(Re)?Re:[Re]}var we=function(Re){var ot=(0,Ve.Z)((0,Ve.Z)({},Ze),Re),Lt=ot.id,$t=ot.prefixCls,en=ot.steps,nn=ot.strokeWidth,kt=ot.trailWidth,Kt=ot.gapDegree,bn=Kt===void 0?0:Kt,gn=ot.gapPosition,Zn=ot.trailColor,Kn=ot.strokeLinecap,Xn=ot.style,la=ot.className,Dn=ot.strokeColor,zn=ot.percent,Yn=(0,je.Z)(ot,Ut),ua=Ge/2,ma=ge(Lt),Rn="".concat(ma,"-gradient"),Pa=ua-nn/2,Ga=Math.PI*2*Pa,ta=bn>0?90+bn/2:-90,Ua=Ga*((360-bn)/360),eo=(0,b.Z)(en)==="object"?en:{count:en,space:2},Qa=eo.count,Ee=eo.space,Be=an(zn),pe=an(Dn),vt=pe.find(function(Ia){return Ia&&(0,b.Z)(Ia)==="object"}),Rt=vt&&(0,b.Z)(vt)==="object",jt=Rt?"butt":Kn,kn=wt(Ga,Ua,0,100,ta,bn,gn,Zn,jt,nn),Sn=ae(),Bn=function(){var ct=0;return Be.map(function(Cn,ve){var Ue=pe[ve]||pe[pe.length-1],ze=wt(Ga,Ua,ct,Cn,ta,bn,gn,Ue,jt,nn);return ct+=Cn,te.createElement(De,{key:ve,color:Ue,ptg:Cn,radius:Pa,prefixCls:$t,gradientId:Rn,style:ze,strokeLinecap:jt,strokeWidth:nn,gapDegree:bn,ref:function(ht){Sn[ve]=ht},size:Ge})}).reverse()},na=function(){var ct=Math.round(Qa*(Be[0]/100)),Cn=100/Qa,ve=0;return new Array(Qa).fill(null).map(function(Ue,ze){var He=ze<=ct-1?pe[0]:Zn,ht=He&&(0,b.Z)(He)==="object"?"url(#".concat(Rn,")"):void 0,at=wt(Ga,Ua,ve,Cn,ta,bn,gn,He,"butt",nn,Ee);return ve+=(Ua-at.strokeDashoffset+Ee)*100/Ua,te.createElement("circle",{key:ze,className:"".concat($t,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:ht,strokeWidth:nn,opacity:1,style:at,ref:function(qe){Sn[ze]=qe}})})};return te.createElement("svg",(0,Fe.Z)({className:ue()("".concat($t,"-circle"),la),viewBox:"0 0 ".concat(Ge," ").concat(Ge),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||nn,style:kn}),Qa?na():Bn())},ke=we,We={Line:E,Circle:ke},dt=oe(83062),ft=oe(47448);function Qe(ye){return!ye||ye<0?0:ye>100?100:ye}function tt(ye){let{success:Re,successPercent:ot}=ye,Lt=ot;return Re&&"progress"in Re&&(Lt=Re.progress),Re&&"percent"in Re&&(Lt=Re.percent),Lt}const lt=ye=>{let{percent:Re,success:ot,successPercent:Lt}=ye;const $t=Qe(tt({success:ot,successPercent:Lt}));return[$t,Qe(Qe(Re)-$t)]},zt=ye=>{let{success:Re={},strokeColor:ot}=ye;const{strokeColor:Lt}=Re;return[Lt||ft.presetPrimaryColors.green,ot||null]},be=(ye,Re,ot)=>{var Lt,$t,en,nn;let kt=-1,Kt=-1;if(Re==="step"){const bn=ot.steps,gn=ot.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(kt=ye==="small"?2:14,Kt=gn!=null?gn:8):typeof ye=="number"?[kt,Kt]=[ye,ye]:[kt=14,Kt=8]=ye,kt*=bn}else if(Re==="line"){const bn=ot==null?void 0:ot.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?Kt=bn||(ye==="small"?6:8):typeof ye=="number"?[kt,Kt]=[ye,ye]:[kt=-1,Kt=8]=ye}else(Re==="circle"||Re==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[kt,Kt]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[kt,Kt]=[ye,ye]:(kt=($t=(Lt=ye[0])!==null&&Lt!==void 0?Lt:ye[1])!==null&&$t!==void 0?$t:120,Kt=(nn=(en=ye[0])!==null&&en!==void 0?en:ye[1])!==null&&nn!==void 0?nn:120));return[kt,Kt]},Ae=3,it=ye=>Ae/ye*100;var nt=ye=>{const{prefixCls:Re,trailColor:ot=null,strokeLinecap:Lt="round",gapPosition:$t,gapDegree:en,width:nn=120,type:kt,children:Kt,success:bn,size:gn=nn}=ye,[Zn,Kn]=be(gn,"circle");let{strokeWidth:Xn}=ye;Xn===void 0&&(Xn=Math.max(it(Zn),6));const la={width:Zn,height:Kn,fontSize:Zn*.15+6},Dn=te.useMemo(()=>{if(en||en===0)return en;if(kt==="dashboard")return 75},[en,kt]),zn=$t||kt==="dashboard"&&"bottom"||void 0,Yn=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",ua=zt({success:bn,strokeColor:ye.strokeColor}),ma=ue()(`${Re}-inner`,{[`${Re}-circle-gradient`]:Yn}),Rn=te.createElement(ke,{percent:lt(ye),strokeWidth:Xn,trailWidth:Xn,strokeColor:ua,strokeLinecap:Lt,trailColor:ot,prefixCls:Re,gapDegree:Dn,gapPosition:zn});return te.createElement("div",{className:ma,style:la},Zn<=20?te.createElement(dt.Z,{title:Kt},te.createElement("span",null,Rn)):te.createElement(te.Fragment,null,Rn,Kt))},rt=function(ye,Re){var ot={};for(var Lt in ye)Object.prototype.hasOwnProperty.call(ye,Lt)&&Re.indexOf(Lt)<0&&(ot[Lt]=ye[Lt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Lt=Object.getOwnPropertySymbols(ye);$t<Lt.length;$t++)Re.indexOf(Lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(ye,Lt[$t])&&(ot[Lt[$t]]=ye[Lt[$t]]);return ot};const me=ye=>{let Re=[];return Object.keys(ye).forEach(ot=>{const Lt=parseFloat(ot.replace(/%/g,""));isNaN(Lt)||Re.push({key:Lt,value:ye[ot]})}),Re=Re.sort((ot,Lt)=>ot.key-Lt.key),Re.map(ot=>{let{key:Lt,value:$t}=ot;return`${$t} ${Lt}%`}).join(", ")},gt=(ye,Re)=>{const{from:ot=ft.presetPrimaryColors.blue,to:Lt=ft.presetPrimaryColors.blue,direction:$t=Re==="rtl"?"to left":"to right"}=ye,en=rt(ye,["from","to","direction"]);if(Object.keys(en).length!==0){const nn=me(en);return{backgroundImage:`linear-gradient(${$t}, ${nn})`}}return{backgroundImage:`linear-gradient(${$t}, ${ot}, ${Lt})`}};var on=ye=>{const{prefixCls:Re,direction:ot,percent:Lt,size:$t,strokeWidth:en,strokeColor:nn,strokeLinecap:kt="round",children:Kt,trailColor:bn=null,success:gn}=ye,Zn=nn&&typeof nn!="string"?gt(nn,ot):{backgroundColor:nn},Kn=kt==="square"||kt==="butt"?0:void 0,Xn={backgroundColor:bn||void 0,borderRadius:Kn},la=$t!=null?$t:[-1,en||($t==="small"?6:8)],[Dn,zn]=be(la,"line",{strokeWidth:en}),Yn=Object.assign({width:`${Qe(Lt)}%`,height:zn,borderRadius:Kn},Zn),ua=tt(ye),ma={width:`${Qe(ua)}%`,height:zn,borderRadius:Kn,backgroundColor:gn==null?void 0:gn.strokeColor},Rn={width:Dn<0?"100%":Dn,height:zn};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Re}-outer`,style:Rn},te.createElement("div",{className:`${Re}-inner`,style:Xn},te.createElement("div",{className:`${Re}-bg`,style:Yn}),ua!==void 0?te.createElement("div",{className:`${Re}-success-bg`,style:ma}):null)),Kt)},Ne=ye=>{const{size:Re,steps:ot,percent:Lt=0,strokeWidth:$t=8,strokeColor:en,trailColor:nn=null,prefixCls:kt,children:Kt}=ye,bn=Math.round(ot*(Lt/100)),gn=Re==="small"?2:14,Zn=Re!=null?Re:[gn,$t],[Kn,Xn]=be(Zn,"step",{steps:ot,strokeWidth:$t}),la=Kn/ot,Dn=new Array(ot);for(let zn=0;zn<ot;zn++){const Yn=Array.isArray(en)?en[zn]:en;Dn[zn]=te.createElement("div",{key:zn,className:ue()(`${kt}-steps-item`,{[`${kt}-steps-item-active`]:zn<=bn-1}),style:{backgroundColor:zn<=bn-1?Yn:nn,width:la,height:Xn}})}return te.createElement("div",{className:`${kt}-steps-outer`},Dn,Kt)},xe=oe(45930),Le=oe(14747),Je=oe(67968),et=oe(45503);const bt=ye=>{const Re=ye?"100%":"-100%";return new xe.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Re}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Re}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Dt=ye=>{const{componentCls:Re,iconCls:ot}=ye;return{[Re]:Object.assign(Object.assign({},(0,Le.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Re}-outer`]:{display:"inline-block",width:"100%"},[`&${Re}-show-info`]:{[`${Re}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Re}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Re}-inner:not(${Re}-circle-gradient)`]:{[`${Re}-circle-path`]:{stroke:ye.defaultColor}},[`${Re}-success-bg, ${Re}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Re}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Re}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ot]:{fontSize:ye.fontSize}},[`&${Re}-status-active`]:{[`${Re}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:bt(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Re}-rtl${Re}-status-active`]:{[`${Re}-bg::before`]:{animationName:bt(!0)}},[`&${Re}-status-exception`]:{[`${Re}-bg`]:{backgroundColor:ye.colorError},[`${Re}-text`]:{color:ye.colorError}},[`&${Re}-status-exception ${Re}-inner:not(${Re}-circle-gradient)`]:{[`${Re}-circle-path`]:{stroke:ye.colorError}},[`&${Re}-status-success`]:{[`${Re}-bg`]:{backgroundColor:ye.colorSuccess},[`${Re}-text`]:{color:ye.colorSuccess}},[`&${Re}-status-success ${Re}-inner:not(${Re}-circle-gradient)`]:{[`${Re}-circle-path`]:{stroke:ye.colorSuccess}}})}},Tt=ye=>{const{componentCls:Re,iconCls:ot}=ye;return{[Re]:{[`${Re}-circle-trail`]:{stroke:ye.remainingColor},[`&${Re}-circle ${Re}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Re}-circle ${Re}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ot]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Re}-circle&-status-exception`]:{[`${Re}-text`]:{color:ye.colorError}},[`${Re}-circle&-status-success`]:{[`${Re}-text`]:{color:ye.colorSuccess}}},[`${Re}-inline-circle`]:{lineHeight:1,[`${Re}-inner`]:{verticalAlign:"bottom"}}}},Jt=ye=>{const{componentCls:Re}=ye;return{[Re]:{[`${Re}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},ln=ye=>{const{componentCls:Re,iconCls:ot}=ye;return{[Re]:{[`${Re}-small&-line, ${Re}-small&-line ${Re}-text ${ot}`]:{fontSize:ye.fontSizeSM}}}};var sn=(0,Je.Z)("Progress",ye=>{const Re=ye.marginXXS/2,ot=(0,et.TS)(ye,{progressStepMarginInlineEnd:Re,progressStepMinWidth:Re,progressActiveMotionDuration:"2.4s"});return[Dt(ot),Tt(ot),Jt(ot),ln(ot)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),At=function(ye,Re){var ot={};for(var Lt in ye)Object.prototype.hasOwnProperty.call(ye,Lt)&&Re.indexOf(Lt)<0&&(ot[Lt]=ye[Lt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Lt=Object.getOwnPropertySymbols(ye);$t<Lt.length;$t++)Re.indexOf(Lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(ye,Lt[$t])&&(ot[Lt[$t]]=ye[Lt[$t]]);return ot};const Ot=null,Yt=["normal","exception","active","success"];var xn=te.forwardRef((ye,Re)=>{const{prefixCls:ot,className:Lt,rootClassName:$t,steps:en,strokeColor:nn,percent:kt=0,size:Kt="default",showInfo:bn=!0,type:gn="line",status:Zn,format:Kn,style:Xn}=ye,la=At(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Dn=te.useMemo(()=>{var Be,pe;const vt=tt(ye);return parseInt(vt!==void 0?(Be=vt!=null?vt:0)===null||Be===void 0?void 0:Be.toString():(pe=kt!=null?kt:0)===null||pe===void 0?void 0:pe.toString(),10)},[kt,ye.success,ye.successPercent]),zn=te.useMemo(()=>!Yt.includes(Zn)&&Dn>=100?"success":Zn||"normal",[Zn,Dn]),{getPrefixCls:Yn,direction:ua,progress:ma}=te.useContext(Me.E_),Rn=Yn("progress",ot),[Pa,Ga]=sn(Rn),ta=te.useMemo(()=>{if(!bn)return null;const Be=tt(ye);let pe;const vt=Kn||(jt=>`${jt}%`),Rt=gn==="line";return Kn||zn!=="exception"&&zn!=="success"?pe=vt(Qe(kt),Qe(Be)):zn==="exception"?pe=Rt?te.createElement(Te.Z,null):te.createElement(Se.Z,null):zn==="success"&&(pe=Rt?te.createElement(Pe.Z,null):te.createElement(Ye.Z,null)),te.createElement("span",{className:`${Rn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[bn,kt,Dn,zn,gn,Rn,Kn]),Ua=Array.isArray(nn)?nn[0]:nn,eo=typeof nn=="string"||Array.isArray(nn)?nn:void 0;let Qa;gn==="line"?Qa=en?te.createElement(Ne,Object.assign({},ye,{strokeColor:eo,prefixCls:Rn,steps:en}),ta):te.createElement(on,Object.assign({},ye,{strokeColor:Ua,prefixCls:Rn,direction:ua}),ta):(gn==="circle"||gn==="dashboard")&&(Qa=te.createElement(nt,Object.assign({},ye,{strokeColor:Ua,prefixCls:Rn,progressStatus:zn}),ta));const Ee=ue()(Rn,`${Rn}-status-${zn}`,`${Rn}-${gn==="dashboard"&&"circle"||en&&"steps"||gn}`,{[`${Rn}-inline-circle`]:gn==="circle"&&be(Kt,"circle")[0]<=20,[`${Rn}-show-info`]:bn,[`${Rn}-${Kt}`]:typeof Kt=="string",[`${Rn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,Lt,$t,Ga);return Pa(te.createElement("div",Object.assign({ref:Re,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),Xn),className:Ee,role:"progressbar","aria-valuenow":Dn},(0,Oe.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),pn=xn},59810:function(Ie,mt,oe){"use strict";oe.d(mt,{default:function(){return Cn}});var te=oe(67294),Pe=oe(74902),Ye=oe(94184),Te=oe.n(Ye),Se=oe(87462),Ce=oe(15671),ue=oe(43144),Oe=oe(60136),Me=oe(51630),Fe=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 Qt=He.toLowerCase(),Gt=qe.toLowerCase(),dn=[Gt];return(Gt===".jpg"||Gt===".jpeg")&&(dn=[".jpg",".jpeg"]),dn.some(function(yn){return Qt.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(Qt){He(Qt)&&(ut.fullPath&&!Qt.webkitRelativePath&&(Object.defineProperties(Qt,{webkitRelativePath:{writable:!0}}),Qt.webkitRelativePath=ut.fullPath.replace(/^\//,""),Object.defineProperties(Qt,{webkitRelativePath:{writable:!1}})),ze([Qt]))}):ut.isDirectory&&ge(ut,function(Qt){Qt.forEach(function(Gt){at(Gt,"".concat(qe).concat(ut.name,"/"))})}))};Ue.forEach(function(at){ht(at.webkitGetAsEntry())})},fe=de,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],De=function(ve){(0,Oe.Z)(ze,ve);var Ue=(0,Me.Z)(ze);function ze(){var He;(0,Ce.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 Qt=He.props,Gt=Qt.accept,dn=Qt.directory,yn=qe.target.files,$n=(0,Pe.Z)(yn).filter(function(Ke){return!dn||re(Ke,Gt)});He.uploadFiles($n),He.reset()},He.onClick=function(qe){var Qt=He.fileInput;if(Qt){var Gt=He.props,dn=Gt.children,yn=Gt.onClick;if(dn&&dn.type==="button"){var $n=Qt.parentNode;$n.focus(),$n.querySelector("button").blur()}Qt.click(),yn&&yn(qe)}},He.onKeyDown=function(qe){qe.key==="Enter"&&He.onClick(qe)},He.onFileDrop=function(qe){var Qt=He.props.multiple;if(qe.preventDefault(),qe.type!=="dragover")if(He.props.directory)fe(Array.prototype.slice.call(qe.dataTransfer.items),He.uploadFiles,function(dn){return re(dn,He.props.accept)});else{var Gt=(0,Pe.Z)(qe.dataTransfer.files).filter(function(dn){return re(dn,He.props.accept)});Qt===!1&&(Gt=Gt.slice(0,1)),He.uploadFiles(Gt)}},He.uploadFiles=function(qe){var Qt=(0,Pe.Z)(qe),Gt=Qt.map(function(dn){return dn.uid=ee(),He.processFile(dn,Qt)});Promise.all(Gt).then(function(dn){var yn=He.props.onBatchStart;yn==null||yn(dn.map(function($n){var Ke=$n.origin,$a=$n.parsedFile;return{file:Ke,parsedFile:$a}})),dn.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 Qt(Gt,dn){var yn,$n,Ke,$a,ba,Da,aa,st,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,dn);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?st=aa:st=new File([aa],Gt.name,{type:Gt.type}),Bt=st,Bt.uid=Gt.uid,St.abrupt("return",{origin:Gt,data:Da,parsedFile:Bt,action:$a});case 35:case"end":return St.stop()}},Qt,null,[[3,9]])}));return function(Qt,Gt){return qe.apply(this,arguments)}}(),He.saveFileInput=function(qe){He.fileInput=qe},He}return(0,ue.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,Qt=ht.action,Gt=ht.parsedFile;if(this._isMounted){var dn=this.props,yn=dn.onStart,$n=dn.customRequest,Ke=dn.name,$a=dn.headers,ba=dn.withCredentials,Da=dn.method,aa=qe.uid,st=$n||b,Bt={action:Qt,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]=st(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,Qt=at.className,Gt=at.disabled,dn=at.id,yn=at.style,$n=at.multiple,Ke=at.accept,$a=at.capture,ba=at.children,Da=at.directory,aa=at.openFileDialogOnClick,st=at.onMouseEnter,Bt=at.onMouseLeave,Xt=(0,Ve.Z)(at,ce),St=Te()((ht={},(0,Fe.Z)(ht,qe,!0),(0,Fe.Z)(ht,"".concat(qe,"-disabled"),Gt),(0,Fe.Z)(ht,Qt,Qt),ht)),Pn=Da?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},vn=Gt?{}:{onClick:aa?this.onClick:function(){},onKeyDown:aa?this.onKeyDown:function(){},onMouseEnter:st,onMouseLeave:Bt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(ut,(0,Se.Z)({},vn,{className:St,role:"button",style:yn}),te.createElement("input",(0,Se.Z)({},(0,a.Z)(Xt,{aria:!0,data:!0}),{id:dn,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),Ge=De;function wt(){}var Ut=function(ve){(0,Oe.Z)(ze,ve);var Ue=(0,Me.Z)(ze);function ze(){var He;(0,Ce.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,ue.Z)(ze,[{key:"abort",value:function(ht){this.uploader.abort(ht)}},{key:"render",value:function(){return te.createElement(Ge,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),ze}(te.Component);Ut.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wt,onError:wt,onSuccess:wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var an=Ut,we=an,ke=oe(5663),We=oe(73935),dt=oe(53124),ft=oe(98866),Qe=oe(10110),tt=oe(24457),lt={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"},zt=lt,be=oe(74643),Ae=function(Ue,ze){return te.createElement(be.Z,(0,Se.Z)({},Ue,{ref:ze,icon:zt}))},it=te.forwardRef(Ae),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"},rt=nt,me=function(Ue,ze){return te.createElement(be.Z,(0,Se.Z)({},Ue,{ref:ze,icon:rt}))},gt=te.forwardRef(me),yt={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"},on=yt,Pt=function(Ue,ze){return te.createElement(be.Z,(0,Se.Z)({},Ue,{ref:ze,icon:on}))},Ne=te.forwardRef(Pt),xe=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 Jt(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]},At=ve=>ve.indexOf("image/")===0,Ot=ve=>{if(ve.type&&!ve.thumbUrl)return At(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)},Yt=200;function jn(ve){return new Promise(Ue=>{if(!ve.type||!At(ve.type)){Ue("");return}const ze=document.createElement("canvas");ze.width=Yt,ze.height=Yt,ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yt}px; height: ${Yt}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=Yt,Qt=Yt,Gt=0,dn=0;at>ut?(Qt=ut*(Yt/at),dn=-(Qt-qe)/2):(qe=at*(Yt/ut),Gt=-(qe-Qt)/2),He.drawImage(ht,Gt,dn,qe,Qt);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),ye=oe(99569),Re=oe(38703),ot=oe(83062),$t=te.forwardRef((ve,Ue)=>{let{prefixCls:ze,className:He,style:ht,locale:at,listType:ut,file:qe,items:Qt,progress:Gt,iconRender:dn,actionIconRender:yn,itemRender:$n,isImgUrl:Ke,showPreviewIcon:$a,showRemoveIcon:ba,showDownloadIcon:Da,previewIcon:aa,removeIcon:st,downloadIcon:Bt,onPreview:Xt,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=dn(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=Te()(`${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=Te()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Ke&&!Ke(qe)});Va=te.createElement("a",{className:Jn,onClick:no=>Xt(qe,no),href:qe.url||qe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const va=Te()(`${ze}-list-item`,`${ze}-list-item-${fa}`),io=typeof qe.linkProps=="string"?JSON.parse(qe.linkProps):qe.linkProps,po=ba?yn((typeof st=="function"?st(qe):st)||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:Te()(`${ze}-list-item-actions`,{picture:ut==="picture"})},yo,po),Ra=Te()(`${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=>Xt(qe,Qn)}),qe.name),Ka]:[te.createElement("span",{key:"view",className:Ra,onClick:Qn=>Xt(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=>Xt(qe,Qn),title:at.previewFile},typeof aa=="function"?aa(qe):aa||te.createElement(ye.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:Oa}=te.useContext(dt.E_),Ja=Oa(),La=te.createElement("div",{className:va},Va,fo,Fa,to&&te.createElement(xe.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Qn=>{let{className:Jn}=Qn;const no="percent"in qe?te.createElement(Re.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:Te()(`${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:Te()(`${ze}-list-item-container`,He),style:ht,ref:Ue},$n?$n(wa,qe,Qt,{download:St.bind(null,qe),preview:Xt.bind(null,qe),remove:Pn.bind(null,qe)}):wa)});const en=(ve,Ue)=>{const{listType:ze="text",previewFile:He=jn,onPreview:ht,onDownload:at,onRemove:ut,locale:qe,iconRender:Qt,isImageUrl:Gt=Ot,prefixCls:dn,items:yn=[],showPreviewIcon:$n=!0,showRemoveIcon:Ke=!0,showDownloadIcon:$a=!1,removeIcon:ba,previewIcon:Da,downloadIcon:aa,progress:st={size:[-1,2],showInfo:!1},appendAction:Bt,appendActionVisible:Xt=!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(Qt)return Qt(un,ze);const pa=un.status==="uploading",Fa=Gt&&Gt(un)?te.createElement(Ne,null):te.createElement(it,null);let Oa=pa?te.createElement(xt.Z,null):te.createElement(gt,null);return ze==="picture"?Oa=pa?te.createElement(xt.Z,null):Fa:(ze==="picture-card"||ze==="picture-circle")&&(Oa=pa?qe.uploading:Fa),Oa},xo=(un,pa,Fa,Oa)=>{const Ja={type:"text",size:"small",title:Oa,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(dt.E_),va=Va("upload",dn),io=Va(),po=Te()(`${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(xe.CSSMotionList,Object.assign({},Ra,{component:!1}),un=>{let{key:pa,file:Fa,className:Oa,style:Ja}=un;return te.createElement($t,{key:pa,locale:qe,prefixCls:va,className:Oa,style:Ja,file:Fa,items:yn,progress:st,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(xe.default,Object.assign({},Ra,{visible:Xt,forceRender:!0}),un=>{let{className:pa,style:Fa}=un;return(0,et.Tm)(Bt,Oa=>({className:Te()(Oa.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Oa.style)}))}))};var kt=te.forwardRef(en),Kt=oe(14747),bn=oe(33507),gn=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`,Qt=`${ut}-action`,Gt=Math.round(ht*at);return{[`${Ue}-wrapper`]:{[`${Ue}-list`]:Object.assign(Object.assign({},(0,Kt.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({},Kt.vS),{padding:`0 ${ve.paddingXS}px`,lineHeight:at,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[qe]:{[Qt]:{opacity:0},[`${Qt}${ze}-btn-sm`]:{height:Gt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Qt}:focus-visible,
|
|
&.picture ${Qt}
|
|
`]:{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 ${Qt}`]:{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},[Qt]:{opacity:1}}},[`${Ue}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},zn=oe(45930),Yn=oe(16932);const ua=new zn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ma=new zn.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({},Kt.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,Kt.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 Ee=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,Kt.Wf)(ve)),{[Ue]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ue}-select`]:{display:"inline-block"},[`${Ue}-disabled`]:{color:ze,cursor:"not-allowed"}})}};var pe=(0,gn.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),Ee(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(dn){try{Gt(He.next(dn))}catch(yn){ut(yn)}}function Qt(dn){try{Gt(He.throw(dn))}catch(yn){ut(yn)}}function Gt(dn){dn.done?at(dn.value):ht(dn.value).then(qe,Qt)}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:Qt,onChange:Gt,onDrop:dn,previewFile:yn,disabled:$n,locale:Ke,iconRender:$a,isImageUrl:ba,progress:Da,prefixCls:aa,className:st,type:Bt="select",children:Xt,style:St,itemRender:Pn,maxCount:vn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Io}=ve,xo=te.useContext(ft.Z),Va=$n!=null?$n:xo,[va,io]=(0,ke.Z)(He||[],{value:ze,postState:tn=>tn!=null?tn:[]}),[po,yo]=te.useState("drop"),Ka=te.useRef(null);te.useMemo(()=>{const tn=Date.now();(ze||[]).forEach((Fn,An)=>{!Fn.uid&&!Object.isFrozen(Fn)&&(Fn.uid=`__AUTO__${tn}_${An}__`)})},[ze]);const Ra=(tn,Fn,An)=>{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,We.flushSync)(()=>{io(En)});const Ba={file:tn,fileList:En};An&&(Ba.event=An),(!Wn||En.some(bo=>bo.uid===tn.uid))&&(0,We.flushSync)(()=>{Gt==null||Gt(Ba)})},fo=(tn,Fn)=>vt(void 0,void 0,void 0,function*(){const{beforeUpload:An,transformFile:En}=ve;let Wn=tn;if(An){const Ba=yield An(tn,Fn);if(Ba===!1)return!1;if(delete tn[Rt],Ba===Rt)return Object.defineProperty(tn,Rt,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Wn=Ba)}return En&&(Wn=yield En(Wn)),Wn}),un=tn=>{const Fn=tn.filter(Wn=>!Wn.file[Rt]);if(!Fn.length)return;const An=Fn.map(Wn=>Dt(Wn.file));let En=(0,Pe.Z)(va);An.forEach(Wn=>{En=Tt(Wn,En)}),An.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=(tn,Fn,An)=>{try{typeof tn=="string"&&(tn=JSON.parse(tn))}catch(Ba){}if(!Jt(Fn,va))return;const En=Dt(Fn);En.status="done",En.percent=100,En.response=tn,En.xhr=An;const Wn=Tt(En,va);Ra(En,Wn)},Fa=(tn,Fn)=>{if(!Jt(Fn,va))return;const An=Dt(Fn);An.status="uploading",An.percent=tn.percent;const En=Tt(An,va);Ra(An,En,tn)},Oa=(tn,Fn,An)=>{if(!Jt(An,va))return;const En=Dt(An);En.error=tn,En.response=Fn,En.status="error";const Wn=Tt(En,va);Ra(En,Wn)},Ja=tn=>{let Fn;Promise.resolve(typeof ht=="function"?ht(tn):ht).then(An=>{var En;if(An===!1)return;const Wn=ln(tn,va);Wn&&(Fn=Object.assign(Object.assign({},tn),{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=tn=>{yo(tn.type),tn.type==="drop"&&(dn==null||dn(tn))};te.useImperativeHandle(Ue,()=>({onBatchStart:un,onSuccess:pa,onProgress:Fa,onError:Oa,fileList:va,upload:Ka.current}));const{getPrefixCls:Wo,direction:wa,upload:Qn}=te.useContext(dt.E_),Jn=Wo("upload",aa),no=Object.assign(Object.assign({onBatchStart:un,onError:Oa,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,(!Xt||Va)&&delete no.id;const[Do,Qo]=pe(Jn),[Lr]=(0,Qe.Z)("Upload",tt.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Zt,previewIcon:Et,downloadIcon:Mt}=typeof at=="boolean"?{}:at,It=(tn,Fn)=>at?te.createElement(kt,{prefixCls:Jn,listType:ut,items:va,previewFile:yn,onPreview:qe,onDownload:Qt,onRemove:Ja,showRemoveIcon:!Va&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Zt,previewIcon:Et,downloadIcon:Mt,iconRender:$a,locale:Object.assign(Object.assign({},Lr),Ke),isImageUrl:ba,progress:Da,appendAction:tn,appendActionVisible:Fn,itemRender:Pn,disabled:Va}):tn,Gn=Te()(`${Jn}-wrapper`,st,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 tn=Te()(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:tn,style:Sa,onDrop:La,onDragOver:La,onDragLeave:La},te.createElement(we,Object.assign({},no,{ref:Ka,className:`${Jn}-btn`}),te.createElement("div",{className:`${Jn}-drag-container`},Xt))),It()))}const ka=Te()(Jn,`${Jn}-select`,{[`${Jn}-disabled`]:Va}),xa=(tn=>te.createElement("div",{className:ka,style:tn},te.createElement(we,Object.assign({},no,{ref:Ka}))))(Xt?void 0:{display:"none"});return Do(ut==="picture-card"||ut==="picture-circle"?te.createElement("span",{className:Gn},It(xa,!!Xt)):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 ct=Sn;ct.Dragger=Ia,ct.LIST_IGNORE=Rt;var Cn=ct},62661:function(Ie,mt){"use strict";var oe;var te=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Ye=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Ce=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Oe=Symbol.for("react.server_context"),Me=Symbol.for("react.forward_ref"),Fe=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 Se:case Te:case Fe:case Ve:return E;default:switch(E=E&&E.$$typeof,E){case Oe:case ue:case Me:case Ze:case je:case Ce:return E;default:return b}}case Pe:return b}}}oe=ue,oe=Ce,oe=te,oe=Me,oe=Ye,oe=Ze,oe=je,oe=Pe,oe=Se,oe=Te,oe=Fe,oe=Ve,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ue},oe=function(E){return y(E)===Ce},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return y(E)===Me},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)===Se},oe=function(E){return y(E)===Te},oe=function(E){return y(E)===Fe},oe=function(E){return y(E)===Ve},oe=function(E){return typeof E=="string"||typeof E=="function"||E===Ye||E===Se||E===Te||E===Fe||E===Ve||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Ze||E.$$typeof===je||E.$$typeof===Ce||E.$$typeof===ue||E.$$typeof===Me||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(Ie,mt,oe){"use strict";Ie.exports=oe(62661)},72665:function(Ie,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,Te=te?Symbol.for("react.fragment"):60107,Se=te?Symbol.for("react.strict_mode"):60108,Ce=te?Symbol.for("react.profiler"):60114,ue=te?Symbol.for("react.provider"):60109,Oe=te?Symbol.for("react.context"):60110,Me=te?Symbol.for("react.async_mode"):60111,Fe=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 Me:case Fe:case Te:case Ce:case Se:case je:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Oe:case Ve:case a:case ae:case ue:return ne;default:return re}}case Ye:return re}}}function ee(ne){return z(ne)===Fe}oe=Me,oe=Fe,oe=Oe,oe=ue,oe=Pe,oe=Ve,oe=Te,oe=a,oe=ae,oe=Ye,oe=Ce,oe=Se,oe=je,oe=function(ne){return ee(ne)||z(ne)===Me},oe=ee,oe=function(ne){return z(ne)===Oe},oe=function(ne){return z(ne)===ue},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)===Te},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)===Ce},oe=function(ne){return z(ne)===Se},oe=function(ne){return z(ne)===je},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Te||ne===Fe||ne===Ce||ne===Se||ne===je||ne===Ze||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ue||ne.$$typeof===Oe||ne.$$typeof===Ve||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(Ie,mt,oe){"use strict";Ie.exports=oe(72665)},64217:function(Ie,mt,oe){"use strict";oe.d(mt,{Z:function(){return Oe}});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`,Te="".concat(Pe," ").concat(Ye).split(/[\s\n]+/),Se="aria-",Ce="data-";function ue(Me,Fe){return Me.indexOf(Fe)===0}function Oe(Me){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve;Fe===!1?Ve={aria:!0,data:!0,attr:!0}:Fe===!0?Ve={aria:!0}:Ve=(0,te.Z)({},Fe);var je={};return Object.keys(Me).forEach(function(Ze){(Ve.aria&&(Ze==="role"||ue(Ze,Se))||Ve.data&&ue(Ze,Ce)||Ve.attr&&Te.includes(Ze))&&(je[Ze]=Me[Ze])}),je}}}]);
|