You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Forums__New__index.ea68c...

165 lines
451 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4264],{84249:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return ce}});var te=oe(87462),pe=oe(67294),qe={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"},Xe=qe,Se=oe(74643),Ke=function(Me,Ee){return pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Xe}))},ce=pe.forwardRef(Ke)},90674:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return ce}});var te=oe(87462),pe=oe(67294),qe={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"},Xe=qe,Se=oe(74643),Ke=function(Me,Ee){return pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Xe}))},ce=pe.forwardRef(Ke)},33859:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return ce}});var te=oe(87462),pe=oe(67294),qe={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"},Xe=qe,Se=oe(74643),Ke=function(Me,Ee){return pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Xe}))},ce=pe.forwardRef(Ke)},22751:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return ce}});var te=oe(87462),pe=oe(67294),qe={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"},Xe=qe,Se=oe(74643),Ke=function(Me,Ee){return pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Xe}))},ce=pe.forwardRef(Ke)},91034:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return ce}});var te=oe(87462),pe=oe(67294),qe={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"},Xe=qe,Se=oe(74643),Ke=function(Me,Ee){return pe.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Xe}))},ce=pe.forwardRef(Ke)},71736:function(Ge,St){"use strict";St.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 Ge(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(Ge.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(Ge.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(Ge.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(Ge.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 Ge))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 St=[];function oe(ae,a){var y=St.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=St.pop();return ae===void 0?new go.Point:ae}function pe(ae){St.push(ae)}function qe(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ge=b-z,de=NaN,Pe=NaN;if(re===0)if(ge===0)ae===y&&(de=ae,Pe=a);else{var me=(x-ee)/ge,ke=x-me*b;de=ae,Pe=me*de+ke}else if(ge===0){var Ae=(a-E)/re,yt=a-Ae*ae;de=b,Pe=Ae*de+yt}else{var Ae=(a-E)/re,me=(x-ee)/ge,yt=a-Ae*ae,ke=x-me*b;de=(ke-yt)/(Ae-me),Pe=Ae*de+yt}return ne.x=de,ne.y=Pe,ne}function Xe(ae,a,y,E,b,x,z,ee,ne,re,ge,de,Pe,me){var ke=1-ne,Ae=ne,yt=ae*ke+y*Ae,Jt=a*ke+E*Ae,sn=y*ke+b*Ae,Ne=E*ke+x*Ae,dt=b*ke+z*Ae,ut=x*ke+ee*Ae,st=yt*ke+sn*Ae,ct=Jt*ke+Ne*Ae,lt=sn*ke+dt*Ae,rt=Ne*ke+ut*Ae,mt=st*ke+lt*Ae,Sn=ct*ke+rt*Ae;re.x=yt,re.y=Jt,ge.x=st,ge.y=ct,de.x=mt,de.y=Sn,Pe.x=lt,Pe.y=rt,me.x=dt,me.y=ut}var Se=new go.Spot(.156,.156),Ke=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("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*ce,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=Ke,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,ce*a,0,a,(1-ce)*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,ce*y,(1-ce)*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,ce*y,ce*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-ce)*a,0,0,(1-ce)*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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 De=[];function Me(){var ae=De.pop();return ae===void 0?[]:ae}function Ee(ae){ae.length=0,De.push(ae)}function Ue(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 $e(ae){var a=Ie(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 Ee(a),y}function Ie(ae){for(var a=Ue(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]=qe(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],Ee(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ue(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()),Ee(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=Ue(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()),Ee(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=Ue(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()),Ee(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=Ue(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()),Ee(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=Ue(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()),Ee(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=Ue(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()),Ee(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=Ue(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()),Ee(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=Ie(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()),Ee(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=Ie(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()),Ee(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=Ie(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()),Ee(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=Ie(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()),Ee(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=Ie(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()),Ee(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=Ie(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()),Ee(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=$e(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(),Ee(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=$e(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(),Ee(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=$e(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(),Ee(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=$e(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(),Ee(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=$e(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(),Ee(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=$e(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(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("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 Ge("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=Ke,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 Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("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=ce/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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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,ce*a,0,a,(.5-ce/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ce/2)*y,ce*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*ce;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*ce,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*ce,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=ce*.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=ce*.4;var re=te(),ge=te(),de=te(),Pe=te();Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,Pe,Pe);var me=te(),ke=te(),Ae=te();Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Pe,Pe,Ae,me,ke);var yt=te(),Jt=te(),sn=te();Xe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,yt,Jt,sn,Pe,Pe);var Ne=te(),dt=te(),ut=te();return Xe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Pe,Pe,ut,Ne,dt),ne.add(new go.PathSegment(go.PathSegment.Move,ut.x*a,ut.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Ne.x*a,Ne.y*y,dt.x*a,dt.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,ut.x*a,ut.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,sn.x*a,sn.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,me.x*a,me.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,sn.x*a,sn.y*y,yt.x*a,yt.y*y,Jt.x*a,Jt.y*y).close()),pe(re),pe(ge),pe(de),pe(Pe),pe(me),pe(ke),pe(Ae),pe(yt),pe(Jt),pe(sn),pe(Ne),pe(dt),pe(ut),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 Ge("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=ce*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),Pe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),Pe.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 me=oe(re.x,re.y);Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var ke=oe(re.x,re.y);Pe.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ke.x*.1+.9)*a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ke.x*.1+.9)*a,(ke.y*.1+.05*.9)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Pe.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=ce*.35;var Ae=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var yt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(yt),pe(ne),pe(re),pe(ge),pe(de),pe(me),pe(ke),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*ce,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*ce;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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("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=qe(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 Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("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=qe(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 Ge("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=qe(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=qe(.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 Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("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=qe(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(de.x,de.y),de=qe(.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 Ge("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=qe(.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 Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("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=qe(.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 Ge("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=qe(.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 Ge("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=qe(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 Ge("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=qe(.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 Ge("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=qe(.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 Ge("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=ce*.5,x=ce*.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=ce*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ce*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-ce*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ce*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-ce*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ce*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=ce*.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,ce*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ce*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-ce*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ce*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-ce*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-ce*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=ce*.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-ce*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ce*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ce*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ce*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+ce*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ce*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=ce*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ce*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ce*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ce*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ce*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-ce*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-ce*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=ce*b,ee=ce*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,Pe=ce*de;ne=.05,re=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,re*y,(ne+Pe)*a,(re-de)*y,(ne+de)*a,(re-Pe)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,Pe=ce*de,ne=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Pe)*y,(ne+Pe)*a,(re-de)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Pe)*a,(re-de)*y,(ne-de)*a,(re-Pe)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,Pe=ce*de,ne=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Pe)*y,(ne+Pe)*a,(re-de)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Pe)*a,(re-de)*y,(ne-de)*a,(re-Pe)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,Pe=ce*de,ne=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Pe)*y,(ne+Pe)*a,(re-de)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Pe)*a,(re-de)*y,(ne-de)*a,(re-Pe)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,Pe=ce*de,ne=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne-de)*a,(re-Pe)*y,(ne-Pe)*a,(re-de)*y)),me.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 Ge("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=ce*.5,x=ce*.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=ce*.5,x=ce*.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=ce*.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=ce*.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=ce*.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=ce*.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=ce*.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=ce*.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=ce*.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=ce*.5,x=ce*.4,z=ce*.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=ce*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=ce*.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=ce*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=ce*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=ce*.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=ce*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=ce*.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=ce*.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=ce*.8,ee=.8,ne=0,re=.5,ge=(b-a)/2,de=(x-y)/2,Pe=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(Pe),Pe.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)),Pe.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)),Pe.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)),Pe.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=ce*.4,ee=.4,ne=.2,re=.5;var me=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(me),me.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)),me.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)),me.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)),me.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=ce*.2,ee=.2,ne=.5,re=.5;var ke=new go.PathFigure((ne-ee)*a+ge,re*y+de,!0);E.add(ke),ke.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)),ke.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)),ke.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)),ke.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=ce*.4,ee=.4,ne=.8,re=.5;var Ae=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);E.add(Ae),Ae.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)),Ae.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)),Ae.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)),Ae.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=ce*.8,ee=.8,ne=1,re=.5;var yt=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);return E.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var Pe=oe(re.x,re.y),me=new go.PathFigure(re.x*a,re.y*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Xe(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),me.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=ce*.3,x=.3,Xe(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),me.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de),me.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 me=new go.PathFigure(.45*a,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),pe(ne),pe(re),pe(ge),pe(de),pe(Pe),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*ce,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,Pe=.5,me=0,ke=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+x)*a,(me+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ke.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)),ke.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)),ke.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ke.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ke.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,Pe=z,me=z,ke=ge*Pe,Ae=ge*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Pe)*a,ne*y,(ee-(ke+Pe)/2)*a,(ne+(me+Ae)/2)*y,(ee-Pe)*a,(ne+Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-me)*y,(ee-Pe)*a,(ne-Ae)*y,(ee-ke)*a,(ne-me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Pe)*a,ne*y,(ee+ke)*a,(ne-me)*y,(ee+Pe)*a,(ne-Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Pe)*a,(ne+Ae)*y,(ee+(ke+Pe)/2)*a,(ne+(me+Ae)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var yt=new go.PathFigure(.2*a,y,!1);E.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Jt=new go.PathFigure(.8*a,y,!1);return E.add(Jt),Jt.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=ce*.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=ce*.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=ce*.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=ce*.1,ge=.1,de=.9,Pe=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),Pe.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=ce*.1,ge=.4,de=.9;var me=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),me.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=ce*.05,Pe=.175,me=.95,ee=new go.PathFigure((Pe-ge)*a,me*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me-ge)*y,(Pe-ge)*a,(me-de)*y,(Pe-de)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,me*y,(Pe+de)*a,(me-ge)*y,(Pe+ge)*a,(me-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me+ge)*y,(Pe+ge)*a,(me+de)*y,(Pe+de)*a,(me+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,me*y,(Pe-de)*a,(me+ge)*y,(Pe-ge)*a,(me+de)*y));var ge=.05,de=ce*.05,Pe=.375,me=.95,ne=new go.PathFigure((Pe-ge)*a,me*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me-ge)*y,(Pe-ge)*a,(me-de)*y,(Pe-de)*a,(me-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,me*y,(Pe+de)*a,(me-ge)*y,(Pe+ge)*a,(me-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me+ge)*y,(Pe+ge)*a,(me+de)*y,(Pe+de)*a,(me+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,me*y,(Pe-de)*a,(me+ge)*y,(Pe-ge)*a,(me+de)*y));var ge=.05,de=ce*.05,Pe=.625,me=.95,re=new go.PathFigure((Pe-ge)*a,me*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me-ge)*y,(Pe-ge)*a,(me-de)*y,(Pe-de)*a,(me-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,me*y,(Pe+de)*a,(me-ge)*y,(Pe+ge)*a,(me-de)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me+ge)*y,(Pe+ge)*a,(me+de)*y,(Pe+de)*a,(me+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,me*y,(Pe-de)*a,(me+ge)*y,(Pe-ge)*a,(me+de)*y));var ge=.05,de=ce*.05,Pe=.825,me=.95,ke=new go.PathFigure((Pe-ge)*a,me*y,!0);E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me-ge)*y,(Pe-ge)*a,(me-de)*y,(Pe-de)*a,(me-ge)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,me*y,(Pe+de)*a,(me-ge)*y,(Pe+ge)*a,(me-de)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(me+ge)*y,(Pe+ge)*a,(me+de)*y,(Pe+de)*a,(me+ge)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,me*y,(Pe-de)*a,(me+ge)*y,(Pe-ge)*a,(me+de)*y).close());var Ae=new go.PathFigure(0,y,!1);return E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=ce*.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=ce*.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=ce*.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=ce*.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=ce*.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*ce,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*ce,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*ce,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 Ge={},St="5.0",oe={},te=null,pe=!1,qe=!1,Xe=null,Se=!1,Ke=null,ce=null,De=0;De<arguments.length;De++){var Me=arguments[De];if(Me!==null)switch(typeof Me){case"number":St=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?St=Me:Xe=Me;break;case"object":typeof Me.is3D!="undefined"?te=Me:oe=Me;break;case"boolean":pe=Me,qe=!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&&!qe&&(pe=!0)),Xe!==null&&oe.id===void 0&&(oe.id=Xe);var Ee="",Ue="",$e=!1,Ie=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(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};Ge.setHTML5Codebase=function(Fe,je){ce=Fe,rt(Fe,je)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(Fe,je){var at=parseFloat(Fe);if(at!==NaN&&at<5){console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead.");return}Ke=Fe,lt(Fe,je)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(Fe){z=Fe},Ge.setGiacJSURL=function(Fe){},Ge.setJNLPFile=function(Fe){Ee=Fe},Ge.setJNLPBaseDir=function(Fe){},Ge.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var je="auto",at=oe.id,Nt,et=!1,Pt=0;Pt<arguments.length;Pt++){var ue=arguments[Pt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?je=ue:at=arguments[Pt]):typeof ue=="boolean"?et=ue:ue instanceof HTMLElement&&(Nt=ue)}ft();function ft(){if(!Se){setTimeout(ft,200);return}je=st(je);var Yt=Nt||document.getElementById(at);if(!Yt){console.log("possibly bug on ajax loading? ");return}if(Ge.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)&&je==="html5"&&(delete oe.width,delete oe.height),Ie=je,je==="screenshot")Jt(Yt,oe);else{var bn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?bn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(bn=(!re()||Fe())&&ge()),bn?(Ie="screenshot",Ne(Yt,oe,et,je)):yt(Yt,oe,et)}}};function re(){try{return window.self!==window.top}catch(Fe){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return te},Ge.isJavaInstalled=function(){return!1};var de=function(Fe){var je=function(Pt){var ue=JSON.parse(Pt),ft=function(Ft){return Ft.type=="G"||Ft.type=="E"},Yt=ue.elements?ue.elements.filter(ft)[0]:ue;if(!Yt||!Yt.url){at();return}oe.fileName=Yt.url,Pe(Yt.settings||{}),te.is3D=!0;var bn="https://www.geogebra.org/images/";Ge.setPreviewImage(E||Yt.previewUrl,bn+"GeoGebra_loading.png",bn+"applet_play.png"),Fe()},at=function(){oe.onError&&oe.onError(),mt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+oe.material_id+"?scope=basic";me("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(et),je,at)};function Pe(Fe){var je=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(at){Fe[at]=!!Fe[at]}),je.forEach(function(at){oe[at]===void 0&&Fe[at]!==void 0&&(oe[at]=Fe[at])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(Fe,je,at){var Nt=new XMLHttpRequest;Nt.open("GET",Fe),Nt.onload=function(){je(Nt.responseText)},Nt.onerror=at,Nt.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Ie},Ge.setPreviewImage=function(Fe,je,at){E=Fe,b=je,x=at},Ge.removeExistingApplet=function(Fe,je){var at;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),Ie=null;var Nt=null;for(at=0;at<Fe.childNodes.length;at++){var et=Fe.childNodes[at],Pt=et.className;Pt==="applet_screenshot"?je?(et.style.display="block",Ie="screenshot"):et.style.display="none":Pt!=="applet_scaler prerender"&&(Fe.removeChild(et),Nt=Pt&&Pt.indexOf("appletParameters")!=-1?et.id:null,at--)}var ue=oe.id!==void 0?oe.id:Nt,ft=window[ue];ft&&typeof ft.getBase64=="function"&&(ft.remove(),window[ue]=null)},Ge.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=Ge.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var Fe=Ge.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},Ge.stopAnimation=function(){var Fe=Ge.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var Fe=oe.id!==void 0?oe.id:"ggbApplet";return window[Fe]},Ge.resize=function(){};var ke=function(Fe,je,at){var Nt=document.createElement("param");Nt.setAttribute("name",je),Nt.setAttribute("value",at),Fe.appendChild(Nt)},Ae=function(Fe){return Fe&&Fe!=="false"},yt=function(Fe,je,at){ne(ae)<=4.2&&(at=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var Pt=je.width,ue=je.height;if(je.disableAutoScale=je.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():je.disableAutoScale,je.width!==void 0)if(ne(ae)<=4.4)Ae(je.showToolBar)&&(je.height-=7),Ae(je.showAlgebraInput)&&(je.height-=37),je.width<605&&Ae(je.showToolBar)&&(je.width=605,Pt=605);else{var ft=100;(Ae(je.showToolBar)||Ae(je.showMenuBar))&&(je.hasOwnProperty("customToolBar")&&(je.customToolbar=je.customToolBar),ft=Ae(je.showMenuBar)?245:155),Pt<ft&&(je.width=ft,Pt=ft)}et.style.border="none",et.style.display="inline-block";for(var Yt in je)je.hasOwnProperty(Yt)&&Yt!=="appletOnLoad"&&et.setAttribute("data-param-"+Yt,je[Yt]);z&&et.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(Fe,je)},window.addEventListener("resize",function(ln){Ge.resize()});var bn=typeof je.appletOnLoad=="function"?je.appletOnLoad:function(){};if(!at&&je.width!==void 0){je.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Ft=Fe.querySelector(".applet_scaler.prerender"),Re=Ft!==null;if(Re)var xe=Ft.querySelector(".ggb_preview");else{var xe=ut(Pt,ue,je.borderColor,!1);Ft=document.createElement("div"),Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.style.width=Pt+"px",Ft.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),ne(ae)>=5?(je.appletOnLoad=function(ln){var Tt=Fe.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ft),window.GGBT_wsf_view&&$(window).trigger("resize"),bn(ln)},Re||Ft.appendChild(xe)):et.appendChild(xe),Ft.appendChild(et),Re||Fe.appendChild(Ft),setTimeout(function(){Ge.resize()},1)}else{var be=document.createElement("div");be.className="applet_scaler",be.style.position="relative",be.style.display="block",be.appendChild(et),Fe.appendChild(be),je.appletOnLoad=function(ln){Ge.resize(),bn(ln)}}function Qe(ln,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ln,Tt.appletOnLoad):renderGGBElement(ln),mt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function Ve(ln,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ln,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(En){Qe(En.article,En.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(ln.className+=" geogebraweb")):Qe(ln,Tt)}if(Nt){scriptLoadStarted=!0;for(var pt=0;pt<et.childNodes.length;pt++){var Mt=et.childNodes[pt].tagName;Mt==="TABLE"&&(et.removeChild(et.childNodes[pt]),pt--)}if(ggbHTML5LoadedScript!==null){var jt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');jt!=null&&jt.parentNode.removeChild(jt)}var en=document.createElement("script"),gn=function(){Ve(et,je)};en.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=en.src,mt("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",je),!ce&&(!Ke||Ke=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),gn()):Ue.requirejs?__webpack_require__.e(12).then(function(){var ln=[__webpack_require__(12)];gn.apply(null,ln)}.bind(this)).catch(__webpack_require__.oe):(en.onload=gn,Fe.appendChild(en))}else Ve(et,je);je.height=ue,je.width=Pt},Jt=function(Fe,je,at){var Nt=ut(je.width,je.height,je.borderColor,at),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=je.width+"px",et.style.height=je.height+"px",et.className="applet_screenshot applet_scaler"+(at?" applet_screenshot_play":""),et.appendChild(Nt);var Pt=GGBAppletUtils.getScale(je,Fe,at);at?(Fe.appendChild(dt()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),Fe.appendChild(et),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(et,Pt),et.style.width=je.width+"px",et.style.height=je.height+"px",et.parentNode.style.width=je.width*Pt+"px",et.parentNode.style.height=je.height*Pt+"px"),Ge.resize=function(){sn(Fe,Nt,et,at)},window.addEventListener("resize",function(ue){Ge.resize()}),Ge.resize()};function sn(Fe,je,at,Nt){if(Fe.contains(je)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var et=GGBAppletUtils.getScale(oe,Fe,Nt);at.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(at,et),at.parentNode.style.width=oe.width*et+"px",at.parentNode.style.height=oe.height*et+"px"):(GGBAppletUtils.scaleElement(at,1),at.parentNode.style.width=oe.width+"px",at.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(Fe,je){je.appendChild(Fe)};var Ne=function(Fe,je,at,Nt){Jt(Fe,je,!0);for(var et=function(){var ft=[];for(ue=0;ue<Fe.childNodes.length;ue++)ft.push(Fe.childNodes[ue]);if(window.GGBT_wsf_view){var Yt=window.GGBT_wsf_view.renderFullScreen(Fe,je.id),bn=document.getElementById("fullscreencontainer"),Ft=jQuery(Fe).find(".fullscreencontent");Ft.length>0?(Yt.remove(),Ft.attr("id","fullscreencontent").show(),jQuery(bn).append(Ft),window.dispatchEvent(new Event("resize"))):yt(Yt,je,!1),window.GGBT_wsf_view.launchFullScreen(bn)}else Ie=Nt,yt(Fe,je,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<ft.length;ue++)Fe.removeChild(ft[ue])},Pt=Fe.getElementsByClassName("ggb_preview_play"),ue=0;ue<Pt.length;ue++)Pt[ue].addEventListener("click",et,!1),Pt[ue].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},dt=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var je='.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");}',at=document.createElement("style");at.styleSheet?at.styleSheet.cssText=je:at.appendChild(document.createTextNode(je)),document.getElementsByTagName("head")[0].appendChild(at)}return Fe},ut=function(Fe,je,at,Nt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=Fe-2+"px",et.style.height=je-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var Pt="lightgrey";at!==void 0&&(at==="none"?Pt="transparent":Pt=at),et.style.border="1px solid "+Pt;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,b!==null){var ft,Yt,bn;if(!Nt){ft=document.createElement("img"),ft.style.position="absolute",ft.style.zIndex="1001",ft.style.opacity=1,ue.style.opacity=.3,Yt=360,Yt>Fe/4*3&&(Yt=Fe/4*3),bn=Yt/5.8,ft.setAttribute("src",b),ft.setAttribute("width",Yt),ft.setAttribute("height",bn);var Ft=(Fe-Yt)/2,Re=(je-bn)/2;ft.style.left=Ft+"px",ft.style.top=Re+"px",et.appendChild(ft)}}return et.appendChild(ue),et},st=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},ct=["web","webSimple","web3d","tablet","tablet3d","phone"],lt=function(Fe,je){if(ae=Fe,je){rt(ae,!0);return}var at=!pe;if(at){var Nt=ne(ae);!isNaN(Nt)&&Nt<4.4&&(at=!1)}var et,Pt;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var ue=ae.indexOf("//");ue>0?Pt=ae:ue===0?Pt=et+ae:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var ft in ct)if(ae.slice(ct[ft].length*-1)===ct[ft]||ae.slice((ct[ft].length+1)*-1)===ct[ft]+"/"){rt(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&at&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ae(oe.showToolBar)&&!Ae(oe.showMenuBar)&&!Ae(oe.showAlgebraInput)&&!Ae(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",rt(Pt,!1)},rt=function(Fe,je){if(Fe.requirejs){Ue=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),Ue=Fe,je===null&&(je=Fe.indexOf("http")===-1),$e=je,a="web.nocache.js",y=!1;var at=Ue.split("/");at.length>1&&(!je&&at[at.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ct.indexOf(at[at.length-2])>=0&&(a=at[at.length-2]+".nocache.js")),at=Fe.split("/"),ae=at[at.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 Nt=parseFloat(ae);Nt!==NaN&&Nt<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),lt("5.0",je))},mt=function(Fe,je){window.console&&window.console.log&&(!je||typeof je.showLogging=="undefined"||je.showLogging&&je.showLogging!=="false")&&console.log(Fe)};oe.material_id!==void 0?de(Sn):Sn();function Sn(){var Fe=St;Ke!==null?Fe=Ke:parseFloat(Fe)<5&&(Fe="5.0"),lt(Fe,!1),ce!==null&&rt(ce,$e),Se=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function St(Se,Ke){Ke!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ke+","+Ke+")",Se.style.webkitTransform="scale("+Ke+","+Ke+")",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,Ke,ce,De,Me,Ee){var Ue=null;if(Ee!=null&&Ee!="")for(var $e=Se.parentNode;$e!=null;)if((" "+$e.className+" ").indexOf(" "+Ee+" ")>-1){Ue=$e;break}else $e=$e.parentNode;var Ie=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ue)Ie=Ue.offsetWidth,ae=Math.max(De?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Ie-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&&((ce===void 0||!ce)&&Ke>0&&Ke+y<Ie?Ie=Ke:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(ae-=x)),{width:Ie,height:ae}}function te(Se,Ke,ce,De,Me){if(Se.isScreenshoGenerator)return 1;var Ee=De!==void 0&&De,Ue=Se.noScaleMargin!=null&&Se.noScaleMargin,$e=function(ee){return ee&&ee!=="false"},Ie=$e(Se.autoHeight),ae=oe(Ke,Se.width,ce,Ie,Ee&&window.GGBT_wsf_view||Ue,Me),a=parseInt(ae.width),y=Se.width,E=Se.height;if(y===void 0){var b=Ke.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ee?1:ae.height/E;return ce!==void 0&&!ce&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function pe(Se,Ke,ce){var De=1,Me,Ee=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ee=Se.allowUpscale),Se.hasOwnProperty("scale")&&(De=parseFloat(Se.scale),(isNaN(De)||De===null||De===0)&&(De=1),De>1&&(Ee=!0)),Ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Me=te(Se,Ke,Ee,ce,Se.scaleContainerClass);else return De;return Ee&&(!Se.hasOwnProperty("scale")||De===1)?Me:Math.min(De,Me)}function qe(Se){var Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),De=Se.getBoundingClientRect(),Me=(Ke-De.width)/2,Ee=(ce-De.height)/2;Ee<0&&(Ee=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=Ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee<40?Se.style.top="40px":Se.style.top=Ee+"px",Se.style.left=Me+"px")}function Xe(Se,Ke){var ce=Se.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ke.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var De=pe(Ke,Se);Ge()&&ce.setAttribute("data-param-scale",De);for(var Me=null,Ee=0;Ee<Se.childNodes.length;Ee++)if(Se.childNodes[Ee].className!==void 0&&Se.childNodes[Ee].className.match(/^applet_scaler/)){Me=Se.childNodes[Ee];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var Ue=Ke.id!==void 0?Ke.id:"ggbApplet",$e=window[Ue];($e==null||!$e.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(De)&&De!==1?(Me.parentNode.style.width=Ke.width*De+"px",Me.parentNode.style.height=Ke.height*De+"px",St(Me,De)):(St(Me,1),Me.parentNode.style.width=Ke.width+"px",Me.parentNode.style.height=Ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&qe(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:Ge,positionCenter:qe,getScale:pe,scaleElement:St}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,St){}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(Ge){var St=s[L].bindings;s[L].bindings=function(){for(var oe=St?St():{},te=Ge[webModule.__softPermutationId],pe=O;pe<te.length;pe++){var qe=te[pe];oe[qe[O]]=qe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var St=document.compatMode==U?V:W;t.write(St+X),t.close()}}}function w(Ge){function St(te){function pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var qe=pe();if(qe){te();return}function Xe(){if(!qe){if(!pe())return;qe=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var Se=setInterval(function(){Xe()},$)}function oe(te){var pe=u(),qe=pe.body,Xe=pe.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=te,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),qe.appendChild(Xe)}St(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var St=u(),oe=St.body,te=St.createElement(_);te.language=ab,te.text=Ge,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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var St=c[Ge];return St==null?null:St},r=d,webModule.__errFn=e}function B(){function Ge(Se){var Ke=Se.lastIndexOf(rb);Ke==-1&&(Ke=Se.length);var ce=Se.indexOf(sb);ce==-1&&(ce=Se.length);var De=Se.lastIndexOf(tb,Math.min(ce,Ke));return De>=O?Se.substring(O,De+P):W}function St(Se){if(!Se.match(/^\w+:\/\//)){var Ke=o.createElement(ub);Ke.src=Se+vb,Se=Ge(Ke.src)}return Se}function oe(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function te(){for(var Se=o.getElementsByTagName(_),Ke=O;Ke<Se.length;++Ke)if(Se[Ke].src.indexOf(xb)!=-1)return Ge(Se[Ke].src);return W}function pe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function qe(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Xe=oe();return Xe==W&&(Xe=te()),Xe==W&&(Xe=pe()),Xe==W&&qe()&&(Xe=Ge(o.location.href)),Xe=St(Xe),Xe}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],St=O,oe=[],te=[];function pe(Se){var Ke=te[Se](),ce=oe[Se];if(Ke in ce)return Ke;var De=[];for(var Me in ce)De[ce[Me]]=Me;throw r&&r(Se,De,Ke),null}if(__gwt_isKnownPropertyValue=function(Se,Ke){return Ke in oe[Se]},webModule.__getPropMap=function(){var Se={};for(var Ke in oe)oe.hasOwnProperty(Ke)&&(Se[Ke]=pe(Ke));return Se},webModule.__computePropValue=pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var qe;try{qe=Cb;var Xe=qe.indexOf(Db);Xe!=-1&&(St=parseInt(qe.substring(Xe+P),$),qe=qe.substring(O,Xe))}catch(Se){}return webModule.__softPermutationId=St,C(qe+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(Ge,St,oe){"use strict";oe.d(St,{Ax:function(){return Xe},Ds:function(){return Se},KI:function(){return ce},SI:function(){return qe},f1:function(){return pe}});var te=oe(11320);function pe(De){let Me=!0;if(De.length>0){for(let Ee=0;Ee<De.length;Ee++)if(De[Ee].compile_success==0||!De[Ee].compile_success){Me=!1;break}}else Me=!1;return Me}function qe(De,Me=""){let Ee=[];for(let Ue=0;Ue<De.length;Ue++){let $e=De[Ue],Ie=Me?`${Me}/${$e.name}`:`${$e.name}`;Ee.push({title:$e.name,type:$e.type,isLeaf:$e.type!=="tree",key:Ie})}return Ee}function Xe(De,Me,Ee){for(let Ue=0;Ue<De.length;Ue++){let $e=De[Ue];if($e.key===Me){$e.children=Ee;break}$e.children&&Xe($e.children,Me,Ee)}return De}function Se(De,Me,Ee){let Ue;return function(){let $e=this,Ie=arguments,ae=function(){Ue=null,Ee||De.apply($e,Ie)},a=Ee&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,Me),a&&De.apply($e,Ie)}}const Ke=!0,ce=te.Z.API_SERVER},63205:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return Ue}});var te=oe(67294),pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},qe=oe(94184),Xe=oe.n(qe),Se=oe(57953),Ke=oe(15979),ce=oe(33170),De=oe(28706),Me=($e,Ie,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($e,Ie)).next())}),Ue=({data:$e,className:Ie,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),[Pe,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),$e!=null&&$e.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",$e!=null&&$e.src&&ke()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[$e==null?void 0:$e.visible]);const ke=()=>Me(void 0,null,function*(){de(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ne=yield(0,De.ZJ)($e==null?void 0:$e.src);z.current.src="",z.current.src=Ne,z.current.onload=function(){sn()},de(!1),me("")}),Ae=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},yt=Ne=>Me(void 0,null,function*(){de(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const dt=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:$e.title,file:Ne.dataUrl}});dt!=null&&dt.id&&!x?(yield(0,ce.ZP)(`/api/attachments/${$e.id}/add_subitem.json`,{method:"post",body:{subitem_id:dt==null?void 0:dt.id,settings:JSON.stringify(Ne.state)}})).status===0&&E():dt!=null&&dt.id&&E(dt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),me("")}),Jt=()=>{const Ne=document.querySelector('a[href="https://markerjs.com/"]');Ne&&Ne.parentNode&&(Ne.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(ut=>{const st=document.querySelector(ut.name);st&&st.setAttribute("title",ut.title)})},sn=()=>{ee.current=new Ke.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",yt),ee.current.addEventListener("beforeclose",Ae),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),$e!=null&&$e.snapshotData&&ee.current.restoreState($e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Jt()},300)};return te.createElement(te.Fragment,null,($e==null?void 0:$e.visible)&&te.createElement(Se.Z,{spinning:ge,tip:Pe,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Xe()(pe.imageDimensions,Ie,ae?pe.fullWidth:""),style:a},te.createElement("img",{className:pe.img,ref:z}))))}},36527:function(Ge,St,oe){"use strict";var te=oe(67294),pe=oe(71230),qe=oe(15746),Xe=oe(66368),Se=oe(71577),Ke=oe(85725),ce=oe(71736),De=oe(84279),Me=oe(67294);const Ee=(0,te.forwardRef)(({callback:Ue,showSaveButton:$e,value:Ie=""},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:ce.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Me.createElement(qe.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(Ke.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:ce.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,Pe)=>Me.createElement(qe.Z,{key:Pe,onClick:()=>b(de),className:ce.Z.diamond},Me.createElement(Ke.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(pe.Z,{className:ce.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Me.createElement(qe.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(Ke.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:ce.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,Pe)=>Me.createElement(qe.Z,{key:Pe,onClick:()=>b(de),className:ce.Z.diamond},Me.createElement(Ke.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ue&&Ue(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Me.createElement("div",{className:ce.Z.mathWrap},Me.createElement(Xe.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),$e&&Me.createElement("div",{className:ce.Z.button},Me.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});St.Z=Ee},65866:function(Ge,St,oe){"use strict";oe.d(St,{z:function(){return st},Z:function(){return ct}});var te=oe(67294),pe=oe(59810),qe=oe(2453),Xe=oe(14446),Se=oe(71577),Ke=oe(11320),ce=oe(4440),De=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,$e=(lt,rt,mt)=>rt in lt?De(lt,rt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):lt[rt]=mt,Ie=(lt,rt)=>{for(var mt in rt||(rt={}))Ee.call(rt,mt)&&$e(lt,mt,rt[mt]);if(Me)for(var mt of Me(rt))Ue.call(rt,mt)&&$e(lt,mt,rt[mt]);return lt},ae=(lt,rt,mt)=>new Promise((Sn,Fe)=>{var je=et=>{try{Nt(mt.next(et))}catch(Pt){Fe(Pt)}},at=et=>{try{Nt(mt.throw(et))}catch(Pt){Fe(Pt)}},Nt=et=>et.done?Sn(et.value):Promise.resolve(et.value).then(je,at);Nt((mt=mt.apply(lt,rt)).next())});const a="\u3000\u3000";function y(lt){var rt=["Bytes","KB","MB","GB","TB"];if(lt==0)return"0 Byte";var mt=parseInt(""+Math.floor(Math.log(lt)/Math.log(1024)),10);return(lt/Math.pow(1024,mt)).toFixed(1)+" "+rt[mt]}var E=({value:lt=[],action:rt,onChange:mt,className:Sn,maxSize:Fe=150,title:je="\u6587\u4EF6\u4E0A\u4F20",accept:at=null})=>{const Nt={multiple:!1,fileList:lt,accept:at,withCredentials:!0,beforeUpload:Pt=>Pt.size/1024/1024<Fe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Fe}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(Pt){var ue,ft,Yt,bn;let Ft=[...Pt.fileList];if(Ft=Ft.map(Re=>(Re.name.indexOf(a)===-1&&(Re.name=`${Re.name}${a}${y(Re.size)}`),Ie({},Re))),Pt.file.status==="done"&&((ft=(ue=Pt.file)==null?void 0:ue.response)==null?void 0:ft.status)===-1){message.error((bn=(Yt=Pt.file)==null?void 0:Yt.response)==null?void 0:bn.message),mt([]);return}mt(Ft)},onRemove:Pt=>ae(void 0,null,function*(){const ue=Pt.size/1024/1024;return Pt.status==="uploading"?!0:ue<Fe&&(Pt.response?Pt.response.id:Pt.uid)?yield removeAttachment(Pt.response?Pt.response.id:Pt.id):!0})};function et(Pt){Pt.preventDefault(),Pt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Sn||""}`},React.createElement(Upload,Ie({},Nt),React.createElement(Button,{type:"primary",title:lt.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:lt.length>0,ghost:!0},je),React.createElement("span",{onClick:et,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Fe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(lt,rt,mt)=>rt in lt?z(lt,rt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):lt[rt]=mt,de=(lt,rt)=>{for(var mt in rt||(rt={}))ne.call(rt,mt)&&ge(lt,mt,rt[mt]);if(ee)for(var mt of ee(rt))re.call(rt,mt)&&ge(lt,mt,rt[mt]);return lt};const Pe=lt=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},lt),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 me="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ke=Object.defineProperty,Ae=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,sn=(lt,rt,mt)=>rt in lt?ke(lt,rt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):lt[rt]=mt,Ne=(lt,rt)=>{for(var mt in rt||(rt={}))yt.call(rt,mt)&&sn(lt,mt,rt[mt]);if(Ae)for(var mt of Ae(rt))Jt.call(rt,mt)&&sn(lt,mt,rt[mt]);return lt},dt=(lt,rt,mt)=>new Promise((Sn,Fe)=>{var je=et=>{try{Nt(mt.next(et))}catch(Pt){Fe(Pt)}},at=et=>{try{Nt(mt.throw(et))}catch(Pt){Fe(Pt)}},Nt=et=>et.done?Sn(et.value):Promise.resolve(et.value).then(je,at);Nt((mt=mt.apply(lt,rt)).next())});const{Dragger:ut}=pe.default;function st(lt){let rt=[];return lt&&lt.length>0&&(rt=lt.map(mt=>({uid:mt.id,id:mt.id,name:mt.title+a+mt.filesize,url:mt.url,filesize:mt.filesize,status:"done",response:{id:mt.id}}))),rt}var ct=({value:lt,onChange:rt,action:mt,data:Sn,className:Fe,maxSize:je=150,title:at="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Nt=!1,accept:et="",additionalText:Pt,isDragger:ue,number:ft=1e3,aloneClear:Yt=!1,realTimeRemove:bn=!0,uploadText:Ft,setFileProgress:Re,showFileProgress:xe})=>{const[be,Qe]=(0,te.useState)(!1);let[Ve,pt]=(0,te.useState)(lt||[]),[Mt,jt]=(0,te.useState)(1);(0,te.useEffect)(()=>{lt&&(Mt===1&&pt([...lt]),jt(2),ft===(lt==null?void 0:lt.length)&&Qe(!0))},[lt]);const en=()=>{setTimeout(()=>{Ve.pop(),pt([...Ve])},500)};xe&&Re(Ve.some(Tt=>Tt.status==="uploading"));const gn={multiple:!0,disabled:be,accept:et,withCredentials:!0,fileList:Ve,beforeUpload:(Tt,En)=>{const vn=Tt.size/1024/1024;return Ve.concat(En).length>ft?(Ve.pop(),pt([...Ve]),qe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${ft}\u4E2A\u6587\u4EF6`),Yt?Promise.reject():(en(),!1)):vn<je?!0:(qe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${je}MB).`),Yt?Promise.reject():(en(),!1))},data:Sn,action:mt||`${Ke.Z.API_SERVER}/api/attachments.json`,onChange(Tt){var En,vn,jn,xn;if(Tt.file.status==="removed"?Ve=Tt.fileList:Ve=(0,x.uniqBy)([...Tt.fileList,...Ve],"uid"),Tt.file.status==="done"&&((vn=(En=Tt.file)==null?void 0:En.response)==null?void 0:vn.status)===-1){qe.ZP.error((xn=(jn=Tt.file)==null?void 0:jn.response)==null?void 0:xn.message);return}Ve.length>=ft?Qe(!0):Qe(!1),pt([...Ve]),Ve=Ve.map(hn=>{var ye,Oe;return(ye=hn==null?void 0:hn.response)!=null&&ye.id&&(hn.url=(Oe=hn==null?void 0:hn.response)==null?void 0:Oe.url),hn.name.indexOf(a)===-1&&(hn.name=`${hn.name}${a}${y(hn.size)}`),Ne({},hn)}),console.log("info:",Tt,Ve),rt(Ve)},onRemove:Tt=>dt(void 0,null,function*(){if(!bn)return!0;const En=()=>dt(void 0,null,function*(){if(Tt.response?Tt.response.id:Tt.id){let jn=yield(0,ce.JZ)(Tt.response?Tt.response.id:Tt.uid);return Promise.resolve(jn)}else return!0});return Nt?new Promise((vn,jn)=>{Xe.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:()=>dt(void 0,null,function*(){const xn=yield En();qe.ZP.success("\u5220\u9664\u6210\u529F"),vn(!0)}),onCancel:()=>vn(!1)})}):yield En()})};function ln(Tt){Tt.preventDefault(),Tt.stopPropagation()}return te.createElement("div",{className:`multi-upload ${Fe||""}`},ue&&te.createElement(ut,Ne({},gn),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",je,"MB)"," "),Pt),!ue&&te.createElement(pe.default,Ne({},gn),te.createElement(Se.ZP,{disabled:be,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:me}),at),te.createElement("span",{onClick:ln,className:"upload_text"},Ft||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${je}MB)`)))}},57444:function(Ge,St,oe){"use strict";oe.d(St,{h:function(){return ee}});var te=oe(67294),pe=oe(42563),qe=oe(22150),Xe=oe(71577),Se=oe(4631),Ke=oe.n(Se),ce=oe(71749),De=oe(30483),Me=Object.defineProperty,Ee=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ie=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={}))Ie.call(re,ge)&&a(ne,ge,re[ge]);if($e)for(var ge of $e(re))ae.call(re,ge)&&a(ne,ge,re[ge]);return ne},E=(ne,re)=>Ee(ne,Ue(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"]};St.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function Pe(ke){de(z[ke][1])}function me(ke){ne(ke)}return te.createElement(qe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(qe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(pe.default,{getPopupContainer:ke=>ke.parentNode,onChange:Pe},Object.keys(z).map(ke=>te.createElement(b,{key:ke,value:ke},z[ke][0])))),te.createElement(qe.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(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Xe.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const Pe=(0,te.useRef)(),[me,ke]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let Ae=function(yt){const Jt=yt.getValue();re&&re(Jt)};return me.on("change",Ae),()=>{me.off("change",Ae)}}},[me,re]),(0,te.useEffect)(()=>{me&&me.setOption("mode",ge)},[me,ge]),(0,te.useEffect)(()=>{me&&(ne!==me.getValue()||ne==="")&&setTimeout(()=>{me.setValue(ne||"")},300)},[me,ne]),(0,te.useEffect)(()=>{if(Pe.current&&!me){const Ae=Ke().fromTextArea(Pe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));ke(Ae)}},[Pe.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Pe}))}},35567:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return Qa}});var te=oe(67294),pe=oe(4631),qe=oe.n(pe),Xe=oe(91033),Se=oe(71749),Ke=oe(57341),ce=oe(82801),De=oe(88386),Me=oe(49047),Ee=oe(80785),Ue=oe(85725),$e=({value:Le="",className:we,showTextOnly:ve,showLines:ht,style:zt={}})=>{const Dt=(0,te.useMemo)(()=>"",[Le]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Dt}}))},Ie=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,ve)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,ee=(Le,we)=>{for(var ve in we||(we={}))b.call(we,ve)&&z(Le,ve,we[ve]);if(E)for(var ve of E(we))x.call(we,ve)&&z(Le,ve,we[ve]);return Le},ne=(Le,we)=>a(Le,y(we));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:Le,title:we,icon:ve,actionName:ht,className:zt="",children:Dt}){function kn(){Le(ht)}return Ie.createElement("a",{title:we,className:zt,onClick:kn},Ie.createElement("i",{className:`${ve}`}),Dt)}var de=({watch:Le,showNullButton:we,showNullProgramButton:ve,onActionCallback:ht,fullScreen:zt,insertTemp:Dt,hidetoolBar:kn,extraUse:un})=>{const Bn=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!kn&&Bn.map((na,Da)=>Ie.createElement("li",{key:Da},na.actionName?Ie.createElement(ge,ne(ee({},na),{onActionCallback:ht})):Ie.createElement("span",{className:"v-line"}))),we?Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ht},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ht},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ht},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Dt&&Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Dt}`,onActionCallback:ht},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&Ie.createElement("li",null,un),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(ge,{icon:`${zt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ht})))},Pe=oe(76621),me=oe(22150),ke=oe(69677),Ae=oe(71577),yt=Object.defineProperty,Jt=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,st=(Le,we,ve)=>we in Le?yt(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,ct=(Le,we)=>{for(var ve in we||(we={}))dt.call(we,ve)&&st(Le,ve,we[ve]);if(Ne)for(var ve of Ne(we))ut.call(we,ve)&&st(Le,ve,we[ve]);return Le},lt=(Le,we)=>Jt(Le,sn(we));const rt={labelCol:{span:4},wrapperCol:{span:20}};var mt=({callback:Le,onCancel:we})=>{function ve(ht){Le(ht)}return te.createElement(me.default,lt(ct({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,style:{width:500}}),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(ke.default,null)),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(ke.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ae.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Sn=oe(57444),Fe=oe(70859),je=oe(14446),at=oe(71230),Nt=oe(63205),et=oe(67294),Pt=({callback:Le,onCancel:we})=>{const ve=document.createElement("canvas"),ht=ve.getContext("2d");ve.width=1e3,ve.height=800,ht.fillStyle="#ffffff",ht.fillRect(0,0,ve.width,ve.height);const zt=ve.toDataURL("image/png");return et.createElement(je.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(at.Z,{style:{height:"100vh"}},et.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:zt,visible:!0,title:String(Date.now())},onOk:Dt=>{Le({src:Dt.url})},onClose:we})))},ue=oe(23495);function ft(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ft,go.CommandHandler),ft.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},ft.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(we=Math.min(ve.position.x,we))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(we,ve.position.y))}),Le.commitTransaction("aligning left")},ft.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var ht=ve.actualBounds.x+ve.actualBounds.width;we=Math.max(ht,we)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(we-ve.actualBounds.width,ve.position.y))}),Le.commitTransaction("aligning right")},ft.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(we=Math.min(ve.position.y,we))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,we))}),Le.commitTransaction("alignTop")},ft.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var ht=ve.actualBounds.y+ve.actualBounds.height;we=Math.max(ht,we)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,we-ve.actualBounds.height))}),Le.commitTransaction("aligning bottom")},ft.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var ve=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(ht){ht instanceof go.Link||ht.move(new go.Point(ve-ht.actualBounds.width/2,ht.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},ft.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var ve=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(ht){ht instanceof go.Link||ht.move(new go.Point(ht.actualBounds.x,ve-ht.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},ft.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var ve=new Array;we.selection.each(function(un){un instanceof go.Link||ve.push(un)});for(var ht=0;ht<ve.length-1;ht++){var zt=ve[ht],Dt=zt.actualBounds.y+zt.actualBounds.height+Le,kn=ve[ht+1];kn.move(new go.Point(zt.actualBounds.x,Dt))}we.commitTransaction("align Column")},ft.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var ve=new Array;we.selection.each(function(un){un instanceof go.Link||ve.push(un)});for(var ht=0;ht<ve.length-1;ht++){var zt=ve[ht],Dt=zt.actualBounds.x+zt.actualBounds.width+Le,kn=ve[ht+1];kn.move(new go.Point(Dt,zt.actualBounds.y))}we.commitTransaction("align Row")},ft.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},ft.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(ve){ve instanceof go.Link||ve instanceof go.Group||(ve.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},ft.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(ve){we.set(ve.layer,0)}),we.iteratorKeys.each(function(ve){var ht=0;ve.parts.each(function(zt){if(!zt.isSelected){var Dt=zt.zOrder;isNaN(Dt)?zt.zOrder=0:ht=Math.max(ht,Dt)}}),we.set(ve,ht)}),Le.selection.each(function(ve){ft._assignZOrder(ve,we.get(ve.layer)+1)}),Le.commitTransaction("pullToFront")},ft.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(ve){we.set(ve.layer,0)}),we.iteratorKeys.each(function(ve){var ht=0;ve.parts.each(function(zt){if(!zt.isSelected){var Dt=zt.zOrder;isNaN(Dt)?zt.zOrder=0:ht=Math.min(ht,Dt)}}),we.set(ve,ht)}),Le.selection.each(function(ve){ft._assignZOrder(ve,we.get(ve.layer)-1-ft._findGroupDepth(ve))}),Le.commitTransaction("pushToBack")},ft._assignZOrder=function(Le,we,ve){ve===void 0&&(ve=Le),Le.layer===ve.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(ht){ft._assignZOrder(ht,we+1,ve)})},ft._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(ve){we=Math.max(we,ft._findGroupDepth(ve))}),we+1}else return 0},ft.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var ve=this.arrowKeyBehavior;if(ve==="none")return;if(ve==="select"){this._arrowKeySelect();return}else if(ve==="move"){this._arrowKeyMove();return}else if(ve==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ft.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},ft.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,ve=0,ht=0;if(we.control||we.meta)ve=1,ht=1;else if(Le.grid!==null){var zt=Le.grid.gridCellSize;ht=zt.width,ve=zt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Dt){we.key==="Up"?Dt.move(new go.Point(Dt.actualBounds.x,Dt.actualBounds.y-ve)):we.key==="Down"?Dt.move(new go.Point(Dt.actualBounds.x,Dt.actualBounds.y+ve)):we.key==="Left"?Dt.move(new go.Point(Dt.actualBounds.x-ht,Dt.actualBounds.y)):we.key==="Right"&&Dt.move(new go.Point(Dt.actualBounds.x+ht,Dt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},ft.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.lastInput,ve=null;we.key==="Up"?ve=this._findNearestPartTowards(270):we.key==="Down"?ve=this._findNearestPartTowards(90):we.key==="Left"?ve=this._findNearestPartTowards(180):we.key==="Right"&&(ve=this._findNearestPartTowards(0)),ve!==null&&(we.shift?ve.isSelected=!0:we.control||we.meta?ve.isSelected=!ve.isSelected:Le.select(ve))},ft.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var ve=we.actualBounds.center,ht=this._getAllParts(),zt=1/0,Dt=we,kn=0;kn<ht.length;kn++){var un=ht[kn];if(un!==we&&un.canSelect()){var Bn=un.actualBounds.center,na=ve.directionPoint(Bn),Da=this._angleCloseness(na,Le);if(Da<=45){var ot=ve.distanceSquaredPoint(Bn);ot*=1+Math.sin(Da*Math.PI/180),ot<zt&&(zt=ot,Dt=un)}}}return Dt},ft.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},ft.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var ve=Le.lastInput;if(ve.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var ht=this._sortTreeChildrenByY(we).first();ht!==null&&Le.select(ht)}}else if(ve.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var zt=we.findTreeParentNode();zt!==null&&Le.select(zt)}else if(ve.key==="Up"){var zt=we.findTreeParentNode();if(zt!==null){var Dt=this._sortTreeChildrenByY(zt),kn=Dt.indexOf(we);if(kn>0){for(var un=Dt.elt(kn-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var Bn=this._sortTreeChildrenByY(un);un=Bn.last()}un!==null&&Le.select(un)}else Le.select(zt)}}else if(ve.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var ht=this._sortTreeChildrenByY(we).first();ht!==null&&Le.select(ht)}else for(;we!==null;){var zt=we.findTreeParentNode();if(zt===null)break;var Dt=this._sortTreeChildrenByY(zt),kn=Dt.indexOf(we);if(kn<Dt.length-1){Le.select(Dt.elt(kn+1));break}else we=zt}var na=Le.selection.first();na!==null&&Le.scrollToRect(na.actualBounds)}},ft.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(ve,ht){var zt=ve.location,Dt=ht.location;return zt.y<Dt.y?-1:zt.y>Dt.y?1:zt.x<Dt.x?-1:zt.x>Dt.x?1:0}),we},ft.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},ft.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(ft.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(ft.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var Yt=ft,bn=oe(18023),Ft=oe(15746),Re=oe(33170),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},be=oe(67294),Qe=(Le,we,ve)=>new Promise((ht,zt)=>{var Dt=Bn=>{try{un(ve.next(Bn))}catch(na){zt(na)}},kn=Bn=>{try{un(ve.throw(Bn))}catch(na){zt(na)}},un=Bn=>Bn.done?ht(Bn.value):Promise.resolve(Bn.value).then(Dt,kn);un((ve=ve.apply(Le,we)).next())});function Ve({onCancel:Le,callback:we}){let ve=(0,te.useRef)(),ht=(0,te.useRef)(),zt=(0,te.useRef)(),Dt=(0,te.useRef)(!1);const kn=(0,te.useRef)(!1),[un,Bn]=(0,te.useState)(0);function na(){const ot=ue.bx.make,Cn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ve.current=new ue.S0(ht.current,{padding:20,grid:ot(ue.s_,"Grid",ot(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ot(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tt=>{var Ct=tt.diagram.commandHandler.addTopLevelParts(tt.diagram.selection,!0);Ct||tt.diagram.currentTool.doCancel()},commandHandler:ot(Yt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tt=>{var Ct=tt.subject;Ct.location=Ct.location.copy().snapToGridPoint(tt.diagram.grid.gridOrigin,tt.diagram.grid.gridCellSize),setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tt=>{var Ct=tt.subject;setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()})},LinkRelinked:tt=>{var Ct=tt.parameter.part;Ct.invalidateConnectedLinks();var Ut=tt.subject;tt.diagram.toolManager.linkingTool.isForwards?Ut.toNode.invalidateConnectedLinks():Ut.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=ot(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),ot(ue.bn,{name:"SHAPE",fill:Cn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ot(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ot(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ve.current.nodeTemplate.toolTip=ot("ToolTip",ot(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},ot(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),ot(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function he(tt,Ct){var Ut=(it,cn)=>{it.handled=!0,it.diagram.model.commit(fn=>{var sa=cn.part.adornedPart,ca=new ue.E9().setRectSpot(sa.actualBounds,tt);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(it.diagram.grid.gridOrigin,it.diagram.grid.gridCellSize);var fa=fn.copyNodeData(sa.data);fn.setGroupKeyForNodeData(fa,fn.getGroupKeyForNodeData(sa.data)),fn.addNodeData(fa);var Fo={from:sa.key,to:fn.getKeyForNodeData(fa)};fn.addLinkData(Fo);var to=it.diagram.findNodeForData(fa);to.location=ca,it.diagram.select(to),setTimeout(()=>{it.diagram.commandHandler.editTextBlock()},20)})};return ot(ue.bn,{figure:Ct,alignment:tt,alignmentFocus:tt.opposite(),width:tt.equals(ue.z6.Top)||tt.equals(ue.z6.Bottom)?25:18,height:tt.equals(ue.z6.Top)||tt.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:Cn.white,strokeWidth:4,mouseEnter:(it,cn)=>cn.fill="dodgerblue",mouseLeave:(it,cn)=>cn.fill="orange",isActionable:!0,click:Ut,contextClick:Ut})}function ze(tt){return ot(ue.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ct,Ut)=>Ut.fill="dodgerblue",mouseLeave:(Ct,Ut)=>Ut.fill="orange",click:(Ct,Ut)=>{Ct.diagram.commandHandler.showContextMenu(Ut.part.adornedPart)}},tt||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=ot(ue.uz,"Spot",ot(ue.Vm,{padding:10}),he(ue.z6.Top,"TriangleUp"),he(ue.z6.Left,"TriangleLeft"),he(ue.z6.Right,"TriangleRight"),he(ue.z6.Bottom,"TriangleDown"),ze({alignment:new ue.z6(.75,0)}));function Be(tt,Ct){return(Ut,it)=>{Ut.handled=!0,Ut.diagram.model.commit(cn=>{cn.set(it.part.adornedPart.data,tt,Ct)})}}function Te(tt,Ct){return Ct||(Ct="color"),ot(ue.bn,{width:16,height:16,stroke:"lightgray",fill:tt,margin:1,background:"transparent",mouseEnter:(Ut,it)=>it.stroke="dodgerblue",mouseLeave:(Ut,it)=>it.stroke="lightgray",click:Be(Ct,tt),contextClick:Be(Ct,tt)})}function gt(){return[ot("ContextMenuButton",ot(ue.s_,"Horizontal",Te(Cn.white,"fill"),Te(Cn.beige,"fill"),Te(Cn.extralightblue,"fill"),Te(Cn.extralightred,"fill"))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Te(Cn.lightgray,"fill"),Te(Cn.lightgreen,"fill"),Te(Cn.lightblue,"fill"),Te(Cn.lightred,"fill")))]}function Ye(){return[ot("ContextMenuButton",ot(ue.s_,"Horizontal",Te(Cn.black),Te(Cn.green),Te(Cn.blue),Te(Cn.red))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Te(Cn.white),Te(Cn.magenta),Te(Cn.purple),Te(Cn.orange)))]}function nt(tt,Ct){return Ct||(Ct="thickness"),ot(ue.bn,"LineH",{width:16,height:16,strokeWidth:tt,margin:1,background:"transparent",mouseEnter:(Ut,it)=>it.background="dodgerblue",mouseLeave:(Ut,it)=>it.background="transparent",click:Be(Ct,tt),contextClick:Be(Ct,tt)})}function _e(tt,Ct){return Ct||(Ct="dash"),ot(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tt,margin:1,background:"transparent",mouseEnter:(Ut,it)=>it.background="dodgerblue",mouseLeave:(Ut,it)=>it.background="transparent",click:Be(Ct,tt),contextClick:Be(Ct,tt)})}function Vt(){return[ot("ContextMenuButton",ot(ue.s_,"Horizontal",nt(1),nt(2),nt(3),nt(4))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",_e(null),_e([2,4]),_e([4,4])))]}function Ot(tt,Ct){return Ct||(Ct="figure"),ot(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tt,margin:1,background:"transparent",mouseEnter:(Ut,it)=>it.fill="dodgerblue",mouseLeave:(Ut,it)=>it.fill="lightgray",click:Be(Ct,tt),contextClick:Be(Ct,tt)})}ve.current.nodeTemplate.contextMenu=ot("ContextMenu",ot("ContextMenuButton",ot(ue.s_,"Horizontal",Ot("Rectangle"),Ot("RoundedRectangle"),Ot("Ellipse"),Ot("Diamond"))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Ot("Parallelogram2"),Ot("ManualOperation"),Ot("Procedure"),Ot("Cylinder1"))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Ot("Terminator"),Ot("CreateRequest"),Ot("Document"),Ot("TriangleDown"))),gt(),Ye(),Vt()),ve.current.groupTemplate=ot(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tt,Ct)=>{var Ut=Ct.addMembers(Ct.diagram.selection,!0);Ut||Ct.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),ot(ue.s_,"Auto",{name:"BODY"},ot(ue.bn,{parameter1:10,fill:Cn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ot(ue.Vm,{background:"transparent",margin:20})),ot(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),ve.current.groupTemplate.selectionAdornmentTemplate=ot(ue.uz,"Spot",ot(ue.s_,"Auto",ot(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ot(ue.Vm,{margin:1.5})),ze({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),ve.current.groupTemplate.contextMenu=ot("ContextMenu",gt(),Ye(),Vt()),ve.current.linkTemplate=ot(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",tt=>tt>=1?10:0),new ue.KX("toShortLength","dir",tt=>tt>=1?10:0),new ue.KX("points").makeTwoWay(),ot(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ot(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",tt=>tt===1)),ot(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",tt=>tt>=1),new ue.KX("width","thickness",tt=>7+3*tt),new ue.KX("height","thickness",tt=>7+3*tt),new ue.KX("segmentOffset","thickness",tt=>new ue.E9(-15,4+1.5*tt))),ot(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",tt=>tt===2),new ue.KX("width","thickness",tt=>7+3*tt),new ue.KX("height","thickness",tt=>7+3*tt),new ue.KX("segmentOffset","thickness",tt=>new ue.E9(-15,4+1.5*tt))),ot(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ve.current.linkTemplate.selectionAdornmentTemplate=ot(ue.uz,ot(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:nn(2)},new ue.KX("pathPattern","thickness",nn)),ze({alignmentFocus:new ue.z6(0,0,-6,-4)}));function nn(tt){return ot(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tt+4).toString()+" H3"})}function Pn(tt){var Ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tt===0?Ct="M0 0 M16 16 M0 8 L16 8":tt===2&&(Ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ot(ue.bn,{geometryString:Ct,margin:2,background:"transparent",mouseEnter:(Ut,it)=>it.background="dodgerblue",mouseLeave:(Ut,it)=>it.background="transparent",click:Be("dir",tt),contextClick:Be("dir",tt)})}function $n(tt){var Ct=(Ut,it)=>{Ut.handled=!0,Ut.diagram.model.commit(cn=>{var fn=it.part.adornedPart;cn.set(fn.data,tt?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(tt?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return ot(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ut,it)=>it.background="dodgerblue",mouseLeave:(Ut,it)=>it.background="transparent",click:Ct,contextClick:Ct})}function Ze(tt,Ct){var Ut=0,it=ue.z6.RightSide;tt.equals(ue.z6.Top)?(Ut=270,it=ue.z6.TopSide):tt.equals(ue.z6.Left)?(Ut=180,it=ue.z6.LeftSide):tt.equals(ue.z6.Bottom)&&(Ut=90,it=ue.z6.BottomSide),Ct||(Ut-=180);var cn=(fn,sa)=>{fn.handled=!0,fn.diagram.model.commit(ca=>{var fa=sa.part.adornedPart;ca.set(fa.data,Ct?"toSpot":"fromSpot",ue.z6.stringify(it)),(Ct?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return ot(ue.bn,{alignment:tt,alignmentFocus:tt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ut,background:"transparent",mouseEnter:(fn,sa)=>sa.background="dodgerblue",mouseLeave:(fn,sa)=>sa.background="transparent",click:cn,contextClick:cn})}ve.current.linkTemplate.contextMenu=ot("ContextMenu",Ye(),Vt(),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Pn(0),Pn(1),Pn(2))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",ot(ue.s_,"Spot",$n(!1),Ze(ue.z6.Top,!1),Ze(ue.z6.Left,!1),Ze(ue.z6.Right,!1),Ze(ue.z6.Bottom,!1)),ot(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},$n(!0),Ze(ue.z6.Top,!0),Ze(ue.z6.Left,!0),Ze(ue.z6.Right,!0),Ze(ue.z6.Bottom,!0)))));const $a=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var La=["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 Ia(tt){return console.log("shapeName:",tt),La.indexOf(tt)>=0}var aa=new ue.YI(zt.current,{maxSelectionCount:1,linkTemplate:ot(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:ot(ue.uz,"Link",{locationSpot:ue.z6.Center},ot(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ot(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),ot(ue.bn,{isPanelMain:!0,strokeWidth:2}),ot(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(tt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ve.current.addDiagramListener("TextEdited",function(tt){var Ct;const Ut=tt.subject.part;var it=(Ct=document.activeElement)==null?void 0:Ct.value;typeof it=="string"&&it.trim()===""&&ve.current.model.commit(function(cn){cn.set(Ut.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),aa.nodeTemplate=ot(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),ot(ue.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),ot(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{ve.current.grid=ot(ue.s_,"Grid",ot(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ot(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ve.current.grid.visible=!0,ve.current.grid.gridCellStroke="darkgray",ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ve.current,ve.current}const Da=()=>Qe(this,null,function*(){var ot=ve.current.makeImage();const Cn=yield(0,Re.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ot.src}});we({src:Cn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{na()},500),Bn(un+1),()=>{ve.current=null}),[]),be.createElement("div",{ref:kn,className:Dt.current?`${xe.maxH60} body-overflow-initial`:"body-overflow-initial"},be.createElement(je.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:be.createElement(at.Z,null,be.createElement(Ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),be.createElement(Ft.Z,{onClick:()=>{var ot,Cn,he=ve.current.selection.first();if(Dt.current=!Dt.current,document.activeElement&&he){let ze=(Cn=(ot=document.activeElement)==null?void 0:ot.value)==null?void 0:Cn.trim();typeof ze=="string"&&ve.current.model.commit(function(Be){Be.set(he.data,"text",ze||"\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}Bn(un+1)}},be.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},be.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:xe.flowChartWrp},be.createElement("div",{style:{display:"flex",height:"100%"}},be.createElement("div",{style:{width:"300px",height:"100%"}},be.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),be.createElement("div",{style:{height:"calc(100% - 50px)"},className:xe.myPaletteDiv,ref:zt})),be.createElement("div",{style:{flex:1,position:"relative"}},be.createElement("div",{ref:ht,style:{height:"80vh"}}))),be.createElement("div",{className:"tr"},be.createElement(Ae.ZP,{size:"large",onClick:Da,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var pt=Ve,Mt=oe(78045),jt=oe(31795);const en=Mt.ZP.Group,gn={margin:"0 8px"};var ln=({callback:Le,onCancel:we})=>{function ve(ht){Le(ht)}return te.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ve},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:gn},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:gn},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(jt.Z,null)),te.createElement("span",{style:gn},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(jt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:gn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(en,null,te.createElement(Mt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Mt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Mt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Mt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ae.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Tt=oe(47897),En=oe(61016),vn=oe.n(En),xn=(0,te.forwardRef)(({use3d:Le,width:we,height:ve,callback:ht,showSaveButton:zt},Dt)=>{const kn=(0,te.useRef)(),un=(0,te.useRef)(),[Bn,na]=(0,te.useState)(!1),Da=(0,te.useRef)({id:kn,appName:"graphing",width:we||1e3,height:ve||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)(()=>{un.current=new(vn())(Da.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const ot=()=>{var Cn=window.ggbApplet.getPNGBase64(1,!0,72);return ht&&ht(Cn),Cn};return(0,te.useEffect)(()=>{Da.current.appName=Bn?"3D":"graphing",un.current.inject("applet_container")},[Bn]),(0,te.useEffect)(()=>{na(Le)},[Le]),(0,te.useImperativeHandle)(Dt,()=>({getImgData:ot})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kn}),te.createElement(at.Z,{align:"middle"},te.createElement(Ft.Z,{flex:1},te.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:Cn=>na(Cn)})),te.createElement(Ft.Z,null,te.createElement(Ae.ZP,{size:"large",onClick:ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),hn=oe(36527),ye=oe(25934),Oe=oe(2453);const Je="link",Lt="upload-image",xt="add-flowchart",_t="draw-image",Qt="add-flowchart",At="code-block",Wt="add-table",pn="------------",tn={default:pn,left:`:${pn}`,center:`:${pn}:`,right:`${pn}:`};var Hn=oe(99914),_n=(Le,we,ve)=>new Promise((ht,zt)=>{var Dt=Bn=>{try{un(ve.next(Bn))}catch(na){zt(na)}},kn=Bn=>{try{un(ve.throw(Bn))}catch(na){zt(na)}},un=Bn=>Bn.done?ht(Bn.value):Promise.resolve(Bn.value).then(Dt,kn);un((ve=ve.apply(Le,we)).next())});function Xn(){}let la=0;const In=1e4,Tn="\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(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const ta=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ua={[ta+"-B"]:"bold",[ta+"-I"]:"italic"},eo={[Je]:"\u6DFB\u52A0\u94FE\u63A5",[At]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Lt]:"\u6DFB\u52A0\u56FE\u7247",[_t]:"\u6DFB\u52A0\u753B\u56FE",[xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qa=({defaultValue:Le="",onChange:we,width:ve="100%",height:ht=400,miniToolbar:zt=!1,isFocus:Dt=!1,watch:kn,insertTemp:un,mode:Bn="markdown",id:na="markdown-editor-id",showResizeBar:Da=!1,noStorage:ot=!1,showNullButton:Cn=!1,showNullProgramButton:he=!1,hidetoolBar:ze=!1,fullScreen:Be=!1,onBlur:Te,onCMBeforeChange:gt,onFullScreen:Ye,className:nt="",disablePaste:_e=!1,disabled:Vt=!1,disabledFill:Ot=!1,placeholder:nn="",values:Pn="",extraUse:$n})=>{const[Ze,$a]=(0,te.useState)(null),[La,Ia]=(0,te.useState)(Le),[aa,tt]=(0,te.useState)(kn),[Ct,Ut]=(0,te.useState)(Be),[it,cn]=(0,te.useState)(""),[fn,sa]=(0,te.useState)(0),[ca,fa]=(0,te.useState)(ht),[Fo,to]=(0,te.useState)(!1),Do=(0,te.useRef)((0,ye.Z)()),xo=(0,te.useRef)(!1),Ka=(0,te.useRef)(),[va,io]=(0,te.useState)(0),[po,yo]=(0,te.useState)(0),_a=(0,te.useRef)(),Ra=(0,te.useRef)(),fo=(0,te.useRef)(),an=(0,te.useRef)(),pa=()=>_n(void 0,null,function*(){var It;const bt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Do.current}});(It=bt==null?void 0:bt.attachments)!=null&&It.length&&(console.log("cm:",Ze,_a),bt.attachments.map(Bt=>{Bt.content_type.indexOf("image")>-1?Ze.replaceSelection(`![,](/api/attachments/${Bt.id}?type=${Bt.content_type})`):Bt.content_type.indexOf("video")>-1?Ze.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Bt.content_type.indexOf("pdf")>-1?Ze.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Bt.id}?type=${Bt.content_type}&disposition=inline" target="_blank">${Bt.name}</a>`):Ze.replaceSelection(`[${Bt.name}](${ENV.API_SERVER}/api/attachments/${Bt.id}?type=${Bt.content_type})`)}))});(0,te.useEffect)(()=>{const It=window.scrollY||window.pageYOffset;Ia(Pn),Ze==null||Ze.setValue(Pn),window.scrollTo(0,It)},[Pn]),(0,te.useEffect)(()=>{Ye==null||Ye(Ct)},[Ct]),(0,te.useEffect)(()=>{if(_a.current){let It=function(Bt,Gt){var An;if(_e){Gt.preventDefault();return}const Sa=Gt.clipboardData;if(Sa){const ka=Sa.types.toString(),Ma=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(Gt.preventDefault(),Bn=="stex")return;try{let xa=Ma[1];((An=Ma[0])==null?void 0:An.kind)==="file"&&(xa=Ma[0]);const Xt=xa.getAsFile(),Fn=Xt.name.split(".").pop();(0,Fe.I)(Xt,Gn=>{var wn,Wn,Ba;Gn.id?((wn=Xt==null?void 0:Xt.type)==null?void 0:wn.indexOf("image"))>-1?bt.replaceSelection(`<img width="100%" src="/api/attachments/${Gn.id}?type=${Gn.content_type})" alt="" />`):((Wn=Xt==null?void 0:Xt.type)==null?void 0:Wn.indexOf("video"))>-1?bt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Gn.id}"></video>`):((Ba=Xt==null?void 0:Xt.type)==null?void 0:Ba.indexOf("pdf"))>-1?bt.replaceSelection(`<a href="/api/attachments/${Gn.id}?type=${Xt.type}&disposition=inline" target="_blank">${Xt.name}</a>`):Rn.includes(Fn)?bt.replaceSelection(`<a href="/api/attachments/${Gn.id}?type=office&disposition=inline" target="_blank">${Xt.name}</a>`):bt.replaceSelection(`[${Xt.name}](/api/attachments/${Gn.id}?type=${Gn.content_type})`):(Gn==null?void 0:Gn.status)===401&&(Oe.ZP.warning((Gn==null?void 0:Gn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){Oe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const bt=qe().fromTextArea(_a.current,{mode:Bn,lineNumbers:!zt,lineWrapping:!0,value:Le,autoCloseTags:!he,autoCloseBrackets:!0});return bt.on("keyup",function(Bt,Gt){Gt.keyCode===8&&(Bt.getValue()==""?bt.setOption("placeholder",nn):bt.setOption("placeholder",null))}),bt.on("keydown",function(Bt,Gt){if(Gt.keyCode===8){var An=Na(Bt);An&&Gt.preventDefault()}}),Dt&&bt.focus(),bt.on("paste",It),bt.on("dragleave",function(Bt,Gt){Ra.current.classList.remove("mouse-hover-md")}),Vt&&bt.on("beforeChange",function(Bt,Gt){(Gt.origin==="paste"||Gt.origin==="+input")&&Gt.cancel()}),$a(bt),()=>{bt.off("paste",It)}}},[]);const Fa=(0,te.useCallback)(()=>{if(Ra.current)try{}catch(It){console.log(It,"---- to set md editor body height")}},[ca,Ra,Ct]);(0,te.useEffect)(()=>{function It(){let bt=new Xe.Z(Bt=>{for(let Gt of Bt)(Gt.target.offsetHeight>0||Gt.target.offsetWidth>0)&&(Fa(),Ze.setSize("100%","100%"),Ze.refresh())});return bt.observe(_a.current.parentElement),bt}if(Ze){const bt=It();return()=>{var Bt,Gt;(Bt=_a.current)!=null&&Bt.parentElement&&bt.unobserve((Gt=_a.current)==null?void 0:Gt.parentElement)}}},[Ze,Fa]),(0,te.useEffect)(()=>{if(Ze){let It=[];for(const[bt,Bt]of Object.entries(Ua)){let Gt={[bt]:()=>{Ja(Bt)}};It.push(Gt),Ze.addKeyMap(Gt)}return Ka.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Ka.current);for(let bt of It)Ze.removeKeyMap(bt)}}},[Ze]),(0,te.useEffect)(()=>{Be!==Ct&&Ut(Be)},[Be]),(0,Hn.Z)(()=>{if(!ot&&fn>0){let It=new Date().getTime(),bt=window.sessionStorage.getItem(na);It>=fn+In&&(!bt||bt!==La)&&(window.sessionStorage.setItem(na,La),to(!0))}},In),(0,te.useEffect)(()=>{tt(kn)},[Ze,kn]),(0,te.useEffect)(()=>{Ze&&Dt&&Ze.focus()},[Ze,Dt]),(0,te.useEffect)(()=>{if(aa&&Ze){let It=function(Bt){let Gt=Bt.target;if(an.current){let An=Gt.scrollTop/Gt.scrollHeight;an.current.scrollTop=an.current.scrollHeight*An}};const bt=Ze.getScrollerElement();return bt.addEventListener("scroll",It),()=>{bt.removeEventListener("scroll",It)}}},[Ze,aa]),(0,te.useEffect)(()=>{if(Ze&&gt){let It=function(bt,Bt){gt(bt,Bt)};return Ze.on("beforeChange",It),()=>{Ze.off("beforeChange",It)}}},[Ze,gt]),(0,te.useEffect)(()=>{if(Ze&&Te){let It=function(){Te(Ze.getValue())};return Ze.on("blur",It),()=>{Ze.off("blur",It)}}},[Ze,Te]);function Na(It,bt){var Bt=It.getDoc(),Gt=Bt.getCursor(),An=Bt.getLine(Gt.line),Sa=An.charAt(Gt.ch-1),ka=An.lastIndexOf("@\u2581@",Gt.ch),Ma=An.lastIndexOf("@\u2581\u2581@",Gt.ch),xa=ka>Ma?ka:Ma,Xt=ka>Ma?3:4;if(Yn.indexOf(Sa)===-1)return null;if(console.log("change1:",bt,It,An,Gt,xa,ka,Ma,Sa),xa>=0&&Gt.ch-xa<5){var Fn=xa+Xt;return Bt.replaceRange("",{line:Gt.line,ch:xa},{line:Gt.line,ch:Fn}),{line:Gt.line,ch:Fn}}return null}(0,te.useEffect)(()=>{if(Ze){let It=function(bt,Bt){const Gt=bt.getValue();Ia(Gt),sa(new Date().getTime()),bt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(he?we(Gt,Qo(Gt)):we(Gt))};return Ze.on("change",It),()=>{Ze.off("change",It)}}},[Ze,we]),(0,te.useEffect)(()=>{if(Ze)if(Le==null)Ze.setValue(""),Ia("");else{const It=window.scrollY||window.pageYOffset;Le!==Ze.getValue()&&(Ze.setValue(Le),Ia(Le),Ze.setCursor(Vt?1:Ze.lineCount(),0),window.scrollTo(0,It))}},[Ze,Le]);const Ja=(0,te.useCallback)(It=>{const bt=Ze.getCursor(),Bt=Ze.getSelection();let Gt=Bt.split(`
`);switch(It){case"bold":return Ze.replaceSelection("**"+Bt+"**"),Bt===""&&Ze.setCursor(bt.line,bt.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+Bt+"*"),Bt===""&&Ze.setCursor(bt.line,bt.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+Bt+"`"),Bt===""&&Ze.setCursor(bt.line,bt.ch+1),Ze.focus();case"inline-latex":return cn("inline-latex"),Ze.focus();case"latex":return Ze.replaceSelection("```latex\n"+Bt+"\n```"),Ze.setCursor(bt.line+1,Bt.length+1),Ze.focus();case"line-break":return Ze.replaceSelection(`<br/>
`),Ze.focus();case"list-ul":return Bt===""?Ze.replaceSelection("- "+Bt):Ze.replaceSelection(Gt.map(An=>An===""?"":`- ${An}`).join(`
`)),Ze.focus();case"list-ol":return Bt===""?Ze.replaceSelection("1. "+Bt):Ze.replaceSelection(Gt.map((An,Sa)=>An===""?"":`${Sa+1}. ${An}`).join(`
`)),Ze.focus();case"add-null-ch":return Bt===""&&Ze.setCursor(bt.line,bt.ch),Ze.replaceSelection(Tn),Ze.focus();case"add-signal":return Bt===""&&Ze.setCursor(bt.line,bt.ch),Ze.replaceSelection(ua),Ze.focus();case"add-multiple":return Bt===""&&Ze.setCursor(bt.line,bt.ch),Ze.replaceSelection(Yn),Ze.focus();case"inster-template-1":return Bt===""&&Ze.setCursor(bt.line,bt.ch),Ze.replaceSelection(ma),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return tt(!aa),Ze.focus();case"trigger-full-screen":return Ut(!Ct),Ze.focus();case Je:cn(Je);return;case At:cn(At);return;case Lt:cn(Lt);return;case _t:cn(_t);return;case"maths-latex":cn("maths-latex");return;case xt:cn(xt);return;case Wt:cn(Wt);return;default:throw new Error}},[Ze,aa,Ct]),ba=(0,te.useCallback)((It,bt)=>{var Bt,Gt,An,Sa,ka,Ma;switch(cn(""),it){case Je:const{title:wn,link:Wn}=It;return Ze.replaceSelection(`[${wn}](${Wn})`),Ze.focus();case At:const{language:Ba,content:Lo}=It;return Ze.replaceSelection(["```"+Ba,Lo,"```"].join(`
`)),Ze.focus();case"maths-latex":for(var xa=atob(It),Xt=new Uint8Array(xa.length),Fn=0;Fn<xa.length;Fn++)Xt[Fn]=xa.charCodeAt(Fn);var Gn=new Blob([Xt],{type:"image/png"});(0,Fe.I)(Gn,lo=>{lo.id?Ze.replaceSelection(`![,](/api/attachments/${lo.id}?type=${lo.content_type})`):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ze.replaceSelection("`$$"+It+"$$`");break;case Lt:case _t:case Qt:const{src:ao,alt:bo}=It,Oa=bt,zr=(An=(Gt=(Bt=Oa==null?void 0:Oa.name)==null?void 0:Bt.split("."))==null?void 0:Gt.pop)==null?void 0:An.call(Gt);return((Sa=Oa==null?void 0:Oa.type)==null?void 0:Sa.indexOf("image"))>-1||!(Oa!=null&&Oa.type)?Oa.align||Oa.width?Ze.replaceSelection(`<p style="text-align:${Oa.align||"initial"}"><img width="${Oa.width?Oa.width+"%":"initial"}" src="${ao}" alt="${bo||""}" /></p>`):Ze.replaceSelection(`<img width="100%" src="${ao}" alt="${bo||""}" />`):((ka=Oa==null?void 0:Oa.type)==null?void 0:ka.indexOf("video"))>-1?Ze.replaceSelection(`<video width="100%" controls src="${ao}"></video>`):((Ma=Oa==null?void 0:Oa.type)==null?void 0:Ma.indexOf("pdf"))>-1?Ze.replaceSelection(`<a href="${ao}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):Rn.includes(zr)?Ze.replaceSelection(`<a href="${ao}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):Ze.replaceSelection(`[${Oa.name}](${ao})`),Ze.focus();case Wt:const{row:Ar,col:cr,align:Er}=It;let qo=`
`;for(let lo=0;lo<Ar;lo++){let Dr=[],fr=[];for(let Ir=0;Ir<cr;Ir++)lo===1&&fr.push(tn[Er]),Dr.push(" ");lo===1&&(qo+=`| ${fr.join(" | ")} |
`),qo+=`| ${Dr.join(cr===1?"":" | ")} |
`}return Ze.replaceSelection(qo+`
`),Ze.focus();default:throw new Error}},[Ze,it]),Wo=(0,te.useMemo)(()=>{switch(it){case Je:return te.createElement(mt,{callback:ba,onCancel:wa});case At:return te.createElement(Sn.Z,{callback:ba,onCancel:wa});case Lt:return te.createElement(Fe.Z,{callback:ba,onCancel:wa});case xt:return te.createElement(pt,{callback:ba,onCancel:wa});case Wt:return te.createElement(ln,{callback:ba,onCancel:wa});case"maths-latex":return te.createElement(xn,{showSaveButton:!0,callback:ba});case"inline-latex":return te.createElement(hn.Z,{showSaveButton:!0,callback:ba});default:return null}},[it]);function wa(){cn("")}(0,te.useEffect)(()=>{if(fo.current){let It=function(ka){An=!0,Sa=ka.pageY},bt=function(){An=!1},Bt=function(ka){if(An){let Ma=ka.pageY-Sa;Ma<0&&(Ma=0),Ma>300&&(Ma=300);let xa=ht+Ma+"px";fa(xa)}},Gt=fo.current,An=!1,Sa=0;return Gt.addEventListener("mousedown",It),document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",bt),()=>{Gt.removeEventListener("mousedown",It),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",bt)}}},[Ze,fo]),(0,te.useEffect)(()=>{fa(ht)},[ht]);const Qn=Pa(ve),Jn=Pa(ca),no={width:Qn,height:Jn},Io=(0,te.useMemo)(()=>{if(fn){let It=new Date(fn),bt=It.getHours(),Bt=It.getMinutes(),Gt=It.getSeconds();return bt=bt<10?"0"+bt:bt,Bt=Bt<10?"0"+Bt:Bt,Gt=Gt<10?"0"+Gt:Gt,`${bt}:${Bt}:${Gt}`}return 0},[fn]),Qo=It=>{const bt=[];if(he){let Bt=-1;It=It.replace(/(@▁▁@|@▁@)/g,function(Gt,An,Sa){bt.push({multiLine:Gt!==ua})})}return bt};function br(){window.sessionStorage.removeItem(na),to(!1),sa(0)}function wr(){to(!1),sa(0),Ze.setValue(window.sessionStorage.getItem(na))}(0,te.useEffect)(()=>{eo[it]&&it!==_t&&it!==xt&&setTimeout(()=>{const It=document.getElementsByClassName("markdown-popup-form")[0],bt=window.innerWidth/2-It.offsetWidth/2,Bt=window.innerHeight/2-It.offsetHeight/2;io(bt),yo(Bt)},0)},[it]);const Jo=It=>{It.preventDefault();const bt=It.clientX-va,Bt=It.clientY-po;document.body.onmousemove=Gt=>{let An=Gt.clientX-bt,Sa=Gt.clientY-Bt;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ma=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;An=Math.max(0,Math.min(An,Ma)),Sa=Math.max(0,Math.min(Sa,xa)),mr(Gt.clientX,Gt.clientY,bt,Bt)&&(io(An),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(It,bt,Bt,Gt)=>{const An=document.body.clientHeight,Sa=document.body.clientWidth;return It<20&&Bt>It||It>Sa-20&&Bt<It||bt<20&&Gt>bt||bt>An-20&&Gt<bt?(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 ${nt} ${aa?"on-preview":""} ${zt?"mini":""} ${Ct?"full-screen":""}`,style:no},te.createElement(de,{insertTemp:un,watch:aa,fullScreen:Ct,showNullButton:Cn,showNullProgramButton:he,onActionCallback:Ja,hidetoolBar:ze,extraUse:$n}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:_a,placeholder:nn})),aa?te.createElement("div",{ref:an,className:"preview-container"},Bn==="stex"&&te.createElement($e,{value:La}),Bn!=="stex"&&te.createElement(Ue.Z,{disabledFill:Ot,showProgramFill:he,value:La})):null))),Da?te.createElement("a",{ref:fo,className:"editor-resize"}):null,it===_t&&te.createElement(Pt,{callback:ba,onCancel:wa}),it===xt&&te.createElement(pt,{callback:ba,onCancel:wa}),te.createElement(Pe.Z,null,eo[it]&&it!==_t&&it!==xt?te.createElement(je.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:va,top:po},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Jo},eo[it]),open:!0,onCancel:wa,footer:null,destroyOnClose:!0,width:it===xt?"1200px":null,height:it===xt?"80vh":null,className:"markdown-popup-form"},Wo):null))}},70859:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return ge},I:function(){return Pe}});var te=oe(22150),pe=oe(2453),qe=oe(69677),Xe=oe(93421),Se=oe(31795),Ke=oe(78045),ce=oe(71577),De=oe(15476),Me=oe(67294),Ee=oe(52262),Ue=oe(67294),$e=Object.defineProperty,Ie=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(me,ke,Ae)=>ke in me?$e(me,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):me[ke]=Ae,x=(me,ke)=>{for(var Ae in ke||(ke={}))y.call(ke,Ae)&&b(me,Ae,ke[Ae]);if(a)for(var Ae of a(ke))E.call(ke,Ae)&&b(me,Ae,ke[Ae]);return me},z=(me,ke)=>Ie(me,ae(ke));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:me,onCancel:ke})=>{const[Ae]=ee();let yt=(0,Me.useRef)();function Jt(dt){yt.current.width=Ae.getFieldValue("width"),yt.current.align=Ae.getFieldValue("align"),me(dt,yt.current)}function sn(dt,ut){if(dt.status===-1){pe.ZP.error(dt.message);return}Ae.setFieldsValue({src:`/api/attachments/${dt.id}`,type:ut.type})}function Ne(dt){let ut=dt.target.files[0];yt.current=ut,Pe(ut,sn)}return Ue.createElement(te.default,z(x({form:Ae},re),{className:"upload-image-panel",onFinish:Jt,style:{width:470,overflow:"hidden"}}),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ue.createElement("div",{className:"flex-container"},Ue.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ue.createElement(qe.default,{style:ne})),Ue.createElement(de,{onFileChange:Ne}))),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(qe.default,{style:{width:264}})),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(Xe.Z,null,Ue.createElement(te.default.Item,{name:"width",style:{margin:0}},Ue.createElement(Se.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(Ke.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"}]})),Ue.createElement("aside",null,Ue.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(ce.ZP,{type:"default",onClick:ke},"\u53D6\u6D88"))))};function de({onFileChange:me}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:me}))}function Pe(me,ke){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ee.bg)())throw pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",me),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var yt=new window.XMLHttpRequest;yt.withCredentials=!0,yt.addEventListener("load",function(Jt){ke(JSON.parse(Jt.target.responseText),me)},!1),yt.addEventListener("error",function(Jt){console.error(Jt)},!1),yt.open("POST",`${De.KI}/api/attachments.json`),yt.send(Ae)}},76621:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return qe}});var te=oe(67294),pe=oe(73935);class qe extends te.Component{constructor(Se){super(Se);const Ke=window.document;this.node=Ke.createElement("div"),Ke.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(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return pe}});var te=oe(67294);function pe(qe,Xe){const Se=(0,te.useRef)();(0,te.useEffect)(()=>{Se.current=qe}),(0,te.useEffect)(()=>{function Ke(){Se.current()}if(Xe!==null){let ce=setInterval(Ke,Xe);return()=>clearInterval(ce)}},[Xe])}},59963:function(Ge,St,oe){"use strict";oe.r(St),oe.d(St,{default:function(){return Pe}});var te=oe(67294),pe=oe(35973),qe=oe(42563),Xe=oe(22150),Se=oe(2453),Ke=oe(85673),ce=oe(69677),De=oe(71577),Me=oe(35567),Ee=oe(65866),Ue=oe(13703),$e={bg:"bg___pOKLN",flexRow:"flexRow___mNnbK",flexJustifyCenter:"flexJustifyCenter___uouQe",flexAlignEnd:"flexAlignEnd___CKILp",flexAlignCenter:"flexAlignCenter___y5peS",flexColumn:"flexColumn___JJd9N",formWrap:"formWrap___D8WBe",titleWrap:"titleWrap___ICMYl",fieldWrap:"fieldWrap___XNrtY",mdWrap:"mdWrap___gRykC",backgroundFa:"backgroundFa___jKoLp",button:"button___f0Fqa"},Ie=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(me,ke,Ae)=>ke in me?Ie(me,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):me[ke]=Ae,z=(me,ke)=>{for(var Ae in ke||(ke={}))E.call(ke,Ae)&&x(me,Ae,ke[Ae]);if(y)for(var Ae of y(ke))b.call(ke,Ae)&&x(me,Ae,ke[Ae]);return me},ee=(me,ke)=>ae(me,a(ke)),ne=(me,ke)=>{var Ae={};for(var yt in me)E.call(me,yt)&&ke.indexOf(yt)<0&&(Ae[yt]=me[yt]);if(me!=null&&y)for(var yt of y(me))ke.indexOf(yt)<0&&b.call(me,yt)&&(Ae[yt]=me[yt]);return Ae},re=(me,ke,Ae)=>new Promise((yt,Jt)=>{var sn=ut=>{try{dt(Ae.next(ut))}catch(st){Jt(st)}},Ne=ut=>{try{dt(Ae.throw(ut))}catch(st){Jt(st)}},dt=ut=>ut.done?yt(ut.value):Promise.resolve(ut.value).then(sn,Ne);dt((Ae=Ae.apply(me,ke)).next())});const{Option:ge}=qe.default,de=me=>{var ke=me,{forumsDetail:Ae,globalSetting:yt,loading:Jt,dispatch:sn}=ke,Ne=ne(ke,["forumsDetail","globalSetting","loading","dispatch"]),dt,ut,st;const ct=(0,pe.useParams)(),[lt]=Xe.default.useForm(),[rt,mt]=(0,te.useState)({}),[Sn,Fe]=(0,te.useState)(0),[je,at]=(0,te.useState)(!1),[Nt,et]=(0,te.useState)({}),[Pt,ue]=(0,te.useState)(1);(0,te.useEffect)(()=>{if(ft(),ct.memoId)at(!0),Yt();else{at(!1);const Re={forum_id:5};mt(z({},Re)),lt.setFieldsValue(z({},Re))}},[ct.memoId]);const ft=()=>re(void 0,null,function*(){const Re=yield(0,Ue.iI)({tab_module_type:"forums"});Re!=null&&Re.un_purchased&&sn({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),et(Re||{})}),Yt=()=>re(void 0,null,function*(){var Re;const xe=(yield(0,Ue.qR)({id:ct.memoId}))||{},be={subject:xe.subject,content:xe.content,attachments:(0,Ee.z)(xe.attachments),forum_id:xe.forum_id,memo_tags:(Re=xe.memo_tags)==null?void 0:Re.map(Qe=>Qe.id)};mt(z({},be)),lt.setFieldsValue(z({},be))}),bn=Re=>re(void 0,null,function*(){var xe,be;const Qe=ee(z({id:je?ct.memoId:null},rt),{attachment_ids:(be=(xe=rt.attachments)==null?void 0:xe.filter(pt=>{var Mt;return(Mt=pt.response)==null?void 0:Mt.id}))==null?void 0:be.map(pt=>{var Mt;return(Mt=pt.response)==null?void 0:Mt.id}),tags:rt.memo_tags}),Ve=je?yield(0,Ue.b4)(Qe):yield(0,Ue.dX)(Qe);Fe(0),(Ve==null?void 0:Ve.status)===0&&(Se.ZP.success(Ve==null?void 0:Ve.message),Pt===1?pe.history.push(`/forums/${je?ct==null?void 0:ct.memoId:Ve==null?void 0:Ve.memo_id}`):pe.history.push(`/forums/${je?ct==null?void 0:ct.memoId:Ve==null?void 0:Ve.memo_id}/edit`))}),Ft=()=>{document.body.scrollIntoView(),window.location.href.includes("new")?pe.history.back():pe.history.push(`/forums/${ct.memoId}`)};return te.createElement("section",{className:$e.bg},te.createElement("section",{className:"animated fadeIn mb10"},te.createElement("aside",{className:"mt10"},te.createElement(Ke.Z,{separator:"/"},te.createElement(Ke.Z.Item,null,te.createElement(pe.Link,{to:"/forums"},"\u4EA4\u6D41\u95EE\u7B54")),te.createElement(Ke.Z.Item,null,"\u8BE6\u60C5")))),te.createElement("aside",{className:"bg-white font16 pt20 pb20 pl20"},je?"\u7F16\u8F91\u8BDD\u9898":"\u53D1\u5E03\u8BDD\u9898"),te.createElement(Xe.default,{form:lt,className:$e.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:(Re,xe)=>{console.log(xe,"values"),mt(z(z({},rt),Re))},onFinish:bn,onFinishFailed:()=>{Fe(0)}},te.createElement("div",{className:$e.fieldWrap},te.createElement(Xe.default.Item,{name:"subject",label:te.createElement("span",{className:"font16"},"\u8BDD\u9898\u540D\u79F0: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u540D\u79F0"}]},te.createElement(ce.default,{maxLength:50,suffix:`${((dt=rt.subject)==null?void 0:dt.length)||0}/50`}))),te.createElement("div",{className:$e.mdWrap},te.createElement(Xe.default.Item,{name:"content",label:te.createElement("span",{className:"font16"},"\u5185\u5BB9: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u5185\u5BB9"}]},te.createElement(Me.Z,{height:600,id:"forums-new-content",watch:!0,defaultValue:rt.content})),te.createElement("div",null,te.createElement(Xe.default.Item,{name:"attachments",style:{width:350}},te.createElement(Ee.Z,{showRemoveModal:!0})))),te.createElement("div",{className:$e.mdWrap},te.createElement(Xe.default.Item,{name:"forum_id",label:te.createElement("span",{className:"font16"},"\u8BDD\u9898\u7C7B\u578B: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u8BDD\u9898\u7C7B\u578B"}]},te.createElement(qe.default,{style:{width:300}},(ut=Nt==null?void 0:Nt.forums)==null?void 0:ut.map(Re=>te.createElement(ge,{key:Re.id,value:Re.id},Re.name))))),rt.forum_id===5&&te.createElement("div",{className:$e.mdWrap},te.createElement(Xe.default.Item,{name:"memo_tags",label:te.createElement("span",{className:"font16"},"\u6280\u672F\u6807\u7B7E: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6280\u672F\u6807\u7B7E"}]},te.createElement(qe.default,{style:{width:300},placeholder:"\u8BF7\u9009\u62E9\u6280\u672F\u6807\u7B7E",mode:"multiple",tokenSeparators:[";"],filterOption:(Re,xe)=>xe.props.children.toLocaleLowerCase().indexOf(Re.toLocaleLowerCase())!=-1},(st=Nt==null?void 0:Nt.tag_list)==null?void 0:st.map(Re=>te.createElement(ge,{key:Re.id,value:Re.id},Re.name))))),te.createElement("div",{className:$e.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(Xe.default.Item,null,te.createElement(De.ZP,{size:"middle",type:"primary",className:`${$e.button} mr20`,htmlType:"submit",loading:Sn===1,onClick:()=>{ue(1),Fe(1)}},"\u63D0\u4EA4"),te.createElement(De.ZP,{size:"middle",type:"primary",className:`${$e.button} mr20`,htmlType:"submit",loading:Sn===2,onClick:()=>{ue(2),Fe(2)}},"\u4FDD\u5B58"),te.createElement(De.ZP,{size:"middle",type:"primary",ghost:!0,className:`${$e.button} mr20`,onClick:Ft},"\u53D6\u6D88"))))))};var Pe=(0,pe.connect)(({forumsDetail:me,loading:ke,globalSetting:Ae})=>({forumsDetail:me,globalSetting:Ae,loading:ke.models.forumsDetail}))(de)},4440:function(Ge,St,oe){"use strict";oe.d(St,{$J:function(){return qe},JZ:function(){return Se},bN:function(){return ce},jP:function(){return Ke},rO:function(){return Xe}});var te=oe(33170),pe=(De,Me,Ee)=>new Promise((Ue,$e)=>{var Ie=y=>{try{a(Ee.next(y))}catch(E){$e(E)}},ae=y=>{try{a(Ee.throw(y))}catch(E){$e(E)}},a=y=>y.done?Ue(y.value):Promise.resolve(y.value).then(Ie,ae);a((Ee=Ee.apply(De,Me)).next())});function qe(De){return(0,te.U2)(`libraries/${De}.json`)}function Xe(De){return(0,te.U2)("library_tags.json",De)}function Se(De){return pe(this,null,function*(){return(yield(0,te.IV)(`attachments/${De}.json`)).status===0})}function Ke(De){return(0,te.v_)("libraries.json",De)}function ce(De,Me){return(0,te.gz)(`libraries/${De}.json`,Me)}},57838:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return pe}});var te=oe(67294);function pe(){const[,qe]=te.useReducer(Xe=>Xe+1,0);return qe}},85673:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return sn}});var te=oe(94184),pe=oe.n(te),qe=oe(37419),Xe=oe(1337),Se=oe(67294),Ke=oe(96159),ce=oe(53124),De=oe(42922),Me=oe(56153);const Ee=Ne=>{let{children:dt}=Ne;const{getPrefixCls:ut}=Se.useContext(ce.E_),st=ut("breadcrumb");return Se.createElement("li",{className:`${st}-separator`,"aria-hidden":"true"},dt===""?dt:dt||"/")};Ee.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ee,$e=function(Ne,dt){var ut={};for(var st in Ne)Object.prototype.hasOwnProperty.call(Ne,st)&&dt.indexOf(st)<0&&(ut[st]=Ne[st]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(Ne);ct<st.length;ct++)dt.indexOf(st[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ne,st[ct])&&(ut[st[ct]]=Ne[st[ct]]);return ut};function Ie(Ne,dt){if(Ne.title===void 0||Ne.title===null)return null;const ut=Object.keys(dt).join("|");return typeof Ne.title=="object"?Ne.title:String(Ne.title).replace(new RegExp(`:(${ut})`,"g"),(st,ct)=>dt[ct]||st)}function ae(Ne,dt,ut,st){if(ut==null)return null;const{className:ct,onClick:lt}=dt,rt=$e(dt,["className","onClick"]),mt=Object.assign(Object.assign({},(0,Xe.Z)(rt,{data:!0,aria:!0})),{onClick:lt});return st!==void 0?Se.createElement("a",Object.assign({},mt,{className:pe()(`${Ne}-link`,ct),href:st}),ut):Se.createElement("span",Object.assign({},mt,{className:pe()(`${Ne}-link`,ct)}),ut)}function a(Ne,dt){return(st,ct,lt,rt,mt)=>{if(dt)return dt(st,ct,lt,rt);const Sn=Ie(st,ct);return ae(Ne,st,Sn,mt)}}var y=function(Ne,dt){var ut={};for(var st in Ne)Object.prototype.hasOwnProperty.call(Ne,st)&&dt.indexOf(st)<0&&(ut[st]=Ne[st]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(Ne);ct<st.length;ct++)dt.indexOf(st[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ne,st[ct])&&(ut[st[ct]]=Ne[st[ct]]);return ut};const E=Ne=>{const{prefixCls:dt,separator:ut="/",children:st,menu:ct,overlay:lt,dropdownProps:rt,href:mt}=Ne,Fe=(je=>{if(ct||lt){const at=Object.assign({},rt);if(ct){const Nt=ct||{},{items:et}=Nt,Pt=y(Nt,["items"]);at.menu=Object.assign(Object.assign({},Pt),{items:et==null?void 0:et.map((ue,ft)=>{var{key:Yt,title:bn,label:Ft,path:Re}=ue,xe=y(ue,["key","title","label","path"]);let be=Ft!=null?Ft:bn;return Re&&(be=Se.createElement("a",{href:`${mt}${Re}`},be)),Object.assign(Object.assign({},xe),{key:Yt!=null?Yt:ft,label:be})})})}else lt&&(at.overlay=lt);return Se.createElement(Me.Z,Object.assign({placement:"bottom"},at),Se.createElement("span",{className:`${dt}-overlay-link`},je,Se.createElement(De.Z,null)))}return je})(st);return Fe!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,Fe),ut&&Se.createElement(Ue,null,ut)):null},b=Ne=>{const{prefixCls:dt,children:ut,href:st}=Ne,ct=y(Ne,["prefixCls","children","href"]),{getPrefixCls:lt}=Se.useContext(ce.E_),rt=lt("breadcrumb",dt);return Se.createElement(E,Object.assign({},ct,{prefixCls:rt}),ae(rt,ct,ut,st))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=Ne=>{const{componentCls:dt,iconCls:ut}=Ne;return{[dt]:Object.assign(Object.assign({},(0,z.Wf)(Ne)),{color:Ne.itemColor,fontSize:Ne.fontSize,[ut]:{fontSize:Ne.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ne.linkColor,transition:`color ${Ne.motionDurationMid}`,padding:`0 ${Ne.paddingXXS}px`,borderRadius:Ne.borderRadiusSM,height:Ne.lineHeight*Ne.fontSize,display:"inline-block",marginInline:-Ne.marginXXS,"&:hover":{color:Ne.linkHoverColor,backgroundColor:Ne.colorBgTextHover}},(0,z.Qy)(Ne)),"li:last-child":{color:Ne.lastItemColor},[`${dt}-separator`]:{marginInline:Ne.separatorMargin,color:Ne.separatorColor},[`${dt}-link`]:{[`
> ${ut} + span,
> ${ut} + a
`]:{marginInlineStart:Ne.marginXXS}},[`${dt}-overlay-link`]:{borderRadius:Ne.borderRadiusSM,height:Ne.lineHeight*Ne.fontSize,display:"inline-block",padding:`0 ${Ne.paddingXXS}px`,marginInline:-Ne.marginXXS,[`> ${ut}`]:{marginInlineStart:Ne.marginXXS,fontSize:Ne.fontSizeIcon},"&:hover":{color:Ne.linkHoverColor,backgroundColor:Ne.colorBgTextHover,a:{color:Ne.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ne.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Ne=>{const dt=(0,ne.TS)(Ne,{});return[re(dt)]},Ne=>({itemColor:Ne.colorTextDescription,lastItemColor:Ne.colorText,iconFontSize:Ne.fontSize,linkColor:Ne.colorTextDescription,linkHoverColor:Ne.colorText,separatorColor:Ne.colorTextDescription,separatorMargin:Ne.marginXS})),de=function(Ne,dt){var ut={};for(var st in Ne)Object.prototype.hasOwnProperty.call(Ne,st)&&dt.indexOf(st)<0&&(ut[st]=Ne[st]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(Ne);ct<st.length;ct++)dt.indexOf(st[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ne,st[ct])&&(ut[st[ct]]=Ne[st[ct]]);return ut};function Pe(Ne){const{breadcrumbName:dt,children:ut}=Ne,st=de(Ne,["breadcrumbName","children"]),ct=Object.assign({title:dt},st);return ut&&(ct.menu={items:ut.map(lt=>{var{breadcrumbName:rt}=lt,mt=de(lt,["breadcrumbName"]);return Object.assign(Object.assign({},mt),{title:rt})})}),ct}function me(Ne,dt){return(0,Se.useMemo)(()=>Ne||(dt?dt.map(Pe):null),[Ne,dt])}var ke=function(Ne,dt){var ut={};for(var st in Ne)Object.prototype.hasOwnProperty.call(Ne,st)&&dt.indexOf(st)<0&&(ut[st]=Ne[st]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(Ne);ct<st.length;ct++)dt.indexOf(st[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ne,st[ct])&&(ut[st[ct]]=Ne[st[ct]]);return ut};const Ae=(Ne,dt)=>{if(dt===void 0)return dt;let ut=(dt||"").replace(/^\//,"");return Object.keys(Ne).forEach(st=>{ut=ut.replace(`:${st}`,Ne[st])}),ut},yt=Ne=>{const{prefixCls:dt,separator:ut="/",style:st,className:ct,rootClassName:lt,routes:rt,items:mt,children:Sn,itemRender:Fe,params:je={}}=Ne,at=ke(Ne,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Nt,direction:et,breadcrumb:Pt}=Se.useContext(ce.E_);let ue;const ft=Nt("breadcrumb",dt),[Yt,bn]=ge(ft),Ft=me(mt,rt),Re=a(ft,Fe);if(Ft&&Ft.length>0){const Qe=[],Ve=mt||rt;ue=Ft.map((pt,Mt)=>{const{path:jt,key:en,type:gn,menu:ln,overlay:Tt,onClick:En,className:vn,separator:jn,dropdownProps:xn}=pt,hn=Ae(je,jt);hn!==void 0&&Qe.push(hn);const ye=en!=null?en:Mt;if(gn==="separator")return Se.createElement(Ue,{key:ye},jn);const Oe={},Je=Mt===Ft.length-1;ln?Oe.menu=ln:Tt&&(Oe.overlay=Tt);let{href:Lt}=pt;return Qe.length&&hn!==void 0&&(Lt=`#/${Qe.join("/")}`),Se.createElement(E,Object.assign({key:ye},Oe,(0,Xe.Z)(pt,{data:!0,aria:!0}),{className:vn,dropdownProps:xn,href:Lt,separator:Je?"":ut,onClick:En,prefixCls:ft}),Re(pt,je,Ve,Qe,Lt))})}else if(Sn){const Qe=(0,qe.Z)(Sn).length;ue=(0,qe.Z)(Sn).map((Ve,pt)=>{if(!Ve)return Ve;const Mt=pt===Qe-1;return(0,Ke.Tm)(Ve,{separator:Mt?"":ut,key:pt})})}const xe=pe()(ft,Pt==null?void 0:Pt.className,{[`${ft}-rtl`]:et==="rtl"},ct,lt,bn),be=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),st);return Yt(Se.createElement("nav",Object.assign({className:xe,style:be},at),Se.createElement("ol",null,ue)))};yt.Item=x,yt.Separator=Ue;var Jt=yt,sn=Jt},56153:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return Sg}});var te=oe(67294),pe=oe.t(te,2),qe=oe(91034),Xe=oe(94184),Se=oe.n(Xe),Ke=oe(87462),ce=oe(4942),De=oe(97685),Me=oe(45987),Ee=oe(1413),Ue=oe(73935);function $e(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ie={};function ae(ie,le){}function a(ie,le){}function y(){Ie={}}function E(ie,le,se){!le&&!Ie[se]&&(ie(!1,se),Ie[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 fe=te.useRef({});return(!("value"in fe.current)||se(fe.current.condition,le))&&(fe.current.value=ie(),fe.current.condition=le),fe.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 fe=le.filter(function(Ce){return Ce});return fe.length<=1?fe[0]:function(Ce){le.forEach(function(He){ge(He,Ce)})}}function Pe(){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(fe,Ce){return fe.length===Ce.length&&fe.every(function(He,We){return He===Ce[We]})})}function me(ie){var le,se,fe=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof fe=="function"&&!((le=fe.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}var ke=te.createContext(null),Ae=ke,yt=oe(74902),Jt=$e()?te.useLayoutEffect:te.useEffect,sn=Jt,Ne=function(le,se){var fe=React.useRef(!0);Jt(function(){if(!fe.current)return le()},se),Jt(function(){return fe.current=!1,function(){fe.current=!0}},[])},dt=[];function ut(ie,le){var se=te.useState(function(){if(!$e())return null;var qt=document.createElement("div");return qt}),fe=(0,De.Z)(se,1),Ce=fe[0],He=te.useRef(!1),We=te.useContext(Ae),vt=te.useState(dt),$t=(0,De.Z)(vt,2),wt=$t[0],Ht=$t[1],Et=We||(He.current?void 0:function(qt){Ht(function(Nn){var mn=[qt].concat((0,yt.Z)(Nn));return mn})});function Zt(){Ce.parentElement||document.body.appendChild(Ce),He.current=!0}function Rt(){var qt;(qt=Ce.parentElement)===null||qt===void 0||qt.removeChild(Ce),He.current=!1}return sn(function(){return ie?We?We(Zt):Zt():Rt(),Rt},[ie]),sn(function(){wt.length&&(wt.forEach(function(qt){return qt()}),Ht(dt))},[wt]),[Ce,Et]}function st(ie,le){if(!ie)return!1;if(ie.contains)return ie.contains(le);for(var se=le;se;){if(se===ie)return!0;se=se.parentNode}return!1}var ct="data-rc-order",lt="rc-util-key",rt=new Map;function mt(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=ie.mark;return le?le.startsWith("data-")?le:"data-".concat(le):lt}function Sn(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function Fe(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function je(ie){return Array.from((rt.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function at(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$e())return null;var se=le.csp,fe=le.prepend,Ce=document.createElement("style");Ce.setAttribute(ct,Fe(fe)),se!=null&&se.nonce&&(Ce.nonce=se==null?void 0:se.nonce),Ce.innerHTML=ie;var He=Sn(le),We=He.firstChild;if(fe){if(fe==="queue"){var vt=je(He).filter(function($t){return["prepend","prependQueue"].includes($t.getAttribute(ct))});if(vt.length)return He.insertBefore(Ce,vt[vt.length-1].nextSibling),Ce}He.insertBefore(Ce,We)}else He.appendChild(Ce);return Ce}function Nt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Sn(le);return je(se).find(function(fe){return fe.getAttribute(mt(le))===ie})}function et(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Nt(ie,le);if(se){var fe=Sn(le);fe.removeChild(se)}}function Pt(ie,le){var se=rt.get(ie);if(!se||!st(document,se)){var fe=at("",le),Ce=fe.parentNode;rt.set(ie,Ce),ie.removeChild(fe)}}function ue(){rt.clear()}function ft(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fe=Sn(se);Pt(fe,se);var Ce=Nt(le,se);if(Ce){var He,We;if((He=se.csp)!==null&&He!==void 0&&He.nonce&&Ce.nonce!==((We=se.csp)===null||We===void 0?void 0:We.nonce)){var vt;Ce.nonce=(vt=se.csp)===null||vt===void 0?void 0:vt.nonce}return Ce.innerHTML!==ie&&(Ce.innerHTML=ie),Ce}var $t=at(ie,se);return $t.setAttribute(mt(se),le),$t}var Yt;function bn(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"),fe=se.style;fe.position="absolute",fe.top="0",fe.left="0",fe.pointerEvents="none",fe.visibility="hidden",fe.width="200px",fe.height="150px",fe.overflow="hidden",se.appendChild(le),document.body.appendChild(se);var Ce=le.offsetWidth;se.style.overflow="scroll";var He=le.offsetWidth;Ce===He&&(He=se.clientWidth),document.body.removeChild(se),Yt=Ce-He}return Yt}function Ft(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?bn():se}function Re(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var le=getComputedStyle(ie,"::-webkit-scrollbar"),se=le.width,fe=le.height;return{width:Ft(se),height:Ft(fe)}}function xe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var be="rc-util-locker-".concat(Date.now()),Qe=0;function Ve(ie){var le=!!ie,se=te.useState(function(){return Qe+=1,"".concat(be,"_").concat(Qe)}),fe=(0,De.Z)(se,1),Ce=fe[0];sn(function(){if(le){var He=Re(document.body).width,We=xe();ft(`
html body {
overflow-y: hidden;
`.concat(We?"width: calc(100% - ".concat(He,"px);"):"",`
}`),Ce)}else et(Ce);return function(){et(Ce)}},[le,Ce])}var pt=!1;function Mt(ie){return typeof ie=="boolean"&&(pt=ie),pt}var jt=function(le){return le===!1?!1:!$e()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},en=te.forwardRef(function(ie,le){var se=ie.open,fe=ie.autoLock,Ce=ie.getContainer,He=ie.debug,We=ie.autoDestroy,vt=We===void 0?!0:We,$t=ie.children,wt=te.useState(se),Ht=(0,De.Z)(wt,2),Et=Ht[0],Zt=Ht[1],Rt=Et||se;te.useEffect(function(){(vt||se)&&Zt(se)},[se,vt]);var qt=te.useState(function(){return jt(Ce)}),Nn=(0,De.Z)(qt,2),mn=Nn[0],Dn=Nn[1];te.useEffect(function(){var ha=jt(Ce);Dn(ha!=null?ha:null)});var yn=ut(Rt&&!mn,He),on=(0,De.Z)(yn,2),kt=on[0],ra=on[1],qn=mn!=null?mn:kt;Ve(fe&&se&&$e()&&(qn===kt||qn===document.body));var ia=null;if($t&&me($t)&&le){var ya=$t;ia=ya.ref}var ja=Pe(ia,le);if(!Rt||!$e()||mn===void 0)return null;var Un=qn===!1||Mt(),zn=$t;return le&&(zn=te.cloneElement($t,{ref:ja})),te.createElement(Ae.Provider,{value:ra},Un?zn:(0,Ue.createPortal)(zn,qn))}),gn=en,ln=gn,Tt=oe(48555);function En(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function vn(ie){return En(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 hn(ie){return xn(ie)?jn(ie):null}function ye(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var fe,Ce=arguments.length,He=new Array(Ce),We=0;We<Ce;We++)He[We]=arguments[We];return(fe=le.current)===null||fe===void 0?void 0:fe.call.apply(fe,[le].concat(He))},[]);return se}function Oe(){var ie=(0,Ee.Z)({},pe);return ie.useId}var Je=0;function Lt(){}var xt=Oe(),_t=xt?function(le){var se=xt();return le||se}:function(le){var se=te.useState("ssr-id"),fe=(0,De.Z)(se,2),Ce=fe[0],He=fe[1];return te.useEffect(function(){var We=Je;Je+=1,He("rc_unique_".concat(We))},[]),le||Ce};function Qt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var At=Qt()?te.useLayoutEffect:te.useEffect,Wt=function(le,se){var fe=te.useRef(!0);At(function(){return le(fe.current)},se),At(function(){return fe.current=!1,function(){fe.current=!0}},[])},pn=function(le,se){Wt(function(fe){if(!fe)return le()},se)},tn=Wt,Hn=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))},_n=te.createContext(null),Xn=_n;function la(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function In(ie,le,se,fe){return te.useMemo(function(){var Ce=la(se!=null?se:le),He=la(fe!=null?fe:le),We=new Set(Ce),vt=new Set(He);return ie&&(We.has("hover")&&(We.delete("hover"),We.add("click")),vt.has("hover")&&(vt.delete("hover"),vt.add("click"))),[We,vt]},[ie,le,se,fe])}var Tn=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,fe=le.height;if(se||fe)return!0}if(ie.getBoundingClientRect){var Ce=ie.getBoundingClientRect(),He=Ce.width,We=Ce.height;if(He||We)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,fe){for(var Ce=se.points,He=Object.keys(ie),We=0;We<He.length;We+=1){var vt,$t=He[We];if(Yn((vt=ie[$t])===null||vt===void 0?void 0:vt.points,Ce,fe))return"".concat(le,"-placement-").concat($t)}return""}function ma(ie,le,se,fe){return le||(se?{motionName:"".concat(ie,"-").concat(se)}:fe?{motionName:fe}:null)}function Rn(ie){return ie.ownerDocument.defaultView}function Pa(ie){for(var le=[],se=ie==null?void 0:ie.parentElement,fe=["hidden","scroll","clip","auto"];se;){var Ce=Rn(se).getComputedStyle(se),He=Ce.overflowX,We=Ce.overflowY,vt=Ce.overflow;[He,We,vt].some(function($t){return fe.includes($t)})&&le.push(se),se=se.parentElement}return le}function Aa(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?le:ie}function ta(ie){return Aa(parseFloat(ie),0)}function Ua(ie,le){var se=(0,Ee.Z)({},ie);return(le||[]).forEach(function(fe){if(!(fe instanceof HTMLBodyElement||fe instanceof HTMLHtmlElement)){var Ce=Rn(fe).getComputedStyle(fe),He=Ce.overflow,We=Ce.overflowClipMargin,vt=Ce.borderTopWidth,$t=Ce.borderBottomWidth,wt=Ce.borderLeftWidth,Ht=Ce.borderRightWidth,Et=fe.getBoundingClientRect(),Zt=fe.offsetHeight,Rt=fe.clientHeight,qt=fe.offsetWidth,Nn=fe.clientWidth,mn=ta(vt),Dn=ta($t),yn=ta(wt),on=ta(Ht),kt=Aa(Math.round(Et.width/qt*1e3)/1e3),ra=Aa(Math.round(Et.height/Zt*1e3)/1e3),qn=(qt-Nn-yn-on)*kt,ia=(Zt-Rt-mn-Dn)*ra,ya=mn*ra,ja=Dn*ra,Un=yn*kt,zn=on*kt,ha=0,Ea=0;if(He==="clip"){var ga=ta(We);ha=ga*kt,Ea=ga*ra}var Mn=Et.x+Un-ha,Vn=Et.y+ya-Ea,Ln=Mn+Et.width+2*ha-Un-zn-qn,Ha=Vn+Et.height+2*Ea-ya-ja-ia;se.left=Math.max(se.left,Mn),se.top=Math.max(se.top,Vn),se.right=Math.min(se.right,Ln),se.bottom=Math.min(se.bottom,Ha)}}),se}function eo(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),fe=se.match(/^(.*)\%$/);return fe?ie*(parseFloat(fe[1])/100):parseFloat(se)}function Qa(ie,le){var se=le||[],fe=(0,De.Z)(se,2),Ce=fe[0],He=fe[1];return[eo(ie.width,Ce),eo(ie.height,He)]}function Le(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function we(ie,le){var se=le[0],fe=le[1],Ce,He;return se==="t"?He=ie.y:se==="b"?He=ie.y+ie.height:He=ie.y+ie.height/2,fe==="l"?Ce=ie.x:fe==="r"?Ce=ie.x+ie.width:Ce=ie.x+ie.width/2,{x:Ce,y:He}}function ve(ie,le){var se={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(fe,Ce){return Ce===le?se[fe]||"c":fe}).join("")}function ht(ie,le,se,fe,Ce,He,We){var vt=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ce[fe]||{}}),$t=(0,De.Z)(vt,2),wt=$t[0],Ht=$t[1],Et=te.useRef(0),Zt=te.useMemo(function(){return le?Pa(le):[]},[le]),Rt=te.useRef({}),qt=function(){Rt.current={}};ie||qt();var Nn=ye(function(){if(le&&se&&ie){let Co=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Za,Gr=Kn.x+ti,Lr=Kn.y+ur,ni=Gr+oa,Li=Lr+Ca,bi=Math.max(Gr,Yo.left),wi=Math.max(Lr,Yo.top),Ei=Math.min(ni,Yo.right),Kt=Math.min(Li,Yo.bottom);return Math.max(0,(Ei-bi)*(Kt-wi))},Zo=function(){jo=Kn.y+ea,nr=jo+Ca,ar=Kn.x+Wa,or=ar+oa};var yn,on,kt=le,ra=kt.ownerDocument,qn=Rn(kt),ia=qn.getComputedStyle(kt),ya=ia.width,ja=ia.height,Un=ia.position,zn=kt.style.left,ha=kt.style.top,Ea=kt.style.right,ga=kt.style.bottom,Mn=(0,Ee.Z)((0,Ee.Z)({},Ce[fe]),He),Vn=ra.createElement("div");(yn=kt.parentElement)===null||yn===void 0||yn.appendChild(Vn),Vn.style.left="".concat(kt.offsetLeft,"px"),Vn.style.top="".concat(kt.offsetTop,"px"),Vn.style.position=Un,Vn.style.height="".concat(kt.offsetHeight,"px"),Vn.style.width="".concat(kt.offsetWidth,"px"),kt.style.left="0",kt.style.top="0",kt.style.right="auto",kt.style.bottom="auto";var Ln;if(Array.isArray(se))Ln={x:se[0],y:se[1],width:0,height:0};else{var Ha=se.getBoundingClientRect();Ln={x:Ha.x,y:Ha.y,width:Ha.width,height:Ha.height}}var Kn=kt.getBoundingClientRect(),Va=ra.documentElement,so=Va.clientWidth,Xa=Va.clientHeight,uo=Va.scrollWidth,So=Va.scrollHeight,Zn=Va.scrollTop,mo=Va.scrollLeft,Ca=Kn.height,oa=Kn.width,Ta=Ln.height,wo=Ln.width,Ro={left:0,top:0,right:so,bottom:Xa},Uo={left:-mo,top:-Zn,right:uo-mo,bottom:So-Zn},qa=Mn.htmlRegion,oo="visible",Oo="visibleFirst";qa!=="scroll"&&qa!==Oo&&(qa=oo);var ro=qa===Oo,da=Ua(Uo,Zt),rn=Ua(Ro,Zt),Za=qa===oo?rn:da,co=ro?rn:Za;kt.style.left="auto",kt.style.top="auto",kt.style.right="0",kt.style.bottom="0";var To=kt.getBoundingClientRect();kt.style.left=zn,kt.style.top=ha,kt.style.right=Ea,kt.style.bottom=ga,(on=kt.parentElement)===null||on===void 0||on.removeChild(Vn);var er=Aa(Math.round(oa/parseFloat(ya)*1e3)/1e3),tr=Aa(Math.round(Ca/parseFloat(ja)*1e3)/1e3);if(er===0||tr===0||En(se)&&!Tn(se))return;var ii=Mn.offset,Rr=Mn.targetOffset,Bo=Qa(Kn,ii),kr=(0,De.Z)(Bo,2),$o=kr[0],No=kr[1],jr=Qa(Ln,Rr),Mo=(0,De.Z)(jr,2),gi=Mo[0],di=Mo[1];Ln.x-=gi,Ln.y-=di;var Pr=Mn.points||[],ho=(0,De.Z)(Pr,2),Vo=ho[0],li=ho[1],ko=Le(li),Po=Le(Vo),Hr=we(Ln,ko),Cr=we(Kn,Po),Ko=(0,Ee.Z)({},Mn),Wa=Hr.x-Cr.x+$o,ea=Hr.y-Cr.y+No,Go=Co(Wa,ea),zo=Co(Wa,ea,rn),Fr=we(Ln,["t","l"]),xr=we(Kn,["t","l"]),Br=we(Ln,["b","r"]),Eo=we(Kn,["b","r"]),vr=Mn.overflow||{},Zr=vr.adjustX,$r=vr.adjustY,Nr=vr.shiftX,Wr=vr.shiftY,Mr=function(ur){return typeof ur=="boolean"?ur:ur>=0},jo,nr,ar,or;Zo();var Or=Mr($r),Ur=Po[0]===ko[0];if(Or&&Po[0]==="t"&&(nr>co.bottom||Rt.current.bt)){var Ao=ea;Ur?Ao-=Ca-Ta:Ao=Fr.y-Eo.y-No;var Vr=Co(Wa,Ao),vo=Co(Wa,Ao,rn);Vr>Go||Vr===Go&&(!ro||vo>=zo)?(Rt.current.bt=!0,ea=Ao,No=-No,Ko.points=[ve(Po,0),ve(ko,0)]):Rt.current.bt=!1}if(Or&&Po[0]==="b"&&(jo<co.top||Rt.current.tb)){var rr=ea;Ur?rr+=Ca-Ta:rr=Br.y-xr.y-No;var Kr=Co(Wa,rr),si=Co(Wa,rr,rn);Kr>Go||Kr===Go&&(!ro||si>=zo)?(Rt.current.tb=!0,ea=rr,No=-No,Ko.points=[ve(Po,0),ve(ko,0)]):Rt.current.tb=!1}var _r=Mr(Zr),Xr=Po[1]===ko[1];if(_r&&Po[1]==="l"&&(or>co.right||Rt.current.rl)){var ir=Wa;Xr?ir-=oa-wo:ir=Fr.x-Eo.x-$o;var Yr=Co(ir,ea),ui=Co(ir,ea,rn);Yr>Go||Yr===Go&&(!ro||ui>=zo)?(Rt.current.rl=!0,Wa=ir,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):Rt.current.rl=!1}if(_r&&Po[1]==="r"&&(ar<co.left||Rt.current.lr)){var gr=Wa;Xr?gr+=oa-wo:gr=Br.x-xr.x-$o;var dr=Co(gr,ea),Tr=Co(gr,ea,rn);dr>Go||dr===Go&&(!ro||Tr>=zo)?(Rt.current.lr=!0,Wa=gr,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):Rt.current.lr=!1}Zo();var lr=Nr===!0?0:Nr;typeof lr=="number"&&(ar<rn.left&&(Wa-=ar-rn.left-$o,Ln.x+wo<rn.left+lr&&(Wa+=Ln.x-rn.left+wo-lr)),or>rn.right&&(Wa-=or-rn.right-$o,Ln.x>rn.right-lr&&(Wa+=Ln.x-rn.right+lr)));var _o=Wr===!0?0:Wr;typeof _o=="number"&&(jo<rn.top&&(ea-=jo-rn.top-No,Ln.y+Ta<rn.top+_o&&(ea+=Ln.y-rn.top+Ta-_o)),nr>rn.bottom&&(ea-=nr-rn.bottom-No,Ln.y>rn.bottom-_o&&(ea+=Ln.y-rn.bottom+_o)));var Xo=Kn.x+Wa,sr=Xo+oa,pr=Kn.y+ea,yr=pr+Ca,Ho=Ln.x,mi=Ho+wo,Qr=Ln.y,ci=Qr+Ta,Jr=Math.max(Xo,Ho),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;We==null||We(le,Ko);var pi=To.right-Kn.x-(Wa+Kn.width),yi=To.bottom-Kn.y-(ea+Kn.height);Ht({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:Ko})}}),mn=function(){Et.current+=1;var on=Et.current;Promise.resolve().then(function(){Et.current===on&&Nn()})},Dn=function(){Ht(function(on){return(0,Ee.Z)((0,Ee.Z)({},on),{},{ready:!1})})};return tn(Dn,[fe]),tn(function(){ie||Dn()},[ie]),[wt.ready,wt.offsetX,wt.offsetY,wt.offsetR,wt.offsetB,wt.arrowX,wt.arrowY,wt.scaleX,wt.scaleY,wt.align,mn]}function zt(ie,le,se,fe,Ce){tn(function(){if(ie&&le&&se){let Et=function(){fe(),Ce()};var He=le,We=se,vt=Pa(He),$t=Pa(We),wt=Rn(We),Ht=new Set([wt].concat((0,yt.Z)(vt),(0,yt.Z)($t)));return Ht.forEach(function(Zt){Zt.addEventListener("scroll",Et,{passive:!0})}),wt.addEventListener("resize",Et,{passive:!0}),fe(),function(){Ht.forEach(function(Zt){Zt.removeEventListener("scroll",Et),wt.removeEventListener("resize",Et)})}}},[ie,le,se])}function Dt(ie){var le=React.useRef(!1),se=React.useState(ie),fe=_slicedToArray(se,2),Ce=fe[0],He=fe[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function We(vt,$t){$t&&le.current||He(vt)}return[Ce,We]}function kn(ie){return ie!==void 0}function un(ie,le){var se=le||{},fe=se.defaultValue,Ce=se.value,He=se.onChange,We=se.postState,vt=useState(function(){return kn(Ce)?Ce:kn(fe)?typeof fe=="function"?fe():fe:typeof ie=="function"?ie():ie}),$t=_slicedToArray(vt,2),wt=$t[0],Ht=$t[1],Et=Ce!==void 0?Ce:wt,Zt=We?We(Et):Et,Rt=useEvent(He),qt=useState([Et]),Nn=_slicedToArray(qt,2),mn=Nn[0],Dn=Nn[1];useLayoutUpdateEffect(function(){var on=mn[0];wt!==on&&Rt(wt,on)},[mn]),useLayoutUpdateEffect(function(){kn(Ce)||Ht(Ce)},[Ce]);var yn=useEvent(function(on,kt){Ht(on,kt),Dn([Et],kt)});return[Zt,yn]}var Bn=oe(95845);function na(ie,le,se){var fe=te.useRef({});return(!("value"in fe.current)||se(fe.current.condition,le))&&(fe.current.value=ie(),fe.current.condition=le),fe.current.value}function Da(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function ot(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var fe=le.filter(function(Ce){return Ce});return fe.length<=1?fe[0]:function(Ce){le.forEach(function(He){Da(He,Ce)})}}function Cn(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return na(function(){return ot.apply(void 0,le)},le,function(fe,Ce){return fe.length!==Ce.length||fe.every(function(He,We){return He!==Ce[We]})})}function he(ie){var le,se,fe=(0,Bn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof fe=="function"&&!((le=fe.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}function ze(ie){return!isValidElement(ie)||isFragment(ie)?!1:he(ie)}function Be(ie,le,se,fe){if(!le.length)return se;var Ce=_toArray(le),He=Ce[0],We=Ce.slice(1),vt;return!ie&&typeof He=="number"?vt=[]:Array.isArray(ie)?vt=_toConsumableArray(ie):vt=_objectSpread({},ie),fe&&se===void 0&&We.length===1?delete vt[He][We[0]]:vt[He]=Be(vt[He],We,se,fe),vt}function Te(ie,le,se){var fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&fe&&se===void 0&&!get(ie,le.slice(0,-1))?ie:Be(ie,le,se,fe)}function gt(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function Ye(ie){return Array.isArray(ie)?[]:{}}var nt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function _e(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var fe=Ye(le[0]);return le.forEach(function(Ce){function He(We,vt){var $t=new Set(vt),wt=get(Ce,We),Ht=Array.isArray(wt);if(Ht||gt(wt)){if(!$t.has(wt)){$t.add(wt);var Et=get(fe,We);Ht?fe=Te(fe,We,[]):(!Et||_typeof(Et)!=="object")&&(fe=Te(fe,We,Ye(wt))),nt(wt).forEach(function(Zt){He([].concat(_toConsumableArray(We),[Zt]),$t)})}}else fe=Te(fe,We,wt)}He([])}),fe}var Vt={},Ot=[],nn=function(le){Ot.push(le)};function Pn(ie,le){if(0)var se}function $n(ie,le){if(0)var se}function Ze(){Vt={}}function $a(ie,le,se){!le&&!Vt[se]&&(ie(!1,se),Vt[se]=!0)}function La(ie,le){$a(Pn,ie,le)}function Ia(ie,le){$a($n,ie,le)}La.preMessage=nn,La.resetWarned=Ze,La.noteOnce=Ia;var aa=null,tt=function(le){return+setTimeout(le,16)},Ct=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(tt=function(le){return window.requestAnimationFrame(le)},Ct=function(le){return window.cancelAnimationFrame(le)});var Ut=0,it=new Map;function cn(ie){it.delete(ie)}var fn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ut+=1;var fe=Ut;function Ce(He){if(He===0)cn(fe),le();else{var We=tt(function(){Ce(He-1)});it.set(fe,We)}}return Ce(se),fe};fn.cancel=function(ie){var le=it.get(ie);return cn(le),Ct(le)};var sa=fn;function ca(ie,le,se,fe,Ce,He,We,vt){var $t=te.useRef(ie),wt=te.useRef(!1);$t.current!==ie&&(wt.current=!0,$t.current=ie),te.useEffect(function(){var Ht=sa(function(){wt.current=!1});return function(){sa.cancel(Ht)}},[ie]),te.useEffect(function(){if(le&&fe&&(!Ce||He)){var Ht=function(){var Un=!1,zn=function(ga){var Mn=ga.target;Un=We(Mn)},ha=function(ga){var Mn=ga.target;!wt.current&&$t.current&&!Un&&!We(Mn)&&vt(!1)};return[zn,ha]},Et=Ht(),Zt=(0,De.Z)(Et,2),Rt=Zt[0],qt=Zt[1],Nn=Ht(),mn=(0,De.Z)(Nn,2),Dn=mn[0],yn=mn[1],on=Rn(fe);on.addEventListener("mousedown",Rt,!0),on.addEventListener("click",qt,!0),on.addEventListener("contextmenu",qt,!0);var kt=hn(se);if(kt&&(kt.addEventListener("mousedown",Dn,!0),kt.addEventListener("click",yn,!0),kt.addEventListener("contextmenu",yn,!0)),0)var ra,qn,ia,ya;return function(){on.removeEventListener("mousedown",Rt,!0),on.removeEventListener("click",qt,!0),on.removeEventListener("contextmenu",qt,!0),kt&&(kt.removeEventListener("mousedown",Dn,!0),kt.removeEventListener("click",yn,!0),kt.removeEventListener("contextmenu",yn,!0))}}},[le,se,fe,Ce,He])}function fa(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Fo(ie){return fa(ie)?ie:ie instanceof te.Component?Ue.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 Do(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=Do($e(),typeof window!="undefined"?window:{}),Ka={};if($e()){var va=document.createElement("div");Ka=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),fe=se.length,Ce=0;Ce<fe;Ce+=1){var He=se[Ce];if(Object.prototype.hasOwnProperty.call(le,He)&&He in Ka)return io[ie]=le[He],io[ie]}return""}var yo=po("animationend"),_a=po("transitionend"),Ra=!!(yo&&_a),fo=yo||"animationend",an=_a||"transitionend";function pa(ie,le){if(!ie)return null;if((0,ee.Z)(ie)==="object"){var se=le.replace(/-\w/g,function(fe){return fe[1].toUpperCase()});return ie[se]}return"".concat(ie,"-").concat(le)}var Fa="none",Na="appear",Ja="enter",ba="leave",Wo="none",wa="prepare",Qn="start",Jn="active",no="end";function Io(ie){var le=te.useRef(!1),se=te.useState(ie),fe=(0,De.Z)(se,2),Ce=fe[0],He=fe[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function We(vt,$t){$t&&le.current||He(vt)}return[Ce,We]}var Qo=function(le){return+setTimeout(le,16)},br=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Qo=function(le){return window.requestAnimationFrame(le)},br=function(le){return window.cancelAnimationFrame(le)});var wr=0,Jo=new Map;function mr(ie){Jo.delete(ie)}var It=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wr+=1;var fe=wr;function Ce(He){if(He===0)mr(fe),le();else{var We=Qo(function(){Ce(He-1)});Jo.set(fe,We)}}return Ce(se),fe};It.cancel=function(ie){var le=Jo.get(ie);return mr(le),br(le)};var bt=It,Bt=function(){var ie=te.useRef(null);function le(){bt.cancel(ie.current)}function se(fe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var He=bt(function(){Ce<=1?fe({isCanceled:function(){return He!==ie.current}}):se(fe,Ce-1)});ie.current=He}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Gt=$e()?te.useLayoutEffect:te.useEffect,An=Gt,Sa=[wa,Qn,Jn,no],ka=!1,Ma=!0;function xa(ie){return ie===Jn||ie===no}var Xt=function(ie,le){var se=Io(Wo),fe=(0,De.Z)(se,2),Ce=fe[0],He=fe[1],We=Bt(),vt=(0,De.Z)(We,2),$t=vt[0],wt=vt[1];function Ht(){He(wa,!0)}return An(function(){if(Ce!==Wo&&Ce!==no){var Et=Sa.indexOf(Ce),Zt=Sa[Et+1],Rt=le(Ce);Rt===ka?He(Zt,!0):$t(function(qt){function Nn(){qt.isCanceled()||He(Zt,!0)}Rt===!0?Nn():Promise.resolve(Rt).then(Nn)})}},[ie,Ce]),te.useEffect(function(){return function(){wt()}},[]),[Ht,Ce]},Fn=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var fe=te.useCallback(function(We){se.current(We)},[]);function Ce(We){We&&(We.removeEventListener(an,fe),We.removeEventListener(fo,fe))}function He(We){le.current&&le.current!==We&&Ce(le.current),We&&We!==le.current&&(We.addEventListener(an,fe),We.addEventListener(fo,fe),le.current=We)}return te.useEffect(function(){return function(){Ce(le.current)}},[]),[He,Ce]};function Gn(ie,le,se,fe){var Ce=fe.motionEnter,He=Ce===void 0?!0:Ce,We=fe.motionAppear,vt=We===void 0?!0:We,$t=fe.motionLeave,wt=$t===void 0?!0:$t,Ht=fe.motionDeadline,Et=fe.motionLeaveImmediately,Zt=fe.onAppearPrepare,Rt=fe.onEnterPrepare,qt=fe.onLeavePrepare,Nn=fe.onAppearStart,mn=fe.onEnterStart,Dn=fe.onLeaveStart,yn=fe.onAppearActive,on=fe.onEnterActive,kt=fe.onLeaveActive,ra=fe.onAppearEnd,qn=fe.onEnterEnd,ia=fe.onLeaveEnd,ya=fe.onVisibleChanged,ja=Io(),Un=(0,De.Z)(ja,2),zn=Un[0],ha=Un[1],Ea=Io(Fa),ga=(0,De.Z)(Ea,2),Mn=ga[0],Vn=ga[1],Ln=Io(null),Ha=(0,De.Z)(Ln,2),Kn=Ha[0],Va=Ha[1],so=(0,te.useRef)(!1),Xa=(0,te.useRef)(null);function uo(){return se()}var So=(0,te.useRef)(!1);function Zn(da){var rn=uo();if(!(da&&!da.deadline&&da.target!==rn)){var Za=So.current,co;Mn===Na&&Za?co=ra==null?void 0:ra(rn,da):Mn===Ja&&Za?co=qn==null?void 0:qn(rn,da):Mn===ba&&Za&&(co=ia==null?void 0:ia(rn,da)),Mn!==Fa&&Za&&co!==!1&&(Vn(Fa,!0),Va(null,!0))}}var mo=Fn(Zn),Ca=(0,De.Z)(mo,1),oa=Ca[0],Ta=te.useMemo(function(){var da,rn,Za;switch(Mn){case Na:return da={},(0,ce.Z)(da,wa,Zt),(0,ce.Z)(da,Qn,Nn),(0,ce.Z)(da,Jn,yn),da;case Ja:return rn={},(0,ce.Z)(rn,wa,Rt),(0,ce.Z)(rn,Qn,mn),(0,ce.Z)(rn,Jn,on),rn;case ba:return Za={},(0,ce.Z)(Za,wa,qt),(0,ce.Z)(Za,Qn,Dn),(0,ce.Z)(Za,Jn,kt),Za;default:return{}}},[Mn]),wo=Xt(Mn,function(da){if(da===wa){var rn=Ta[wa];return rn?rn(uo()):ka}if(qa in Ta){var Za;Va(((Za=Ta[qa])===null||Za===void 0?void 0:Za.call(Ta,uo(),null))||null)}return qa===Jn&&(oa(uo()),Ht>0&&(clearTimeout(Xa.current),Xa.current=setTimeout(function(){Zn({deadline:!0})},Ht))),Ma}),Ro=(0,De.Z)(wo,2),Uo=Ro[0],qa=Ro[1],oo=xa(qa);So.current=oo,An(function(){ha(le);var da=so.current;if(so.current=!0,!!ie){var rn;!da&&le&&vt&&(rn=Na),da&&le&&He&&(rn=Ja),(da&&!le&&wt||!da&&Et&&!le&&wt)&&(rn=ba),rn&&(Vn(rn),Uo())}},[le]),(0,te.useEffect)(function(){(Mn===Na&&!vt||Mn===Ja&&!He||Mn===ba&&!wt)&&Vn(Fa)},[vt,He,wt]),(0,te.useEffect)(function(){return function(){so.current=!1,clearTimeout(Xa.current)}},[]);var Oo=te.useRef(!1);(0,te.useEffect)(function(){zn&&(Oo.current=!0),zn!==void 0&&Mn===Fa&&((Oo.current||zn)&&(ya==null||ya(zn)),Oo.current=!0)},[zn,Mn]);var ro=Kn;return Ta[wa]&&qa===Qn&&(ro=(0,Ee.Z)({transition:"none"},ro)),[Mn,qa,ro,zn!=null?zn:le]}var wn=oe(15671),Wn=oe(43144),Ba=oe(60136),Lo=oe(51630),ao=function(ie){(0,Ba.Z)(se,ie);var le=(0,Lo.Z)(se);function se(){return(0,wn.Z)(this,se),le.apply(this,arguments)}return(0,Wn.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),bo=ao;function Oa(ie){var le=ie;(0,ee.Z)(ie)==="object"&&(le=ie.transitionSupport);function se(Ce){return!!(Ce.motionName&&le)}var fe=te.forwardRef(function(Ce,He){var We=Ce.visible,vt=We===void 0?!0:We,$t=Ce.removeOnLeave,wt=$t===void 0?!0:$t,Ht=Ce.forceRender,Et=Ce.children,Zt=Ce.motionName,Rt=Ce.leavedClassName,qt=Ce.eventProps,Nn=se(Ce),mn=(0,te.useRef)(),Dn=(0,te.useRef)();function yn(){try{return mn.current instanceof HTMLElement?mn.current:Fo(Dn.current)}catch(Ln){return null}}var on=Gn(Nn,vt,yn,Ce),kt=(0,De.Z)(on,4),ra=kt[0],qn=kt[1],ia=kt[2],ya=kt[3],ja=te.useRef(ya);ya&&(ja.current=!0);var Un=te.useCallback(function(Ln){mn.current=Ln,ge(He,Ln)},[He]),zn,ha=(0,Ee.Z)((0,Ee.Z)({},qt),{},{visible:vt});if(!Et)zn=null;else if(ra===Fa||!se(Ce))ya?zn=Et((0,Ee.Z)({},ha),Un):!wt&&ja.current&&Rt?zn=Et((0,Ee.Z)((0,Ee.Z)({},ha),{},{className:Rt}),Un):Ht||!wt&&!Rt?zn=Et((0,Ee.Z)((0,Ee.Z)({},ha),{},{style:{display:"none"}}),Un):zn=null;else{var Ea,ga;qn===wa?ga="prepare":xa(qn)?ga="active":qn===Qn&&(ga="start"),zn=Et((0,Ee.Z)((0,Ee.Z)({},ha),{},{className:Se()(pa(Zt,ra),(Ea={},(0,ce.Z)(Ea,pa(Zt,"".concat(ra,"-").concat(ga)),ga),(0,ce.Z)(Ea,Zt,typeof Zt=="string"),Ea)),style:ia}),Un)}if(te.isValidElement(zn)&&me(zn)){var Mn=zn,Vn=Mn.ref;Vn||(zn=te.cloneElement(zn,{ref:Un}))}return te.createElement(bo,{ref:Dn},zn)});return fe.displayName="CSSMotion",fe}var zr=Oa(Ra),Ar=oe(97326),cr="add",Er="keep",qo="remove",lo="removed";function Dr(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,Ee.Z)((0,Ee.Z)({},le),{},{key:String(le.key)})}function fr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(Dr)}function Ir(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],fe=0,Ce=le.length,He=fr(ie),We=fr(le);He.forEach(function(wt){for(var Ht=!1,Et=fe;Et<Ce;Et+=1){var Zt=We[Et];if(Zt.key===wt.key){fe<Et&&(se=se.concat(We.slice(fe,Et).map(function(Rt){return(0,Ee.Z)((0,Ee.Z)({},Rt),{},{status:cr})})),fe=Et),se.push((0,Ee.Z)((0,Ee.Z)({},Zt),{},{status:Er})),fe+=1,Ht=!0;break}}Ht||se.push((0,Ee.Z)((0,Ee.Z)({},wt),{},{status:qo}))}),fe<Ce&&(se=se.concat(We.slice(fe).map(function(wt){return(0,Ee.Z)((0,Ee.Z)({},wt),{},{status:cr})})));var vt={};se.forEach(function(wt){var Ht=wt.key;vt[Ht]=(vt[Ht]||0)+1});var $t=Object.keys(vt).filter(function(wt){return vt[wt]>1});return $t.forEach(function(wt){se=se.filter(function(Ht){var Et=Ht.key,Zt=Ht.status;return Et!==wt||Zt!==qo}),se.forEach(function(Ht){Ht.key===wt&&(Ht.status=Er)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Ni=["status"],Mi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oi(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zr,se=function(fe){(0,Ba.Z)(He,fe);var Ce=(0,Lo.Z)(He);function He(){var We;(0,wn.Z)(this,He);for(var vt=arguments.length,$t=new Array(vt),wt=0;wt<vt;wt++)$t[wt]=arguments[wt];return We=Ce.call.apply(Ce,[this].concat($t)),(0,ce.Z)((0,Ar.Z)(We),"state",{keyEntities:[]}),(0,ce.Z)((0,Ar.Z)(We),"removeKey",function(Ht){var Et=We.state.keyEntities,Zt=Et.map(function(Rt){return Rt.key!==Ht?Rt:(0,Ee.Z)((0,Ee.Z)({},Rt),{},{status:lo})});return We.setState({keyEntities:Zt}),Zt.filter(function(Rt){var qt=Rt.status;return qt!==lo}).length}),We}return(0,Wn.Z)(He,[{key:"render",value:function(){var vt=this,$t=this.state.keyEntities,wt=this.props,Ht=wt.component,Et=wt.children,Zt=wt.onVisibleChanged,Rt=wt.onAllRemoved,qt=(0,Me.Z)(wt,$i),Nn=Ht||te.Fragment,mn={};return Mi.forEach(function(Dn){mn[Dn]=qt[Dn],delete qt[Dn]}),delete qt.keys,te.createElement(Nn,qt,$t.map(function(Dn){var yn=Dn.status,on=(0,Me.Z)(Dn,Ni),kt=yn===cr||yn===Er;return te.createElement(le,(0,Ke.Z)({},mn,{key:on.key,visible:kt,eventProps:on,onVisibleChanged:function(qn){if(Zt==null||Zt(qn,{key:on.key}),!qn){var ia=vt.removeKey(on.key);ia===0&&Rt&&Rt()}}}),Et)}))}}],[{key:"getDerivedStateFromProps",value:function(vt,$t){var wt=vt.keys,Ht=$t.keyEntities,Et=fr(wt),Zt=Ir(Ht,Et);return{keyEntities:Zt.filter(function(Rt){var qt=Ht.find(function(Nn){var mn=Nn.key;return Rt.key===mn});return!(qt&&qt.status===lo&&Rt.status===qo)})}}}]),He}(te.Component);return(0,ce.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ra),Fi=zr;function Ti(ie){var le=ie.prefixCls,se=ie.align,fe=ie.arrow,Ce=ie.arrowPos,He=fe||{},We=He.className,vt=He.content,$t=Ce.x,wt=$t===void 0?0:$t,Ht=Ce.y,Et=Ht===void 0?0:Ht,Zt=te.useRef();if(!se||!se.points)return null;var Rt={position:"absolute"};if(se.autoArrow!==!1){var qt=se.points[0],Nn=se.points[1],mn=qt[0],Dn=qt[1],yn=Nn[0],on=Nn[1];mn===yn||!["t","b"].includes(mn)?Rt.top=Et:mn==="t"?Rt.top=0:Rt.bottom=0,Dn===on||!["l","r"].includes(Dn)?Rt.left=wt:Dn==="l"?Rt.left=0:Rt.right=0}return te.createElement("div",{ref:Zt,className:Se()("".concat(le,"-arrow"),We),style:Rt},vt)}function Gi(ie){var le=ie.prefixCls,se=ie.open,fe=ie.zIndex,Ce=ie.mask,He=ie.motion;return Ce?te.createElement(Fi,(0,Ke.Z)({},He,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(We){var vt=We.className;return te.createElement("div",{style:{zIndex:fe},className:Se()("".concat(le,"-mask"),vt)})}):null}var zi=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Ai=zi,Di=te.forwardRef(function(ie,le){var se=ie.popup,fe=ie.className,Ce=ie.prefixCls,He=ie.style,We=ie.target,vt=ie.onVisibleChanged,$t=ie.open,wt=ie.keepDom,Ht=ie.fresh,Et=ie.onClick,Zt=ie.mask,Rt=ie.arrow,qt=ie.arrowPos,Nn=ie.align,mn=ie.motion,Dn=ie.maskMotion,yn=ie.forceRender,on=ie.getPopupContainer,kt=ie.autoDestroy,ra=ie.portal,qn=ie.zIndex,ia=ie.onMouseEnter,ya=ie.onMouseLeave,ja=ie.onPointerEnter,Un=ie.ready,zn=ie.offsetX,ha=ie.offsetY,Ea=ie.offsetR,ga=ie.offsetB,Mn=ie.onAlign,Vn=ie.onPrepare,Ln=ie.stretch,Ha=ie.targetWidth,Kn=ie.targetHeight,Va=typeof se=="function"?se():se,so=$t||wt,Xa=(on==null?void 0:on.length)>0,uo=te.useState(!on||!Xa),So=(0,De.Z)(uo,2),Zn=So[0],mo=So[1];if(tn(function(){!Zn&&Xa&&We&&mo(!0)},[Zn,Xa,We]),!Zn)return null;var Ca="auto",oa={left:"-1000vw",top:"-1000vh",right:Ca,bottom:Ca};if(Un||!$t){var Ta,wo=Nn.points,Ro=Nn.dynamicInset||((Ta=Nn._experimental)===null||Ta===void 0?void 0:Ta.dynamicInset),Uo=Ro&&wo[0][1]==="r",qa=Ro&&wo[0][0]==="b";Uo?(oa.right=Ea,oa.left=Ca):(oa.left=zn,oa.right=Ca),qa?(oa.bottom=ga,oa.top=Ca):(oa.top=ha,oa.bottom=Ca)}var oo={};return Ln&&(Ln.includes("height")&&Kn?oo.height=Kn:Ln.includes("minHeight")&&Kn&&(oo.minHeight=Kn),Ln.includes("width")&&Ha?oo.width=Ha:Ln.includes("minWidth")&&Ha&&(oo.minWidth=Ha)),$t||(oo.pointerEvents="none"),te.createElement(ra,{open:yn||so,getContainer:on&&function(){return on(We)},autoDestroy:kt},te.createElement(Gi,{prefixCls:Ce,open:$t,zIndex:qn,mask:Zt,motion:Dn}),te.createElement(Tt.Z,{onResize:Mn,disabled:!$t},function(Oo){return te.createElement(Fi,(0,Ke.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:yn,leavedClassName:"".concat(Ce,"-hidden")},mn,{onAppearPrepare:Vn,onEnterPrepare:Vn,visible:$t,onVisibleChanged:function(da){var rn;mn==null||(rn=mn.onVisibleChanged)===null||rn===void 0||rn.call(mn,da),vt(da)}}),function(ro,da){var rn=ro.className,Za=ro.style,co=Se()(Ce,rn,fe);return te.createElement("div",{ref:ot(Oo,le,da),className:co,style:(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({"--arrow-x":"".concat(qt.x||0,"px"),"--arrow-y":"".concat(qt.y||0,"px")},oa),oo),Za),{},{boxSizing:"border-box",zIndex:qn},He),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:Et},Rt&&te.createElement(Ti,{prefixCls:Ce,arrow:Rt,arrowPos:qt,align:Nn}),te.createElement(Ai,{cache:!$t&&!Ht},Va))})}))}),Ii=Di,Ri=te.forwardRef(function(ie,le){var se=ie.children,fe=ie.getTriggerDOMNode,Ce=he(se),He=te.useCallback(function(vt){Da(le,fe?fe(vt):vt)},[fe]),We=Cn(He,se.ref);return Ce?te.cloneElement(se,{ref:We}):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 Hi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln,le=te.forwardRef(function(se,fe){var Ce=se.prefixCls,He=Ce===void 0?"rc-trigger-popup":Ce,We=se.children,vt=se.action,$t=vt===void 0?"hover":vt,wt=se.showAction,Ht=se.hideAction,Et=se.popupVisible,Zt=se.defaultPopupVisible,Rt=se.onPopupVisibleChange,qt=se.afterPopupVisibleChange,Nn=se.mouseEnterDelay,mn=se.mouseLeaveDelay,Dn=mn===void 0?.1:mn,yn=se.focusDelay,on=se.blurDelay,kt=se.mask,ra=se.maskClosable,qn=ra===void 0?!0:ra,ia=se.getPopupContainer,ya=se.forceRender,ja=se.autoDestroy,Un=se.destroyPopupOnHide,zn=se.popup,ha=se.popupClassName,Ea=se.popupStyle,ga=se.popupPlacement,Mn=se.builtinPlacements,Vn=Mn===void 0?{}:Mn,Ln=se.popupAlign,Ha=se.zIndex,Kn=se.stretch,Va=se.getPopupClassNameFromAlign,so=se.fresh,Xa=se.alignPoint,uo=se.onPopupClick,So=se.onPopupAlign,Zn=se.arrow,mo=se.popupMotion,Ca=se.maskMotion,oa=se.popupTransitionName,Ta=se.popupAnimation,wo=se.maskTransitionName,Ro=se.maskAnimation,Uo=se.className,qa=se.getTriggerDOMNode,oo=(0,Me.Z)(se,ji),Oo=ja||Un||!1,ro=te.useState(!1),da=(0,De.Z)(ro,2),rn=da[0],Za=da[1];tn(function(){Za(Hn())},[]);var co=te.useRef({}),To=te.useContext(Xn),er=te.useMemo(function(){return{registerSubPopup:function(On,Ga){co.current[On]=Ga,To==null||To.registerSubPopup(On,Ga)}}},[To]),tr=_t(),ii=te.useState(null),Rr=(0,De.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=ye(function(Kt){En(Kt)&&Bo!==Kt&&kr(Kt),To==null||To.registerSubPopup(tr,Kt)}),No=te.useState(null),jr=(0,De.Z)(No,2),Mo=jr[0],gi=jr[1],di=ye(function(Kt){En(Kt)&&Mo!==Kt&&gi(Kt)}),Pr=te.Children.only(We),ho=(Pr==null?void 0:Pr.props)||{},Vo={},li=ye(function(Kt){var On,Ga,Ya=Mo;return(Ya==null?void 0:Ya.contains(Kt))||((On=hn(Ya))===null||On===void 0?void 0:On.host)===Kt||Kt===Ya||(Bo==null?void 0:Bo.contains(Kt))||((Ga=hn(Bo))===null||Ga===void 0?void 0:Ga.host)===Kt||Kt===Bo||Object.values(co.current).some(function(za){return(za==null?void 0:za.contains(Kt))||Kt===za})}),ko=ma(He,mo,Ta,oa),Po=ma(He,Ca,Ro,wo),Hr=te.useState(Zt||!1),Cr=(0,De.Z)(Hr,2),Ko=Cr[0],Wa=Cr[1],ea=Et!=null?Et:Ko,Go=ye(function(Kt){Et===void 0&&Wa(Kt)});tn(function(){Wa(Et||!1)},[Et]);var zo=te.useRef(ea);zo.current=ea;var Fr=ye(function(Kt){(0,Ue.flushSync)(function(){ea!==Kt&&(Go(Kt),Rt==null||Rt(Kt))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Eo=function(On){var Ga=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),Ga===0?Fr(On):xr.current=setTimeout(function(){Fr(On)},Ga*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Zr=(0,De.Z)(vr,2),$r=Zr[0],Nr=Zr[1];tn(function(Kt){(!Kt||ea)&&Nr(!0)},[ea]);var Wr=te.useState(null),Mr=(0,De.Z)(Wr,2),jo=Mr[0],nr=Mr[1],ar=te.useState([0,0]),or=(0,De.Z)(ar,2),Or=or[0],Ur=or[1],Ao=function(On){Ur([On.clientX,On.clientY])},Vr=ht(ea,Bo,Xa?Or:Mo,ga,Vn,Ln,So),vo=(0,De.Z)(Vr,11),rr=vo[0],Kr=vo[1],si=vo[2],_r=vo[3],Xr=vo[4],ir=vo[5],Yr=vo[6],ui=vo[7],gr=vo[8],dr=vo[9],Tr=vo[10],lr=In(rn,$t,wt,Ht),_o=(0,De.Z)(lr,2),Xo=_o[0],sr=_o[1],pr=Xo.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Ho=ye(function(){$r||Tr()}),mi=function(){zo.current&&Xa&&yr&&Eo(!1)};zt(ea,Mo,Bo,Ho,mi),tn(function(){Ho()},[Or,ga]),tn(function(){ea&&!(Vn!=null&&Vn[ga])&&Ho()},[JSON.stringify(Ln)]);var Qr=te.useMemo(function(){var Kt=ua(Vn,He,dr,Xa);return Se()(Kt,Va==null?void 0:Va(dr))},[dr,Va,Vn,He,Xa]);te.useImperativeHandle(fe,function(){return{forceAlign:Ho}});var ci=te.useState(0),Jr=(0,De.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,De.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Kn&&Mo){var On=Mo.getBoundingClientRect();Si(On.width),vi(On.height)}},pi=function(){ei(),Ho()},yi=function(On){Nr(!1),Tr(),qt==null||qt(On)},Co=function(){return new Promise(function(On){ei(),nr(function(){return On})})};tn(function(){jo&&(Tr(),jo(),nr(null))},[jo]);function Zo(Kt,On,Ga,Ya){Vo[Kt]=function(za){var ai;Ya==null||Ya(za),Eo(On,Ga);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[Kt])===null||ai===void 0||ai.call.apply(ai,[ho,za].concat(Bi))}}(pr||yr)&&(Vo.onClick=function(Kt){var On;zo.current&&yr?Eo(!1):!zo.current&&pr&&(Ao(Kt),Eo(!0));for(var Ga=arguments.length,Ya=new Array(Ga>1?Ga-1:0),za=1;za<Ga;za++)Ya[za-1]=arguments[za];(On=ho.onClick)===null||On===void 0||On.call.apply(On,[ho,Kt].concat(Ya))}),ca(ea,yr,Mo,Bo,kt,qn,li,Eo);var ti=Xo.has("hover"),ur=sr.has("hover"),Yo,Gr;ti&&(Zo("onMouseEnter",!0,Nn,function(Kt){Ao(Kt)}),Zo("onPointerEnter",!0,Nn,function(Kt){Ao(Kt)}),Yo=function(){(ea||$r)&&Eo(!0,Nn)},Xa&&(Vo.onMouseMove=function(Kt){var On;(On=ho.onMouseMove)===null||On===void 0||On.call(ho,Kt)})),ur&&(Zo("onMouseLeave",!1,Dn),Zo("onPointerLeave",!1,Dn),Gr=function(){Eo(!1,Dn)}),Xo.has("focus")&&Zo("onFocus",!0,yn),sr.has("focus")&&Zo("onBlur",!1,on),Xo.has("contextMenu")&&(Vo.onContextMenu=function(Kt){var On;zo.current&&sr.has("contextMenu")?Eo(!1):(Ao(Kt),Eo(!0)),Kt.preventDefault();for(var Ga=arguments.length,Ya=new Array(Ga>1?Ga-1:0),za=1;za<Ga;za++)Ya[za-1]=arguments[za];(On=ho.onContextMenu)===null||On===void 0||On.call.apply(On,[ho,Kt].concat(Ya))}),Uo&&(Vo.className=Se()(ho.className,Uo));var Lr=(0,Ee.Z)((0,Ee.Z)({},ho),Vo),ni={},Li=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Li.forEach(function(Kt){oo[Kt]&&(ni[Kt]=function(){for(var On,Ga=arguments.length,Ya=new Array(Ga),za=0;za<Ga;za++)Ya[za]=arguments[za];(On=Lr[Kt])===null||On===void 0||On.call.apply(On,[Lr].concat(Ya)),oo[Kt].apply(oo,Ya)})});var bi=te.cloneElement(Pr,(0,Ee.Z)((0,Ee.Z)({},Lr),ni)),wi={x:ir,y:Yr},Ei=Zn?(0,Ee.Z)({},Zn!==!0?Zn:{}):null;return te.createElement(te.Fragment,null,te.createElement(Tt.Z,{disabled:!ea,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:qa},bi)),te.createElement(Xn.Provider,{value:er},te.createElement(Ii,{portal:ie,ref:$o,prefixCls:He,popup:zn,className:Se()(ha,Qr),style:Ea,target:Mo,onMouseEnter:Yo,onMouseLeave:Gr,onPointerEnter:Yo,zIndex:Ha,open:ea,keepDom:$r,fresh:so,onClick:uo,mask:kt,motion:ko,maskMotion:Po,onVisibleChanged:yi,onPrepare:Co,forceRender:ya,autoDestroy:Oo,getPopupContainer:ia,align:dr,arrow:Ei,arrowPos:wi,ready:rr,offsetX:Kr,offsetY:si,offsetR:_r,offsetB:Xr,onAlign:Ho,stretch:Kn,targetWidth:fi/ui,targetHeight:Pi/gr})))});return le}var Zi=Hi(ln),dn={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>=dn.F1&&se<=dn.F12)return!1;switch(se){case dn.ALT:case dn.CAPS_LOCK:case dn.CONTEXT_MENU:case dn.CTRL:case dn.DOWN:case dn.END:case dn.ESC:case dn.HOME:case dn.INSERT:case dn.LEFT:case dn.MAC_FF_META:case dn.META:case dn.NUMLOCK:case dn.NUM_CENTER:case dn.PAGE_DOWN:case dn.PAGE_UP:case dn.PAUSE:case dn.PRINT_SCREEN:case dn.RIGHT:case dn.SHIFT:case dn.UP:case dn.WIN_KEY:case dn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=dn.ZERO&&le<=dn.NINE||le>=dn.NUM_ZERO&&le<=dn.NUM_MULTIPLY||le>=dn.A&&le<=dn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case dn.SPACE:case dn.QUESTION_MARK:case dn.NUM_PLUS:case dn.NUM_MINUS:case dn.NUM_PERIOD:case dn.NUM_DIVISION:case dn.SEMICOLON:case dn.DASH:case dn.EQUALS:case dn.COMMA:case dn.PERIOD:case dn.SLASH:case dn.APOSTROPHE:case dn.SINGLE_QUOTE:case dn.OPEN_SQUARE_BRACKET:case dn.BACKSLASH:case dn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=dn,Wi=xi.ESC,Ui=xi.TAB;function Vi(ie){var le=ie.visible,se=ie.triggerRef,fe=ie.onVisibleChange,Ce=ie.autoFocus,He=ie.overlayRef,We=te.useRef(!1),vt=function(){if(le){var Et,Zt;(Et=se.current)===null||Et===void 0||(Zt=Et.focus)===null||Zt===void 0||Zt.call(Et),fe==null||fe(!1)}},$t=function(){var Et;return(Et=He.current)!==null&&Et!==void 0&&Et.focus?(He.current.focus(),We.current=!0,!0):!1},wt=function(Et){switch(Et.keyCode){case Wi:vt();break;case Ui:{var Zt=!1;We.current||(Zt=$t()),Zt?Et.preventDefault():vt();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",wt),Ce&&bt($t,3),function(){window.removeEventListener("keydown",wt),We.current=!1}):function(){We.current=!1}},[le])}var Ki=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,fe=ie.arrow,Ce=ie.prefixCls,He=(0,te.useMemo)(function(){var vt;return typeof se=="function"?vt=se():vt=se,vt},[se]),We=de(le,He==null?void 0:He.ref);return te.createElement(te.Fragment,null,fe&&te.createElement("div",{className:"".concat(Ce,"-arrow")}),te.cloneElement(He,{ref:me(He)?We:void 0}))}),_i=Ki,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,fe=ie.arrow,Ce=fe===void 0?!1:fe,He=ie.prefixCls,We=He===void 0?"rc-dropdown":He,vt=ie.transitionName,$t=ie.animation,wt=ie.align,Ht=ie.placement,Et=Ht===void 0?"bottomLeft":Ht,Zt=ie.placements,Rt=Zt===void 0?Yi:Zt,qt=ie.getPopupContainer,Nn=ie.showAction,mn=ie.hideAction,Dn=ie.overlayClassName,yn=ie.overlayStyle,on=ie.visible,kt=ie.trigger,ra=kt===void 0?["hover"]:kt,qn=ie.autoFocus,ia=ie.overlay,ya=ie.children,ja=ie.onVisibleChange,Un=(0,Me.Z)(ie,Qi),zn=te.useState(),ha=(0,De.Z)(zn,2),Ea=ha[0],ga=ha[1],Mn="visible"in ie?on:Ea,Vn=te.useRef(null),Ln=te.useRef(null),Ha=te.useRef(null);te.useImperativeHandle(le,function(){return Vn.current});var Kn=function(oa){ga(oa),ja==null||ja(oa)};Vi({visible:Mn,triggerRef:Ha,onVisibleChange:Kn,autoFocus:qn,overlayRef:Ln});var Va=function(oa){var Ta=ie.onOverlayClick;ga(!1),Ta&&Ta(oa)},so=function(){return te.createElement(_i,{ref:Ln,overlay:ia,prefixCls:We,arrow:Ce})},Xa=function(){return typeof ia=="function"?so:so()},uo=function(){var oa=ie.minOverlayWidthMatchTrigger,Ta=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?oa:!Ta},So=function(){var oa=ie.openClassName;return oa!==void 0?oa:"".concat(We,"-open")},Zn=te.cloneElement(ya,{className:Se()((se=ya.props)===null||se===void 0?void 0:se.className,Mn&&So()),ref:me(ya)?de(Ha,ya.ref):void 0}),mo=mn;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Zi,(0,Ke.Z)({builtinPlacements:Rt},Un,{prefixCls:We,ref:Vn,popupClassName:Se()(Dn,(0,ce.Z)({},"".concat(We,"-show-arrow"),Ce)),popupStyle:yn,action:ra,showAction:Nn,hideAction:mo,popupPlacement:Et,popupAlign:wt,popupTransitionName:vt,popupAnimation:$t,popupVisible:Mn,stretch:uo()?"minWidth":"",popup:Xa(),onPopupVisibleChange:Kn,onPopupClick:Va,getPopupContainer:qt}),Zn)}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:fe,children:Ce,trigger:He,disabled:We,dropdownRender:vt,getPopupContainer:$t,overlayClassName:wt,rootClassName:Ht,open:Et,onOpenChange:Zt,visible:Rt,onVisibleChange:qt,mouseEnterDelay:Nn=.15,mouseLeaveDelay:mn=.1,autoAdjustOverflow:Dn=!0,placement:yn="",overlay:on,transitionName:kt}=ie,{getPopupContainer:ra,getPrefixCls:qn,direction:ia}=te.useContext(gg.E_),ya=te.useMemo(()=>{const Zn=qn();return kt!==void 0?kt:yn.includes("top")?`${Zn}-slide-down`:`${Zn}-slide-up`},[qn,yn,kt]),ja=te.useMemo(()=>yn?yn.includes("Center")?yn.slice(0,yn.indexOf("Center")):yn:ia==="rtl"?"bottomRight":"bottomLeft",[yn,ia]),Un=qn("dropdown",fe),[zn,ha]=(0,ug.Z)(Un),[,Ea]=(0,sg.Z)(),ga=te.Children.only(Ce),Mn=(0,ig.Tm)(ga,{className:Se()(`${Un}-trigger`,{[`${Un}-rtl`]:ia==="rtl"},ga.props.className),disabled:We}),Vn=We?[]:He;let Ln;Vn&&Vn.includes("contextMenu")&&(Ln=!0);const[Ha,Kn]=(0,ng.Z)(!1,{value:Et!=null?Et:Rt}),Va=(0,tg.useEvent)(Zn=>{Zt==null||Zt(Zn),qt==null||qt(Zn),Kn(Zn)}),so=Se()(wt,Ht,ha,{[`${Un}-rtl`]:ia==="rtl"}),Xa=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Dn,offset:Ea.marginXXS,arrowWidth:se?Ea.sizePopupArrow:0,borderRadius:Ea.borderRadius}),uo=te.useCallback(()=>{Kn(!1)},[]),So=()=>{let Zn;return le!=null&&le.items?Zn=te.createElement(dg.default,Object.assign({},le)):typeof on=="function"?Zn=on():Zn=on,vt&&(Zn=vt(Zn)),Zn=te.Children.only(typeof Zn=="string"?te.createElement("span",null,Zn):Zn),te.createElement(lg.J,{prefixCls:`${Un}-menu`,expandIcon:te.createElement("span",{className:`${Un}-menu-submenu-arrow`},te.createElement(qe.Z,{className:`${Un}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:uo,validator:mo=>{let{mode:Ca}=mo}},Zn)};return zn(te.createElement(eg,Object.assign({alignPoint:Ln},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:Nn,mouseLeaveDelay:mn,visible:Ha,builtinPlacements:Xa,arrow:!!se,overlayClassName:so,prefixCls:Un,getPopupContainer:$t||ra,transitionName:ya,trigger:Vn,overlay:So,placement:ja,onVisibleChange:Va}),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(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return Ue}});var te=oe(14747),pe=oe(67771),qe=oe(33297),Xe=oe(50438),Se=oe(97414),Ke=oe(67968),ce=oe(45503),Me=$e=>{const{componentCls:Ie,menuCls:ae,colorError:a,colorTextLightSolid:y}=$e,E=`${ae}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ee=$e=>{const{componentCls:Ie,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:Pe,colorBgElevated:me}=$e;return[{[Ie]:Object.assign(Object.assign({},(0,te.Wf)($e)),{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}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-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${Ie}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:pe.ly}})},(0,Se.ZP)($e,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${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}},[`${Ie}, ${Ie}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:$e.borderRadiusLG,outline:"none",boxShadow:$e.boxShadowSecondary},(0,te.Qy)($e)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Pe}px`,color:$e.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:$e.marginXS,fontSize:$e.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 ${Pe}px`,color:$e.colorText,fontWeight:"normal",fontSize:ne,lineHeight:$e.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:$e.borderRadiusSM,"&:hover, &-active":{backgroundColor:$e.controlItemBgHover}},(0,te.Qy)($e)),{"&-selected":{color:$e.colorPrimary,backgroundColor:$e.controlItemBgActive,"&:hover, &-active":{backgroundColor:$e.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${$e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:$e.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:$e.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:$e.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${$e.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Pe+$e.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ie}-menu-submenu-title`]:{color:$e.colorPrimary}})}},[(0,pe.oN)($e,"slide-up"),(0,pe.oN)($e,"slide-down"),(0,qe.Fm)($e,"move-up"),(0,qe.Fm)($e,"move-down"),(0,Xe._y)($e,"zoom-big")]]};var Ue=(0,Ke.Z)("Dropdown",($e,Ie)=>{let{rootPrefixCls:ae}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=$e,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,Se.fS)({contentRadius:ne}),de=(0,ce.TS)($e,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ee(de),Me(de)]},$e=>({zIndexPopup:$e.zIndexPopupBase+50}))},71322:function(Ge,St,oe){"use strict";oe.d(St,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),pe=oe(67294),qe={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"},Xe=qe,Se=oe(74643),Ke=function(ge,de){return pe.createElement(Se.Z,(0,te.Z)({},ge,{ref:de,icon:Xe}))},ce=pe.forwardRef(Ke),De=oe(22751),Me=oe(91034),Ee=oe(94184),Ue=oe.n(Ee),$e=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ge){var de={};for(var Pe in re)Object.prototype.hasOwnProperty.call(re,Pe)&&ge.indexOf(Pe)<0&&(de[Pe]=re[Pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Pe=Object.getOwnPropertySymbols(re);me<Pe.length;me++)ge.indexOf(Pe[me])<0&&Object.prototype.propertyIsEnumerable.call(re,Pe[me])&&(de[Pe[me]]=re[Pe[me]]);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:Pe,trigger:me,children:ke,defaultCollapsed:Ae=!1,theme:yt="dark",style:Jt={},collapsible:sn=!1,reverseArrow:Ne=!1,width:dt=200,collapsedWidth:ut=80,zeroWidthTriggerStyle:st,breakpoint:ct,onCollapse:lt,onBreakpoint:rt}=re,mt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Sn}=(0,pe.useContext)(y.Gs),[Fe,je]=(0,pe.useState)("collapsed"in re?re.collapsed:Ae),[at,Nt]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{"collapsed"in re&&je(re.collapsed)},[re.collapsed]);const et=(Ft,Re)=>{"collapsed"in re||je(Ft),lt==null||lt(Ft,Re)},Pt=(0,pe.useRef)();Pt.current=Ft=>{Nt(Ft.matches),rt==null||rt(Ft.matches),Fe!==Ft.matches&&et(Ft.matches,"responsive")},(0,pe.useEffect)(()=>{function Ft(xe){return Pt.current(xe)}let Re;if(typeof window!="undefined"){const{matchMedia:xe}=window;if(xe&&ct&&ct in b){Re=xe(`(max-width: ${b[ct]})`);try{Re.addEventListener("change",Ft)}catch(be){Re.addListener(Ft)}Ft(Re)}}return()=>{try{Re==null||Re.removeEventListener("change",Ft)}catch(xe){Re==null||Re.removeListener(Ft)}}},[ct]),(0,pe.useEffect)(()=>{const Ft=z("ant-sider-");return Sn.addSider(Ft),()=>Sn.removeSider(Ft)},[]);const ue=()=>{et(!Fe,"clickTrigger")},{getPrefixCls:ft}=(0,pe.useContext)(a.E_),Yt=()=>{const Ft=ft("layout-sider",de),Re=(0,$e.Z)(mt,["collapsed"]),xe=Fe?ut:dt,be=ae(xe)?`${xe}px`:String(xe),Qe=parseFloat(String(ut||0))===0?pe.createElement("span",{onClick:ue,className:Ue()(`${Ft}-zero-width-trigger`,`${Ft}-zero-width-trigger-${Ne?"right":"left"}`),style:st},me||pe.createElement(ce,null)):null,Mt={expanded:Ne?pe.createElement(Me.Z,null):pe.createElement(De.Z,null),collapsed:Ne?pe.createElement(De.Z,null):pe.createElement(Me.Z,null)}[Fe?"collapsed":"expanded"],jt=me!==null?Qe||pe.createElement("div",{className:`${Ft}-trigger`,onClick:ue,style:{width:be}},me||Mt):null,en=Object.assign(Object.assign({},Jt),{flex:`0 0 ${be}`,maxWidth:be,minWidth:be,width:be}),gn=Ue()(Ft,`${Ft}-${yt}`,{[`${Ft}-collapsed`]:!!Fe,[`${Ft}-has-trigger`]:sn&&me!==null&&!Qe,[`${Ft}-below`]:!!at,[`${Ft}-zero-width`]:parseFloat(be)===0},Pe);return pe.createElement("aside",Object.assign({className:gn},Re,{style:en,ref:ge}),pe.createElement("div",{className:`${Ft}-children`},ke),sn||at&&Qe?jt:null)},bn=pe.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return pe.createElement(x.Provider,{value:bn},Yt())})},84321:function(Ge,St,oe){"use strict";oe.d(St,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var te=oe(74902),pe=oe(94184),qe=oe.n(pe),Xe=oe(10366),Se=oe(67294),Ke=oe(53124),ce=oe(67968),Me=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Pe,lightTriggerColor:me}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:me,background:Pe},[`${re}-sider-zero-width-trigger`]:{color:me,background:Pe,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ee=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:Pe,footerBg:me,triggerBg:ke,headerHeight:Ae,headerPadding:yt,headerColor:Jt,footerPadding:sn,triggerHeight:Ne,zeroTriggerHeight:dt,zeroTriggerWidth:ut,motionDurationMid:st,motionDurationSlow:ct,fontSize:lt,borderRadius:rt,bodyBg:mt,headerBg:Sn,siderBg:Fe}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:mt,"&, *":{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:Fe,transition:`all ${st}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ne},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ne,color:Pe,lineHeight:`${Ne}px`,textAlign:"center",background:ke,cursor:"pointer",transition:`all ${st}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-ut,zIndex:1,width:ut,height:dt,color:Pe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderStartStartRadius:0,borderStartEndRadius:rt,borderEndEndRadius:rt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ct} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ct}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ut,borderStartStartRadius:rt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:rt}}}}},Me(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ae,padding:yt,color:Jt,lineHeight:`${Ae}px`,background:Sn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:sn,color:de,fontSize:lt,background:me},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,ce.Z)("Layout",ne=>[Ee(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:Pe,controlHeightSM:me,marginXXS:ke,colorTextLightSolid:Ae,colorBgContainer:yt}=ne,Jt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Jt}px`,headerColor:Pe,footerPadding:`${me}px ${Jt}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+ke*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:yt,lightTriggerBg:yt,lightTriggerColor:Pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),$e=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 Pe=0,de=Object.getOwnPropertySymbols(ne);Pe<de.length;Pe++)re.indexOf(de[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Pe])&&(ge[de[Pe]]=ne[de[Pe]]);return ge};const Ie=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return Pe=>Se.forwardRef((ke,Ae)=>Se.createElement(Pe,Object.assign({ref:Ae,suffixCls:re,tagName:ge},ke)))}const a=Se.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:Pe,tagName:me}=ne,ke=$e(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=Se.useContext(Ke.E_),yt=Ae("layout",ge),[Jt,sn]=Ue(yt),Ne=de?`${yt}-${de}`:yt;return Jt(Se.createElement(me,Object.assign({className:qe()(ge||Ne,Pe,sn),ref:re},ke)))}),y=Se.forwardRef((ne,re)=>{const{direction:ge}=Se.useContext(Ke.E_),[de,Pe]=Se.useState([]),{prefixCls:me,className:ke,rootClassName:Ae,children:yt,hasSider:Jt,tagName:sn,style:Ne}=ne,dt=$e(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ut=(0,Xe.Z)(dt,["suffixCls"]),{getPrefixCls:st,layout:ct}=Se.useContext(Ke.E_),lt=st("layout",me),[rt,mt]=Ue(lt),Sn=qe()(lt,{[`${lt}-has-sider`]:typeof Jt=="boolean"?Jt:de.length>0,[`${lt}-rtl`]:ge==="rtl"},ct==null?void 0:ct.className,ke,Ae,mt),Fe=Se.useMemo(()=>({siderHook:{addSider:je=>{Pe(at=>[].concat((0,te.Z)(at),[je]))},removeSider:je=>{Pe(at=>at.filter(Nt=>Nt!==je))}}}),[]);return rt(Se.createElement(Ie.Provider,{value:Fe},Se.createElement(sn,Object.assign({ref:re,className:Sn,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),Ne)},ut),yt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ge,St,oe){"use strict";oe.d(St,{J:function(){return Ke}});var te=oe(67294),pe=oe(4173),qe=oe(60276),Xe=function(ce,De){var Me={};for(var Ee in ce)Object.prototype.hasOwnProperty.call(ce,Ee)&&De.indexOf(Ee)<0&&(Me[Ee]=ce[Ee]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ee=Object.getOwnPropertySymbols(ce);Ue<Ee.length;Ue++)De.indexOf(Ee[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ee[Ue])&&(Me[Ee[Ue]]=ce[Ee[Ue]]);return Me};const Se=te.createContext(null),Ke=te.forwardRef((ce,De)=>{const{children:Me}=ce,Ee=Xe(ce,["children"]),Ue=te.useContext(Se),$e=te.useMemo(()=>Object.assign(Object.assign({},Ue),Ee),[Ue,Ee.prefixCls,Ee.mode,Ee.selectable]);return te.createElement(Se.Provider,{value:$e},te.createElement(pe.BR,null,(0,qe.supportNodeRef)(Me)?te.cloneElement(Me,{ref:De}):Me))});St.Z=Se},68508:function(Ge,St,oe){"use strict";oe.d(St,{default:function(){return Ft}});var te=oe(52073),pe=oe(67294),qe=oe(71322),Xe=oe(94184),Se=oe.n(Xe),Ke=oe(53124),ce=function(Re,xe){var be={};for(var Qe in Re)Object.prototype.hasOwnProperty.call(Re,Qe)&&xe.indexOf(Qe)<0&&(be[Qe]=Re[Qe]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Qe=Object.getOwnPropertySymbols(Re);Ve<Qe.length;Ve++)xe.indexOf(Qe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,Qe[Ve])&&(be[Qe[Ve]]=Re[Qe[Ve]]);return be},Me=Re=>{const{prefixCls:xe,className:be,dashed:Qe}=Re,Ve=ce(Re,["prefixCls","className","dashed"]),{getPrefixCls:pt}=pe.useContext(Ke.E_),Mt=pt("menu",xe),jt=Se()({[`${Mt}-item-divider-dashed`]:!!Qe},be);return pe.createElement(te.iz,Object.assign({className:jt},Ve))},Ee=oe(37419),Ue=oe(10366),$e=oe(83062),Ie=oe(96159),a=(0,pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Re=>{var xe;const{className:be,children:Qe,icon:Ve,title:pt,danger:Mt}=Re,{prefixCls:jt,firstLevel:en,direction:gn,disableMenuItemTitleTooltip:ln,inlineCollapsed:Tt}=pe.useContext(a),En=Oe=>{const Je=pe.createElement("span",{className:`${jt}-title-content`},Qe);return(!Ve||(0,Ie.l$)(Qe)&&Qe.type==="span")&&Qe&&Oe&&en&&typeof Qe=="string"?pe.createElement("div",{className:`${jt}-inline-collapsed-noicon`},Qe.charAt(0)):Je},{siderCollapsed:vn}=pe.useContext(qe.D);let jn=pt;typeof pt=="undefined"?jn=en?Qe:"":pt===!1&&(jn="");const xn={title:jn};!vn&&!Tt&&(xn.title=null,xn.open=!1);const hn=(0,Ee.Z)(Qe).length;let ye=pe.createElement(te.ck,Object.assign({},(0,Ue.Z)(Re,["title","icon","danger"]),{className:Se()({[`${jt}-item-danger`]:Mt,[`${jt}-item-only-child`]:(Ve?hn+1:hn)===1},be),title:typeof pt=="string"?pt:void 0}),(0,Ie.Tm)(Ve,{className:Se()((0,Ie.l$)(Ve)?(xe=Ve.props)===null||xe===void 0?void 0:xe.className:"",`${jt}-item-icon`)}),En(Tt));return ln||(ye=pe.createElement($e.Z,Object.assign({},xn,{placement:gn==="rtl"?"left":"right",overlayClassName:`${jt}-inline-collapsed-tooltip`}),ye)),ye},x=Re=>{var xe;const{popupClassName:be,icon:Qe,title:Ve,theme:pt}=Re,Mt=pe.useContext(a),{prefixCls:jt,inlineCollapsed:en,theme:gn}=Mt,ln=(0,te.Xl)();let Tt;if(!Qe)Tt=en&&!ln.length&&Ve&&typeof Ve=="string"?pe.createElement("div",{className:`${jt}-inline-collapsed-noicon`},Ve.charAt(0)):pe.createElement("span",{className:`${jt}-title-content`},Ve);else{const vn=(0,Ie.l$)(Ve)&&Ve.type==="span";Tt=pe.createElement(pe.Fragment,null,(0,Ie.Tm)(Qe,{className:Se()((0,Ie.l$)(Qe)?(xe=Qe.props)===null||xe===void 0?void 0:xe.className:"",`${jt}-item-icon`)}),vn?Ve:pe.createElement("span",{className:`${jt}-title-content`},Ve))}const En=pe.useMemo(()=>Object.assign(Object.assign({},Mt),{firstLevel:!1}),[Mt]);return pe.createElement(a.Provider,{value:En},pe.createElement(te.Wd,Object.assign({},(0,Ue.Z)(Re,["icon"]),{title:Tt,popupClassName:Se()(jt,be,`${jt}-${pt||gn}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Re,xe){var be={};for(var Qe in Re)Object.prototype.hasOwnProperty.call(Re,Qe)&&xe.indexOf(Qe)<0&&(be[Qe]=Re[Qe]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Qe=Object.getOwnPropertySymbols(Re);Ve<Qe.length;Ve++)xe.indexOf(Qe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,Qe[Ve])&&(be[Qe[Ve]]=Re[Qe[Ve]]);return be};function de(Re){return(Re||[]).map((xe,be)=>{if(xe&&typeof xe=="object"){const Qe=xe,{label:Ve,children:pt,key:Mt,type:jt}=Qe,en=ge(Qe,["label","children","key","type"]),gn=Mt!=null?Mt:`tmp-${be}`;return pt||jt==="group"?jt==="group"?pe.createElement(te.BW,Object.assign({key:gn},en,{title:Ve}),de(pt)):pe.createElement(x,Object.assign({key:gn},en,{title:Ve}),de(pt)):jt==="divider"?pe.createElement(Me,Object.assign({key:gn},en)):pe.createElement(E,Object.assign({key:gn},en),Ve)}return null}).filter(xe=>xe)}function Pe(Re){return pe.useMemo(()=>Re&&de(Re),[Re])}var me=oe(84780),ke=oe(14747),Ae=oe(33507),yt=oe(67771),Jt=oe(50438),sn=oe(67968),Ne=oe(45503),ut=Re=>{const{componentCls:xe,motionDurationSlow:be,horizontalLineHeight:Qe,colorSplit:Ve,lineWidth:pt,lineType:Mt,itemPaddingInline:jt}=Re;return{[`${xe}-horizontal`]:{lineHeight:Qe,border:0,borderBottom:`${pt}px ${Mt} ${Ve}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${xe}-item, ${xe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:jt},[`> ${xe}-item:hover,
> ${xe}-item-active,
> ${xe}-submenu ${xe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${xe}-item, ${xe}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${xe}-submenu-arrow`]:{display:"none"}}}},ct=Re=>{let{componentCls:xe,menuArrowOffset:be}=Re;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(-${be})`},"&::after":{transform:`rotate(45deg) translateY(${be})`}}}}};const lt=Re=>Object.assign({},(0,ke.oN)(Re));var mt=(Re,xe)=>{const{componentCls:be,itemColor:Qe,itemSelectedColor:Ve,groupTitleColor:pt,itemBg:Mt,subMenuItemBg:jt,itemSelectedBg:en,activeBarHeight:gn,activeBarWidth:ln,activeBarBorderWidth:Tt,motionDurationSlow:En,motionEaseInOut:vn,motionEaseOut:jn,itemPaddingInline:xn,motionDurationMid:hn,itemHoverColor:ye,lineType:Oe,colorSplit:Je,itemDisabledColor:Lt,dangerItemColor:xt,dangerItemHoverColor:_t,dangerItemSelectedColor:Qt,dangerItemActiveBg:At,dangerItemSelectedBg:Wt,itemHoverBg:pn,itemActiveBg:tn,menuSubMenuBg:Hn,horizontalItemSelectedColor:_n,horizontalItemSelectedBg:Xn,horizontalItemBorderRadius:la,horizontalItemHoverBg:In,popupBg:Tn}=Re;return{[`${be}-${xe}, ${be}-${xe} > ${be}`]:{color:Qe,background:Mt,[`&${be}-root:focus-visible`]:Object.assign({},lt(Re)),[`${be}-item-group-title`]:{color:pt},[`${be}-submenu-selected`]:{[`> ${be}-submenu-title`]:{color:Ve}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${Lt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:ye}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:tn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:tn}}},[`${be}-item-danger`]:{color:xt,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:_t}},[`&${be}-item:active`]:{background:At}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Ve,[`&${be}-item-danger`]:{color:Qt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:en,[`&${be}-item-danger`]:{backgroundColor:Wt}},[`${be}-item, ${be}-submenu-title`]:{[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},lt(Re))},[`&${be}-submenu > ${be}`]:{backgroundColor:Hn},[`&${be}-popup > ${be}`]:{backgroundColor:Tn},[`&${be}-horizontal`]:Object.assign(Object.assign({},xe==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${gn}px solid transparent`,transition:`border-color ${En} ${vn}`,content:'""'},"&:hover, &-active, &-open":{background:In,"&::after":{borderBottomWidth:gn,borderBottomColor:_n}},"&-selected":{color:_n,backgroundColor:Xn,"&:hover":{backgroundColor:Xn},"&::after":{borderBottomWidth:gn,borderBottomColor:_n}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${Tt}px ${Oe} ${Je}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:jt},[`${be}-item, ${be}-submenu-title`]:Tt&&ln?{width:`calc(100% + ${Tt}px)`}:{},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ln}px solid ${Ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${hn} ${jn}`,`opacity ${hn} ${jn}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:Qt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${hn} ${vn}`,`opacity ${hn} ${vn}`].join(",")}}}}}};const Sn=Re=>{const{componentCls:xe,itemHeight:be,itemMarginInline:Qe,padding:Ve,menuArrowSize:pt,marginXS:Mt,itemMarginBlock:jt}=Re,en=Ve+pt+Mt;return{[`${xe}-item`]:{position:"relative",overflow:"hidden"},[`${xe}-item, ${xe}-submenu-title`]:{height:be,lineHeight:`${be}px`,paddingInline:Ve,overflow:"hidden",textOverflow:"ellipsis",marginInline:Qe,marginBlock:jt,width:`calc(100% - ${Qe*2}px)`},[`> ${xe}-item,
> ${xe}-submenu > ${xe}-submenu-title`]:{height:be,lineHeight:`${be}px`},[`${xe}-item-group-list ${xe}-submenu-title,
${xe}-submenu-title`]:{paddingInlineEnd:en}}};var je=Re=>{const{componentCls:xe,iconCls:be,itemHeight:Qe,colorTextLightSolid:Ve,dropdownWidth:pt,controlHeightLG:Mt,motionDurationMid:jt,motionEaseOut:en,paddingXL:gn,itemMarginInline:ln,fontSizeLG:Tt,motionDurationSlow:En,paddingXS:vn,boxShadowSecondary:jn,collapsedWidth:xn,collapsedIconSize:hn}=Re,ye={height:Qe,lineHeight:`${Qe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[xe]:{"&-inline, &-vertical":Object.assign({[`&${xe}-root`]:{boxShadow:"none"}},Sn(Re))},[`${xe}-submenu-popup`]:{[`${xe}-vertical`]:Object.assign(Object.assign({},Sn(Re)),{boxShadow:jn})}},{[`${xe}-submenu-popup ${xe}-vertical${xe}-sub`]:{minWidth:pt,maxHeight:`calc(100vh - ${Mt*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 ${En}`,`background ${En}`,`padding ${jt} ${en}`].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:gn}},[`${xe}-item`]:ye}},{[`${xe}-inline-collapsed`]:{width:xn,[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu ${xe}-submenu-title`]:{[`> ${xe}-inline-collapsed-noicon`]:{fontSize:Tt,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% - ${Tt/2}px - ${ln}px)`,textOverflow:"clip",[`
${xe}-submenu-arrow,
${xe}-submenu-expand-icon
`]:{opacity:0},[`${xe}-item-icon, ${be}`]:{margin:0,fontSize:hn,lineHeight:`${Qe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${xe}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${xe}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Ve}},[`${xe}-item-group-title`]:Object.assign(Object.assign({},ke.vS),{paddingInline:vn})}}]};const at=Re=>{const{componentCls:xe,motionDurationSlow:be,motionDurationMid:Qe,motionEaseInOut:Ve,motionEaseOut:pt,iconCls:Mt,iconSize:jt,iconMarginInlineEnd:en}=Re;return{[`${xe}-item, ${xe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding ${be} ${Ve}`].join(","),[`${xe}-item-icon, ${Mt}`]:{minWidth:jt,fontSize:jt,transition:[`font-size ${Qe} ${pt}`,`margin ${be} ${Ve}`,`color ${be}`].join(","),"+ span":{marginInlineStart:en,opacity:1,transition:[`opacity ${be} ${Ve}`,`margin ${be}`,`color ${be}`].join(",")}},[`${xe}-item-icon`]:Object.assign({},(0,ke.Ro)()),[`&${xe}-item-only-child`]:{[`> ${Mt}, > ${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"}}}},Nt=Re=>{const{componentCls:xe,motionDurationSlow:be,motionEaseInOut:Qe,borderRadius:Ve,menuArrowSize:pt,menuArrowOffset:Mt}=Re;return{[`${xe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Re.margin,width:pt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${Qe}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:pt*.6,height:pt*.15,backgroundColor:"currentcolor",borderRadius:Ve,transition:[`background ${be} ${Qe}`,`transform ${be} ${Qe}`,`top ${be} ${Qe}`,`color ${be} ${Qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Mt})`},"&::after":{transform:`rotate(-45deg) translateY(${Mt})`}}}}},et=Re=>{const{antCls:xe,componentCls:be,fontSize:Qe,motionDurationSlow:Ve,motionDurationMid:pt,motionEaseInOut:Mt,paddingXS:jt,padding:en,colorSplit:gn,lineWidth:ln,zIndexPopup:Tt,borderRadiusLG:En,subMenuItemBorderRadius:vn,menuArrowSize:jn,menuArrowOffset:xn,lineType:hn,menuPanelMaskInset:ye,groupTitleLineHeight:Oe,groupTitleFontSize:Je}=Re;return[{"":{[`${be}`]:Object.assign(Object.assign({},(0,ke.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ke.Wf)(Re)),(0,ke.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Qe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ve} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:Re.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${jt}px ${en}px`,fontSize:Je,lineHeight:Oe,transition:`all ${Ve}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Ve} ${Mt}`,`background ${Ve} ${Mt}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Ve} ${Mt}`,`background ${Ve} ${Mt}`,`padding ${pt} ${Mt}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Ve} ${Mt}`,`padding ${Ve} ${Mt}`].join(",")},[`${be}-title-content`]:{transition:`color ${Ve}`},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:gn,borderStyle:hn,borderWidth:0,borderTopWidth:ln,marginBlock:ln,padding:0,"&-dashed":{borderStyle:"dashed"}}}),at(Re)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${Qe*2}px ${en}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:En,boxShadow:"none",transformOrigin:"0 0",[`&${be}-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:Re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Re.paddingXS},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:En},at(Re)),Nt(Re)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:vn},[`${be}-submenu-title::after`]:{transition:`transform ${Ve} ${Mt}`}})}}),Nt(Re)),{[`&-inline-collapsed ${be}-submenu-arrow,
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xn})`},"&::after":{transform:`rotate(45deg) translateX(-${xn})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(-${jn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${xn})`},"&::before":{transform:`rotate(45deg) translateX(${xn})`}}})},{[`${xe}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]};var Pt=(Re,xe)=>(0,sn.Z)("Menu",Qe=>{if(xe===!1)return[];const{colorBgElevated:Ve,colorPrimary:pt,colorTextLightSolid:Mt,controlHeightLG:jt,fontSize:en,darkItemColor:gn,darkDangerItemColor:ln,darkItemBg:Tt,darkSubMenuItemBg:En,darkItemSelectedColor:vn,darkItemSelectedBg:jn,darkDangerItemSelectedBg:xn,darkItemHoverBg:hn,darkGroupTitleColor:ye,darkItemHoverColor:Oe,darkItemDisabledColor:Je,darkDangerItemHoverColor:Lt,darkDangerItemSelectedColor:xt,darkDangerItemActiveBg:_t}=Qe,Qt=en/7*5,At=(0,Ne.TS)(Qe,{menuArrowSize:Qt,menuHorizontalHeight:jt*1.15,menuArrowOffset:`${Qt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ve}),Wt=(0,Ne.TS)(At,{itemColor:gn,itemHoverColor:Oe,groupTitleColor:ye,itemSelectedColor:vn,itemBg:Tt,popupBg:Tt,subMenuItemBg:En,itemActiveBg:"transparent",itemSelectedBg:jn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:hn,itemDisabledColor:Je,dangerItemColor:ln,dangerItemHoverColor:Lt,dangerItemSelectedColor:xt,dangerItemActiveBg:_t,dangerItemSelectedBg:xn,menuSubMenuBg:En,horizontalItemSelectedColor:Mt,horizontalItemSelectedBg:pt});return[et(At),ut(At),je(At),mt(At,"light"),mt(Wt,"dark"),ct(At),(0,Ae.Z)(At),(0,yt.oN)(At,"slide-up"),(0,yt.oN)(At,"slide-down"),(0,Jt._y)(At,"zoom-big")]},Qe=>{const{colorPrimary:Ve,colorError:pt,colorTextDisabled:Mt,colorErrorBg:jt,colorText:en,colorTextDescription:gn,colorBgContainer:ln,colorFillAlter:Tt,colorFillContent:En,lineWidth:vn,lineWidthBold:jn,controlItemBgActive:xn,colorBgTextHover:hn,controlHeightLG:ye,lineHeight:Oe,colorBgElevated:Je,marginXXS:Lt,padding:xt,fontSize:_t,controlHeightSM:Qt,fontSizeLG:At,colorTextLightSolid:Wt,colorErrorHover:pn}=Qe,tn=new me.C(Wt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Qe.zIndexPopupBase+50,radiusItem:Qe.borderRadiusLG,itemBorderRadius:Qe.borderRadiusLG,radiusSubMenuItem:Qe.borderRadiusSM,subMenuItemBorderRadius:Qe.borderRadiusSM,colorItemText:en,itemColor:en,colorItemTextHover:en,itemHoverColor:en,colorItemTextHoverHorizontal:Ve,horizontalItemHoverColor:Ve,colorGroupTitle:gn,groupTitleColor:gn,colorItemTextSelected:Ve,itemSelectedColor:Ve,colorItemTextSelectedHorizontal:Ve,horizontalItemSelectedColor:Ve,colorItemBg:ln,itemBg:ln,colorItemBgHover:hn,itemHoverBg:hn,colorItemBgActive:En,itemActiveBg:xn,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jn,activeBarHeight:jn,colorActiveBarBorderSize:vn,activeBarBorderWidth:vn,colorItemTextDisabled:Mt,itemDisabledColor:Mt,colorDangerItemText:pt,dangerItemColor:pt,colorDangerItemTextHover:pt,dangerItemHoverColor:pt,colorDangerItemTextSelected:pt,dangerItemSelectedColor:pt,colorDangerItemBgActive:jt,dangerItemActiveBg:jt,colorDangerItemBgSelected:jt,dangerItemSelectedBg:jt,itemMarginInline:Qe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Oe,collapsedWidth:ye*2,popupBg:Je,itemMarginBlock:Lt,itemPaddingInline:xt,horizontalLineHeight:`${ye*1.15}px`,iconSize:_t,iconMarginInlineEnd:Qt-_t,collapsedIconSize:At,groupTitleFontSize:_t,darkItemDisabledColor:new me.C(Wt).setAlpha(.25).toRgbString(),darkItemColor:tn,darkDangerItemColor:pt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wt,darkItemSelectedBg:Ve,darkDangerItemSelectedBg:pt,darkItemHoverBg:"transparent",darkGroupTitleColor:tn,darkItemHoverColor:Wt,darkDangerItemHoverColor:pn,darkDangerItemSelectedColor:Wt,darkDangerItemActiveBg:pt}},{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"]]})(Re),ue=function(Re,xe){var be={};for(var Qe in Re)Object.prototype.hasOwnProperty.call(Re,Qe)&&xe.indexOf(Qe)<0&&(be[Qe]=Re[Qe]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Qe=Object.getOwnPropertySymbols(Re);Ve<Qe.length;Ve++)xe.indexOf(Qe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,Qe[Ve])&&(be[Qe[Ve]]=Re[Qe[Ve]]);return be},Yt=(0,pe.forwardRef)((Re,xe)=>{var be,Qe;const Ve=pe.useContext(re.Z),pt=Ve||{},{getPrefixCls:Mt,getPopupContainer:jt,direction:en,menu:gn}=pe.useContext(Ke.E_),ln=Mt(),{prefixCls:Tt,className:En,style:vn,theme:jn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:hn,inlineCollapsed:ye,siderCollapsed:Oe,items:Je,children:Lt,rootClassName:xt,mode:_t,selectable:Qt,onClick:At,overflowedIndicatorPopupClassName:Wt}=Re,pn=ue(Re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),tn=(0,Ue.Z)(pn,["collapsedWidth"]),Hn=Pe(Je)||Lt;(be=pt.validator)===null||be===void 0||be.call(pt,{mode:_t});const _n=(0,ee.useEvent)(function(){var ta;At==null||At.apply(void 0,arguments),(ta=pt.onClick)===null||ta===void 0||ta.call(pt)}),Xn=pt.mode||_t,la=Qt!=null?Qt:pt.selectable,In=pe.useMemo(()=>Oe!==void 0?Oe:ye,[ye,Oe]),Tn={horizontal:{motionName:`${ln}-slide-up`},inline:(0,ne.Z)(ln),other:{motionName:`${ln}-zoom-big`}},Yn=Mt("menu",Tt||pt.prefixCls),[ua,ma]=Pt(Yn,!Ve),Rn=Se()(`${Yn}-${jn}`,gn==null?void 0:gn.className,En);let Pa;if(typeof xn=="function")Pa=xn;else if(xn===null||xn===!1)Pa=null;else if(pt.expandIcon===null||pt.expandIcon===!1)Pa=null;else{const ta=xn!=null?xn:pt.expandIcon;Pa=(0,Ie.Tm)(ta,{className:Se()(`${Yn}-submenu-expand-icon`,(0,Ie.l$)(ta)?(Qe=ta.props)===null||Qe===void 0?void 0:Qe.className:"")})}const Aa=pe.useMemo(()=>({prefixCls:Yn,inlineCollapsed:In||!1,direction:en,firstLevel:!0,theme:jn,mode:Xn,disableMenuItemTitleTooltip:hn}),[Yn,In,en,hn,jn]);return ua(pe.createElement(re.Z.Provider,{value:null},pe.createElement(a.Provider,{value:Aa},pe.createElement(te.ZP,Object.assign({getPopupContainer:jt,overflowedIndicator:pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Yn,`${Yn}-${jn}`,Wt),mode:Xn,selectable:la,onClick:_n},tn,{inlineCollapsed:In,style:Object.assign(Object.assign({},gn==null?void 0:gn.style),vn),className:Rn,prefixCls:Yn,direction:en,defaultMotions:Tn,expandIcon:Pa,ref:xe,rootClassName:Se()(xt,ma)}),Hn))))});const bn=(0,pe.forwardRef)((Re,xe)=>{const be=(0,pe.useRef)(null),Qe=pe.useContext(qe.D);return(0,pe.useImperativeHandle)(xe,()=>({menu:be.current,focus:Ve=>{var pt;(pt=be.current)===null||pt===void 0||pt.focus(Ve)}})),pe.createElement(Yt,Object.assign({ref:be},Re,Qe))});bn.Item=E,bn.SubMenu=x,bn.Divider=Me,bn.ItemGroup=te.BW;var Ft=bn},38703:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return hn}});var te=oe(67294),pe=oe(87725),qe=oe(18299),Xe=oe(16646),Se=oe(73475),Ke=oe(94184),ce=oe.n(Ke),De=oe(10366),Me=oe(53124),Ee=oe(87462),Ue=oe(1413),$e=oe(45987),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Oe=(0,te.useRef)([]),Je=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Lt=Date.now(),xt=!1;Oe.current.forEach(function(_t){if(_t){xt=!0;var Qt=_t.style;Qt.transitionDuration=".3s, .3s, .3s, .06s",Je.current&&Lt-Je.current<100&&(Qt.transitionDuration="0s, 0s")}}),xt&&(Je.current=Date.now())}),Oe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Oe){var Je=(0,Ue.Z)((0,Ue.Z)({},Ie),Oe),Lt=Je.className,xt=Je.percent,_t=Je.prefixCls,Qt=Je.strokeColor,At=Je.strokeLinecap,Wt=Je.strokeWidth,pn=Je.style,tn=Je.trailColor,Hn=Je.trailWidth,_n=Je.transition,Xn=(0,$e.Z)(Je,a);delete Xn.gapPosition;var la=Array.isArray(xt)?xt:[xt],In=Array.isArray(Qt)?Qt:[Qt],Tn=ae(),Yn=Wt/2,ua=100-Wt/2,ma="M ".concat(At==="round"?Yn:0,",").concat(Yn,`
L `).concat(At==="round"?ua:100,",").concat(Yn),Rn="0 0 100 ".concat(Wt),Pa=0;return te.createElement("svg",(0,Ee.Z)({className:ce()("".concat(_t,"-line"),Lt),viewBox:Rn,preserveAspectRatio:"none",style:pn},Xn),te.createElement("path",{className:"".concat(_t,"-line-trail"),d:ma,strokeLinecap:At,stroke:tn,strokeWidth:Hn||Wt,fillOpacity:"0"}),la.map(function(Aa,ta){var Ua=1;switch(At){case"round":Ua=1-Wt/100;break;case"square":Ua=1-Wt/2/100;break;default:Ua=1;break}var eo={strokeDasharray:"".concat(Aa*Ua,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:_n||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qa=In[ta]||In[In.length-1];return Pa+=Aa,te.createElement("path",{key:ta,className:"".concat(_t,"-line-path"),d:ma,strokeLinecap:At,stroke:Qa,strokeWidth:Wt,fillOpacity:"0",ref:function(we){Tn[ta]=we},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 Oe=te.useState(),Je=(0,x.Z)(Oe,2),Lt=Je[0],xt=Je[1];return te.useEffect(function(){xt("rc_progress_".concat(re()))},[]),ye||Lt},de=function(Oe){var Je=Oe.bg,Lt=Oe.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:Je}},Lt)};function Pe(ye,Oe){return Object.keys(ye).map(function(Je){var Lt=parseFloat(Je),xt="".concat(Math.floor(Lt*Oe),"%");return"".concat(ye[Je]," ").concat(xt)})}var me=te.forwardRef(function(ye,Oe){var Je=ye.prefixCls,Lt=ye.color,xt=ye.gradientId,_t=ye.radius,Qt=ye.style,At=ye.ptg,Wt=ye.strokeLinecap,pn=ye.strokeWidth,tn=ye.size,Hn=ye.gapDegree,_n=Lt&&(0,b.Z)(Lt)==="object",Xn=_n?"#FFF":void 0,la=tn/2,In=te.createElement("circle",{className:"".concat(Je,"-circle-path"),r:_t,cx:la,cy:la,stroke:Xn,strokeLinecap:Wt,strokeWidth:pn,opacity:At===0?0:1,style:Qt,ref:Oe});if(!_n)return In;var Tn="".concat(xt,"-conic"),Yn=Hn?"".concat(180+Hn/2,"deg"):"0deg",ua=Pe(Lt,(360-Hn)/360),ma=Pe(Lt,1),Rn="conic-gradient(from ".concat(Yn,", ").concat(ua.join(", "),")"),Pa="linear-gradient(to ".concat(Hn?"bottom":"top",", ").concat(ma.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Tn},In),te.createElement("foreignObject",{x:0,y:0,width:tn,height:tn,mask:"url(#".concat(Tn,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Rn}))))}),ke=me,Ae=100,yt=function(Oe,Je,Lt,xt,_t,Qt,At,Wt,pn,tn){var Hn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,_n=Lt/100*360*((360-Qt)/360),Xn=Qt===0?0:{bottom:0,top:180,left:90,right:-90}[At],la=(100-xt)/100*Je;pn==="round"&&xt!==100&&(la+=tn/2,la>=Je&&(la=Je-.01));var In=Ae/2;return{stroke:typeof Wt=="string"?Wt:void 0,strokeDasharray:"".concat(Je,"px ").concat(Oe),strokeDashoffset:la+Hn,transform:"rotate(".concat(_t+_n+Xn,"deg)"),transformOrigin:"".concat(In,"px ").concat(In,"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}},Jt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function sn(ye){var Oe=ye!=null?ye:[];return Array.isArray(Oe)?Oe:[Oe]}var Ne=function(Oe){var Je=(0,Ue.Z)((0,Ue.Z)({},Ie),Oe),Lt=Je.id,xt=Je.prefixCls,_t=Je.steps,Qt=Je.strokeWidth,At=Je.trailWidth,Wt=Je.gapDegree,pn=Wt===void 0?0:Wt,tn=Je.gapPosition,Hn=Je.trailColor,_n=Je.strokeLinecap,Xn=Je.style,la=Je.className,In=Je.strokeColor,Tn=Je.percent,Yn=(0,$e.Z)(Je,Jt),ua=Ae/2,ma=ge(Lt),Rn="".concat(ma,"-gradient"),Pa=ua-Qt/2,Aa=Math.PI*2*Pa,ta=pn>0?90+pn/2:-90,Ua=Aa*((360-pn)/360),eo=(0,b.Z)(_t)==="object"?_t:{count:_t,space:2},Qa=eo.count,Le=eo.space,we=sn(Tn),ve=sn(In),ht=ve.find(function(Da){return Da&&(0,b.Z)(Da)==="object"}),zt=ht&&(0,b.Z)(ht)==="object",Dt=zt?"butt":_n,kn=yt(Aa,Ua,0,100,ta,pn,tn,Hn,Dt,Qt),un=ae(),Bn=function(){var ot=0;return we.map(function(Cn,he){var ze=ve[he]||ve[ve.length-1],Be=yt(Aa,Ua,ot,Cn,ta,pn,tn,ze,Dt,Qt);return ot+=Cn,te.createElement(ke,{key:he,color:ze,ptg:Cn,radius:Pa,prefixCls:xt,gradientId:Rn,style:Be,strokeLinecap:Dt,strokeWidth:Qt,gapDegree:pn,ref:function(gt){un[he]=gt},size:Ae})}).reverse()},na=function(){var ot=Math.round(Qa*(we[0]/100)),Cn=100/Qa,he=0;return new Array(Qa).fill(null).map(function(ze,Be){var Te=Be<=ot-1?ve[0]:Hn,gt=Te&&(0,b.Z)(Te)==="object"?"url(#".concat(Rn,")"):void 0,Ye=yt(Aa,Ua,he,Cn,ta,pn,tn,Te,"butt",Qt,Le);return he+=(Ua-Ye.strokeDashoffset+Le)*100/Ua,te.createElement("circle",{key:Be,className:"".concat(xt,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:gt,strokeWidth:Qt,opacity:1,style:Ye,ref:function(_e){un[Be]=_e}})})};return te.createElement("svg",(0,Ee.Z)({className:ce()("".concat(xt,"-circle"),la),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:Xn,id:Lt,role:"presentation"},Yn),!Qa&&te.createElement("circle",{className:"".concat(xt,"-circle-trail"),r:Pa,cx:ua,cy:ua,stroke:Hn,strokeLinecap:Dt,strokeWidth:At||Qt,style:kn}),Qa?na():Bn())},dt=Ne,ut={Line:E,Circle:dt},st=oe(83062),ct=oe(47448);function lt(ye){return!ye||ye<0?0:ye>100?100:ye}function rt(ye){let{success:Oe,successPercent:Je}=ye,Lt=Je;return Oe&&"progress"in Oe&&(Lt=Oe.progress),Oe&&"percent"in Oe&&(Lt=Oe.percent),Lt}const mt=ye=>{let{percent:Oe,success:Je,successPercent:Lt}=ye;const xt=lt(rt({success:Je,successPercent:Lt}));return[xt,lt(lt(Oe)-xt)]},Sn=ye=>{let{success:Oe={},strokeColor:Je}=ye;const{strokeColor:Lt}=Oe;return[Lt||ct.presetPrimaryColors.green,Je||null]},Fe=(ye,Oe,Je)=>{var Lt,xt,_t,Qt;let At=-1,Wt=-1;if(Oe==="step"){const pn=Je.steps,tn=Je.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(At=ye==="small"?2:14,Wt=tn!=null?tn:8):typeof ye=="number"?[At,Wt]=[ye,ye]:[At=14,Wt=8]=ye,At*=pn}else if(Oe==="line"){const pn=Je==null?void 0:Je.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?Wt=pn||(ye==="small"?6:8):typeof ye=="number"?[At,Wt]=[ye,ye]:[At=-1,Wt=8]=ye}else(Oe==="circle"||Oe==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[At,Wt]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[At,Wt]=[ye,ye]:(At=(xt=(Lt=ye[0])!==null&&Lt!==void 0?Lt:ye[1])!==null&&xt!==void 0?xt:120,Wt=(Qt=(_t=ye[0])!==null&&_t!==void 0?_t:ye[1])!==null&&Qt!==void 0?Qt:120));return[At,Wt]},je=3,at=ye=>je/ye*100;var et=ye=>{const{prefixCls:Oe,trailColor:Je=null,strokeLinecap:Lt="round",gapPosition:xt,gapDegree:_t,width:Qt=120,type:At,children:Wt,success:pn,size:tn=Qt}=ye,[Hn,_n]=Fe(tn,"circle");let{strokeWidth:Xn}=ye;Xn===void 0&&(Xn=Math.max(at(Hn),6));const la={width:Hn,height:_n,fontSize:Hn*.15+6},In=te.useMemo(()=>{if(_t||_t===0)return _t;if(At==="dashboard")return 75},[_t,At]),Tn=xt||At==="dashboard"&&"bottom"||void 0,Yn=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",ua=Sn({success:pn,strokeColor:ye.strokeColor}),ma=ce()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:Yn}),Rn=te.createElement(dt,{percent:mt(ye),strokeWidth:Xn,trailWidth:Xn,strokeColor:ua,strokeLinecap:Lt,trailColor:Je,prefixCls:Oe,gapDegree:In,gapPosition:Tn});return te.createElement("div",{className:ma,style:la},Hn<=20?te.createElement(st.Z,{title:Wt},te.createElement("span",null,Rn)):te.createElement(te.Fragment,null,Rn,Wt))},Pt=function(ye,Oe){var Je={};for(var Lt in ye)Object.prototype.hasOwnProperty.call(ye,Lt)&&Oe.indexOf(Lt)<0&&(Je[Lt]=ye[Lt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Lt=Object.getOwnPropertySymbols(ye);xt<Lt.length;xt++)Oe.indexOf(Lt[xt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Lt[xt])&&(Je[Lt[xt]]=ye[Lt[xt]]);return Je};const ue=ye=>{let Oe=[];return Object.keys(ye).forEach(Je=>{const Lt=parseFloat(Je.replace(/%/g,""));isNaN(Lt)||Oe.push({key:Lt,value:ye[Je]})}),Oe=Oe.sort((Je,Lt)=>Je.key-Lt.key),Oe.map(Je=>{let{key:Lt,value:xt}=Je;return`${xt} ${Lt}%`}).join(", ")},ft=(ye,Oe)=>{const{from:Je=ct.presetPrimaryColors.blue,to:Lt=ct.presetPrimaryColors.blue,direction:xt=Oe==="rtl"?"to left":"to right"}=ye,_t=Pt(ye,["from","to","direction"]);if(Object.keys(_t).length!==0){const Qt=ue(_t);return{backgroundImage:`linear-gradient(${xt}, ${Qt})`}}return{backgroundImage:`linear-gradient(${xt}, ${Je}, ${Lt})`}};var bn=ye=>{const{prefixCls:Oe,direction:Je,percent:Lt,size:xt,strokeWidth:_t,strokeColor:Qt,strokeLinecap:At="round",children:Wt,trailColor:pn=null,success:tn}=ye,Hn=Qt&&typeof Qt!="string"?ft(Qt,Je):{backgroundColor:Qt},_n=At==="square"||At==="butt"?0:void 0,Xn={backgroundColor:pn||void 0,borderRadius:_n},la=xt!=null?xt:[-1,_t||(xt==="small"?6:8)],[In,Tn]=Fe(la,"line",{strokeWidth:_t}),Yn=Object.assign({width:`${lt(Lt)}%`,height:Tn,borderRadius:_n},Hn),ua=rt(ye),ma={width:`${lt(ua)}%`,height:Tn,borderRadius:_n,backgroundColor:tn==null?void 0:tn.strokeColor},Rn={width:In<0?"100%":In,height:Tn};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Oe}-outer`,style:Rn},te.createElement("div",{className:`${Oe}-inner`,style:Xn},te.createElement("div",{className:`${Oe}-bg`,style:Yn}),ua!==void 0?te.createElement("div",{className:`${Oe}-success-bg`,style:ma}):null)),Wt)},Re=ye=>{const{size:Oe,steps:Je,percent:Lt=0,strokeWidth:xt=8,strokeColor:_t,trailColor:Qt=null,prefixCls:At,children:Wt}=ye,pn=Math.round(Je*(Lt/100)),tn=Oe==="small"?2:14,Hn=Oe!=null?Oe:[tn,xt],[_n,Xn]=Fe(Hn,"step",{steps:Je,strokeWidth:xt}),la=_n/Je,In=new Array(Je);for(let Tn=0;Tn<Je;Tn++){const Yn=Array.isArray(_t)?_t[Tn]:_t;In[Tn]=te.createElement("div",{key:Tn,className:ce()(`${At}-steps-item`,{[`${At}-steps-item-active`]:Tn<=pn-1}),style:{backgroundColor:Tn<=pn-1?Yn:Qt,width:la,height:Xn}})}return te.createElement("div",{className:`${At}-steps-outer`},In,Wt)},xe=oe(45930),be=oe(14747),Qe=oe(67968),Ve=oe(45503);const pt=ye=>{const Oe=ye?"100%":"-100%";return new xe.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Mt=ye=>{const{componentCls:Oe,iconCls:Je}=ye;return{[Oe]:Object.assign(Object.assign({},(0,be.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ye.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Je]:{fontSize:ye.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:pt(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:pt(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:ye.colorError},[`${Oe}-text`]:{color:ye.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ye.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:ye.colorSuccess},[`${Oe}-text`]:{color:ye.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ye.colorSuccess}}})}},jt=ye=>{const{componentCls:Oe,iconCls:Je}=ye;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:ye.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-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%)",[Je]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:ye.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:ye.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},en=ye=>{const{componentCls:Oe}=ye;return{[Oe]:{[`${Oe}-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}}}}}},gn=ye=>{const{componentCls:Oe,iconCls:Je}=ye;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${Je}`]:{fontSize:ye.fontSizeSM}}}};var ln=(0,Qe.Z)("Progress",ye=>{const Oe=ye.marginXXS/2,Je=(0,Ve.TS)(ye,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[Mt(Je),jt(Je),en(Je),gn(Je)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Tt=function(ye,Oe){var Je={};for(var Lt in ye)Object.prototype.hasOwnProperty.call(ye,Lt)&&Oe.indexOf(Lt)<0&&(Je[Lt]=ye[Lt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Lt=Object.getOwnPropertySymbols(ye);xt<Lt.length;xt++)Oe.indexOf(Lt[xt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Lt[xt])&&(Je[Lt[xt]]=ye[Lt[xt]]);return Je};const En=null,vn=["normal","exception","active","success"];var xn=te.forwardRef((ye,Oe)=>{const{prefixCls:Je,className:Lt,rootClassName:xt,steps:_t,strokeColor:Qt,percent:At=0,size:Wt="default",showInfo:pn=!0,type:tn="line",status:Hn,format:_n,style:Xn}=ye,la=Tt(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),In=te.useMemo(()=>{var we,ve;const ht=rt(ye);return parseInt(ht!==void 0?(we=ht!=null?ht:0)===null||we===void 0?void 0:we.toString():(ve=At!=null?At:0)===null||ve===void 0?void 0:ve.toString(),10)},[At,ye.success,ye.successPercent]),Tn=te.useMemo(()=>!vn.includes(Hn)&&In>=100?"success":Hn||"normal",[Hn,In]),{getPrefixCls:Yn,direction:ua,progress:ma}=te.useContext(Me.E_),Rn=Yn("progress",Je),[Pa,Aa]=ln(Rn),ta=te.useMemo(()=>{if(!pn)return null;const we=rt(ye);let ve;const ht=_n||(Dt=>`${Dt}%`),zt=tn==="line";return _n||Tn!=="exception"&&Tn!=="success"?ve=ht(lt(At),lt(we)):Tn==="exception"?ve=zt?te.createElement(Xe.Z,null):te.createElement(Se.Z,null):Tn==="success"&&(ve=zt?te.createElement(pe.Z,null):te.createElement(qe.Z,null)),te.createElement("span",{className:`${Rn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[pn,At,In,Tn,tn,Rn,_n]),Ua=Array.isArray(Qt)?Qt[0]:Qt,eo=typeof Qt=="string"||Array.isArray(Qt)?Qt:void 0;let Qa;tn==="line"?Qa=_t?te.createElement(Re,Object.assign({},ye,{strokeColor:eo,prefixCls:Rn,steps:_t}),ta):te.createElement(bn,Object.assign({},ye,{strokeColor:Ua,prefixCls:Rn,direction:ua}),ta):(tn==="circle"||tn==="dashboard")&&(Qa=te.createElement(et,Object.assign({},ye,{strokeColor:Ua,prefixCls:Rn,progressStatus:Tn}),ta));const Le=ce()(Rn,`${Rn}-status-${Tn}`,`${Rn}-${tn==="dashboard"&&"circle"||_t&&"steps"||tn}`,{[`${Rn}-inline-circle`]:tn==="circle"&&Fe(Wt,"circle")[0]<=20,[`${Rn}-show-info`]:pn,[`${Rn}-${Wt}`]:typeof Wt=="string",[`${Rn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,Lt,xt,Aa);return Pa(te.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),Xn),className:Le,role:"progressbar","aria-valuenow":In},(0,De.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),hn=xn},59810:function(Ge,St,oe){"use strict";oe.d(St,{default:function(){return Cn}});var te=oe(67294),pe=oe(74902),qe=oe(94184),Xe=oe.n(qe),Se=oe(87462),Ke=oe(15671),ce=oe(43144),De=oe(60136),Me=oe(51630),Ee=oe(4942),Ue=oe(45987),$e=oe(74165),Ie=oe(71002),ae=oe(15861),a=oe(64217);function y(he,ze){var Be="cannot ".concat(he.method," ").concat(he.action," ").concat(ze.status,"'"),Te=new Error(Be);return Te.status=ze.status,Te.method=he.method,Te.url=he.action,Te}function E(he){var ze=he.responseText||he.response;if(!ze)return ze;try{return JSON.parse(ze)}catch(Be){return ze}}function b(he){var ze=new XMLHttpRequest;he.onProgress&&ze.upload&&(ze.upload.onprogress=function(Ye){Ye.total>0&&(Ye.percent=Ye.loaded/Ye.total*100),he.onProgress(Ye)});var Be=new FormData;he.data&&Object.keys(he.data).forEach(function(gt){var Ye=he.data[gt];if(Array.isArray(Ye)){Ye.forEach(function(nt){Be.append("".concat(gt,"[]"),nt)});return}Be.append(gt,Ye)}),he.file instanceof Blob?Be.append(he.filename,he.file,he.file.name):Be.append(he.filename,he.file),ze.onerror=function(Ye){he.onError(Ye)},ze.onload=function(){return ze.status<200||ze.status>=300?he.onError(y(he,ze),E(ze)):he.onSuccess(E(ze),ze)},ze.open(he.method,he.action,!0),he.withCredentials&&"withCredentials"in ze&&(ze.withCredentials=!0);var Te=he.headers||{};return Te["X-Requested-With"]!==null&&ze.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Te).forEach(function(gt){Te[gt]!==null&&ze.setRequestHeader(gt,Te[gt])}),ze.send(Be),{abort:function(){ze.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(he,ze){if(he&&ze){var Be=Array.isArray(ze)?ze:ze.split(","),Te=he.name||"",gt=he.type||"",Ye=gt.replace(/\/.*$/,"");return Be.some(function(nt){var _e=nt.trim();if(/^\*(\/\*)?$/.test(nt))return!0;if(_e.charAt(0)==="."){var Vt=Te.toLowerCase(),Ot=_e.toLowerCase(),nn=[Ot];return(Ot===".jpg"||Ot===".jpeg")&&(nn=[".jpg",".jpeg"]),nn.some(function(Pn){return Vt.endsWith(Pn)})}return/\/\*$/.test(_e)?Ye===_e.replace(/\/.*$/,""):gt===_e?!0:/^\w+$/.test(_e)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(_e,"'.Skip for check.")),!0):!1})}return!0};function ge(he,ze){var Be=he.createReader(),Te=[];function gt(){Be.readEntries(function(Ye){var nt=Array.prototype.slice.apply(Ye);Te=Te.concat(nt);var _e=!nt.length;_e?ze(Te):gt()})}gt()}var de=function(ze,Be,Te){var gt=function Ye(nt,_e){nt&&(nt.path=_e||"",nt.isFile?nt.file(function(Vt){Te(Vt)&&(nt.fullPath&&!Vt.webkitRelativePath&&(Object.defineProperties(Vt,{webkitRelativePath:{writable:!0}}),Vt.webkitRelativePath=nt.fullPath.replace(/^\//,""),Object.defineProperties(Vt,{webkitRelativePath:{writable:!1}})),Be([Vt]))}):nt.isDirectory&&ge(nt,function(Vt){Vt.forEach(function(Ot){Ye(Ot,"".concat(_e).concat(nt.name,"/"))})}))};ze.forEach(function(Ye){gt(Ye.webkitGetAsEntry())})},Pe=de,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ke=function(he){(0,De.Z)(Be,he);var ze=(0,Me.Z)(Be);function Be(){var Te;(0,Ke.Z)(this,Be);for(var gt=arguments.length,Ye=new Array(gt),nt=0;nt<gt;nt++)Ye[nt]=arguments[nt];return Te=ze.call.apply(ze,[this].concat(Ye)),Te.state={uid:ee()},Te.reqs={},Te.fileInput=void 0,Te._isMounted=void 0,Te.onChange=function(_e){var Vt=Te.props,Ot=Vt.accept,nn=Vt.directory,Pn=_e.target.files,$n=(0,pe.Z)(Pn).filter(function(Ze){return!nn||re(Ze,Ot)});Te.uploadFiles($n),Te.reset()},Te.onClick=function(_e){var Vt=Te.fileInput;if(Vt){var Ot=Te.props,nn=Ot.children,Pn=Ot.onClick;if(nn&&nn.type==="button"){var $n=Vt.parentNode;$n.focus(),$n.querySelector("button").blur()}Vt.click(),Pn&&Pn(_e)}},Te.onKeyDown=function(_e){_e.key==="Enter"&&Te.onClick(_e)},Te.onFileDrop=function(_e){var Vt=Te.props.multiple;if(_e.preventDefault(),_e.type!=="dragover")if(Te.props.directory)Pe(Array.prototype.slice.call(_e.dataTransfer.items),Te.uploadFiles,function(nn){return re(nn,Te.props.accept)});else{var Ot=(0,pe.Z)(_e.dataTransfer.files).filter(function(nn){return re(nn,Te.props.accept)});Vt===!1&&(Ot=Ot.slice(0,1)),Te.uploadFiles(Ot)}},Te.uploadFiles=function(_e){var Vt=(0,pe.Z)(_e),Ot=Vt.map(function(nn){return nn.uid=ee(),Te.processFile(nn,Vt)});Promise.all(Ot).then(function(nn){var Pn=Te.props.onBatchStart;Pn==null||Pn(nn.map(function($n){var Ze=$n.origin,$a=$n.parsedFile;return{file:Ze,parsedFile:$a}})),nn.filter(function($n){return $n.parsedFile!==null}).forEach(function($n){Te.post($n)})})},Te.processFile=function(){var _e=(0,ae.Z)((0,$e.Z)().mark(function Vt(Ot,nn){var Pn,$n,Ze,$a,La,Ia,aa,tt,Ct;return(0,$e.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(Pn=Te.props.beforeUpload,$n=Ot,!Pn){it.next=14;break}return it.prev=3,it.next=6,Pn(Ot,nn);case 6:$n=it.sent,it.next=12;break;case 9:it.prev=9,it.t0=it.catch(3),$n=!1;case 12:if($n!==!1){it.next=14;break}return it.abrupt("return",{origin:Ot,parsedFile:null,action:null,data:null});case 14:if(Ze=Te.props.action,typeof Ze!="function"){it.next=21;break}return it.next=18,Ze(Ot);case 18:$a=it.sent,it.next=22;break;case 21:$a=Ze;case 22:if(La=Te.props.data,typeof La!="function"){it.next=29;break}return it.next=26,La(Ot);case 26:Ia=it.sent,it.next=30;break;case 29:Ia=La;case 30:return aa=((0,Ie.Z)($n)==="object"||typeof $n=="string")&&$n?$n:Ot,aa instanceof File?tt=aa:tt=new File([aa],Ot.name,{type:Ot.type}),Ct=tt,Ct.uid=Ot.uid,it.abrupt("return",{origin:Ot,data:Ia,parsedFile:Ct,action:$a});case 35:case"end":return it.stop()}},Vt,null,[[3,9]])}));return function(Vt,Ot){return _e.apply(this,arguments)}}(),Te.saveFileInput=function(_e){Te.fileInput=_e},Te}return(0,ce.Z)(Be,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(gt){var Ye=this,nt=gt.data,_e=gt.origin,Vt=gt.action,Ot=gt.parsedFile;if(this._isMounted){var nn=this.props,Pn=nn.onStart,$n=nn.customRequest,Ze=nn.name,$a=nn.headers,La=nn.withCredentials,Ia=nn.method,aa=_e.uid,tt=$n||b,Ct={action:Vt,filename:Ze,data:nt,file:Ot,headers:$a,withCredentials:La,method:Ia||"post",onProgress:function(it){var cn=Ye.props.onProgress;cn==null||cn(it,Ot)},onSuccess:function(it,cn){var fn=Ye.props.onSuccess;fn==null||fn(it,Ot,cn),delete Ye.reqs[aa]},onError:function(it,cn){var fn=Ye.props.onError;fn==null||fn(it,cn,Ot),delete Ye.reqs[aa]}};Pn(_e),this.reqs[aa]=tt(Ct)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(gt){var Ye=this.reqs;if(gt){var nt=gt.uid?gt.uid:gt;Ye[nt]&&Ye[nt].abort&&Ye[nt].abort(),delete Ye[nt]}else Object.keys(Ye).forEach(function(_e){Ye[_e]&&Ye[_e].abort&&Ye[_e].abort(),delete Ye[_e]})}},{key:"render",value:function(){var gt,Ye=this.props,nt=Ye.component,_e=Ye.prefixCls,Vt=Ye.className,Ot=Ye.disabled,nn=Ye.id,Pn=Ye.style,$n=Ye.multiple,Ze=Ye.accept,$a=Ye.capture,La=Ye.children,Ia=Ye.directory,aa=Ye.openFileDialogOnClick,tt=Ye.onMouseEnter,Ct=Ye.onMouseLeave,Ut=(0,Ue.Z)(Ye,me),it=Xe()((gt={},(0,Ee.Z)(gt,_e,!0),(0,Ee.Z)(gt,"".concat(_e,"-disabled"),Ot),(0,Ee.Z)(gt,Vt,Vt),gt)),cn=Ia?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},fn=Ot?{}:{onClick:aa?this.onClick:function(){},onKeyDown:aa?this.onKeyDown:function(){},onMouseEnter:tt,onMouseLeave:Ct,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(nt,(0,Se.Z)({},fn,{className:it,role:"button",style:Pn}),te.createElement("input",(0,Se.Z)({},(0,a.Z)(Ut,{aria:!0,data:!0}),{id:nn,disabled:Ot,type:"file",ref:this.saveFileInput,onClick:function(ca){return ca.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ze},cn,{multiple:$n,onChange:this.onChange},$a!=null?{capture:$a}:{})),La)}}]),Be}(te.Component),Ae=ke;function yt(){}var Jt=function(he){(0,De.Z)(Be,he);var ze=(0,Me.Z)(Be);function Be(){var Te;(0,Ke.Z)(this,Be);for(var gt=arguments.length,Ye=new Array(gt),nt=0;nt<gt;nt++)Ye[nt]=arguments[nt];return Te=ze.call.apply(ze,[this].concat(Ye)),Te.uploader=void 0,Te.saveUploader=function(_e){Te.uploader=_e},Te}return(0,ce.Z)(Be,[{key:"abort",value:function(gt){this.uploader.abort(gt)}},{key:"render",value:function(){return te.createElement(Ae,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),Be}(te.Component);Jt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:yt,onError:yt,onSuccess:yt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var sn=Jt,Ne=sn,dt=oe(5663),ut=oe(73935),st=oe(53124),ct=oe(98866),lt=oe(10110),rt=oe(24457),mt={icon:function(ze,Be){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Be}},{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:ze}}]}},name:"file",theme:"twotone"},Sn=mt,Fe=oe(74643),je=function(ze,Be){return te.createElement(Fe.Z,(0,Se.Z)({},ze,{ref:Be,icon:Sn}))},at=te.forwardRef(je),Nt=oe(3407),et={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"},Pt=et,ue=function(ze,Be){return te.createElement(Fe.Z,(0,Se.Z)({},ze,{ref:Be,icon:Pt}))},ft=te.forwardRef(ue),Yt={icon:function(ze,Be){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:ze}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Be}},{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:Be}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Be}},{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:ze}}]}},name:"picture",theme:"twotone"},bn=Yt,Ft=function(ze,Be){return te.createElement(Fe.Z,(0,Se.Z)({},ze,{ref:Be,icon:bn}))},Re=te.forwardRef(Ft),xe=oe(38379),be=oe(57838),Qe=oe(33603),Ve=oe(96159),pt=oe(71577);function Mt(he){return Object.assign(Object.assign({},he),{lastModified:he.lastModified,lastModifiedDate:he.lastModifiedDate,name:he.name,size:he.size,type:he.type,uid:he.uid,percent:0,originFileObj:he})}function jt(he,ze){const Be=(0,pe.Z)(ze),Te=Be.findIndex(gt=>{let{uid:Ye}=gt;return Ye===he.uid});return Te===-1?Be.push(he):Be[Te]=he,Be}function en(he,ze){const Be=he.uid!==void 0?"uid":"name";return ze.filter(Te=>Te[Be]===he[Be])[0]}function gn(he,ze){const Be=he.uid!==void 0?"uid":"name",Te=ze.filter(gt=>gt[Be]!==he[Be]);return Te.length===ze.length?null:Te}const ln=function(){const ze=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Te=ze[ze.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Te)||[""])[0]},Tt=he=>he.indexOf("image/")===0,En=he=>{if(he.type&&!he.thumbUrl)return Tt(he.type);const ze=he.thumbUrl||he.url||"",Be=ln(ze);return/^data:image\//.test(ze)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Be)?!0:!(/^data:/.test(ze)||Be)},vn=200;function jn(he){return new Promise(ze=>{if(!he.type||!Tt(he.type)){ze("");return}const Be=document.createElement("canvas");Be.width=vn,Be.height=vn,Be.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(Be);const Te=Be.getContext("2d"),gt=new Image;if(gt.onload=()=>{const{width:Ye,height:nt}=gt;let _e=vn,Vt=vn,Ot=0,nn=0;Ye>nt?(Vt=nt*(vn/Ye),nn=-(Vt-_e)/2):(_e=Ye*(vn/nt),Ot=-(_e-Vt)/2),Te.drawImage(gt,Ot,nn,_e,Vt);const Pn=Be.toDataURL();document.body.removeChild(Be),window.URL.revokeObjectURL(gt.src),ze(Pn)},gt.crossOrigin="anonymous",he.type.startsWith("image/svg+xml")){const Ye=new FileReader;Ye.onload=()=>{Ye.result&&(gt.src=Ye.result)},Ye.readAsDataURL(he)}else if(he.type.startsWith("image/gif")){const Ye=new FileReader;Ye.onload=()=>{Ye.result&&ze(Ye.result)},Ye.readAsDataURL(he)}else gt.src=window.URL.createObjectURL(he)})}var xn=oe(84249),hn=oe(90674),ye=oe(99569),Oe=oe(38703),Je=oe(83062),xt=te.forwardRef((he,ze)=>{let{prefixCls:Be,className:Te,style:gt,locale:Ye,listType:nt,file:_e,items:Vt,progress:Ot,iconRender:nn,actionIconRender:Pn,itemRender:$n,isImgUrl:Ze,showPreviewIcon:$a,showRemoveIcon:La,showDownloadIcon:Ia,previewIcon:aa,removeIcon:tt,downloadIcon:Ct,onPreview:Ut,onDownload:it,onClose:cn}=he;var fn,sa;const{status:ca}=_e,[fa,Fo]=te.useState(ca);te.useEffect(()=>{ca!=="removed"&&Fo(ca)},[ca]);const[to,Do]=te.useState(!1);te.useEffect(()=>{const Qn=setTimeout(()=>{Do(!0)},300);return()=>{clearTimeout(Qn)}},[]);const xo=nn(_e);let Ka=te.createElement("div",{className:`${Be}-icon`},xo);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(fa==="uploading"||!_e.thumbUrl&&!_e.url){const Qn=Xe()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:fa!=="uploading"});Ka=te.createElement("div",{className:Qn},xo)}else{const Qn=Ze!=null&&Ze(_e)?te.createElement("img",{src:_e.thumbUrl||_e.url,alt:_e.name,className:`${Be}-list-item-image`,crossOrigin:_e.crossOrigin}):xo,Jn=Xe()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:Ze&&!Ze(_e)});Ka=te.createElement("a",{className:Jn,onClick:no=>Ut(_e,no),href:_e.url||_e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const va=Xe()(`${Be}-list-item`,`${Be}-list-item-${fa}`),io=typeof _e.linkProps=="string"?JSON.parse(_e.linkProps):_e.linkProps,po=La?Pn((typeof tt=="function"?tt(_e):tt)||te.createElement(xn.Z,null),()=>cn(_e),Be,Ye.removeFile):null,yo=Ia&&fa==="done"?Pn((typeof Ct=="function"?Ct(_e):Ct)||te.createElement(hn.Z,null),()=>it(_e),Be,Ye.downloadFile):null,_a=nt!=="picture-card"&&nt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Xe()(`${Be}-list-item-actions`,{picture:nt==="picture"})},yo,po),Ra=Xe()(`${Be}-list-item-name`),fo=_e.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ra,title:_e.name},io,{href:_e.url,onClick:Qn=>Ut(_e,Qn)}),_e.name),_a]:[te.createElement("span",{key:"view",className:Ra,onClick:Qn=>Ut(_e,Qn),title:_e.name},_e.name),_a],an={pointerEvents:"none",opacity:.5},pa=$a?te.createElement("a",{href:_e.url||_e.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:_e.url||_e.thumbUrl?void 0:an,onClick:Qn=>Ut(_e,Qn),title:Ye.previewFile},typeof aa=="function"?aa(_e):aa||te.createElement(ye.Z,null)):null,Fa=(nt==="picture-card"||nt==="picture-circle")&&fa!=="uploading"&&te.createElement("span",{className:`${Be}-list-item-actions`},pa,fa==="done"&&yo,po),{getPrefixCls:Na}=te.useContext(st.E_),Ja=Na(),ba=te.createElement("div",{className:va},Ka,fo,Fa,to&&te.createElement(xe.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Qn=>{let{className:Jn}=Qn;const no="percent"in _e?te.createElement(Oe.Z,Object.assign({},Ot,{type:"line",percent:_e.percent,"aria-label":_e["aria-label"],"aria-labelledby":_e["aria-labelledby"]})):null;return te.createElement("div",{className:Xe()(`${Be}-list-item-progress`,Jn)},no)})),Wo=_e.response&&typeof _e.response=="string"?_e.response:((fn=_e.error)===null||fn===void 0?void 0:fn.statusText)||((sa=_e.error)===null||sa===void 0?void 0:sa.message)||Ye.uploadError,wa=fa==="error"?te.createElement(Je.Z,{title:Wo,getPopupContainer:Qn=>Qn.parentNode},ba):ba;return te.createElement("div",{className:Xe()(`${Be}-list-item-container`,Te),style:gt,ref:ze},$n?$n(wa,_e,Vt,{download:it.bind(null,_e),preview:Ut.bind(null,_e),remove:cn.bind(null,_e)}):wa)});const _t=(he,ze)=>{const{listType:Be="text",previewFile:Te=jn,onPreview:gt,onDownload:Ye,onRemove:nt,locale:_e,iconRender:Vt,isImageUrl:Ot=En,prefixCls:nn,items:Pn=[],showPreviewIcon:$n=!0,showRemoveIcon:Ze=!0,showDownloadIcon:$a=!1,removeIcon:La,previewIcon:Ia,downloadIcon:aa,progress:tt={size:[-1,2],showInfo:!1},appendAction:Ct,appendActionVisible:Ut=!0,itemRender:it,disabled:cn}=he,fn=(0,be.Z)(),[sa,ca]=te.useState(!1);te.useEffect(()=>{Be!=="picture"&&Be!=="picture-card"&&Be!=="picture-circle"||(Pn||[]).forEach(an=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(an.originFileObj instanceof File||an.originFileObj instanceof Blob)||an.thumbUrl!==void 0||(an.thumbUrl="",Te&&Te(an.originFileObj).then(pa=>{an.thumbUrl=pa||"",fn()}))})},[Be,Pn,Te]),te.useEffect(()=>{ca(!0)},[]);const fa=(an,pa)=>{if(gt)return pa==null||pa.preventDefault(),gt(an)},Fo=an=>{typeof Ye=="function"?Ye(an):an.url&&window.open(an.url)},to=an=>{nt==null||nt(an)},Do=an=>{if(Vt)return Vt(an,Be);const pa=an.status==="uploading",Fa=Ot&&Ot(an)?te.createElement(Re,null):te.createElement(at,null);let Na=pa?te.createElement(Nt.Z,null):te.createElement(ft,null);return Be==="picture"?Na=pa?te.createElement(Nt.Z,null):Fa:(Be==="picture-card"||Be==="picture-circle")&&(Na=pa?_e.uploading:Fa),Na},xo=(an,pa,Fa,Na)=>{const Ja={type:"text",size:"small",title:Na,onClick:ba=>{pa(),(0,Ve.l$)(an)&&an.props.onClick&&an.props.onClick(ba)},className:`${Fa}-list-item-action`,disabled:cn};if((0,Ve.l$)(an)){const ba=(0,Ve.Tm)(an,Object.assign(Object.assign({},an.props),{onClick:()=>{}}));return te.createElement(pt.ZP,Object.assign({},Ja,{icon:ba}))}return te.createElement(pt.ZP,Object.assign({},Ja),te.createElement("span",null,an))};te.useImperativeHandle(ze,()=>({handlePreview:fa,handleDownload:Fo}));const{getPrefixCls:Ka}=te.useContext(st.E_),va=Ka("upload",nn),io=Ka(),po=Xe()(`${va}-list`,`${va}-list-${Be}`),yo=(0,pe.Z)(Pn.map(an=>({key:an.uid,file:an})));let Ra={motionDeadline:2e3,motionName:`${va}-${Be==="picture-card"||Be==="picture-circle"?"animate-inline":"animate"}`,keys:yo,motionAppear:sa};const fo=te.useMemo(()=>{const an=Object.assign({},(0,Qe.Z)(io));return delete an.onAppearEnd,delete an.onEnterEnd,delete an.onLeaveEnd,an},[io]);return Be!=="picture-card"&&Be!=="picture-circle"&&(Ra=Object.assign(Object.assign({},fo),Ra)),te.createElement("div",{className:po},te.createElement(xe.CSSMotionList,Object.assign({},Ra,{component:!1}),an=>{let{key:pa,file:Fa,className:Na,style:Ja}=an;return te.createElement(xt,{key:pa,locale:_e,prefixCls:va,className:Na,style:Ja,file:Fa,items:Pn,progress:tt,listType:Be,isImgUrl:Ot,showPreviewIcon:$n,showRemoveIcon:Ze,showDownloadIcon:$a,removeIcon:La,previewIcon:Ia,downloadIcon:aa,iconRender:Do,actionIconRender:xo,itemRender:it,onPreview:fa,onDownload:Fo,onClose:to})}),Ct&&te.createElement(xe.default,Object.assign({},Ra,{visible:Ut,forceRender:!0}),an=>{let{className:pa,style:Fa}=an;return(0,Ve.Tm)(Ct,Na=>({className:Xe()(Na.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Na.style)}))}))};var At=te.forwardRef(_t),Wt=oe(14747),pn=oe(33507),tn=oe(67968),Hn=oe(45503),Xn=he=>{const{componentCls:ze,iconCls:Be}=he;return{[`${ze}-wrapper`]:{[`${ze}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:he.colorFillAlter,border:`${he.lineWidth}px dashed ${he.colorBorder}`,borderRadius:he.borderRadiusLG,cursor:"pointer",transition:`border-color ${he.motionDurationSlow}`,[ze]:{padding:`${he.padding}px 0`},[`${ze}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ze}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ze}-disabled):hover`]:{borderColor:he.colorPrimaryHover},[`p${ze}-drag-icon`]:{marginBottom:he.margin,[Be]:{color:he.colorPrimary,fontSize:he.uploadThumbnailSize}},[`p${ze}-text`]:{margin:`0 0 ${he.marginXXS}px`,color:he.colorTextHeading,fontSize:he.fontSizeLG},[`p${ze}-hint`]:{color:he.colorTextDescription,fontSize:he.fontSize},[`&${ze}-disabled`]:{cursor:"not-allowed",[`p${ze}-drag-icon ${Be},
p${ze}-text,
p${ze}-hint
`]:{color:he.colorTextDisabled}}}}}},In=he=>{const{componentCls:ze,antCls:Be,iconCls:Te,fontSize:gt,lineHeight:Ye}=he,nt=`${ze}-list-item`,_e=`${nt}-actions`,Vt=`${nt}-action`,Ot=Math.round(gt*Ye);return{[`${ze}-wrapper`]:{[`${ze}-list`]:Object.assign(Object.assign({},(0,Wt.dF)()),{lineHeight:he.lineHeight,[nt]:{position:"relative",height:he.lineHeight*gt,marginTop:he.marginXS,fontSize:gt,display:"flex",alignItems:"center",transition:`background-color ${he.motionDurationSlow}`,"&:hover":{backgroundColor:he.controlItemBgHover},[`${nt}-name`]:Object.assign(Object.assign({},Wt.vS),{padding:`0 ${he.paddingXS}px`,lineHeight:Ye,flex:"auto",transition:`all ${he.motionDurationSlow}`}),[_e]:{[Vt]:{opacity:0},[`${Vt}${Be}-btn-sm`]:{height:Ot,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Vt}:focus-visible,
&.picture ${Vt}
`]:{opacity:1},[Te]:{color:he.actionsColor,transition:`all ${he.motionDurationSlow}`},[`&:hover ${Te}`]:{color:he.colorText}},[`${ze}-icon ${Te}`]:{color:he.colorTextDescription,fontSize:gt},[`${nt}-progress`]:{position:"absolute",bottom:-he.uploadProgressOffset,width:"100%",paddingInlineStart:gt+he.paddingXS,fontSize:gt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${nt}:hover ${Vt}`]:{opacity:1,color:he.colorText},[`${nt}-error`]:{color:he.colorError,[`${nt}-name, ${ze}-icon ${Te}`]:{color:he.colorError},[_e]:{[`${Te}, ${Te}:hover`]:{color:he.colorError},[Vt]:{opacity:1}}},[`${ze}-list-item-container`]:{transition:`opacity ${he.motionDurationSlow}, height ${he.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tn=oe(45930),Yn=oe(16932);const ua=new Tn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ma=new Tn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pa=he=>{const{componentCls:ze}=he,Be=`${ze}-animate-inline`;return[{[`${ze}-wrapper`]:{[`${Be}-appear, ${Be}-enter, ${Be}-leave`]:{animationDuration:he.motionDurationSlow,animationTimingFunction:he.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Be}-appear, ${Be}-enter`]:{animationName:ua},[`${Be}-leave`]:{animationName:ma}}},{[`${ze}-wrapper`]:(0,Yn.J$)(he)},ua,ma]},Aa=oe(47448),ta=oe(84780);const Ua=he=>{const{componentCls:ze,iconCls:Be,uploadThumbnailSize:Te,uploadProgressOffset:gt}=he,Ye=`${ze}-list`,nt=`${Ye}-item`;return{[`${ze}-wrapper`]:{[`
${Ye}${Ye}-picture,
${Ye}${Ye}-picture-card,
${Ye}${Ye}-picture-circle
`]:{[nt]:{position:"relative",height:Te+he.lineWidth*2+he.paddingXS*2,padding:he.paddingXS,border:`${he.lineWidth}px ${he.lineType} ${he.colorBorder}`,borderRadius:he.borderRadiusLG,"&:hover":{background:"transparent"},[`${nt}-thumbnail`]:Object.assign(Object.assign({},Wt.vS),{width:Te,height:Te,lineHeight:`${Te+he.paddingSM}px`,textAlign:"center",flex:"none",[Be]:{fontSize:he.fontSizeHeading2,color:he.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${nt}-progress`]:{bottom:gt,width:`calc(100% - ${he.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Te+he.paddingXS}},[`${nt}-error`]:{borderColor:he.colorError,[`${nt}-thumbnail ${Be}`]:{[`svg path[fill='${Aa.blue[0]}']`]:{fill:he.colorErrorBg},[`svg path[fill='${Aa.blue.primary}']`]:{fill:he.colorError}}},[`${nt}-uploading`]:{borderStyle:"dashed",[`${nt}-name`]:{marginBottom:gt}}},[`${Ye}${Ye}-picture-circle ${nt}`]:{[`&, &::before, ${nt}-thumbnail`]:{borderRadius:"50%"}}}}},eo=he=>{const{componentCls:ze,iconCls:Be,fontSizeLG:Te,colorTextLightSolid:gt}=he,Ye=`${ze}-list`,nt=`${Ye}-item`,_e=he.uploadPicCardSize;return{[`
${ze}-wrapper${ze}-picture-card-wrapper,
${ze}-wrapper${ze}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Wt.dF)()),{display:"inline-block",width:"100%",[`${ze}${ze}-select`]:{width:_e,height:_e,marginInlineEnd:he.marginXS,marginBottom:he.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:he.colorFillAlter,border:`${he.lineWidth}px dashed ${he.colorBorder}`,borderRadius:he.borderRadiusLG,cursor:"pointer",transition:`border-color ${he.motionDurationSlow}`,[`> ${ze}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ze}-disabled):hover`]:{borderColor:he.colorPrimary}},[`${Ye}${Ye}-picture-card, ${Ye}${Ye}-picture-circle`]:{[`${Ye}-item-container`]:{display:"inline-block",width:_e,height:_e,marginBlock:`0 ${he.marginXS}px`,marginInline:`0 ${he.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[nt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${he.paddingXS*2}px)`,height:`calc(100% - ${he.paddingXS*2}px)`,backgroundColor:he.colorBgMask,opacity:0,transition:`all ${he.motionDurationSlow}`,content:'" "'}},[`${nt}:hover`]:{[`&::before, ${nt}-actions`]:{opacity:1}},[`${nt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${he.motionDurationSlow}`,[`${Be}-eye, ${Be}-download, ${Be}-delete`]:{zIndex:10,width:Te,margin:`0 ${he.marginXXS}px`,fontSize:Te,cursor:"pointer",transition:`all ${he.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${nt}-actions, ${nt}-actions:hover`]:{[`${Be}-eye, ${Be}-download, ${Be}-delete`]:{color:new ta.C(gt).setAlpha(.65).toRgbString(),"&:hover":{color:gt}}},[`${nt}-thumbnail, ${nt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${nt}-name`]:{display:"none",textAlign:"center"},[`${nt}-file + ${nt}-name`]:{position:"absolute",bottom:he.margin,display:"block",width:`calc(100% - ${he.paddingXS*2}px)`},[`${nt}-uploading`]:{[`&${nt}`]:{backgroundColor:he.colorFillAlter},[`&::before, ${Be}-eye, ${Be}-download, ${Be}-delete`]:{display:"none"}},[`${nt}-progress`]:{bottom:he.marginXL,width:`calc(100% - ${he.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ze}-wrapper${ze}-picture-circle-wrapper`]:{[`${ze}${ze}-select`]:{borderRadius:"50%"}}}};var Le=he=>{const{componentCls:ze}=he;return{[`${ze}-rtl`]:{direction:"rtl"}}};const we=he=>{const{componentCls:ze,colorTextDisabled:Be}=he;return{[`${ze}-wrapper`]:Object.assign(Object.assign({},(0,Wt.Wf)(he)),{[ze]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ze}-select`]:{display:"inline-block"},[`${ze}-disabled`]:{color:Be,cursor:"not-allowed"}})}};var ve=(0,tn.Z)("Upload",he=>{const{fontSizeHeading3:ze,fontSize:Be,lineHeight:Te,lineWidth:gt,controlHeightLG:Ye}=he,nt=Math.round(Be*Te),_e=(0,Hn.TS)(he,{uploadThumbnailSize:ze*2,uploadProgressOffset:nt/2+gt,uploadPicCardSize:Ye*2.55});return[we(_e),Xn(_e),Ua(_e),eo(_e),In(_e),Pa(_e),Le(_e),(0,pn.Z)(_e)]},he=>({actionsColor:he.colorTextDescription})),ht=function(he,ze,Be,Te){function gt(Ye){return Ye instanceof Be?Ye:new Be(function(nt){nt(Ye)})}return new(Be||(Be=Promise))(function(Ye,nt){function _e(nn){try{Ot(Te.next(nn))}catch(Pn){nt(Pn)}}function Vt(nn){try{Ot(Te.throw(nn))}catch(Pn){nt(Pn)}}function Ot(nn){nn.done?Ye(nn.value):gt(nn.value).then(_e,Vt)}Ot((Te=Te.apply(he,ze||[])).next())})};const zt=`__LIST_IGNORE_${Date.now()}__`,Dt=(he,ze)=>{const{fileList:Be,defaultFileList:Te,onRemove:gt,showUploadList:Ye=!0,listType:nt="text",onPreview:_e,onDownload:Vt,onChange:Ot,onDrop:nn,previewFile:Pn,disabled:$n,locale:Ze,iconRender:$a,isImageUrl:La,progress:Ia,prefixCls:aa,className:tt,type:Ct="select",children:Ut,style:it,itemRender:cn,maxCount:fn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Do}=he,xo=te.useContext(ct.Z),Ka=$n!=null?$n:xo,[va,io]=(0,dt.Z)(Te||[],{value:Be,postState:Xt=>Xt!=null?Xt:[]}),[po,yo]=te.useState("drop"),_a=te.useRef(null);te.useMemo(()=>{const Xt=Date.now();(Be||[]).forEach((Fn,Gn)=>{!Fn.uid&&!Object.isFrozen(Fn)&&(Fn.uid=`__AUTO__${Xt}_${Gn}__`)})},[Be]);const Ra=(Xt,Fn,Gn)=>{let wn=(0,pe.Z)(Fn),Wn=!1;fn===1?wn=wn.slice(-1):fn&&(Wn=wn.length>fn,wn=wn.slice(0,fn)),(0,ut.flushSync)(()=>{io(wn)});const Ba={file:Xt,fileList:wn};Gn&&(Ba.event=Gn),(!Wn||wn.some(Lo=>Lo.uid===Xt.uid))&&(0,ut.flushSync)(()=>{Ot==null||Ot(Ba)})},fo=(Xt,Fn)=>ht(void 0,void 0,void 0,function*(){const{beforeUpload:Gn,transformFile:wn}=he;let Wn=Xt;if(Gn){const Ba=yield Gn(Xt,Fn);if(Ba===!1)return!1;if(delete Xt[zt],Ba===zt)return Object.defineProperty(Xt,zt,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Wn=Ba)}return wn&&(Wn=yield wn(Wn)),Wn}),an=Xt=>{const Fn=Xt.filter(Wn=>!Wn.file[zt]);if(!Fn.length)return;const Gn=Fn.map(Wn=>Mt(Wn.file));let wn=(0,pe.Z)(va);Gn.forEach(Wn=>{wn=jt(Wn,wn)}),Gn.forEach((Wn,Ba)=>{let Lo=Wn;if(Fn[Ba].parsedFile)Wn.status="uploading";else{const{originFileObj:ao}=Wn;let bo;try{bo=new File([ao],ao.name,{type:ao.type})}catch(Oa){bo=new Blob([ao],{type:ao.type}),bo.name=ao.name,bo.lastModifiedDate=new Date,bo.lastModified=new Date().getTime()}bo.uid=Wn.uid,Lo=bo}Ra(Lo,wn)})},pa=(Xt,Fn,Gn)=>{try{typeof Xt=="string"&&(Xt=JSON.parse(Xt))}catch(Ba){}if(!en(Fn,va))return;const wn=Mt(Fn);wn.status="done",wn.percent=100,wn.response=Xt,wn.xhr=Gn;const Wn=jt(wn,va);Ra(wn,Wn)},Fa=(Xt,Fn)=>{if(!en(Fn,va))return;const Gn=Mt(Fn);Gn.status="uploading",Gn.percent=Xt.percent;const wn=jt(Gn,va);Ra(Gn,wn,Xt)},Na=(Xt,Fn,Gn)=>{if(!en(Gn,va))return;const wn=Mt(Gn);wn.error=Xt,wn.response=Fn,wn.status="error";const Wn=jt(wn,va);Ra(wn,Wn)},Ja=Xt=>{let Fn;Promise.resolve(typeof gt=="function"?gt(Xt):gt).then(Gn=>{var wn;if(Gn===!1)return;const Wn=gn(Xt,va);Wn&&(Fn=Object.assign(Object.assign({},Xt),{status:"removed"}),va==null||va.forEach(Ba=>{const Lo=Fn.uid!==void 0?"uid":"name";Ba[Lo]===Fn[Lo]&&!Object.isFrozen(Ba)&&(Ba.status="removed")}),(wn=_a.current)===null||wn===void 0||wn.abort(Fn),Ra(Fn,Wn))})},ba=Xt=>{yo(Xt.type),Xt.type==="drop"&&(nn==null||nn(Xt))};te.useImperativeHandle(ze,()=>({onBatchStart:an,onSuccess:pa,onProgress:Fa,onError:Na,fileList:va,upload:_a.current}));const{getPrefixCls:Wo,direction:wa,upload:Qn}=te.useContext(st.E_),Jn=Wo("upload",aa),no=Object.assign(Object.assign({onBatchStart:an,onError:Na,onProgress:Fa,onSuccess:pa},he),{data:sa,multiple:ca,action:fa,accept:Fo,supportServerRender:to,prefixCls:Jn,disabled:Ka,beforeUpload:fo,onChange:void 0});delete no.className,delete no.style,(!Ut||Ka)&&delete no.id;const[Io,Qo]=ve(Jn),[br]=(0,lt.Z)("Upload",rt.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:It,previewIcon:bt,downloadIcon:Bt}=typeof Ye=="boolean"?{}:Ye,Gt=(Xt,Fn)=>Ye?te.createElement(At,{prefixCls:Jn,listType:nt,items:va,previewFile:Pn,onPreview:_e,onDownload:Vt,onRemove:Ja,showRemoveIcon:!Ka&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:It,previewIcon:bt,downloadIcon:Bt,iconRender:$a,locale:Object.assign(Object.assign({},br),Ze),isImageUrl:La,progress:Ia,appendAction:Xt,appendActionVisible:Fn,itemRender:cn,disabled:Ka}):Xt,An=Xe()(`${Jn}-wrapper`,tt,Do,Qo,Qn==null?void 0:Qn.className,{[`${Jn}-rtl`]:wa==="rtl",[`${Jn}-picture-card-wrapper`]:nt==="picture-card",[`${Jn}-picture-circle-wrapper`]:nt==="picture-circle"}),Sa=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),it);if(Ct==="drag"){const Xt=Xe()(Qo,Jn,`${Jn}-drag`,{[`${Jn}-drag-uploading`]:va.some(Fn=>Fn.status==="uploading"),[`${Jn}-drag-hover`]:po==="dragover",[`${Jn}-disabled`]:Ka,[`${Jn}-rtl`]:wa==="rtl"});return Io(te.createElement("span",{className:An},te.createElement("div",{className:Xt,style:Sa,onDrop:ba,onDragOver:ba,onDragLeave:ba},te.createElement(Ne,Object.assign({},no,{ref:_a,className:`${Jn}-btn`}),te.createElement("div",{className:`${Jn}-drag-container`},Ut))),Gt()))}const ka=Xe()(Jn,`${Jn}-select`,{[`${Jn}-disabled`]:Ka}),xa=(Xt=>te.createElement("div",{className:ka,style:Xt},te.createElement(Ne,Object.assign({},no,{ref:_a}))))(Ut?void 0:{display:"none"});return Io(nt==="picture-card"||nt==="picture-circle"?te.createElement("span",{className:An},Gt(xa,!!Ut)):te.createElement("span",{className:An},xa,Gt()))};var un=te.forwardRef(Dt),Bn=function(he,ze){var Be={};for(var Te in he)Object.prototype.hasOwnProperty.call(he,Te)&&ze.indexOf(Te)<0&&(Be[Te]=he[Te]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Te=Object.getOwnPropertySymbols(he);gt<Te.length;gt++)ze.indexOf(Te[gt])<0&&Object.prototype.propertyIsEnumerable.call(he,Te[gt])&&(Be[Te[gt]]=he[Te[gt]]);return Be},Da=te.forwardRef((he,ze)=>{var{style:Be,height:Te}=he,gt=Bn(he,["style","height"]);return te.createElement(un,Object.assign({ref:ze},gt,{type:"drag",style:Object.assign(Object.assign({},Be),{height:Te})}))});const ot=un;ot.Dragger=Da,ot.LIST_IGNORE=zt;var Cn=ot},62661:function(Ge,St){"use strict";var oe;var te=Symbol.for("react.element"),pe=Symbol.for("react.portal"),qe=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Ke=Symbol.for("react.provider"),ce=Symbol.for("react.context"),De=Symbol.for("react.server_context"),Me=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),Ie=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 qe:case Se:case Xe:case Ee:case Ue:return E;default:switch(E=E&&E.$$typeof,E){case De:case ce:case Me:case Ie:case $e:case Ke:return E;default:return b}}case pe:return b}}}oe=ce,oe=Ke,oe=te,oe=Me,oe=qe,oe=Ie,oe=$e,oe=pe,oe=Se,oe=Xe,oe=Ee,oe=Ue,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ce},oe=function(E){return y(E)===Ke},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)===qe},oe=function(E){return y(E)===Ie},St.isMemo=function(E){return y(E)===$e},oe=function(E){return y(E)===pe},oe=function(E){return y(E)===Se},oe=function(E){return y(E)===Xe},oe=function(E){return y(E)===Ee},oe=function(E){return y(E)===Ue},oe=function(E){return typeof E=="string"||typeof E=="function"||E===qe||E===Se||E===Xe||E===Ee||E===Ue||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Ie||E.$$typeof===$e||E.$$typeof===Ke||E.$$typeof===ce||E.$$typeof===Me||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(Ge,St,oe){"use strict";Ge.exports=oe(62661)},72665:function(Ge,St){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,pe=te?Symbol.for("react.element"):60103,qe=te?Symbol.for("react.portal"):60106,Xe=te?Symbol.for("react.fragment"):60107,Se=te?Symbol.for("react.strict_mode"):60108,Ke=te?Symbol.for("react.profiler"):60114,ce=te?Symbol.for("react.provider"):60109,De=te?Symbol.for("react.context"):60110,Me=te?Symbol.for("react.async_mode"):60111,Ee=te?Symbol.for("react.concurrent_mode"):60111,Ue=te?Symbol.for("react.forward_ref"):60112,$e=te?Symbol.for("react.suspense"):60113,Ie=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 Ee:case Xe:case Ke:case Se:case $e:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case De:case Ue:case a:case ae:case ce:return ne;default:return re}}case qe:return re}}}function ee(ne){return z(ne)===Ee}oe=Me,oe=Ee,oe=De,oe=ce,oe=pe,oe=Ue,oe=Xe,oe=a,oe=ae,oe=qe,oe=Ke,oe=Se,oe=$e,oe=function(ne){return ee(ne)||z(ne)===Me},oe=ee,oe=function(ne){return z(ne)===De},oe=function(ne){return z(ne)===ce},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===pe},oe=function(ne){return z(ne)===Ue},oe=function(ne){return z(ne)===Xe},oe=function(ne){return z(ne)===a},St.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===qe},oe=function(ne){return z(ne)===Ke},oe=function(ne){return z(ne)===Se},oe=function(ne){return z(ne)===$e},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Xe||ne===Ee||ne===Ke||ne===Se||ne===$e||ne===Ie||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ce||ne.$$typeof===De||ne.$$typeof===Ue||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(Ge,St,oe){"use strict";Ge.exports=oe(72665)},64217:function(Ge,St,oe){"use strict";oe.d(St,{Z:function(){return De}});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`,qe=`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`,Xe="".concat(pe," ").concat(qe).split(/[\s\n]+/),Se="aria-",Ke="data-";function ce(Me,Ee){return Me.indexOf(Ee)===0}function De(Me){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue;Ee===!1?Ue={aria:!0,data:!0,attr:!0}:Ee===!0?Ue={aria:!0}:Ue=(0,te.Z)({},Ee);var $e={};return Object.keys(Me).forEach(function(Ie){(Ue.aria&&(Ie==="role"||ce(Ie,Se))||Ue.data&&ce(Ie,Ke)||Ue.attr&&Xe.includes(Ie))&&($e[Ie]=Me[Ie])}),$e}}}]);