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.
165 lines
454 KiB
165 lines
454 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4795],{84249:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),_e={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"},Ke=_e,Se=oe(74643),Ze=function(Me,Ee){return ye.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Ke}))},ce=ye.forwardRef(Ze)},90674:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),_e={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"},Ke=_e,Se=oe(74643),Ze=function(Me,Ee){return ye.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Ke}))},ce=ye.forwardRef(Ze)},33859:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),_e={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"},Ke=_e,Se=oe(74643),Ze=function(Me,Ee){return ye.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Ke}))},ce=ye.forwardRef(Ze)},22751:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),_e={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"},Ke=_e,Se=oe(74643),Ze=function(Me,Ee){return ye.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Ke}))},ce=ye.forwardRef(Ze)},91034:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),_e={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"},Ke=_e,Se=oe(74643),Ze=function(Me,Ee){return ye.createElement(Se.Z,(0,te.Z)({},Me,{ref:Ee,icon:Ke}))},ce=ye.forwardRef(Ze)},71736:function(Oe,ut){"use strict";ut.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 Oe(ae,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(Oe.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(Oe.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(Oe.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(Oe.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,y){var a=go.Shape._FigureParameters[ae];return a?a[y]:null},go.Shape.setFigureParameter=function(ae,y,a){if(!(a instanceof Oe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[y]=a};var ut=[];function oe(ae,y){var a=ut.pop();return a===void 0?new go.Point(ae,y):(a.x=ae,a.y=y,a)}function te(){var ae=ut.pop();return ae===void 0?new go.Point:ae}function ye(ae){ut.push(ae)}function _e(ae,y,a,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-a,ge=b-z,de=NaN,he=NaN;if(re===0)if(ge===0)ae===a&&(de=ae,he=y);else{var me=(x-ee)/ge,De=x-me*b;de=ae,he=me*de+De}else if(ge===0){var We=(y-E)/re,wt=y-We*ae;de=b,he=We*de+wt}else{var We=(y-E)/re,me=(x-ee)/ge,wt=y-We*ae,De=x-me*b;de=(De-wt)/(We-me),he=We*de+wt}return ne.x=de,ne.y=he,ne}function Ke(ae,y,a,E,b,x,z,ee,ne,re,ge,de,he,me){var De=1-ne,We=ne,wt=ae*De+a*We,jt=y*De+E*We,gn=a*De+b*We,xe=E*De+x*We,at=b*De+z*We,Pt=x*De+ee*We,st=wt*De+gn*We,St=jt*De+xe*We,lt=gn*De+at*We,dt=xe*De+Pt*We,mt=st*De+lt*We,hn=St*De+dt*We;re.x=wt,re.y=jt,ge.x=st,ge.y=St,de.x=mt,de.y=hn,he.x=lt,he.y=dt,me.x=at,me.y=Pt}var Se=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Oe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ce,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-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,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=Se,b.spot2=Ze,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ce*y,0,y,(1-ce)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ce*a,(1-ce)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ce*a,ce*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ce)*y,0,0,(1-ce)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Oe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Oe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);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=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Oe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Oe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/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=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Oe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/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=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var Ge=[];function Me(){var ae=Ge.pop();return ae===void 0?[]:ae}function Ee(ae){ae.length=0,Ge.push(ae)}function Ue(ae){for(var y=Me(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function Ae(ae){var y=Fe(ae),a=Me();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return Ee(y),a}function Fe(ae){for(var y=Ue(ae),a=Me(),E=Math.floor(y.length/2),b=y.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=y[z],ne=y[z+1],re=y[(E+z-1)%b],ge=y[(E+z+x)%b];a[z*2]=ee,a[z*2+1]=_e(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return a[a.length]=a[0],Ee(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ae,y,a){var E=Ue(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,y,a){var E=Ue(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,y,a){var E=Ue(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,y,a){var E=Ue(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,y,a){var E=Ue(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,y,a){var E=Ue(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,y,a){var E=Ue(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,y,a){var E=Fe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,y,a){var E=Fe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,y,a){var E=Fe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,y,a){var E=Fe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,y,a){var E=Fe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,y,a){var E=Fe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ee(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,y,a){var E=Ae(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ae(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ae(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ae(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ae(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ae(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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 Oe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Oe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Oe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/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,y/2+ee,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=Se,x.spot2=Ze,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Oe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Oe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,y,a){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(y,a)/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,y,a){var E=ce/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).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 Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).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 Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,y,a){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,ee=Math.atan2(a,y),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*a)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,y,a-re)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Oe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Oe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ce*y,0,y,(.5-ce/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ce/2)*a,ce*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,ee=0,ne=x*ce;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+ne+ee)*a,(.5-ne+z)*y,(.5+x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+ee)*a,(.5+ne+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z)*y,(.5-ne+ee)*a,(.5+ne+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-ne+z)*y,(.5-x+ee)*a,(.5-x+z+.05)*y,(.5-ne+ee-.02)*a)),x=.2,z=0,ee=-.3,ne=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+ee)*a,(.5+ne+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z)*y,(.5-ne+ee)*a,(.5+ne+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+ee)*a,(.5-ne+z)*y,(.5-x+ee)*a,(.5-x+z)*y,(.5-ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+ne+ee)*a,(.5-ne+z)*y,(.5+x+ee)*a)),x=.2,z=-.3,ee=0,ne=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z-.05)*y,(.5-ne+ee-.02)*a,(.5+ne+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+ee)*a,(.5-ne+z)*y,(.5-x+ee)*a,(.5-x+z)*y,(.5-ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+ne+ee)*a,(.5-ne+z)*y,(.5+x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+ne+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+ne+ee)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,ee*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*ee,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),ee=.75,b=new go.PathFigure((z+x)*y,ee*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*ee,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;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,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*y,(ee-x)*a);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),x=.4,b=ce*.4;var re=te(),ge=te(),de=te(),he=te();Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,he,he);var me=te(),De=te(),We=te();Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,We,me,De);var wt=te(),jt=te(),gn=te();Ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,wt,jt,gn,he,he);var xe=te(),at=te(),Pt=te();return Ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,Pt,xe,at),ne.add(new go.PathSegment(go.PathSegment.Move,Pt.x*y,Pt.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,xe.x*y,xe.y*a,at.x*y,at.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*y,de.y*a,re.x*y,re.y*a,ge.x*y,ge.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,Pt.x*y,Pt.y*a).close()),ne.add(new go.PathSegment(go.PathSegment.Move,gn.x*y,gn.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,We.x*y,We.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,me.x*y,me.y*a,De.x*y,De.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,gn.x*y,gn.y*a,wt.x*y,wt.y*a,jt.x*y,jt.y*a).close()),ye(re),ye(ge),ye(de),ye(he),ye(me),ye(De),ye(We),ye(wt),ye(jt),ye(gn),ye(xe),ye(at),ye(Pt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,y,a){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),he=new go.PathFigure((z-x)*y,ee*a,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),he.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a));var me=oe(re.x,re.y);Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var De=oe(re.x,re.y);he.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*y,me.y*.1*a)),he.add(new go.PathSegment(go.PathSegment.Line,.85*y,me.y*.1*a)),he.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),he.add(new go.PathSegment(go.PathSegment.Line,y,0)),he.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),he.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*y,.15*a)),he.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*y,(De.y*.1+.05*.9)*a)),he.add(new go.PathSegment(go.PathSegment.Line,De.x*y,De.y*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),x=.35,b=ce*.35;var We=new go.PathFigure(z*y,(ee-x)*a,!1);E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a));var wt=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(wt),ye(ne),ye(re),ye(ge),ye(de),ye(me),ye(De),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ce,ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+ee+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-ee+z)*a,(.5+ee+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+ee+z)*a,(.5-ee+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,ee=b*ce;var ne=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+ee+z)*a,(.5+ee+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a,(.5-ee+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+ee+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-ee+z)*a));var ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!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,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Oe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Oe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,ee=(.5+b/2)*a,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,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),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/a);var ge=_e(0,ee/a,1,ee/a,x/y,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),ye(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Oe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Oe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-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,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),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/a);var ge=_e(0,ee/a,1,ee/a,x/y,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),ye(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,y,a){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*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Oe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var ne=_e(0,.5,.3,0,0,b/a,.1,b/a,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=_e(.7,1,1,.5,0,x/a,1,x/a,ne),z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Oe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Oe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,ee=(a-b)/2,ne=ee+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,ee=0,ne=a):(x=0,z=a,ee=0,ne=a));var re=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var de=_e(0,.5,.3,ee/a,0,x/a,1,x/a,te());return re.spot1=new go.Spot(de.x,de.y),de=_e(.7,ne/a,1,.5,0,z/a,1,z/a,de),re.spot2=new go.Spot(de.x,de.y),ye(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Oe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var ne=_e(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Oe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Oe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,ee=(a-b)/2,ne=ee+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,ee=0,ne=a):(x=0,z=a,ee=0,ne=a));var re=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,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*y,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),re.spot1=new go.Spot(0,x/a);var de=_e(.7,ne/a,1,.5,0,z/a,1,z/a,te());return re.spot2=new go.Spot(de.x,de.y),ye(de),re}),go.Shape.setFigureParameter("Pointer",0,new Oe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=_e(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ye(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Oe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=_e(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ye(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Oe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var ne=_e(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Oe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var ne=_e(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Oe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,y,a){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(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ce*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ce*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(y,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-ce*E,(.5+x)*y,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,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,y,a){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(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ce*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ce*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-ce*E));var ee=new go.PathFigure(0,a-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-ce*E,(.5-x)*y,a-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-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,y,a){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(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ce*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ce*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ce*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,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*a,E+ce*E,0,2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+ce*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,y,a){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(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ce*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ce*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ce*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,ce*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var ee=new go.PathFigure(y-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-ce*E,0,y-2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-ce*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,y,a){var E=new go.Geometry,b=.2,x=.1,z=ce*b,ee=ce*x,ne=.5,re=.1,ge=new go.PathFigure(ne*y,(re+x)*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*y,re*a,(ne-z)*y,(re+x)*a,(ne-b)*y,(re+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-x)*a,(ne-b)*y,(re-ee)*a,(ne-z)*y,(re-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*y,re*a,(ne+z)*y,(re-x)*a,(ne+b)*y,(re-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+x)*a,(ne+b)*y,(re+ee)*a,(ne+z)*y,(re+x)*a));var de=.05,he=ce*de;ne=.05,re=.25;var me=new go.PathFigure(.5*y,.2*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),ne=.95,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*y,re*a,(ne+he)*y,(re-de)*a,(ne+de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),de=.025,he=ce*de,ne=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-he)*a,(ne+he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-he)*y,(re-de)*a,(ne-de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),de=.05,he=ce*de,ne=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-he)*a,(ne+he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-he)*y,(re-de)*a,(ne-de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),de=.025,he=ce*de,ne=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-he)*a,(ne+he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-he)*y,(re-de)*a,(ne-de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),de=.05,he=ce*de,ne=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne-de)*y,(re-he)*a,(ne-he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Oe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var ee=new go.PathFigure(y,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var ee=new go.PathFigure(y,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,y,a){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*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,b*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(b*y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ce*.5,ee=.5,ne=new go.PathFigure(y,ee*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,a,y,(ee+z)*a,(ee+z)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*y,a,0,(ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,0,0,(ee-z)*a,(ee-z)*y,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,ee*a,(ee+z)*y,0,y,(ee-z)*a));var re=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),re.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,y,a){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*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,y,a){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*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var ee=new go.PathFigure(.5*b*y,b*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var ee=new go.PathFigure(y,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,y,a){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)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,y,a){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*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var ee=new go.PathFigure(y,x*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var ne=new go.PathFigure(.8*y,.75*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,y,a){var E=new go.Geometry,b=ce*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var re=new go.PathFigure((z+x)*y,ee*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee-x)*a,(z+x)*y,(ee-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,y,a){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*y,.5*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var de=new go.PathFigure((ne+ee)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+ee)*a,(ne+ee)*y,(re+z)*a,(ne+z)*y,(re+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y,re*a,(ne-z)*y,(re+ee)*a,(ne-ee)*y,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-ee)*a,(ne-ee)*y,(re-z)*a,(ne-z)*y,(re-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y,re*a,(ne+z)*y,(re-ee)*a,(ne+ee)*y,(re-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(ee-b)*a,.7*y,(ee-x)*a)),b=.1,x=ce*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,y,a){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,y,.5*a,(z+x+x)*y,(ee-b)*a,.8*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(ee+x)*a,(z+x+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.8*y,.5*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(ee-b)*a,.7*y,(ee-x)*a)),b=.1,x=ce*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.2*y,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(ee-b)*a,.9*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,y,a){var E=new go.Geometry,b=ce*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee-x)*a,(z+x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,ee*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,ee*a,z*y,(ee-x)*a,z*y,(ee+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=ce*.8,ee=.8,ne=0,re=.5,ge=(b-y)/2,de=(x-a)/2,he=new go.PathFigure(ne*y+ge,(re+ee)*a+de,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ge,re*a+de,(ne-z)*y+ge,(re+ee)*a+de,(ne-ee)*y+ge,(re+z)*a+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne-ee)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-ee)*a+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*y+ge,re*a+de,ne*y+ge,(re-ee)*a+de,(ne-ee+z*.5)*y+ge,(re-z)*a+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne-ee+z*.5)*y+ge,(re+z)*a+de,ne*y+ge,(re+ee)*a+de).close()),z=ce*.4,ee=.4,ne=.2,re=.5;var me=new go.PathFigure(ne*y+ge,(re+ee)*a+de,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ge,re*a+de,(ne-z)*y+ge,(re+ee)*a+de,(ne-ee)*y+ge,(re+z)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne-ee)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-ee)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*y+ge,re*a+de,ne*y+ge,(re-ee)*a+de,(ne-ee+z*.5)*y+ge,(re-z)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne-ee+z*.5)*y+ge,(re+z)*a+de,ne*y+ge,(re+ee)*a+de).close()),z=ce*.2,ee=.2,ne=.5,re=.5;var De=new go.PathFigure((ne-ee)*y+ge,re*a+de,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne-ee)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-ee)*a+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ge,re*a+de,(ne+z)*y+ge,(re-ee)*a+de,(ne+ee)*y+ge,(re-z)*a+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne+ee)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+ee)*a+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ge,re*a+de,(ne-z)*y+ge,(re+ee)*a+de,(ne-ee)*y+ge,(re+z)*a+de)),z=ce*.4,ee=.4,ne=.8,re=.5;var We=new go.PathFigure(ne*y+ge,(re-ee)*a+de,!0);E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ge,re*a+de,(ne+z)*y+ge,(re-ee)*a+de,(ne+ee)*y+ge,(re-z)*a+de)),We.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne+ee)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+ee)*a+de)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*y+ge,re*a+de,ne*y+ge,(re+ee)*a+de,(ne+ee-z*.5)*y+ge,(re+z)*a+de)),We.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne+ee-z*.5)*y+ge,(re-z)*a+de,ne*y+ge,(re-ee)*a+de).close()),z=ce*.8,ee=.8,ne=1,re=.5;var wt=new go.PathFigure(ne*y+ge,(re-ee)*a+de,!0);return E.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ge,re*a+de,(ne+z)*y+ge,(re-ee)*a+de,(ne+ee)*y+ge,(re-z)*a+de)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne+ee)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+ee)*a+de)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*y+ge,re*a+de,ne*y+ge,(re+ee)*a+de,(ne+ee-z*.5)*y+ge,(re+z)*a+de)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne+ee-z*.5)*y+ge,(re-z)*a+de,ne*y+ge,(re-ee)*a+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),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*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var ee=new go.PathFigure(0,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ae,y,a){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var he=oe(re.x,re.y),me=new go.PathFigure(re.x*y,re.y*a,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),Ke(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*y,re.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),b=ce*.3,x=.3,Ke(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*y,re.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,de.x*y,de.y*a,ge.x*y,ge.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),Ke(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*y,re.y*a,de.x*y,de.y*a,ge.x*y,ge.y*a).close());var me=new go.PathFigure(.45*y,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),ye(ne),ye(re),ye(ge),ye(de),ye(he),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*y,(.8+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*y,(.8+ne)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,y,a){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,he=.5,me=0,De=new go.PathFigure(ne*y,(1-re)*a,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,de*a,ge*y,.7*a,ge*y,de*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*y,(me+x)*a,(.5+b+x)*y,(.5-ee+x)*a,(.5+ee+x)*y,(.5-b+x)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+ee+z)*a,(.5-ee+x)*y,.9*a)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),De.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));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,he=z,me=z,De=ge*he,We=ge*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*y,ne*a,(ee-(De+he)/2)*y,(ne+(me+We)/2)*a,(ee-he)*y,(ne+We)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(ne-me)*a,(ee-he)*y,(ne-We)*a,(ee-De)*y,(ne-me)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*y,ne*a,(ee+De)*y,(ne-me)*a,(ee+he)*y,(ne-We)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+he)*y,(ne+We)*a,(ee+(De+he)/2)*y,(ne+(me+We)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var wt=new go.PathFigure(.2*y,a,!1);E.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var jt=new go.PathFigure(.8*y,a,!1);return E.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var ee=new go.PathFigure(b*y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,ee=ce*.1,ne=.2,re=.9,ge=new go.PathFigure((ne-z)*y,re*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-ee)*a,(ne-ee)*y,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+ee)*y,(re-z)*a,(ne+z)*y,(re-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+ee)*a,(ne+ee)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-ee)*y,(re+z)*a,(ne-z)*y,(re+ee)*a).close()),z=.1,ee=ce*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-ee)*a,(ne-ee)*y,(re-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+ee)*y,(re-z)*a,(ne+z)*y,(re-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+ee)*a,(ne+ee)*y,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-ee)*y,(re+z)*a,(ne-z)*y,(re+ee)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,y,a){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*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var ee=new go.PathFigure(.5*y,.7*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var ne=.1,re=ce*.1,ge=.1,de=.9,he=new go.PathFigure((ge-ne)*y,de*a,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ne)*a,(ge-ne)*y,(de-re)*a,(ge-re)*y,(de-ne)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,de*a,(ge+re)*y,(de-ne)*a,(ge+ne)*y,(de-re)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ne)*a,(ge+ne)*y,(de+re)*a,(ge+re)*y,(de+ne)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,de*a,(ge-re)*y,(de+ne)*a,(ge-ne)*y,(de+re)*a)),ne=.1,re=ce*.1,ge=.4,de=.9;var me=new go.PathFigure((ge-ne)*y,de*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ne)*a,(ge-ne)*y,(de-re)*a,(ge-re)*y,(de-ne)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,de*a,(ge+re)*y,(de-ne)*a,(ge+ne)*y,(de-re)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ne)*a,(ge+ne)*y,(de+re)*a,(ge+re)*y,(de+ne)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,de*a,(ge-re)*y,(de+ne)*a,(ge-ne)*y,(de+re)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ge=.05,de=ce*.05,he=.175,me=.95,ee=new go.PathFigure((he-ge)*y,me*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a));var ge=.05,de=ce*.05,he=.375,me=.95,ne=new go.PathFigure((he-ge)*y,me*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a));var ge=.05,de=ce*.05,he=.625,me=.95,re=new go.PathFigure((he-ge)*y,me*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a));var ge=.05,de=ce*.05,he=.825,me=.95,De=new go.PathFigure((he-ge)*y,me*a,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a).close());var We=new go.PathFigure(0,a,!1);return E.add(We),We.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var ee=.05,ne=ce*.05,re=.35,ge=.775,de=new go.PathFigure((re-ee)*y,ge*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ge-ee)*a,(re-ee)*y,(ge-ne)*a,(re-ne)*y,(ge-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*y,ge*a,(re+ne)*y,(ge-ee)*a,(re+ee)*y,(ge-ne)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ge+ee)*a,(re+ee)*y,(ge+ne)*a,(re+ne)*y,(ge+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*y,ge*a,(re-ne)*y,(ge+ee)*a,(re-ee)*y,(ge+ne)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,y,a){var E=new go.Geometry,b=.3,x=ce*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*y,ee*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a));var re=new go.PathFigure(0,.7*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*y,ee*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a));var re=new go.PathFigure(.15*y,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*y,ee*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a).close()),b=.05,x=ce*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*y,ee*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var ee=new go.PathFigure(.678*y,.85*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var ne=new go.PathFigure(.5*y,.1*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var ee=new go.PathFigure(y*.612,a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var ne=new go.PathFigure(y*.816,a,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var ee=new go.PathFigure(y*.055,.18*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var ne=new go.PathFigure(y*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,y,a){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,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var ee=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var ne=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,y,a){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,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-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(y*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var ne=new go.PathFigure(y*.83,a*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var re=new go.PathFigure(y*.78,a*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),re.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ce,x=a*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.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,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,y,a){var E=new go.Geometry,b=15,x=b*ce,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.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,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.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 Oe={},ut="5.0",oe={},te=null,ye=!1,_e=!1,Ke=null,Se=!1,Ze=null,ce=null,Ge=0;Ge<arguments.length;Ge++){var Me=arguments[Ge];if(Me!==null)switch(typeof Me){case"number":ut=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?ut=Me:Ke=Me;break;case"object":typeof Me.is3D!="undefined"?te=Me:oe=Me;break;case"boolean":ye=Me,_e=!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&&!_e&&(ye=!0)),Ke!==null&&oe.id===void 0&&(oe.id=Ke);var Ee="",Ue="",Ae=!1,Fe=null,ae=null,y=null,a=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(Be){return parseFloat(Be)>4?parseFloat(Be):5};Oe.setHTML5Codebase=function(Be,Re){ce=Be,dt(Be,Re)},Oe.setJavaCodebase=Oe.setJavaCodebaseVersion=Oe.isCompiledInstalled=Oe.setPreCompiledScriptPath=Oe.setPreCompiledResourcePath=function(){},Oe.setHTML5CodebaseVersion=function(Be,Re){var ot=parseFloat(Be);if(ot!==NaN&&ot<5){console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead.");return}Ze=Be,lt(Be,Re)},Oe.getHTML5CodebaseVersion=function(){return ae},Oe.getParameters=function(){return oe},Oe.setFontsCSSURL=function(Be){z=Be},Oe.setGiacJSURL=function(Be){},Oe.setJNLPFile=function(Be){Ee=Be},Oe.setJNLPBaseDir=function(Be){},Oe.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Re="auto",ot=oe.id,At,et=!1,vt=0;vt<arguments.length;vt++){var ue=arguments[vt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Re=ue:ot=arguments[vt]):typeof ue=="boolean"?et=ue:ue instanceof HTMLElement&&(At=ue)}ct();function ct(){if(!Se){setTimeout(ct,200);return}Re=st(Re);var Jt=At||document.getElementById(ot);if(!Jt){console.log("possibly bug on ajax loading? ");return}if(Oe.removeExistingApplet(Jt,!1),oe.width===void 0&&Jt.clientWidth&&(oe.width=Jt.clientWidth),oe.height===void 0&&Jt.clientHeight&&(oe.height=Jt.clientHeight),!(oe.width&&oe.height)&&Re==="html5"&&(delete oe.width,delete oe.height),Fe=Re,Re==="screenshot")jt(Jt,oe);else{var Fn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Fn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Fn=(!re()||Be())&&ge()),Fn?(Fe="screenshot",xe(Jt,oe,et,Re)):wt(Jt,oe,et)}}};function re(){try{return window.self!==window.top}catch(Be){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Oe.getViews=function(){return te},Oe.isJavaInstalled=function(){return!1};var de=function(Be){var Re=function(vt){var ue=JSON.parse(vt),ct=function(xt){return xt.type=="G"||xt.type=="E"},Jt=ue.elements?ue.elements.filter(ct)[0]:ue;if(!Jt||!Jt.url){ot();return}oe.fileName=Jt.url,he(Jt.settings||{}),te.is3D=!0;var Fn="https://www.geogebra.org/images/";Oe.setPreviewImage(E||Jt.previewUrl,Fn+"GeoGebra_loading.png",Fn+"applet_play.png"),Be()},ot=function(){oe.onError&&oe.onError(),mt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},At=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://"+At+"/api/proxy.php?path="+encodeURIComponent(et),Re,ot)};function he(Be){var Re=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ot){Be[ot]=!!Be[ot]}),Re.forEach(function(ot){oe[ot]===void 0&&Be[ot]!==void 0&&(oe[ot]=Be[ot])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(Be,Re,ot){var At=new XMLHttpRequest;At.open("GET",Be),At.onload=function(){Re(At.responseText)},At.onerror=ot,At.send()}Oe.isHTML5Installed=function(){return!0},Oe.getLoadedAppletType=function(){return Fe},Oe.setPreviewImage=function(Be,Re,ot){E=Be,b=Re,x=ot},Oe.removeExistingApplet=function(Be,Re){var ot;typeof Be=="string"&&(Be=document.getElementById(Be)),Fe=null;var At=null;for(ot=0;ot<Be.childNodes.length;ot++){var et=Be.childNodes[ot],vt=et.className;vt==="applet_screenshot"?Re?(et.style.display="block",Fe="screenshot"):et.style.display="none":vt!=="applet_scaler prerender"&&(Be.removeChild(et),At=vt&&vt.indexOf("appletParameters")!=-1?et.id:null,ot--)}var ue=oe.id!==void 0?oe.id:At,ct=window[ue];ct&&typeof ct.getBase64=="function"&&(ct.remove(),window[ue]=null)},Oe.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Be=Oe.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},Oe.startAnimation=function(){var Be=Oe.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},Oe.stopAnimation=function(){var Be=Oe.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},Oe.getAppletObject=function(){var Be=oe.id!==void 0?oe.id:"ggbApplet";return window[Be]},Oe.resize=function(){};var De=function(Be,Re,ot){var At=document.createElement("param");At.setAttribute("name",Re),At.setAttribute("value",ot),Be.appendChild(At)},We=function(Be){return Be&&Be!=="false"},wt=function(Be,Re,ot){ne(ae)<=4.2&&(ot=!0);var At=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(At=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var vt=Re.width,ue=Re.height;if(Re.disableAutoScale=Re.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Re.disableAutoScale,Re.width!==void 0)if(ne(ae)<=4.4)We(Re.showToolBar)&&(Re.height-=7),We(Re.showAlgebraInput)&&(Re.height-=37),Re.width<605&&We(Re.showToolBar)&&(Re.width=605,vt=605);else{var ct=100;(We(Re.showToolBar)||We(Re.showMenuBar))&&(Re.hasOwnProperty("customToolBar")&&(Re.customToolbar=Re.customToolBar),ct=We(Re.showMenuBar)?245:155),vt<ct&&(Re.width=ct,vt=ct)}et.style.border="none",et.style.display="inline-block";for(var Jt in Re)Re.hasOwnProperty(Jt)&&Jt!=="appletOnLoad"&&et.setAttribute("data-param-"+Jt,Re[Jt]);z&&et.setAttribute("data-param-fontscssurl",z),Oe.resize=function(){GGBAppletUtils.responsiveResize(Be,Re)},window.addEventListener("resize",function(sn){Oe.resize()});var Fn=typeof Re.appletOnLoad=="function"?Re.appletOnLoad:function(){};if(!ot&&Re.width!==void 0){Re.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var xt=Be.querySelector(".applet_scaler.prerender"),Je=xt!==null;if(Je)var Te=xt.querySelector(".ggb_preview");else{var Te=Pt(vt,ue,Re.borderColor,!1);xt=document.createElement("div"),xt.className="applet_scaler",xt.style.position="relative",xt.style.display="block",xt.style.width=vt+"px",xt.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xt,"66%"),ne(ae)>=5?(Re.appletOnLoad=function(sn){var Nt=Be.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xt),window.GGBT_wsf_view&&$(window).trigger("resize"),Fn(sn)},Je||xt.appendChild(Te)):et.appendChild(Te),xt.appendChild(et),Je||Be.appendChild(xt),setTimeout(function(){Oe.resize()},1)}else{var be=document.createElement("div");be.className="applet_scaler",be.style.position="relative",be.style.display="block",be.appendChild(et),Be.appendChild(be),Re.appletOnLoad=function(sn){Oe.resize(),Fn(sn)}}function qe(sn,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,Nt.appletOnLoad):renderGGBElement(sn),mt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function Ye(sn,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:Nt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(wn){qe(wn.article,wn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(sn.className+=" geogebraweb")):qe(sn,Nt)}if(At){scriptLoadStarted=!0;for(var yt=0;yt<et.childNodes.length;yt++){var Rt=et.childNodes[yt].tagName;Rt==="TABLE"&&(et.removeChild(et.childNodes[yt]),yt--)}if(ggbHTML5LoadedScript!==null){var Ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ht!=null&&Ht.parentNode.removeChild(Ht)}var en=document.createElement("script"),dn=function(){Ye(et,Re)};en.src=Ue+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=en.src,mt("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Re),!ce&&(!Ze||Ze=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dn()):Ue.requirejs?__webpack_require__.e(12).then(function(){var sn=[__webpack_require__(12)];dn.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(en.onload=dn,Be.appendChild(en))}else Ye(et,Re);Re.height=ue,Re.width=vt},jt=function(Be,Re,ot){var At=Pt(Re.width,Re.height,Re.borderColor,ot),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=Re.width+"px",et.style.height=Re.height+"px",et.className="applet_screenshot applet_scaler"+(ot?" applet_screenshot_play":""),et.appendChild(At);var vt=GGBAppletUtils.getScale(Re,Be,ot);ot?(Be.appendChild(at()),window.GGBT_wsf_view||(Be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),Be.appendChild(et),vt!==1&&!isNaN(vt)&&(GGBAppletUtils.scaleElement(et,vt),et.style.width=Re.width+"px",et.style.height=Re.height+"px",et.parentNode.style.width=Re.width*vt+"px",et.parentNode.style.height=Re.height*vt+"px"),Oe.resize=function(){gn(Be,At,et,ot)},window.addEventListener("resize",function(ue){Oe.resize()}),Oe.resize()};function gn(Be,Re,ot,At){if(Be.contains(Re)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}var et=GGBAppletUtils.getScale(oe,Be,At);ot.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(ot,et),ot.parentNode.style.width=oe.width*et+"px",ot.parentNode.style.height=oe.height*et+"px"):(GGBAppletUtils.scaleElement(ot,1),ot.parentNode.style.width=oe.width+"px",ot.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Oe.onExitFullscreen=function(Be,Re){Re.appendChild(Be)};var xe=function(Be,Re,ot,At){jt(Be,Re,!0);for(var et=function(){var ct=[];for(ue=0;ue<Be.childNodes.length;ue++)ct.push(Be.childNodes[ue]);if(window.GGBT_wsf_view){var Jt=window.GGBT_wsf_view.renderFullScreen(Be,Re.id),Fn=document.getElementById("fullscreencontainer"),xt=jQuery(Be).find(".fullscreencontent");xt.length>0?(Jt.remove(),xt.attr("id","fullscreencontent").show(),jQuery(Fn).append(xt),window.dispatchEvent(new Event("resize"))):wt(Jt,Re,!1),window.GGBT_wsf_view.launchFullScreen(Fn)}else Fe=At,wt(Be,Re,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<ct.length;ue++)Be.removeChild(ct[ue])},vt=Be.getElementsByClassName("ggb_preview_play"),ue=0;ue<vt.length;ue++)vt[ue].addEventListener("click",et,!1),vt[ue].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},at=function(){var Be=document.createElement("div");if(Be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Re='.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");}',ot=document.createElement("style");ot.styleSheet?ot.styleSheet.cssText=Re:ot.appendChild(document.createTextNode(Re)),document.getElementsByTagName("head")[0].appendChild(ot)}return Be},Pt=function(Be,Re,ot,At){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=Be-2+"px",et.style.height=Re-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var vt="lightgrey";ot!==void 0&&(ot==="none"?vt="transparent":vt=ot),et.style.border="1px solid "+vt;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 ct,Jt,Fn;if(!At){ct=document.createElement("img"),ct.style.position="absolute",ct.style.zIndex="1001",ct.style.opacity=1,ue.style.opacity=.3,Jt=360,Jt>Be/4*3&&(Jt=Be/4*3),Fn=Jt/5.8,ct.setAttribute("src",b),ct.setAttribute("width",Jt),ct.setAttribute("height",Fn);var xt=(Be-Jt)/2,Je=(Re-Fn)/2;ct.style.left=xt+"px",ct.style.top=Je+"px",et.appendChild(ct)}}return et.appendChild(ue),et},st=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},St=["web","webSimple","web3d","tablet","tablet3d","phone"],lt=function(Be,Re){if(ae=Be,Re){dt(ae,!0);return}var ot=!ye;if(ot){var At=ne(ae);!isNaN(At)&&At<4.4&&(ot=!1)}var et,vt;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var ue=ae.indexOf("//");ue>0?vt=ae:ue===0?vt=et+ae:vt="https://www.geogebra.org/apps/5.2.814.0/";for(var ct in St)if(ae.slice(St[ct].length*-1)===St[ct]||ae.slice((St[ct].length+1)*-1)===St[ct]+"/"){dt(vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ot&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!We(oe.showToolBar)&&!We(oe.showMenuBar)&&!We(oe.showAlgebraInput)&&!We(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?vt+="webSimple/":vt+="web3d/",dt(vt,!1)},dt=function(Be,Re){if(Be.requirejs){Ue=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),Ue=Be,Re===null&&(Re=Be.indexOf("http")===-1),Ae=Re,y="web.nocache.js",a=!1;var ot=Ue.split("/");ot.length>1&&(!Re&&ot[ot.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):St.indexOf(ot[ot.length-2])>=0&&(y=ot[ot.length-2]+".nocache.js")),ot=Be.split("/"),ae=ot[ot.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 At=parseFloat(ae);At!==NaN&&At<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+At+" is deprecated. Using version latest instead."),lt("5.0",Re))},mt=function(Be,Re){window.console&&window.console.log&&(!Re||typeof Re.showLogging=="undefined"||Re.showLogging&&Re.showLogging!=="false")&&console.log(Be)};oe.material_id!==void 0?de(hn):hn();function hn(){var Be=ut;Ze!==null?Be=Ze:parseFloat(Be)<5&&(Be="5.0"),lt(Be,!1),ce!==null&&dt(ce,Ae),Se=!0}return Oe},GGBAppletUtils=function(){"use strict";function Oe(){return window.GGBT_wsf_edit!==void 0}function ut(Se,Ze){Ze!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ze+","+Ze+")",Se.style.webkitTransform="scale("+Ze+","+Ze+")",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,Ze,ce,Ge,Me,Ee){var Ue=null;if(Ee!=null&&Ee!="")for(var Ae=Se.parentNode;Ae!=null;)if((" "+Ae.className+" ").indexOf(" "+Ee+" ")>-1){Ue=Ae;break}else Ae=Ae.parentNode;var Fe=0,ae=0,y=0,a=0,E=0,b=0,x=0;if(Ue)Fe=Ue.offsetWidth,ae=Math.max(Ge?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),y=Fe):(Fe=window.innerWidth,ae=window.innerHeight,y=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Fe&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Fe-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=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"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return Se&&((ce===void 0||!ce)&&Ze>0&&Ze+a<Fe?Fe=Ze:Fe-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(ae-=x)),{width:Fe,height:ae}}function te(Se,Ze,ce,Ge,Me){if(Se.isScreenshoGenerator)return 1;var Ee=Ge!==void 0&&Ge,Ue=Se.noScaleMargin!=null&&Se.noScaleMargin,Ae=function(ee){return ee&&ee!=="false"},Fe=Ae(Se.autoHeight),ae=oe(Ze,Se.width,ce,Fe,Ee&&window.GGBT_wsf_view||Ue,Me),y=parseInt(ae.width),a=Se.width,E=Se.height;if(a===void 0){var b=Ze.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,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 ye(Se,Ze,ce){var Ge=1,Me,Ee=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ee=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Ge=parseFloat(Se.scale),(isNaN(Ge)||Ge===null||Ge===0)&&(Ge=1),Ge>1&&(Ee=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Me=te(Se,Ze,Ee,ce,Se.scaleContainerClass);else return Ge;return Ee&&(!Se.hasOwnProperty("scale")||Ge===1)?Me:Math.min(Ge,Me)}function _e(Se){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Ge=Se.getBoundingClientRect(),Me=(Ze-Ge.width)/2,Ee=(ce-Ge.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 Ke(Se,Ze){var ce=Se.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Ge=ye(Ze,Se);Oe()&&ce.setAttribute("data-param-scale",Ge);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=Ze.id!==void 0?Ze.id:"ggbApplet",Ae=window[Ue];(Ae==null||!Ae.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(Ge)&&Ge!==1?(Me.parentNode.style.width=Ze.width*Ge+"px",Me.parentNode.style.height=Ze.height*Ge+"px",ut(Me,Ge)):(ut(Me,1),Me.parentNode.style.width=Ze.width+"px",Me.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ke,isFlexibleWorksheetEditor:Oe,positionCenter:_e,getScale:ye,scaleElement:ut}}();__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 Oe=n.location.search;return Oe.indexOf(J)!=-1||Oe.indexOf(K)!=-1}function q(Oe,ut){}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(Oe){var ut=s[L].bindings;s[L].bindings=function(){for(var oe=ut?ut():{},te=Oe[webModule.__softPermutationId],ye=O;ye<te.length;ye++){var _e=te[ye];oe[_e[O]]=_e[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Oe=o.createElement(Q);if(Oe.id=L,Oe.style.cssText=R+S,Oe.tabIndex=-1,o.body.appendChild(Oe),t=Oe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ut=document.compatMode==U?V:W;t.write(ut+X),t.close()}}}function w(Oe){function ut(te){function ye(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=ye();if(_e){te();return}function Ke(){if(!_e){if(!ye())return;_e=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ke,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Ke,!1);var Se=setInterval(function(){Ke()},$)}function oe(te){var ye=u(),_e=ye.body,Ke=ye.createElement(_);Ke.language=ab,Ke.crossOrigin=W,Ke.src=te,webModule.__errFn&&(Ke.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),_e.appendChild(Ke)}ut(function(){oe(Oe)})}webModule.__startLoadingFragment=function(Oe){return C(Oe)},webModule.__installRunAsyncCode=function(Oe){var ut=u(),oe=ut.body,te=ut.createElement(_);te.language=ab,te.text=Oe,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(Oe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Oe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Oe){var ut=c[Oe];return ut==null?null:ut},r=d,webModule.__errFn=e}function B(){function Oe(Se){var Ze=Se.lastIndexOf(rb);Ze==-1&&(Ze=Se.length);var ce=Se.indexOf(sb);ce==-1&&(ce=Se.length);var Ge=Se.lastIndexOf(tb,Math.min(ce,Ze));return Ge>=O?Se.substring(O,Ge+P):W}function ut(Se){if(!Se.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=Se+vb,Se=Oe(Ze.src)}return Se}function oe(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function te(){for(var Se=o.getElementsByTagName(_),Ze=O;Ze<Se.length;++Ze)if(Se[Ze].src.indexOf(xb)!=-1)return Oe(Se[Ze].src);return W}function ye(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function _e(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Ke=oe();return Ke==W&&(Ke=te()),Ke==W&&(Ke=ye()),Ke==W&&_e()&&(Ke=Oe(o.location.href)),Ke=ut(Ke),Ke}function C(Oe){return Oe.match(/^\//)||Oe.match(/^[a-zA-Z]+:\/\//)?Oe:webModule.__moduleBase+Oe}function D(){var Oe=[],ut=O,oe=[],te=[];function ye(Se){var Ze=te[Se](),ce=oe[Se];if(Ze in ce)return Ze;var Ge=[];for(var Me in ce)Ge[ce[Me]]=Me;throw r&&r(Se,Ge,Ze),null}if(__gwt_isKnownPropertyValue=function(Se,Ze){return Ze in oe[Se]},webModule.__getPropMap=function(){var Se={};for(var Ze in oe)oe.hasOwnProperty(Ze)&&(Se[Ze]=ye(Ze));return Se},webModule.__computePropValue=ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var Ke=_e.indexOf(Db);Ke!=-1&&(ut=parseInt(_e.substring(Ke+P),$),_e=_e.substring(O,Ke))}catch(Se){}return webModule.__softPermutationId=ut,C(_e+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(Oe,ut,oe){"use strict";oe.d(ut,{Ax:function(){return Ke},Ds:function(){return Se},KI:function(){return ce},SI:function(){return _e},f1:function(){return ye}});var te=oe(11320);function ye(Ge){let Me=!0;if(Ge.length>0){for(let Ee=0;Ee<Ge.length;Ee++)if(Ge[Ee].compile_success==0||!Ge[Ee].compile_success){Me=!1;break}}else Me=!1;return Me}function _e(Ge,Me=""){let Ee=[];for(let Ue=0;Ue<Ge.length;Ue++){let Ae=Ge[Ue],Fe=Me?`${Me}/${Ae.name}`:`${Ae.name}`;Ee.push({title:Ae.name,type:Ae.type,isLeaf:Ae.type!=="tree",key:Fe})}return Ee}function Ke(Ge,Me,Ee){for(let Ue=0;Ue<Ge.length;Ue++){let Ae=Ge[Ue];if(Ae.key===Me){Ae.children=Ee;break}Ae.children&&Ke(Ae.children,Me,Ee)}return Ge}function Se(Ge,Me,Ee){let Ue;return function(){let Ae=this,Fe=arguments,ae=function(){Ue=null,Ee||Ge.apply(Ae,Fe)},y=Ee&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,Me),y&&Ge.apply(Ae,Fe)}}const Ze=!0,ce=te.Z.API_SERVER},63205:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Ue}});var te=oe(67294),ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=oe(94184),Ke=oe.n(_e),Se=oe(57953),Ze=oe(15979),ce=oe(33170),Ge=oe(28706),Me=(Ae,Fe,ae)=>new Promise((y,a)=>{var E=z=>{try{x(ae.next(z))}catch(ee){a(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){a(ee)}},x=z=>z.done?y(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Ae,Fe)).next())}),Ue=({data:Ae,className:Fe,fullWidth:ae,style:y={},onClose:a,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),[he,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ae!=null&&Ae.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ae!=null&&Ae.src&&De()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ae==null?void 0:Ae.visible]);const De=()=>Me(void 0,null,function*(){de(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const xe=yield(0,Ge.ZJ)(Ae==null?void 0:Ae.src);z.current.src="",z.current.src=xe,z.current.onload=function(){gn()},de(!1),me("")}),We=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",a()},wt=xe=>Me(void 0,null,function*(){de(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const at=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ae.title,file:xe.dataUrl}});at!=null&&at.id&&!x?(yield(0,ce.ZP)(`/api/attachments/${Ae.id}/add_subitem.json`,{method:"post",body:{subitem_id:at==null?void 0:at.id,settings:JSON.stringify(xe.state)}})).status===0&&E():at!=null&&at.id&&E(at),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),me("")}),jt=()=>{const xe=document.querySelector('a[href="https://markerjs.com/"]');xe&&xe.parentNode&&(xe.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(Pt=>{const st=document.querySelector(Pt.name);st&&st.setAttribute("title",Pt.title)})},gn=()=>{ee.current=new Ze.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",wt),ee.current.addEventListener("beforeclose",We),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(),Ae!=null&&Ae.snapshotData&&ee.current.restoreState(Ae.snapshotData),setTimeout(()=>{window.scrollTo(0,0),jt()},300)};return te.createElement(te.Fragment,null,(Ae==null?void 0:Ae.visible)&&te.createElement(Se.Z,{spinning:ge,tip:he,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Ke()(ye.imageDimensions,Fe,ae?ye.fullWidth:""),style:y},te.createElement("img",{className:ye.img,ref:z}))))}},36527:function(Oe,ut,oe){"use strict";var te=oe(67294),ye=oe(71230),_e=oe(15746),Ke=oe(66368),Se=oe(71577),Ze=oe(85725),ce=oe(71736),Ge=oe(84279),Me=oe(67294);const Ee=(0,te.forwardRef)(({callback:Ue,showSaveButton:Ae,value:Fe=""},ae)=>{const y=(0,te.useRef)(),a=[{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=>{y.current.setValue(y.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(ye.Z,{className:ce.Z.lists,gutter:[10,10]},a.map((ee,ne)=>Me.createElement(_e.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(Ze.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(ye.Z,{gutter:[10,10]},re.data.map((de,he)=>Me.createElement(_e.Z,{key:he,onClick:()=>b(de),className:ce.Z.diamond},Me.createElement(Ze.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(ye.Z,{className:ce.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Me.createElement(_e.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(Ze.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(ye.Z,{gutter:[10,10]},re.data.map((de,he)=>Me.createElement(_e.Z,{key:he,onClick:()=>b(de),className:ce.Z.diamond},Me.createElement(Ze.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=y.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(Ke.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:y,style:{width:800,marginTop:30,fontSize:18}},Fe||""),Ae&&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")))});ut.Z=Ee},65866:function(Oe,ut,oe){"use strict";oe.d(ut,{z:function(){return st},Z:function(){return St}});var te=oe(67294),ye=oe(59810),_e=oe(2453),Ke=oe(14446),Se=oe(71577),Ze=oe(11320),ce=oe(4440),Ge=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ae=(lt,dt,mt)=>dt in lt?Ge(lt,dt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):lt[dt]=mt,Fe=(lt,dt)=>{for(var mt in dt||(dt={}))Ee.call(dt,mt)&&Ae(lt,mt,dt[mt]);if(Me)for(var mt of Me(dt))Ue.call(dt,mt)&&Ae(lt,mt,dt[mt]);return lt},ae=(lt,dt,mt)=>new Promise((hn,Be)=>{var Re=et=>{try{At(mt.next(et))}catch(vt){Be(vt)}},ot=et=>{try{At(mt.throw(et))}catch(vt){Be(vt)}},At=et=>et.done?hn(et.value):Promise.resolve(et.value).then(Re,ot);At((mt=mt.apply(lt,dt)).next())});const y="\u3000\u3000";function a(lt){var dt=["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)+" "+dt[mt]}var E=({value:lt=[],action:dt,onChange:mt,className:hn,maxSize:Be=150,title:Re="\u6587\u4EF6\u4E0A\u4F20",accept:ot=null})=>{const At={multiple:!1,fileList:lt,accept:ot,withCredentials:!0,beforeUpload:vt=>vt.size/1024/1024<Be?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(vt){var ue,ct,Jt,Fn;let xt=[...vt.fileList];if(xt=xt.map(Je=>(Je.name.indexOf(y)===-1&&(Je.name=`${Je.name}${y}${a(Je.size)}`),Fe({},Je))),vt.file.status==="done"&&((ct=(ue=vt.file)==null?void 0:ue.response)==null?void 0:ct.status)===-1){message.error((Fn=(Jt=vt.file)==null?void 0:Jt.response)==null?void 0:Fn.message),mt([]);return}mt(xt)},onRemove:vt=>ae(void 0,null,function*(){const ue=vt.size/1024/1024;return vt.status==="uploading"?!0:ue<Be&&(vt.response?vt.response.id:vt.uid)?yield removeAttachment(vt.response?vt.response.id:vt.id):!0})};function et(vt){vt.preventDefault(),vt.stopPropagation()}return React.createElement("div",{className:`single-upload ${hn||""}`},React.createElement(Upload,Fe({},At),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},Re),React.createElement("span",{onClick:et,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Be,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(lt,dt,mt)=>dt in lt?z(lt,dt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):lt[dt]=mt,de=(lt,dt)=>{for(var mt in dt||(dt={}))ne.call(dt,mt)&&ge(lt,mt,dt[mt]);if(ee)for(var mt of ee(dt))re.call(dt,mt)&&ge(lt,mt,dt[mt]);return lt};const he=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=",De=Object.defineProperty,We=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,gn=(lt,dt,mt)=>dt in lt?De(lt,dt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):lt[dt]=mt,xe=(lt,dt)=>{for(var mt in dt||(dt={}))wt.call(dt,mt)&&gn(lt,mt,dt[mt]);if(We)for(var mt of We(dt))jt.call(dt,mt)&&gn(lt,mt,dt[mt]);return lt},at=(lt,dt,mt)=>new Promise((hn,Be)=>{var Re=et=>{try{At(mt.next(et))}catch(vt){Be(vt)}},ot=et=>{try{At(mt.throw(et))}catch(vt){Be(vt)}},At=et=>et.done?hn(et.value):Promise.resolve(et.value).then(Re,ot);At((mt=mt.apply(lt,dt)).next())});const{Dragger:Pt}=ye.default;function st(lt){let dt=[];return lt&<.length>0&&(dt=lt.map(mt=>({uid:mt.id,id:mt.id,name:mt.title+y+mt.filesize,url:mt.url,filesize:mt.filesize,status:"done",response:{id:mt.id}}))),dt}var St=({value:lt,onChange:dt,action:mt,data:hn,className:Be,maxSize:Re=150,title:ot="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:At=!1,accept:et="",additionalText:vt,isDragger:ue,number:ct=1e3,aloneClear:Jt=!1,realTimeRemove:Fn=!0,uploadText:xt,setFileProgress:Je,showFileProgress:Te})=>{const[be,qe]=(0,te.useState)(!1);let[Ye,yt]=(0,te.useState)(lt||[]),[Rt,Ht]=(0,te.useState)(1);(0,te.useEffect)(()=>{lt&&(Rt===1&&yt([...lt]),Ht(2),ct===(lt==null?void 0:lt.length)&&qe(!0))},[lt]);const en=()=>{setTimeout(()=>{Ye.pop(),qe(!1),yt([...Ye])},500)};Te&&Je(Ye.some(Nt=>Nt.status==="uploading"));const dn={multiple:!0,accept:et,withCredentials:!0,fileList:Ye,beforeUpload:(Nt,wn)=>{const cn=Nt.size/1024/1024;if(Ye.concat(wn).length>ct)return Ye.pop(),yt([...Ye]),_e.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${ct}\u4E2A\u6587\u4EF6`),Jt?Promise.reject():(en(),!1);if(!(cn<Re)){if(_e.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Re}MB).`),Jt)return Promise.reject();en()}return!0},data:hn,action:mt||`${Ze.Z.API_SERVER}/api/attachments.json`,onChange(Nt){var wn,cn,jn,xn;if(Nt.file.status==="removed"?Ye=Nt.fileList:Ye=(0,x.uniqBy)([...Nt.fileList,...Ye],"uid"),Nt.file.status==="done"&&((cn=(wn=Nt.file)==null?void 0:wn.response)==null?void 0:cn.status)===-1){_e.ZP.error((xn=(jn=Nt.file)==null?void 0:jn.response)==null?void 0:xn.message);return}Ye.length>=ct?qe(!0):qe(!1),yt([...Ye]),Ye=Ye.map(Pn=>{var pe,Ne;return(pe=Pn==null?void 0:Pn.response)!=null&&pe.id&&(Pn.url=(Ne=Pn==null?void 0:Pn.response)==null?void 0:Ne.url),Pn.name.indexOf(y)===-1&&(Pn.name=`${Pn.name}${y}${a(Pn.size)}`),xe({},Pn)}),console.log("info:",Nt,Ye),dt(Ye)},onRemove:Nt=>at(void 0,null,function*(){if(!Fn)return!0;const wn=()=>at(void 0,null,function*(){if(Nt.response?Nt.response.id:Nt.id){let jn=yield(0,ce.JZ)(Nt.response?Nt.response.id:Nt.uid);return Promise.resolve(jn)}else return!0});if(At)return new Promise((cn,jn)=>{Ke.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:()=>at(void 0,null,function*(){const xn=yield wn();_e.ZP.success("\u5220\u9664\u6210\u529F"),cn(!0)}),onCancel:()=>cn(!1)})});{const cn=yield wn();return Ye.length-1<ct&&qe(!1),cn}})};function sn(Nt){Nt.preventDefault(),Nt.stopPropagation()}return te.createElement("div",{className:`multi-upload ${Be||""}`},ue&&te.createElement(Pt,xe({},dn),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",Re,"MB)"," "),vt),!ue&&te.createElement(ye.default,xe({},dn),te.createElement(Se.ZP,{disabled:be,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:me}),ot),te.createElement("span",{onClick:sn,className:"upload_text"},xt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Re}MB)`)))}},57444:function(Oe,ut,oe){"use strict";oe.d(ut,{h:function(){return ee}});var te=oe(67294),ye=oe(42563),_e=oe(22150),Ke=oe(71577),Se=oe(4631),Ze=oe.n(Se),ce=oe(71749),Ge=oe(30483),Me=Object.defineProperty,Ee=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,y=(ne,re,ge)=>re in ne?Me(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,a=(ne,re)=>{for(var ge in re||(re={}))Fe.call(re,ge)&&y(ne,ge,re[ge]);if(Ae)for(var ge of Ae(re))ae.call(re,ge)&&y(ne,ge,re[ge]);return ne},E=(ne,re)=>Ee(ne,Ue(re));const b=ye.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"]};ut.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function he(De){de(z[De][1])}function me(De){ne(De)}return te.createElement(_e.default,E(a({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(ye.default,{getPopupContainer:De=>De.parentNode,onChange:he},Object.keys(z).map(De=>te.createElement(b,{key:De,value:De},z[De][0])))),te.createElement(_e.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(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ke.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const he=(0,te.useRef)(),[me,De]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let We=function(wt){const jt=wt.getValue();re&&re(jt)};return me.on("change",We),()=>{me.off("change",We)}}},[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(he.current&&!me){const We=Ze().fromTextArea(he.current,a({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));De(We)}},[he.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:he}))}},35567:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Qa}});var te=oe(67294),ye=oe(4631),_e=oe.n(ye),Ke=oe(91033),Se=oe(71749),Ze=oe(57341),ce=oe(82801),Ge=oe(88386),Me=oe(49047),Ee=oe(80785),Ue=oe(85725),Ae=({value:Le="",className:we,showTextOnly:ve,showLines:ft,style:Tt={}})=>{const Gt=(0,te.useMemo)(()=>"",[Le]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},Fe=oe(67294),ae=Object.defineProperty,y=Object.defineProperties,a=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)=>y(Le,a(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:ft,className:Tt="",children:Gt}){function kn(){Le(ft)}return Fe.createElement("a",{title:we,className:Tt,onClick:kn},Fe.createElement("i",{className:`${ve}`}),Gt)}var de=({watch:Le,showNullButton:we,showNullProgramButton:ve,onActionCallback:ft,fullScreen:Tt,insertTemp:Gt,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 Fe.createElement("ul",{className:"markdown-toolbar-container"},!kn&&Bn.map((na,Ia)=>Fe.createElement("li",{key:Ia},na.actionName?Fe.createElement(ge,ne(ee({},na),{onActionCallback:ft})):Fe.createElement("span",{className:"v-line"}))),we?Fe.createElement("li",null,Fe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ft},Fe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?Fe.createElement(Fe.Fragment,null,Fe.createElement("li",null,Fe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ft},Fe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Fe.createElement("li",null,Fe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ft},Fe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&Fe.createElement("li",null,Fe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gt}`,onActionCallback:ft},Fe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&Fe.createElement("li",null,un),Fe.createElement("li",{className:"btn-full-screen"},Fe.createElement(ge,{icon:`${Tt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Tt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ft})))},he=oe(76621),me=oe(22150),De=oe(69677),We=oe(71577),wt=Object.defineProperty,jt=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,st=(Le,we,ve)=>we in Le?wt(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,St=(Le,we)=>{for(var ve in we||(we={}))at.call(we,ve)&&st(Le,ve,we[ve]);if(xe)for(var ve of xe(we))Pt.call(we,ve)&&st(Le,ve,we[ve]);return Le},lt=(Le,we)=>jt(Le,gn(we));const dt={labelCol:{span:4},wrapperCol:{span:20}};var mt=({callback:Le,onCancel:we})=>{function ve(ft){Le(ft)}return te.createElement(me.default,lt(St({},dt),{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(De.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(De.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},hn=oe(57444),Be=oe(70859),Re=oe(14446),ot=oe(71230),At=oe(63205),et=oe(67294),vt=({callback:Le,onCancel:we})=>{const ve=document.createElement("canvas"),ft=ve.getContext("2d");ve.width=1e3,ve.height=800,ft.fillStyle="#ffffff",ft.fillRect(0,0,ve.width,ve.height);const Tt=ve.toDataURL("image/png");return et.createElement(Re.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(ot.Z,{style:{height:"100vh"}},et.createElement(At.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Tt,visible:!0,title:String(Date.now())},onOk:Gt=>{Le({src:Gt.url})},onClose:we})))},ue=oe(23495);function ct(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ct,go.CommandHandler),ct.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},ct.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")},ct.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 ft=ve.actualBounds.x+ve.actualBounds.width;we=Math.max(ft,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")},ct.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")},ct.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 ft=ve.actualBounds.y+ve.actualBounds.height;we=Math.max(ft,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")},ct.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(ft){ft instanceof go.Link||ft.move(new go.Point(ve-ft.actualBounds.width/2,ft.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},ct.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(ft){ft instanceof go.Link||ft.move(new go.Point(ft.actualBounds.x,ve-ft.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},ct.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 ft=0;ft<ve.length-1;ft++){var Tt=ve[ft],Gt=Tt.actualBounds.y+Tt.actualBounds.height+Le,kn=ve[ft+1];kn.move(new go.Point(Tt.actualBounds.x,Gt))}we.commitTransaction("align Column")},ct.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 ft=0;ft<ve.length-1;ft++){var Tt=ve[ft],Gt=Tt.actualBounds.x+Tt.actualBounds.width+Le,kn=ve[ft+1];kn.move(new go.Point(Gt,Tt.actualBounds.y))}we.commitTransaction("align Row")},ct.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},ct.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())},ct.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 ft=0;ve.parts.each(function(Tt){if(!Tt.isSelected){var Gt=Tt.zOrder;isNaN(Gt)?Tt.zOrder=0:ft=Math.max(ft,Gt)}}),we.set(ve,ft)}),Le.selection.each(function(ve){ct._assignZOrder(ve,we.get(ve.layer)+1)}),Le.commitTransaction("pullToFront")},ct.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 ft=0;ve.parts.each(function(Tt){if(!Tt.isSelected){var Gt=Tt.zOrder;isNaN(Gt)?Tt.zOrder=0:ft=Math.min(ft,Gt)}}),we.set(ve,ft)}),Le.selection.each(function(ve){ct._assignZOrder(ve,we.get(ve.layer)-1-ct._findGroupDepth(ve))}),Le.commitTransaction("pushToBack")},ct._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(ft){ct._assignZOrder(ft,we+1,ve)})},ct._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(ve){we=Math.max(we,ct._findGroupDepth(ve))}),we+1}else return 0},ct.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)}},ct.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},ct.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,ve=0,ft=0;if(we.control||we.meta)ve=1,ft=1;else if(Le.grid!==null){var Tt=Le.grid.gridCellSize;ft=Tt.width,ve=Tt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Gt){we.key==="Up"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y-ve)):we.key==="Down"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y+ve)):we.key==="Left"?Gt.move(new go.Point(Gt.actualBounds.x-ft,Gt.actualBounds.y)):we.key==="Right"&&Gt.move(new go.Point(Gt.actualBounds.x+ft,Gt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},ct.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))},ct.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var ve=we.actualBounds.center,ft=this._getAllParts(),Tt=1/0,Gt=we,kn=0;kn<ft.length;kn++){var un=ft[kn];if(un!==we&&un.canSelect()){var Bn=un.actualBounds.center,na=ve.directionPoint(Bn),Ia=this._angleCloseness(na,Le);if(Ia<=45){var rt=ve.distanceSquaredPoint(Bn);rt*=1+Math.sin(Ia*Math.PI/180),rt<Tt&&(Tt=rt,Gt=un)}}}return Gt},ct.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},ct.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 ft=this._sortTreeChildrenByY(we).first();ft!==null&&Le.select(ft)}}else if(ve.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var Tt=we.findTreeParentNode();Tt!==null&&Le.select(Tt)}else if(ve.key==="Up"){var Tt=we.findTreeParentNode();if(Tt!==null){var Gt=this._sortTreeChildrenByY(Tt),kn=Gt.indexOf(we);if(kn>0){for(var un=Gt.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(Tt)}}else if(ve.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var ft=this._sortTreeChildrenByY(we).first();ft!==null&&Le.select(ft)}else for(;we!==null;){var Tt=we.findTreeParentNode();if(Tt===null)break;var Gt=this._sortTreeChildrenByY(Tt),kn=Gt.indexOf(we);if(kn<Gt.length-1){Le.select(Gt.elt(kn+1));break}else we=Tt}var na=Le.selection.first();na!==null&&Le.scrollToRect(na.actualBounds)}},ct.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(ve,ft){var Tt=ve.location,Gt=ft.location;return Tt.y<Gt.y?-1:Tt.y>Gt.y?1:Tt.x<Gt.x?-1:Tt.x>Gt.x?1:0}),we},ct.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},ct.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(ct.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(ct.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 Jt=ct,Fn=oe(18023),xt=oe(15746),Je=oe(33170),Te={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},be=oe(67294),qe=(Le,we,ve)=>new Promise((ft,Tt)=>{var Gt=Bn=>{try{un(ve.next(Bn))}catch(na){Tt(na)}},kn=Bn=>{try{un(ve.throw(Bn))}catch(na){Tt(na)}},un=Bn=>Bn.done?ft(Bn.value):Promise.resolve(Bn.value).then(Gt,kn);un((ve=ve.apply(Le,we)).next())});function Ye({onCancel:Le,callback:we}){let ve=(0,te.useRef)(),ft=(0,te.useRef)(),Tt=(0,te.useRef)(),Gt=(0,te.useRef)(!1);const kn=(0,te.useRef)(!1),[un,Bn]=(0,te.useState)(0);function na(){const rt=ue.bx.make,En={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(ft.current,{padding:20,grid:rt(ue.s_,"Grid",rt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),rt(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:rt(Jt),"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 Vt=tt.subject;tt.diagram.toolManager.linkingTool.isForwards?Vt.toNode.invalidateConnectedLinks():Vt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=rt(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),rt(ue.bn,{name:"SHAPE",fill:En.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")),rt(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),rt(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=rt("ToolTip",rt(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},rt(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),rt(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Pe(tt,Ct){var Vt=(it,fn)=>{it.handled=!0,it.diagram.model.commit(Sn=>{var sa=fn.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=Sn.copyNodeData(sa.data);Sn.setGroupKeyForNodeData(fa,Sn.getGroupKeyForNodeData(sa.data)),Sn.addNodeData(fa);var Fo={from:sa.key,to:Sn.getKeyForNodeData(fa)};Sn.addLinkData(Fo);var to=it.diagram.findNodeForData(fa);to.location=ca,it.diagram.select(to),setTimeout(()=>{it.diagram.commandHandler.editTextBlock()},20)})};return rt(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:En.white,strokeWidth:4,mouseEnter:(it,fn)=>fn.fill="dodgerblue",mouseLeave:(it,fn)=>fn.fill="orange",isActionable:!0,click:Vt,contextClick:Vt})}function Ie(tt){return rt(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,Vt)=>Vt.fill="dodgerblue",mouseLeave:(Ct,Vt)=>Vt.fill="orange",click:(Ct,Vt)=>{Ct.diagram.commandHandler.showContextMenu(Vt.part.adornedPart)}},tt||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=rt(ue.uz,"Spot",rt(ue.Vm,{padding:10}),Pe(ue.z6.Top,"TriangleUp"),Pe(ue.z6.Left,"TriangleLeft"),Pe(ue.z6.Right,"TriangleRight"),Pe(ue.z6.Bottom,"TriangleDown"),Ie({alignment:new ue.z6(.75,0)}));function $e(tt,Ct){return(Vt,it)=>{Vt.handled=!0,Vt.diagram.model.commit(fn=>{fn.set(it.part.adornedPart.data,tt,Ct)})}}function ze(tt,Ct){return Ct||(Ct="color"),rt(ue.bn,{width:16,height:16,stroke:"lightgray",fill:tt,margin:1,background:"transparent",mouseEnter:(Vt,it)=>it.stroke="dodgerblue",mouseLeave:(Vt,it)=>it.stroke="lightgray",click:$e(Ct,tt),contextClick:$e(Ct,tt)})}function gt(){return[rt("ContextMenuButton",rt(ue.s_,"Horizontal",ze(En.white,"fill"),ze(En.beige,"fill"),ze(En.extralightblue,"fill"),ze(En.extralightred,"fill"))),rt("ContextMenuButton",rt(ue.s_,"Horizontal",ze(En.lightgray,"fill"),ze(En.lightgreen,"fill"),ze(En.lightblue,"fill"),ze(En.lightred,"fill")))]}function Xe(){return[rt("ContextMenuButton",rt(ue.s_,"Horizontal",ze(En.black),ze(En.green),ze(En.blue),ze(En.red))),rt("ContextMenuButton",rt(ue.s_,"Horizontal",ze(En.white),ze(En.magenta),ze(En.purple),ze(En.orange)))]}function nt(tt,Ct){return Ct||(Ct="thickness"),rt(ue.bn,"LineH",{width:16,height:16,strokeWidth:tt,margin:1,background:"transparent",mouseEnter:(Vt,it)=>it.background="dodgerblue",mouseLeave:(Vt,it)=>it.background="transparent",click:$e(Ct,tt),contextClick:$e(Ct,tt)})}function Ve(tt,Ct){return Ct||(Ct="dash"),rt(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tt,margin:1,background:"transparent",mouseEnter:(Vt,it)=>it.background="dodgerblue",mouseLeave:(Vt,it)=>it.background="transparent",click:$e(Ct,tt),contextClick:$e(Ct,tt)})}function Kt(){return[rt("ContextMenuButton",rt(ue.s_,"Horizontal",nt(1),nt(2),nt(3),nt(4))),rt("ContextMenuButton",rt(ue.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function Mt(tt,Ct){return Ct||(Ct="figure"),rt(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tt,margin:1,background:"transparent",mouseEnter:(Vt,it)=>it.fill="dodgerblue",mouseLeave:(Vt,it)=>it.fill="lightgray",click:$e(Ct,tt),contextClick:$e(Ct,tt)})}ve.current.nodeTemplate.contextMenu=rt("ContextMenu",rt("ContextMenuButton",rt(ue.s_,"Horizontal",Mt("Rectangle"),Mt("RoundedRectangle"),Mt("Ellipse"),Mt("Diamond"))),rt("ContextMenuButton",rt(ue.s_,"Horizontal",Mt("Parallelogram2"),Mt("ManualOperation"),Mt("Procedure"),Mt("Cylinder1"))),rt("ContextMenuButton",rt(ue.s_,"Horizontal",Mt("Terminator"),Mt("CreateRequest"),Mt("Document"),Mt("TriangleDown"))),gt(),Xe(),Kt()),ve.current.groupTemplate=rt(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tt,Ct)=>{var Vt=Ct.addMembers(Ct.diagram.selection,!0);Vt||Ct.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),rt(ue.s_,"Auto",{name:"BODY"},rt(ue.bn,{parameter1:10,fill:En.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")),rt(ue.Vm,{background:"transparent",margin:20})),rt(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=rt(ue.uz,"Spot",rt(ue.s_,"Auto",rt(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),rt(ue.Vm,{margin:1.5})),Ie({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),ve.current.groupTemplate.contextMenu=rt("ContextMenu",gt(),Xe(),Kt()),ve.current.linkTemplate=rt(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(),rt(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),rt(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)),rt(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))),rt(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))),rt(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=rt(ue.uz,rt(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:nn(2)},new ue.KX("pathPattern","thickness",nn)),Ie({alignmentFocus:new ue.z6(0,0,-6,-4)}));function nn(tt){return rt(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tt+4).toString()+" H3"})}function vn(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"),rt(ue.bn,{geometryString:Ct,margin:2,background:"transparent",mouseEnter:(Vt,it)=>it.background="dodgerblue",mouseLeave:(Vt,it)=>it.background="transparent",click:$e("dir",tt),contextClick:$e("dir",tt)})}function $n(tt){var Ct=(Vt,it)=>{Vt.handled=!0,Vt.diagram.model.commit(fn=>{var Sn=it.part.adornedPart;fn.set(Sn.data,tt?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(tt?Sn.toNode:Sn.fromNode).invalidateConnectedLinks()})};return rt(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Vt,it)=>it.background="dodgerblue",mouseLeave:(Vt,it)=>it.background="transparent",click:Ct,contextClick:Ct})}function je(tt,Ct){var Vt=0,it=ue.z6.RightSide;tt.equals(ue.z6.Top)?(Vt=270,it=ue.z6.TopSide):tt.equals(ue.z6.Left)?(Vt=180,it=ue.z6.LeftSide):tt.equals(ue.z6.Bottom)&&(Vt=90,it=ue.z6.BottomSide),Ct||(Vt-=180);var fn=(Sn,sa)=>{Sn.handled=!0,Sn.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 rt(ue.bn,{alignment:tt,alignmentFocus:tt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Vt,background:"transparent",mouseEnter:(Sn,sa)=>sa.background="dodgerblue",mouseLeave:(Sn,sa)=>sa.background="transparent",click:fn,contextClick:fn})}ve.current.linkTemplate.contextMenu=rt("ContextMenu",Xe(),Kt(),rt("ContextMenuButton",rt(ue.s_,"Horizontal",vn(0),vn(1),vn(2))),rt("ContextMenuButton",rt(ue.s_,"Horizontal",rt(ue.s_,"Spot",$n(!1),je(ue.z6.Top,!1),je(ue.z6.Left,!1),je(ue.z6.Right,!1),je(ue.z6.Bottom,!1)),rt(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},$n(!0),je(ue.z6.Top,!0),je(ue.z6.Left,!0),je(ue.z6.Right,!0),je(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 Da(tt){return console.log("shapeName:",tt),La.indexOf(tt)>=0}var aa=new ue.YI(Tt.current,{maxSelectionCount:1,linkTemplate:rt(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:rt(ue.uz,"Link",{locationSpot:ue.z6.Center},rt(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),rt(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),rt(ue.bn,{isPanelMain:!0,strokeWidth:2}),rt(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 Vt=tt.subject.part;var it=(Ct=document.activeElement)==null?void 0:Ct.value;typeof it=="string"&&it.trim()===""&&ve.current.model.commit(function(fn){fn.set(Vt.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),aa.nodeTemplate=rt(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),rt(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")),rt(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=rt(ue.s_,"Grid",rt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),rt(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 Ia=()=>qe(this,null,function*(){var rt=ve.current.makeImage();const En=yield(0,Je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:rt.src}});we({src:En.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{na()},500),Bn(un+1),()=>{ve.current=null}),[]),be.createElement("div",{ref:kn,className:Gt.current?`${Te.maxH60} body-overflow-initial`:"body-overflow-initial"},be.createElement(Re.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:be.createElement(ot.Z,null,be.createElement(xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),be.createElement(xt.Z,{onClick:()=>{var rt,En,Pe=ve.current.selection.first();if(Gt.current=!Gt.current,document.activeElement&&Pe){let Ie=(En=(rt=document.activeElement)==null?void 0:rt.value)==null?void 0:En.trim();typeof Ie=="string"&&ve.current.model.commit(function($e){$e.set(Pe.data,"text",Ie||"\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:Te.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:Te.myPaletteDiv,ref:Tt})),be.createElement("div",{style:{flex:1,position:"relative"}},be.createElement("div",{ref:ft,style:{height:"80vh"}}))),be.createElement("div",{className:"tr"},be.createElement(We.ZP,{size:"large",onClick:Ia,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var yt=Ye,Rt=oe(78045),Ht=oe(31795);const en=Rt.ZP.Group,dn={margin:"0 8px"};var sn=({callback:Le,onCancel:we})=>{function ve(ft){Le(ft)}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:dn},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:dn},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Ht.Z,null)),te.createElement("span",{style:dn},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Ht.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:dn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(en,null,te.createElement(Rt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Rt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Rt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Rt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Nt=oe(47897),wn=oe(61016),cn=oe.n(wn),xn=(0,te.forwardRef)(({use3d:Le,width:we,height:ve,callback:ft,showSaveButton:Tt},Gt)=>{const kn=(0,te.useRef)(),un=(0,te.useRef)(),[Bn,na]=(0,te.useState)(!1),Ia=(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(cn())(Ia.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const rt=()=>{var En=window.ggbApplet.getPNGBase64(1,!0,72);return ft&&ft(En),En};return(0,te.useEffect)(()=>{Ia.current.appName=Bn?"3D":"graphing",un.current.inject("applet_container")},[Bn]),(0,te.useEffect)(()=>{na(Le)},[Le]),(0,te.useImperativeHandle)(Gt,()=>({getImgData:rt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kn}),te.createElement(ot.Z,{align:"middle"},te.createElement(xt.Z,{flex:1},te.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:En=>na(En)})),te.createElement(xt.Z,null,te.createElement(We.ZP,{size:"large",onClick:rt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Pn=oe(36527),pe=oe(25934),Ne=oe(2453);const Qe="link",pt="upload-image",Ft="add-flowchart",_t="draw-image",Qt="add-flowchart",zt="code-block",Ut="add-table",pn="------------",tn={default:pn,left:`:${pn}`,center:`:${pn}:`,right:`${pn}:`};var Hn=oe(99914),Xn=(Le,we,ve)=>new Promise((ft,Tt)=>{var Gt=Bn=>{try{un(ve.next(Bn))}catch(na){Tt(na)}},kn=Bn=>{try{un(ve.throw(Bn))}catch(na){Tt(na)}},un=Bn=>Bn.done?ft(Bn.value):Promise.resolve(Bn.value).then(Gt,kn);un((ve=ve.apply(Le,we)).next())});function _n(){}let la=0;const Dn=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={[Qe]:"\u6DFB\u52A0\u94FE\u63A5",[zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[pt]:"\u6DFB\u52A0\u56FE\u7247",[_t]:"\u6DFB\u52A0\u753B\u56FE",[Ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\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:ft=400,miniToolbar:Tt=!1,isFocus:Gt=!1,watch:kn,insertTemp:un,mode:Bn="markdown",id:na="markdown-editor-id",showResizeBar:Ia=!1,noStorage:rt=!1,showNullButton:En=!1,showNullProgramButton:Pe=!1,hidetoolBar:Ie=!1,fullScreen:$e=!1,onBlur:ze,onCMBeforeChange:gt,onFullScreen:Xe,className:nt="",disablePaste:Ve=!1,disabled:Kt=!1,disabledFill:Mt=!1,placeholder:nn="",values:vn="",extraUse:$n})=>{const[je,$a]=(0,te.useState)(null),[La,Da]=(0,te.useState)(Le),[aa,tt]=(0,te.useState)(kn),[Ct,Vt]=(0,te.useState)($e),[it,fn]=(0,te.useState)(""),[Sn,sa]=(0,te.useState)(0),[ca,fa]=(0,te.useState)(ft),[Fo,to]=(0,te.useState)(!1),Io=(0,te.useRef)((0,pe.Z)()),xo=(0,te.useRef)(!1),Ka=(0,te.useRef)(),[va,io]=(0,te.useState)(0),[po,yo]=(0,te.useState)(0),Xa=(0,te.useRef)(),Ra=(0,te.useRef)(),fo=(0,te.useRef)(),an=(0,te.useRef)(),pa=()=>Xn(void 0,null,function*(){var It;const Lt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Io.current}});(It=Lt==null?void 0:Lt.attachments)!=null&&It.length&&(console.log("cm:",je,Xa),Lt.attachments.map(Bt=>{Bt.content_type.indexOf("image")>-1?je.replaceSelection(``):Bt.content_type.indexOf("video")>-1?je.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Bt.content_type.indexOf("pdf")>-1?je.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Bt.id}?type=${Bt.content_type}&disposition=inline" target="_blank">${Bt.name}</a>`):je.replaceSelection(`[${Bt.name}](${ENV.API_SERVER}/api/attachments/${Bt.id}?type=${Bt.content_type})`)}))});(0,te.useEffect)(()=>{const It=window.scrollY||window.pageYOffset;Da(vn),je==null||je.setValue(vn),window.scrollTo(0,It)},[vn]),(0,te.useEffect)(()=>{Xe==null||Xe(Ct)},[Ct]),(0,te.useEffect)(()=>{if(Xa.current){let It=function(Bt,Ot){var An;if(Ve){Ot.preventDefault();return}const Sa=Ot.clipboardData;if(Sa){const ka=Sa.types.toString(),Na=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(Ot.preventDefault(),Bn=="stex")return;try{let xa=Na[1];((An=Na[0])==null?void 0:An.kind)==="file"&&(xa=Na[0]);const Yt=xa.getAsFile(),Cn=Yt.name.split(".").pop();(0,Be.I)(Yt,zn=>{var bn,Wn,Ba;zn.id?((bn=Yt==null?void 0:Yt.type)==null?void 0:bn.indexOf("image"))>-1?Lt.replaceSelection(`<img width="100%" src="/api/attachments/${zn.id}?type=${zn.content_type})" alt="" />`):((Wn=Yt==null?void 0:Yt.type)==null?void 0:Wn.indexOf("video"))>-1?Lt.replaceSelection(`<video width="100%" controls src="/api/attachments/${zn.id}"></video>`):((Ba=Yt==null?void 0:Yt.type)==null?void 0:Ba.indexOf("pdf"))>-1?Lt.replaceSelection(`<a href="/api/attachments/${zn.id}?type=${Yt.type}&disposition=inline" target="_blank">${Yt.name}</a>`):Rn.includes(Cn)?Lt.replaceSelection(`<a href="/api/attachments/${zn.id}?type=office&disposition=inline" target="_blank">${Yt.name}</a>`):Lt.replaceSelection(`[${Yt.name}](/api/attachments/${zn.id}?type=${zn.content_type})`):(zn==null?void 0:zn.status)===401&&(Ne.ZP.warning((zn==null?void 0:zn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Lt=_e().fromTextArea(Xa.current,{mode:Bn,lineNumbers:!Tt,lineWrapping:!0,value:Le,autoCloseTags:!Pe,autoCloseBrackets:!0});return Lt.on("keyup",function(Bt,Ot){Ot.keyCode===8&&(Bt.getValue()==""?Lt.setOption("placeholder",nn):Lt.setOption("placeholder",null))}),Lt.on("keydown",function(Bt,Ot){if(Ot.keyCode===8){var An=Ma(Bt);An&&Ot.preventDefault()}}),Gt&&Lt.focus(),Lt.on("paste",It),Lt.on("dragleave",function(Bt,Ot){Ra.current.classList.remove("mouse-hover-md")}),Kt&&Lt.on("beforeChange",function(Bt,Ot){(Ot.origin==="paste"||Ot.origin==="+input")&&Ot.cancel()}),$a(Lt),()=>{Lt.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 Lt=new Ke.Z(Bt=>{for(let Ot of Bt)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&(Fa(),je.setSize("100%","100%"),je.refresh())});return Lt.observe(Xa.current.parentElement),Lt}if(je){const Lt=It();return()=>{var Bt,Ot;(Bt=Xa.current)!=null&&Bt.parentElement&&Lt.unobserve((Ot=Xa.current)==null?void 0:Ot.parentElement)}}},[je,Fa]),(0,te.useEffect)(()=>{if(je){let It=[];for(const[Lt,Bt]of Object.entries(Ua)){let Ot={[Lt]:()=>{Ja(Bt)}};It.push(Ot),je.addKeyMap(Ot)}return Ka.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Ka.current);for(let Lt of It)je.removeKeyMap(Lt)}}},[je]),(0,te.useEffect)(()=>{$e!==Ct&&Vt($e)},[$e]),(0,Hn.Z)(()=>{if(!rt&&Sn>0){let It=new Date().getTime(),Lt=window.sessionStorage.getItem(na);It>=Sn+Dn&&(!Lt||Lt!==La)&&(window.sessionStorage.setItem(na,La),to(!0))}},Dn),(0,te.useEffect)(()=>{tt(kn)},[je,kn]),(0,te.useEffect)(()=>{je&&Gt&&je.focus()},[je,Gt]),(0,te.useEffect)(()=>{if(aa&&je){let It=function(Bt){let Ot=Bt.target;if(an.current){let An=Ot.scrollTop/Ot.scrollHeight;an.current.scrollTop=an.current.scrollHeight*An}};const Lt=je.getScrollerElement();return Lt.addEventListener("scroll",It),()=>{Lt.removeEventListener("scroll",It)}}},[je,aa]),(0,te.useEffect)(()=>{if(je&>){let It=function(Lt,Bt){gt(Lt,Bt)};return je.on("beforeChange",It),()=>{je.off("beforeChange",It)}}},[je,gt]),(0,te.useEffect)(()=>{if(je&&ze){let It=function(){ze(je.getValue())};return je.on("blur",It),()=>{je.off("blur",It)}}},[je,ze]);function Ma(It,Lt){var Bt=It.getDoc(),Ot=Bt.getCursor(),An=Bt.getLine(Ot.line),Sa=An.charAt(Ot.ch-1),ka=An.lastIndexOf("@\u2581@",Ot.ch),Na=An.lastIndexOf("@\u2581\u2581@",Ot.ch),xa=ka>Na?ka:Na,Yt=ka>Na?3:4;if(Yn.indexOf(Sa)===-1)return null;if(console.log("change1:",Lt,It,An,Ot,xa,ka,Na,Sa),xa>=0&&Ot.ch-xa<5){var Cn=xa+Yt;return Bt.replaceRange("",{line:Ot.line,ch:xa},{line:Ot.line,ch:Cn}),{line:Ot.line,ch:Cn}}return null}(0,te.useEffect)(()=>{if(je){let It=function(Lt,Bt){const Ot=Lt.getValue();Da(Ot),sa(new Date().getTime()),Lt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Pe?we(Ot,Qo(Ot)):we(Ot))};return je.on("change",It),()=>{je.off("change",It)}}},[je,we]),(0,te.useEffect)(()=>{if(je)if(Le==null)je.setValue(""),Da("");else{const It=window.scrollY||window.pageYOffset;Le!==je.getValue()&&(je.setValue(Le),Da(Le),je.setCursor(Kt?1:je.lineCount(),0),window.scrollTo(0,It))}},[je,Le]);const Ja=(0,te.useCallback)(It=>{const Lt=je.getCursor(),Bt=je.getSelection();let Ot=Bt.split(`
|
|
`);switch(It){case"bold":return je.replaceSelection("**"+Bt+"**"),Bt===""&&je.setCursor(Lt.line,Lt.ch+2),je.focus();case"italic":return je.replaceSelection("*"+Bt+"*"),Bt===""&&je.setCursor(Lt.line,Lt.ch+1),je.focus();case"code":return je.replaceSelection("`"+Bt+"`"),Bt===""&&je.setCursor(Lt.line,Lt.ch+1),je.focus();case"inline-latex":return fn("inline-latex"),je.focus();case"latex":return je.replaceSelection("```latex\n"+Bt+"\n```"),je.setCursor(Lt.line+1,Bt.length+1),je.focus();case"line-break":return je.replaceSelection(`<br/>
|
|
`),je.focus();case"list-ul":return Bt===""?je.replaceSelection("- "+Bt):je.replaceSelection(Ot.map(An=>An===""?"":`- ${An}`).join(`
|
|
`)),je.focus();case"list-ol":return Bt===""?je.replaceSelection("1. "+Bt):je.replaceSelection(Ot.map((An,Sa)=>An===""?"":`${Sa+1}. ${An}`).join(`
|
|
`)),je.focus();case"add-null-ch":return Bt===""&&je.setCursor(Lt.line,Lt.ch),je.replaceSelection(Tn),je.focus();case"add-signal":return Bt===""&&je.setCursor(Lt.line,Lt.ch),je.replaceSelection(ua),je.focus();case"add-multiple":return Bt===""&&je.setCursor(Lt.line,Lt.ch),je.replaceSelection(Yn),je.focus();case"inster-template-1":return Bt===""&&je.setCursor(Lt.line,Lt.ch),je.replaceSelection(ma),je.focus();case"eraser":return je.setValue(""),je.focus();case"trigger-watch":return tt(!aa),je.focus();case"trigger-full-screen":return Vt(!Ct),je.focus();case Qe:fn(Qe);return;case zt:fn(zt);return;case pt:fn(pt);return;case _t:fn(_t);return;case"maths-latex":fn("maths-latex");return;case Ft:fn(Ft);return;case Ut:fn(Ut);return;default:throw new Error}},[je,aa,Ct]),ba=(0,te.useCallback)((It,Lt)=>{var Bt,Ot,An,Sa,ka,Na;switch(fn(""),it){case Qe:const{title:bn,link:Wn}=It;return je.replaceSelection(`[${bn}](${Wn})`),je.focus();case zt:const{language:Ba,content:Lo}=It;return je.replaceSelection(["```"+Ba,Lo,"```"].join(`
|
|
`)),je.focus();case"maths-latex":for(var xa=atob(It),Yt=new Uint8Array(xa.length),Cn=0;Cn<xa.length;Cn++)Yt[Cn]=xa.charCodeAt(Cn);var zn=new Blob([Yt],{type:"image/png"});(0,Be.I)(zn,lo=>{lo.id?je.replaceSelection(``):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":je.replaceSelection("`$$"+It+"$$`");break;case pt:case _t:case Qt:const{src:ao,alt:bo}=It,Oa=Lt,Gr=(An=(Ot=(Bt=Oa==null?void 0:Oa.name)==null?void 0:Bt.split("."))==null?void 0:Ot.pop)==null?void 0:An.call(Ot);return((Sa=Oa==null?void 0:Oa.type)==null?void 0:Sa.indexOf("image"))>-1||!(Oa!=null&&Oa.type)?Oa.align||Oa.width?je.replaceSelection(`<p style="text-align:${Oa.align||"initial"}"><img width="${Oa.width?Oa.width+"%":"initial"}" src="${ao}" alt="${bo||""}" /></p>`):je.replaceSelection(`<img width="100%" src="${ao}" alt="${bo||""}" />`):((ka=Oa==null?void 0:Oa.type)==null?void 0:ka.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="${ao}"></video>`):((Na=Oa==null?void 0:Oa.type)==null?void 0:Na.indexOf("pdf"))>-1?je.replaceSelection(`<a href="${ao}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):Rn.includes(Gr)?je.replaceSelection(`<a href="${ao}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):je.replaceSelection(`[${Oa.name}](${ao})`),je.focus();case Ut:const{row:Ar,col:cr,align:Er}=It;let qo=`
|
|
`;for(let lo=0;lo<Ar;lo++){let Ir=[],fr=[];for(let Dr=0;Dr<cr;Dr++)lo===1&&fr.push(tn[Er]),Ir.push(" ");lo===1&&(qo+=`| ${fr.join(" | ")} |
|
|
`),qo+=`| ${Ir.join(cr===1?"":" | ")} |
|
|
`}return je.replaceSelection(qo+`
|
|
`),je.focus();default:throw new Error}},[je,it]),Wo=(0,te.useMemo)(()=>{switch(it){case Qe:return te.createElement(mt,{callback:ba,onCancel:wa});case zt:return te.createElement(hn.Z,{callback:ba,onCancel:wa});case pt:return te.createElement(Be.Z,{callback:ba,onCancel:wa});case Ft:return te.createElement(yt,{callback:ba,onCancel:wa});case Ut:return te.createElement(sn,{callback:ba,onCancel:wa});case"maths-latex":return te.createElement(xn,{showSaveButton:!0,callback:ba});case"inline-latex":return te.createElement(Pn.Z,{showSaveButton:!0,callback:ba});default:return null}},[it]);function wa(){fn("")}(0,te.useEffect)(()=>{if(fo.current){let It=function(ka){An=!0,Sa=ka.pageY},Lt=function(){An=!1},Bt=function(ka){if(An){let Na=ka.pageY-Sa;Na<0&&(Na=0),Na>300&&(Na=300);let xa=ft+Na+"px";fa(xa)}},Ot=fo.current,An=!1,Sa=0;return Ot.addEventListener("mousedown",It),document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",Lt),()=>{Ot.removeEventListener("mousedown",It),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",Lt)}}},[je,fo]),(0,te.useEffect)(()=>{fa(ft)},[ft]);const Qn=Pa(ve),Jn=Pa(ca),no={width:Qn,height:Jn},Do=(0,te.useMemo)(()=>{if(Sn){let It=new Date(Sn),Lt=It.getHours(),Bt=It.getMinutes(),Ot=It.getSeconds();return Lt=Lt<10?"0"+Lt:Lt,Bt=Bt<10?"0"+Bt:Bt,Ot=Ot<10?"0"+Ot:Ot,`${Lt}:${Bt}:${Ot}`}return 0},[Sn]),Qo=It=>{const Lt=[];if(Pe){let Bt=-1;It=It.replace(/(@▁▁@|@▁@)/g,function(Ot,An,Sa){Lt.push({multiLine:Ot!==ua})})}return Lt};function br(){window.sessionStorage.removeItem(na),to(!1),sa(0)}function wr(){to(!1),sa(0),je.setValue(window.sessionStorage.getItem(na))}(0,te.useEffect)(()=>{eo[it]&&it!==_t&&it!==Ft&&setTimeout(()=>{const It=document.getElementsByClassName("markdown-popup-form")[0],Lt=window.innerWidth/2-It.offsetWidth/2,Bt=window.innerHeight/2-It.offsetHeight/2;io(Lt),yo(Bt)},0)},[it]);const Jo=It=>{It.preventDefault();const Lt=It.clientX-va,Bt=It.clientY-po;document.body.onmousemove=Ot=>{let An=Ot.clientX-Lt,Sa=Ot.clientY-Bt;const ka=document.getElementsByClassName("markdown-popup-form")[0],Na=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;An=Math.max(0,Math.min(An,Na)),Sa=Math.max(0,Math.min(Sa,xa)),mr(Ot.clientX,Ot.clientY,Lt,Bt)&&(io(An),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(It,Lt,Bt,Ot)=>{const An=document.body.clientHeight,Sa=document.body.clientWidth;return It<20&&Bt>It||It>Sa-20&&Bt<It||Lt<20&&Ot>Lt||Lt>An-20&&Ot<Lt?(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":""} ${Tt?"mini":""} ${Ct?"full-screen":""}`,style:no},te.createElement(de,{insertTemp:un,watch:aa,fullScreen:Ct,showNullButton:En,showNullProgramButton:Pe,onActionCallback:Ja,hidetoolBar:Ie,extraUse:$n}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Xa,placeholder:nn})),aa?te.createElement("div",{ref:an,className:"preview-container"},Bn==="stex"&&te.createElement(Ae,{value:La}),Bn!=="stex"&&te.createElement(Ue.Z,{disabledFill:Mt,showProgramFill:Pe,value:La})):null))),Ia?te.createElement("a",{ref:fo,className:"editor-resize"}):null,it===_t&&te.createElement(vt,{callback:ba,onCancel:wa}),it===Ft&&te.createElement(yt,{callback:ba,onCancel:wa}),te.createElement(he.Z,null,eo[it]&&it!==_t&&it!==Ft?te.createElement(Re.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===Ft?"1200px":null,height:it===Ft?"80vh":null,className:"markdown-popup-form"},Wo):null))}},70859:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ge},I:function(){return he}});var te=oe(22150),ye=oe(2453),_e=oe(69677),Ke=oe(93421),Se=oe(31795),Ze=oe(78045),ce=oe(71577),Ge=oe(15476),Me=oe(67294),Ee=oe(52262),Ue=oe(67294),Ae=Object.defineProperty,Fe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(me,De,We)=>De in me?Ae(me,De,{enumerable:!0,configurable:!0,writable:!0,value:We}):me[De]=We,x=(me,De)=>{for(var We in De||(De={}))a.call(De,We)&&b(me,We,De[We]);if(y)for(var We of y(De))E.call(De,We)&&b(me,We,De[We]);return me},z=(me,De)=>Fe(me,ae(De));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:me,onCancel:De})=>{const[We]=ee();let wt=(0,Me.useRef)();function jt(at){wt.current.width=We.getFieldValue("width"),wt.current.align=We.getFieldValue("align"),me(at,wt.current)}function gn(at,Pt){if(at.status===-1){ye.ZP.error(at.message);return}We.setFieldsValue({src:`/api/attachments/${at.id}`,type:Pt.type})}function xe(at){let Pt=at.target.files[0];wt.current=Pt,he(Pt,gn)}return Ue.createElement(te.default,z(x({form:We},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(_e.default,{style:ne})),Ue.createElement(de,{onFileChange:xe}))),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(_e.default,{style:{width:264}})),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(Ke.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(Ze.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:De},"\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 he(me,De){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ee.bg)())throw ye.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let We=new FormData;We.append("editormd-image-file",me),We.append("file_param_name","editormd-image-file"),We.append("byxhr","true");var wt=new window.XMLHttpRequest;wt.withCredentials=!0,wt.addEventListener("load",function(jt){De(JSON.parse(jt.target.responseText),me)},!1),wt.addEventListener("error",function(jt){console.error(jt)},!1),wt.open("POST",`${Ge.KI}/api/attachments.json`),wt.send(We)}},76621:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return _e}});var te=oe(67294),ye=oe(73935);class _e extends te.Component{constructor(Se){super(Se);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,ye.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ye}});var te=oe(67294);function ye(_e,Ke){const Se=(0,te.useRef)();(0,te.useEffect)(()=>{Se.current=_e}),(0,te.useEffect)(()=>{function Ze(){Se.current()}if(Ke!==null){let ce=setInterval(Ze,Ke);return()=>clearInterval(ce)}},[Ke])}},84959:function(Oe,ut,oe){"use strict";oe.r(ut),oe.d(ut,{default:function(){return ge}});var te=oe(67294),ye=oe(35567),_e=oe(35973),Ke=oe(22150),Se=oe(2453),Ze=oe(85673),ce=oe(71230),Ge=oe(15746),Me=oe(42563),Ee=oe(69677),Ue=oe(96074),Ae=oe(71577),Fe={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},ae=oe(49711),y=oe(65866),a=Object.defineProperty,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(de,he,me)=>he in de?a(de,he,{enumerable:!0,configurable:!0,writable:!0,value:me}):de[he]=me,ee=(de,he)=>{for(var me in he||(he={}))b.call(he,me)&&z(de,me,he[me]);if(E)for(var me of E(he))x.call(he,me)&&z(de,me,he[me]);return de},ne=(de,he,me)=>new Promise((De,We)=>{var wt=xe=>{try{gn(me.next(xe))}catch(at){We(at)}},jt=xe=>{try{gn(me.throw(xe))}catch(at){We(at)}},gn=xe=>xe.done?De(xe.value):Promise.resolve(xe.value).then(wt,jt);gn((me=me.apply(de,he)).next())});const re=({graduation:de,globalSetting:he,loading:me,user:De,dispatch:We})=>{var wt;const jt=(0,_e.useParams)(),gn=(0,_e.useLocation)(),{userInfo:xe}=De,[at]=Ke.default.useForm(),{addTopicData:Pt}=de,st=()=>ne(void 0,null,function*(){var St;const lt=at.getFieldsValue(),dt=ee({},lt);dt!=null&&dt.attachment_ids&&(dt.attachment_ids=(St=dt.attachment_ids)==null?void 0:St.map(hn=>hn.id||hn.response.id));const mt=yield(0,ae.Sv)(ee({coursesId:jt.coursesId,attachment_ids:[]},dt));mt.status?Se.ZP.error(mt.message):_e.history.push(`/classrooms/${jt.coursesId}/graduation_tasks/${jt.categoryId}`)});return(0,te.useEffect)(()=>{We({type:"graduation/addTopicDefaultData",payload:ee({},jt)})},[jt.coursesId]),te.createElement("section",{className:"edu-container"},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},xe&&te.createElement(Ze.Z,{separator:">"},te.createElement(Ze.Z.Item,null,te.createElement(_e.Link,{to:`${xe.first_category_url}`},(wt=xe==null?void 0:xe.course)==null?void 0:wt.course_name)),te.createElement(Ze.Z.Item,null,te.createElement(_e.Link,{to:`/classrooms/${jt.coursesId}/graduation_tasks/${jt.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),te.createElement(Ze.Z.Item,null,"\u65B0\u5EFA"))),te.createElement("aside",{className:[Fe.title,"mt20"].join(" ")},te.createElement(ce.Z,{style:{width:"100%"}},te.createElement(Ge.Z,{flex:"1"},te.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),te.createElement(Ge.Z,null,te.createElement(_e.Link,{className:"font16 c-light-black",to:`/classrooms/${jt.coursesId}/exercise`},"\u8FD4\u56DE"))))),te.createElement("section",{className:[Fe.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},te.createElement(Ke.default,{layout:"vertical",form:at,scrollToFirstError:!0,onFinish:St=>ne(void 0,null,function*(){st()})},te.createElement(Ke.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},te.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},te.createElement(Me.default.Option,{value:1},"\u666E\u901A"),te.createElement(Me.default.Option,{value:2},"\u5206\u7EC4"))),te.createElement(Ke.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},te.createElement(Ee.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),te.createElement(Ue.Z,null),te.createElement(Ke.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},te.createElement(ye.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),te.createElement(ce.Z,null,te.createElement(Ge.Z,null,te.createElement(Ke.default.Item,{name:"attachment_ids"},te.createElement(y.Z,null)))))),te.createElement("aside",{className:Fe.btns},te.createElement(Ae.ZP,{type:"primary",onClick:()=>{at.submit()}},"\u4FDD\u5B58"),te.createElement(_e.Link,{to:`/classrooms/${jt.coursesId}/graduation_tasks/${jt.categoryId}`},"\u53D6\u6D88")))};var ge=(0,_e.connect)(({graduation:de,loading:he,user:me,globalSetting:De})=>({graduation:de,globalSetting:De,user:me,loading:he.effects}))(re)},4440:function(Oe,ut,oe){"use strict";oe.d(ut,{$J:function(){return _e},JZ:function(){return Se},bN:function(){return ce},jP:function(){return Ze},rO:function(){return Ke}});var te=oe(33170),ye=(Ge,Me,Ee)=>new Promise((Ue,Ae)=>{var Fe=a=>{try{y(Ee.next(a))}catch(E){Ae(E)}},ae=a=>{try{y(Ee.throw(a))}catch(E){Ae(E)}},y=a=>a.done?Ue(a.value):Promise.resolve(a.value).then(Fe,ae);y((Ee=Ee.apply(Ge,Me)).next())});function _e(Ge){return(0,te.U2)(`libraries/${Ge}.json`)}function Ke(Ge){return(0,te.U2)("library_tags.json",Ge)}function Se(Ge){return ye(this,null,function*(){return(yield(0,te.IV)(`attachments/${Ge}.json`)).status===0})}function Ze(Ge){return(0,te.v_)("libraries.json",Ge)}function ce(Ge,Me){return(0,te.gz)(`libraries/${Ge}.json`,Me)}},57838:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return ye}});var te=oe(67294);function ye(){const[,_e]=te.useReducer(Ke=>Ke+1,0);return _e}},85673:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return gn}});var te=oe(94184),ye=oe.n(te),_e=oe(37419),Ke=oe(1337),Se=oe(67294),Ze=oe(96159),ce=oe(53124),Ge=oe(42922),Me=oe(56153);const Ee=xe=>{let{children:at}=xe;const{getPrefixCls:Pt}=Se.useContext(ce.E_),st=Pt("breadcrumb");return Se.createElement("li",{className:`${st}-separator`,"aria-hidden":"true"},at===""?at:at||"/")};Ee.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ee,Ae=function(xe,at){var Pt={};for(var st in xe)Object.prototype.hasOwnProperty.call(xe,st)&&at.indexOf(st)<0&&(Pt[st]=xe[st]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(xe);St<st.length;St++)at.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,st[St])&&(Pt[st[St]]=xe[st[St]]);return Pt};function Fe(xe,at){if(xe.title===void 0||xe.title===null)return null;const Pt=Object.keys(at).join("|");return typeof xe.title=="object"?xe.title:String(xe.title).replace(new RegExp(`:(${Pt})`,"g"),(st,St)=>at[St]||st)}function ae(xe,at,Pt,st){if(Pt==null)return null;const{className:St,onClick:lt}=at,dt=Ae(at,["className","onClick"]),mt=Object.assign(Object.assign({},(0,Ke.Z)(dt,{data:!0,aria:!0})),{onClick:lt});return st!==void 0?Se.createElement("a",Object.assign({},mt,{className:ye()(`${xe}-link`,St),href:st}),Pt):Se.createElement("span",Object.assign({},mt,{className:ye()(`${xe}-link`,St)}),Pt)}function y(xe,at){return(st,St,lt,dt,mt)=>{if(at)return at(st,St,lt,dt);const hn=Fe(st,St);return ae(xe,st,hn,mt)}}var a=function(xe,at){var Pt={};for(var st in xe)Object.prototype.hasOwnProperty.call(xe,st)&&at.indexOf(st)<0&&(Pt[st]=xe[st]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(xe);St<st.length;St++)at.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,st[St])&&(Pt[st[St]]=xe[st[St]]);return Pt};const E=xe=>{const{prefixCls:at,separator:Pt="/",children:st,menu:St,overlay:lt,dropdownProps:dt,href:mt}=xe,Be=(Re=>{if(St||lt){const ot=Object.assign({},dt);if(St){const At=St||{},{items:et}=At,vt=a(At,["items"]);ot.menu=Object.assign(Object.assign({},vt),{items:et==null?void 0:et.map((ue,ct)=>{var{key:Jt,title:Fn,label:xt,path:Je}=ue,Te=a(ue,["key","title","label","path"]);let be=xt!=null?xt:Fn;return Je&&(be=Se.createElement("a",{href:`${mt}${Je}`},be)),Object.assign(Object.assign({},Te),{key:Jt!=null?Jt:ct,label:be})})})}else lt&&(ot.overlay=lt);return Se.createElement(Me.Z,Object.assign({placement:"bottom"},ot),Se.createElement("span",{className:`${at}-overlay-link`},Re,Se.createElement(Ge.Z,null)))}return Re})(st);return Be!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,Be),Pt&&Se.createElement(Ue,null,Pt)):null},b=xe=>{const{prefixCls:at,children:Pt,href:st}=xe,St=a(xe,["prefixCls","children","href"]),{getPrefixCls:lt}=Se.useContext(ce.E_),dt=lt("breadcrumb",at);return Se.createElement(E,Object.assign({},St,{prefixCls:dt}),ae(dt,St,Pt,st))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=xe=>{const{componentCls:at,iconCls:Pt}=xe;return{[at]:Object.assign(Object.assign({},(0,z.Wf)(xe)),{color:xe.itemColor,fontSize:xe.fontSize,[Pt]:{fontSize:xe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:xe.linkColor,transition:`color ${xe.motionDurationMid}`,padding:`0 ${xe.paddingXXS}px`,borderRadius:xe.borderRadiusSM,height:xe.lineHeight*xe.fontSize,display:"inline-block",marginInline:-xe.marginXXS,"&:hover":{color:xe.linkHoverColor,backgroundColor:xe.colorBgTextHover}},(0,z.Qy)(xe)),"li:last-child":{color:xe.lastItemColor},[`${at}-separator`]:{marginInline:xe.separatorMargin,color:xe.separatorColor},[`${at}-link`]:{[`
|
|
> ${Pt} + span,
|
|
> ${Pt} + a
|
|
`]:{marginInlineStart:xe.marginXXS}},[`${at}-overlay-link`]:{borderRadius:xe.borderRadiusSM,height:xe.lineHeight*xe.fontSize,display:"inline-block",padding:`0 ${xe.paddingXXS}px`,marginInline:-xe.marginXXS,[`> ${Pt}`]:{marginInlineStart:xe.marginXXS,fontSize:xe.fontSizeIcon},"&:hover":{color:xe.linkHoverColor,backgroundColor:xe.colorBgTextHover,a:{color:xe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${xe.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",xe=>{const at=(0,ne.TS)(xe,{});return[re(at)]},xe=>({itemColor:xe.colorTextDescription,lastItemColor:xe.colorText,iconFontSize:xe.fontSize,linkColor:xe.colorTextDescription,linkHoverColor:xe.colorText,separatorColor:xe.colorTextDescription,separatorMargin:xe.marginXS})),de=function(xe,at){var Pt={};for(var st in xe)Object.prototype.hasOwnProperty.call(xe,st)&&at.indexOf(st)<0&&(Pt[st]=xe[st]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(xe);St<st.length;St++)at.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,st[St])&&(Pt[st[St]]=xe[st[St]]);return Pt};function he(xe){const{breadcrumbName:at,children:Pt}=xe,st=de(xe,["breadcrumbName","children"]),St=Object.assign({title:at},st);return Pt&&(St.menu={items:Pt.map(lt=>{var{breadcrumbName:dt}=lt,mt=de(lt,["breadcrumbName"]);return Object.assign(Object.assign({},mt),{title:dt})})}),St}function me(xe,at){return(0,Se.useMemo)(()=>xe||(at?at.map(he):null),[xe,at])}var De=function(xe,at){var Pt={};for(var st in xe)Object.prototype.hasOwnProperty.call(xe,st)&&at.indexOf(st)<0&&(Pt[st]=xe[st]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(xe);St<st.length;St++)at.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,st[St])&&(Pt[st[St]]=xe[st[St]]);return Pt};const We=(xe,at)=>{if(at===void 0)return at;let Pt=(at||"").replace(/^\//,"");return Object.keys(xe).forEach(st=>{Pt=Pt.replace(`:${st}`,xe[st])}),Pt},wt=xe=>{const{prefixCls:at,separator:Pt="/",style:st,className:St,rootClassName:lt,routes:dt,items:mt,children:hn,itemRender:Be,params:Re={}}=xe,ot=De(xe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:At,direction:et,breadcrumb:vt}=Se.useContext(ce.E_);let ue;const ct=At("breadcrumb",at),[Jt,Fn]=ge(ct),xt=me(mt,dt),Je=y(ct,Be);if(xt&&xt.length>0){const qe=[],Ye=mt||dt;ue=xt.map((yt,Rt)=>{const{path:Ht,key:en,type:dn,menu:sn,overlay:Nt,onClick:wn,className:cn,separator:jn,dropdownProps:xn}=yt,Pn=We(Re,Ht);Pn!==void 0&&qe.push(Pn);const pe=en!=null?en:Rt;if(dn==="separator")return Se.createElement(Ue,{key:pe},jn);const Ne={},Qe=Rt===xt.length-1;sn?Ne.menu=sn:Nt&&(Ne.overlay=Nt);let{href:pt}=yt;return qe.length&&Pn!==void 0&&(pt=`#/${qe.join("/")}`),Se.createElement(E,Object.assign({key:pe},Ne,(0,Ke.Z)(yt,{data:!0,aria:!0}),{className:cn,dropdownProps:xn,href:pt,separator:Qe?"":Pt,onClick:wn,prefixCls:ct}),Je(yt,Re,Ye,qe,pt))})}else if(hn){const qe=(0,_e.Z)(hn).length;ue=(0,_e.Z)(hn).map((Ye,yt)=>{if(!Ye)return Ye;const Rt=yt===qe-1;return(0,Ze.Tm)(Ye,{separator:Rt?"":Pt,key:yt})})}const Te=ye()(ct,vt==null?void 0:vt.className,{[`${ct}-rtl`]:et==="rtl"},St,lt,Fn),be=Object.assign(Object.assign({},vt==null?void 0:vt.style),st);return Jt(Se.createElement("nav",Object.assign({className:Te,style:be},ot),Se.createElement("ol",null,ue)))};wt.Item=x,wt.Separator=Ue;var jt=wt,gn=jt},96074:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Ae}});var te=oe(94184),ye=oe.n(te),_e=oe(67294),Ke=oe(53124),Se=oe(14747),Ze=oe(67968),ce=oe(45503);const Ge=Fe=>{const{componentCls:ae,sizePaddingEdgeHorizontal:y,colorSplit:a,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=Fe;return{[ae]:Object.assign(Object.assign({},(0,Se.Wf)(Fe)),{borderBlockStart:`${E}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Fe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${Fe.dividerHorizontalWithTextGutterMargin}px 0`,color:Fe.colorTextHeading,fontWeight:500,fontSize:Fe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ae}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ae}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ae}-with-text${ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ae}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ae}-with-text`]:{color:Fe.colorText,fontWeight:"normal",fontSize:Fe.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:y}}})}};var Me=(0,Ze.Z)("Divider",Fe=>{const ae=(0,ce.TS)(Fe,{dividerHorizontalWithTextGutterMargin:Fe.margin,dividerHorizontalGutterMargin:Fe.marginLG,sizePaddingEdgeHorizontal:0});return[Ge(ae)]},Fe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Fe.marginXS})),Ee=function(Fe,ae){var y={};for(var a in Fe)Object.prototype.hasOwnProperty.call(Fe,a)&&ae.indexOf(a)<0&&(y[a]=Fe[a]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(Fe);E<a.length;E++)ae.indexOf(a[E])<0&&Object.prototype.propertyIsEnumerable.call(Fe,a[E])&&(y[a[E]]=Fe[a[E]]);return y},Ae=Fe=>{const{getPrefixCls:ae,direction:y,divider:a}=_e.useContext(Ke.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:ne,children:re,dashed:ge,plain:de,style:he}=Fe,me=Ee(Fe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),De=ae("divider",E),[We,wt]=Me(De),jt=x.length>0?`-${x}`:x,gn=!!re,xe=x==="left"&&z!=null,at=x==="right"&&z!=null,Pt=ye()(De,a==null?void 0:a.className,wt,`${De}-${b}`,{[`${De}-with-text`]:gn,[`${De}-with-text${jt}`]:gn,[`${De}-dashed`]:!!ge,[`${De}-plain`]:!!de,[`${De}-rtl`]:y==="rtl",[`${De}-no-default-orientation-margin-left`]:xe,[`${De}-no-default-orientation-margin-right`]:at},ee,ne),st=_e.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),St=Object.assign(Object.assign({},xe&&{marginLeft:st}),at&&{marginRight:st});return We(_e.createElement("div",Object.assign({className:Pt,style:Object.assign(Object.assign({},a==null?void 0:a.style),he)},me,{role:"separator"}),re&&b!=="vertical"&&_e.createElement("span",{className:`${De}-inner-text`,style:St},re)))}},56153:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Sg}});var te=oe(67294),ye=oe.t(te,2),_e=oe(91034),Ke=oe(94184),Se=oe.n(Ke),Ze=oe(87462),ce=oe(4942),Ge=oe(97685),Me=oe(45987),Ee=oe(1413),Ue=oe(73935);function Ae(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Fe={};function ae(ie,le){}function y(ie,le){}function a(){Fe={}}function E(ie,le,se){!le&&!Fe[se]&&(ie(!1,se),Fe[se]=!0)}function b(ie,le){E(ae,ie,le)}function x(ie,le){E(y,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(ke){ge(ke,Ce)})}}function he(){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(ke,He){return ke===Ce[He]})})}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 De=te.createContext(null),We=De,wt=oe(74902),jt=Ae()?te.useLayoutEffect:te.useEffect,gn=jt,xe=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}},[])},at=[];function Pt(ie,le){var se=te.useState(function(){if(!Ae())return null;var qt=document.createElement("div");return qt}),fe=(0,Ge.Z)(se,1),Ce=fe[0],ke=te.useRef(!1),He=te.useContext(We),ht=te.useState(at),$t=(0,Ge.Z)(ht,2),bt=$t[0],Zt=$t[1],Et=He||(ke.current?void 0:function(qt){Zt(function(Mn){var mn=[qt].concat((0,wt.Z)(Mn));return mn})});function Wt(){Ce.parentElement||document.body.appendChild(Ce),ke.current=!0}function Dt(){var qt;(qt=Ce.parentElement)===null||qt===void 0||qt.removeChild(Ce),ke.current=!1}return gn(function(){return ie?He?He(Wt):Wt():Dt(),Dt},[ie]),gn(function(){bt.length&&(bt.forEach(function(qt){return qt()}),Zt(at))},[bt]),[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 St="data-rc-order",lt="rc-util-key",dt=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 hn(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function Be(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function Re(ie){return Array.from((dt.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function ot(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ae())return null;var se=le.csp,fe=le.prepend,Ce=document.createElement("style");Ce.setAttribute(St,Be(fe)),se!=null&&se.nonce&&(Ce.nonce=se==null?void 0:se.nonce),Ce.innerHTML=ie;var ke=hn(le),He=ke.firstChild;if(fe){if(fe==="queue"){var ht=Re(ke).filter(function($t){return["prepend","prependQueue"].includes($t.getAttribute(St))});if(ht.length)return ke.insertBefore(Ce,ht[ht.length-1].nextSibling),Ce}ke.insertBefore(Ce,He)}else ke.appendChild(Ce);return Ce}function At(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=hn(le);return Re(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=At(ie,le);if(se){var fe=hn(le);fe.removeChild(se)}}function vt(ie,le){var se=dt.get(ie);if(!se||!st(document,se)){var fe=ot("",le),Ce=fe.parentNode;dt.set(ie,Ce),ie.removeChild(fe)}}function ue(){dt.clear()}function ct(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fe=hn(se);vt(fe,se);var Ce=At(le,se);if(Ce){var ke,He;if((ke=se.csp)!==null&&ke!==void 0&&ke.nonce&&Ce.nonce!==((He=se.csp)===null||He===void 0?void 0:He.nonce)){var ht;Ce.nonce=(ht=se.csp)===null||ht===void 0?void 0:ht.nonce}return Ce.innerHTML!==ie&&(Ce.innerHTML=ie),Ce}var $t=ot(ie,se);return $t.setAttribute(mt(se),le),$t}var Jt;function Fn(ie){if(typeof document=="undefined")return 0;if(ie||Jt===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 ke=le.offsetWidth;Ce===ke&&(ke=se.clientWidth),document.body.removeChild(se),Jt=Ce-ke}return Jt}function xt(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?Fn():se}function Je(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:xt(se),height:xt(fe)}}function Te(){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 Ye(ie){var le=!!ie,se=te.useState(function(){return qe+=1,"".concat(be,"_").concat(qe)}),fe=(0,Ge.Z)(se,1),Ce=fe[0];gn(function(){if(le){var ke=Je(document.body).width,He=Te();ct(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(He?"width: calc(100% - ".concat(ke,"px);"):"",`
|
|
}`),Ce)}else et(Ce);return function(){et(Ce)}},[le,Ce])}var yt=!1;function Rt(ie){return typeof ie=="boolean"&&(yt=ie),yt}var Ht=function(le){return le===!1?!1:!Ae()||!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,ke=ie.debug,He=ie.autoDestroy,ht=He===void 0?!0:He,$t=ie.children,bt=te.useState(se),Zt=(0,Ge.Z)(bt,2),Et=Zt[0],Wt=Zt[1],Dt=Et||se;te.useEffect(function(){(ht||se)&&Wt(se)},[se,ht]);var qt=te.useState(function(){return Ht(Ce)}),Mn=(0,Ge.Z)(qt,2),mn=Mn[0],In=Mn[1];te.useEffect(function(){var ha=Ht(Ce);In(ha!=null?ha:null)});var yn=Pt(Dt&&!mn,ke),on=(0,Ge.Z)(yn,2),kt=on[0],ra=on[1],qn=mn!=null?mn:kt;Ye(fe&&se&&Ae()&&(qn===kt||qn===document.body));var ia=null;if($t&&me($t)&&le){var ya=$t;ia=ya.ref}var ja=he(ia,le);if(!Dt||!Ae()||mn===void 0)return null;var Un=qn===!1||Rt(),Gn=$t;return le&&(Gn=te.cloneElement($t,{ref:ja})),te.createElement(We.Provider,{value:ra},Un?Gn:(0,Ue.createPortal)(Gn,qn))}),dn=en,sn=dn,Nt=oe(48555);function wn(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function cn(ie){return wn(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function jn(ie){var le;return ie==null||(le=ie.getRootNode)===null||le===void 0?void 0:le.call(ie)}function xn(ie){return jn(ie)instanceof ShadowRoot}function Pn(ie){return xn(ie)?jn(ie):null}function pe(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var fe,Ce=arguments.length,ke=new Array(Ce),He=0;He<Ce;He++)ke[He]=arguments[He];return(fe=le.current)===null||fe===void 0?void 0:fe.call.apply(fe,[le].concat(ke))},[]);return se}function Ne(){var ie=(0,Ee.Z)({},ye);return ie.useId}var Qe=0;function pt(){}var Ft=Ne(),_t=Ft?function(le){var se=Ft();return le||se}:function(le){var se=te.useState("ssr-id"),fe=(0,Ge.Z)(se,2),Ce=fe[0],ke=fe[1];return te.useEffect(function(){var He=Qe;Qe+=1,ke("rc_unique_".concat(He))},[]),le||Ce};function Qt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var zt=Qt()?te.useLayoutEffect:te.useEffect,Ut=function(le,se){var fe=te.useRef(!0);zt(function(){return le(fe.current)},se),zt(function(){return fe.current=!1,function(){fe.current=!0}},[])},pn=function(le,se){Ut(function(fe){if(!fe)return le()},se)},tn=Ut,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))},Xn=te.createContext(null),_n=Xn;function la(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function Dn(ie,le,se,fe){return te.useMemo(function(){var Ce=la(se!=null?se:le),ke=la(fe!=null?fe:le),He=new Set(Ce),ht=new Set(ke);return ie&&(He.has("hover")&&(He.delete("hover"),He.add("click")),ht.has("hover")&&(ht.delete("hover"),ht.add("click"))),[He,ht]},[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(),ke=Ce.width,He=Ce.height;if(ke||He)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,ke=Object.keys(ie),He=0;He<ke.length;He+=1){var ht,$t=ke[He];if(Yn((ht=ie[$t])===null||ht===void 0?void 0:ht.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),ke=Ce.overflowX,He=Ce.overflowY,ht=Ce.overflow;[ke,He,ht].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),ke=Ce.overflow,He=Ce.overflowClipMargin,ht=Ce.borderTopWidth,$t=Ce.borderBottomWidth,bt=Ce.borderLeftWidth,Zt=Ce.borderRightWidth,Et=fe.getBoundingClientRect(),Wt=fe.offsetHeight,Dt=fe.clientHeight,qt=fe.offsetWidth,Mn=fe.clientWidth,mn=ta(ht),In=ta($t),yn=ta(bt),on=ta(Zt),kt=Aa(Math.round(Et.width/qt*1e3)/1e3),ra=Aa(Math.round(Et.height/Wt*1e3)/1e3),qn=(qt-Mn-yn-on)*kt,ia=(Wt-Dt-mn-In)*ra,ya=mn*ra,ja=In*ra,Un=yn*kt,Gn=on*kt,ha=0,Ea=0;if(ke==="clip"){var ga=ta(He);ha=ga*kt,Ea=ga*ra}var Nn=Et.x+Un-ha,Vn=Et.y+ya-Ea,Ln=Nn+Et.width+2*ha-Un-Gn-qn,Ha=Vn+Et.height+2*Ea-ya-ja-ia;se.left=Math.max(se.left,Nn),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,Ge.Z)(se,2),Ce=fe[0],ke=fe[1];return[eo(ie.width,Ce),eo(ie.height,ke)]}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,ke;return se==="t"?ke=ie.y:se==="b"?ke=ie.y+ie.height:ke=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:ke}}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 ft(ie,le,se,fe,Ce,ke,He){var ht=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,Ge.Z)(ht,2),bt=$t[0],Zt=$t[1],Et=te.useRef(0),Wt=te.useMemo(function(){return le?Pa(le):[]},[le]),Dt=te.useRef({}),qt=function(){Dt.current={}};ie||qt();var Mn=pe(function(){if(le&&se&&ie){let Co=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Za,zr=Kn.x+ti,Lr=Kn.y+ur,ni=zr+oa,Li=Lr+Ca,bi=Math.max(zr,Yo.left),wi=Math.max(Lr,Yo.top),Ei=Math.min(ni,Yo.right),Xt=Math.min(Li,Yo.bottom);return Math.max(0,(Ei-bi)*(Xt-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,Gn=kt.style.left,ha=kt.style.top,Ea=kt.style.right,ga=kt.style.bottom,Nn=(0,Ee.Z)((0,Ee.Z)({},Ce[fe]),ke),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,_a=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:_a},Uo={left:-mo,top:-Zn,right:uo-mo,bottom:So-Zn},qa=Nn.htmlRegion,oo="visible",Oo="visibleFirst";qa!=="scroll"&&qa!==Oo&&(qa=oo);var ro=qa===Oo,da=Ua(Uo,Wt),rn=Ua(Ro,Wt),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=Gn,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||wn(se)&&!Tn(se))return;var ii=Nn.offset,Rr=Nn.targetOffset,Bo=Qa(Kn,ii),kr=(0,Ge.Z)(Bo,2),$o=kr[0],Mo=kr[1],jr=Qa(Ln,Rr),No=(0,Ge.Z)(jr,2),gi=No[0],di=No[1];Ln.x-=gi,Ln.y-=di;var Pr=Nn.points||[],ho=(0,Ge.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)({},Nn),Wa=Hr.x-Cr.x+$o,ea=Hr.y-Cr.y+Mo,zo=Co(Wa,ea),Go=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=Nn.overflow||{},Zr=vr.adjustX,$r=vr.adjustY,Mr=vr.shiftX,Wr=vr.shiftY,Nr=function(ur){return typeof ur=="boolean"?ur:ur>=0},jo,nr,ar,or;Zo();var Or=Nr($r),Ur=Po[0]===ko[0];if(Or&&Po[0]==="t"&&(nr>co.bottom||Dt.current.bt)){var Ao=ea;Ur?Ao-=Ca-Ta:Ao=Fr.y-Eo.y-Mo;var Vr=Co(Wa,Ao),vo=Co(Wa,Ao,rn);Vr>zo||Vr===zo&&(!ro||vo>=Go)?(Dt.current.bt=!0,ea=Ao,Mo=-Mo,Ko.points=[ve(Po,0),ve(ko,0)]):Dt.current.bt=!1}if(Or&&Po[0]==="b"&&(jo<co.top||Dt.current.tb)){var rr=ea;Ur?rr+=Ca-Ta:rr=Br.y-xr.y-Mo;var Kr=Co(Wa,rr),si=Co(Wa,rr,rn);Kr>zo||Kr===zo&&(!ro||si>=Go)?(Dt.current.tb=!0,ea=rr,Mo=-Mo,Ko.points=[ve(Po,0),ve(ko,0)]):Dt.current.tb=!1}var Xr=Nr(Zr),_r=Po[1]===ko[1];if(Xr&&Po[1]==="l"&&(or>co.right||Dt.current.rl)){var ir=Wa;_r?ir-=oa-wo:ir=Fr.x-Eo.x-$o;var Yr=Co(ir,ea),ui=Co(ir,ea,rn);Yr>zo||Yr===zo&&(!ro||ui>=Go)?(Dt.current.rl=!0,Wa=ir,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):Dt.current.rl=!1}if(Xr&&Po[1]==="r"&&(ar<co.left||Dt.current.lr)){var gr=Wa;_r?gr+=oa-wo:gr=Br.x-xr.x-$o;var dr=Co(gr,ea),Tr=Co(gr,ea,rn);dr>zo||dr===zo&&(!ro||Tr>=Go)?(Dt.current.lr=!0,Wa=gr,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):Dt.current.lr=!1}Zo();var lr=Mr===!0?0:Mr;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 Xo=Wr===!0?0:Wr;typeof Xo=="number"&&(jo<rn.top&&(ea-=jo-rn.top-Mo,Ln.y+Ta<rn.top+Xo&&(ea+=Ln.y-rn.top+Ta-Xo)),nr>rn.bottom&&(ea-=nr-rn.bottom-Mo,Ln.y>rn.bottom-Xo&&(ea+=Ln.y-rn.bottom+Xo)));var _o=Kn.x+Wa,sr=_o+oa,pr=Kn.y+ea,yr=pr+Ca,Ho=Ln.x,mi=Ho+wo,Qr=Ln.y,ci=Qr+Ta,Jr=Math.max(_o,Ho),fi=Math.min(sr,mi),Si=(Jr+fi)/2,hi=Si-_o,qr=Math.max(pr,Qr),Pi=Math.min(yr,ci),vi=(qr+Pi)/2,ei=vi-pr;He==null||He(le,Ko);var pi=To.right-Kn.x-(Wa+Kn.width),yi=To.bottom-Kn.y-(ea+Kn.height);Zt({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&&Mn()})},In=function(){Zt(function(on){return(0,Ee.Z)((0,Ee.Z)({},on),{},{ready:!1})})};return tn(In,[fe]),tn(function(){ie||In()},[ie]),[bt.ready,bt.offsetX,bt.offsetY,bt.offsetR,bt.offsetB,bt.arrowX,bt.arrowY,bt.scaleX,bt.scaleY,bt.align,mn]}function Tt(ie,le,se,fe,Ce){tn(function(){if(ie&&le&&se){let Et=function(){fe(),Ce()};var ke=le,He=se,ht=Pa(ke),$t=Pa(He),bt=Rn(He),Zt=new Set([bt].concat((0,wt.Z)(ht),(0,wt.Z)($t)));return Zt.forEach(function(Wt){Wt.addEventListener("scroll",Et,{passive:!0})}),bt.addEventListener("resize",Et,{passive:!0}),fe(),function(){Zt.forEach(function(Wt){Wt.removeEventListener("scroll",Et),bt.removeEventListener("resize",Et)})}}},[ie,le,se])}function Gt(ie){var le=React.useRef(!1),se=React.useState(ie),fe=_slicedToArray(se,2),Ce=fe[0],ke=fe[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function He(ht,$t){$t&&le.current||ke(ht)}return[Ce,He]}function kn(ie){return ie!==void 0}function un(ie,le){var se=le||{},fe=se.defaultValue,Ce=se.value,ke=se.onChange,He=se.postState,ht=useState(function(){return kn(Ce)?Ce:kn(fe)?typeof fe=="function"?fe():fe:typeof ie=="function"?ie():ie}),$t=_slicedToArray(ht,2),bt=$t[0],Zt=$t[1],Et=Ce!==void 0?Ce:bt,Wt=He?He(Et):Et,Dt=useEvent(ke),qt=useState([Et]),Mn=_slicedToArray(qt,2),mn=Mn[0],In=Mn[1];useLayoutUpdateEffect(function(){var on=mn[0];bt!==on&&Dt(bt,on)},[mn]),useLayoutUpdateEffect(function(){kn(Ce)||Zt(Ce)},[Ce]);var yn=useEvent(function(on,kt){Zt(on,kt),In([Et],kt)});return[Wt,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 Ia(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function rt(){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(ke){Ia(ke,Ce)})}}function En(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return na(function(){return rt.apply(void 0,le)},le,function(fe,Ce){return fe.length!==Ce.length||fe.every(function(ke,He){return ke!==Ce[He]})})}function Pe(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 Ie(ie){return!isValidElement(ie)||isFragment(ie)?!1:Pe(ie)}function $e(ie,le,se,fe){if(!le.length)return se;var Ce=_toArray(le),ke=Ce[0],He=Ce.slice(1),ht;return!ie&&typeof ke=="number"?ht=[]:Array.isArray(ie)?ht=_toConsumableArray(ie):ht=_objectSpread({},ie),fe&&se===void 0&&He.length===1?delete ht[ke][He[0]]:ht[ke]=$e(ht[ke],He,se,fe),ht}function ze(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:$e(ie,le,se,fe)}function gt(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function Xe(ie){return Array.isArray(ie)?[]:{}}var nt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ve(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var fe=Xe(le[0]);return le.forEach(function(Ce){function ke(He,ht){var $t=new Set(ht),bt=get(Ce,He),Zt=Array.isArray(bt);if(Zt||gt(bt)){if(!$t.has(bt)){$t.add(bt);var Et=get(fe,He);Zt?fe=ze(fe,He,[]):(!Et||_typeof(Et)!=="object")&&(fe=ze(fe,He,Xe(bt))),nt(bt).forEach(function(Wt){ke([].concat(_toConsumableArray(He),[Wt]),$t)})}}else fe=ze(fe,He,bt)}ke([])}),fe}var Kt={},Mt=[],nn=function(le){Mt.push(le)};function vn(ie,le){if(0)var se}function $n(ie,le){if(0)var se}function je(){Kt={}}function $a(ie,le,se){!le&&!Kt[se]&&(ie(!1,se),Kt[se]=!0)}function La(ie,le){$a(vn,ie,le)}function Da(ie,le){$a($n,ie,le)}La.preMessage=nn,La.resetWarned=je,La.noteOnce=Da;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 Vt=0,it=new Map;function fn(ie){it.delete(ie)}var Sn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vt+=1;var fe=Vt;function Ce(ke){if(ke===0)fn(fe),le();else{var He=tt(function(){Ce(ke-1)});it.set(fe,He)}}return Ce(se),fe};Sn.cancel=function(ie){var le=it.get(ie);return fn(le),Ct(le)};var sa=Sn;function ca(ie,le,se,fe,Ce,ke,He,ht){var $t=te.useRef(ie),bt=te.useRef(!1);$t.current!==ie&&(bt.current=!0,$t.current=ie),te.useEffect(function(){var Zt=sa(function(){bt.current=!1});return function(){sa.cancel(Zt)}},[ie]),te.useEffect(function(){if(le&&fe&&(!Ce||ke)){var Zt=function(){var Un=!1,Gn=function(ga){var Nn=ga.target;Un=He(Nn)},ha=function(ga){var Nn=ga.target;!bt.current&&$t.current&&!Un&&!He(Nn)&&ht(!1)};return[Gn,ha]},Et=Zt(),Wt=(0,Ge.Z)(Et,2),Dt=Wt[0],qt=Wt[1],Mn=Zt(),mn=(0,Ge.Z)(Mn,2),In=mn[0],yn=mn[1],on=Rn(fe);on.addEventListener("mousedown",Dt,!0),on.addEventListener("click",qt,!0),on.addEventListener("contextmenu",qt,!0);var kt=Pn(se);if(kt&&(kt.addEventListener("mousedown",In,!0),kt.addEventListener("click",yn,!0),kt.addEventListener("contextmenu",yn,!0)),0)var ra,qn,ia,ya;return function(){on.removeEventListener("mousedown",Dt,!0),on.removeEventListener("click",qt,!0),on.removeEventListener("contextmenu",qt,!0),kt&&(kt.removeEventListener("mousedown",In,!0),kt.removeEventListener("click",yn,!0),kt.removeEventListener("contextmenu",yn,!0))}}},[le,se,fe,Ce,ke])}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 Io(ie,le){var se={animationend:to("Animation","AnimationEnd"),transitionend:to("Transition","TransitionEnd")};return ie&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var xo=Io(Ae(),typeof window!="undefined"?window:{}),Ka={};if(Ae()){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 ke=se[Ce];if(Object.prototype.hasOwnProperty.call(le,ke)&&ke in Ka)return io[ie]=le[ke],io[ie]}return""}var yo=po("animationend"),Xa=po("transitionend"),Ra=!!(yo&&Xa),fo=yo||"animationend",an=Xa||"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",Ma="appear",Ja="enter",ba="leave",Wo="none",wa="prepare",Qn="start",Jn="active",no="end";function Do(ie){var le=te.useRef(!1),se=te.useState(ie),fe=(0,Ge.Z)(se,2),Ce=fe[0],ke=fe[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function He(ht,$t){$t&&le.current||ke(ht)}return[Ce,He]}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(ke){if(ke===0)mr(fe),le();else{var He=Qo(function(){Ce(ke-1)});Jo.set(fe,He)}}return Ce(se),fe};It.cancel=function(ie){var le=Jo.get(ie);return mr(le),br(le)};var Lt=It,Bt=function(){var ie=te.useRef(null);function le(){Lt.cancel(ie.current)}function se(fe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var ke=Lt(function(){Ce<=1?fe({isCanceled:function(){return ke!==ie.current}}):se(fe,Ce-1)});ie.current=ke}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Ot=Ae()?te.useLayoutEffect:te.useEffect,An=Ot,Sa=[wa,Qn,Jn,no],ka=!1,Na=!0;function xa(ie){return ie===Jn||ie===no}var Yt=function(ie,le){var se=Do(Wo),fe=(0,Ge.Z)(se,2),Ce=fe[0],ke=fe[1],He=Bt(),ht=(0,Ge.Z)(He,2),$t=ht[0],bt=ht[1];function Zt(){ke(wa,!0)}return An(function(){if(Ce!==Wo&&Ce!==no){var Et=Sa.indexOf(Ce),Wt=Sa[Et+1],Dt=le(Ce);Dt===ka?ke(Wt,!0):$t(function(qt){function Mn(){qt.isCanceled()||ke(Wt,!0)}Dt===!0?Mn():Promise.resolve(Dt).then(Mn)})}},[ie,Ce]),te.useEffect(function(){return function(){bt()}},[]),[Zt,Ce]},Cn=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var fe=te.useCallback(function(He){se.current(He)},[]);function Ce(He){He&&(He.removeEventListener(an,fe),He.removeEventListener(fo,fe))}function ke(He){le.current&&le.current!==He&&Ce(le.current),He&&He!==le.current&&(He.addEventListener(an,fe),He.addEventListener(fo,fe),le.current=He)}return te.useEffect(function(){return function(){Ce(le.current)}},[]),[ke,Ce]};function zn(ie,le,se,fe){var Ce=fe.motionEnter,ke=Ce===void 0?!0:Ce,He=fe.motionAppear,ht=He===void 0?!0:He,$t=fe.motionLeave,bt=$t===void 0?!0:$t,Zt=fe.motionDeadline,Et=fe.motionLeaveImmediately,Wt=fe.onAppearPrepare,Dt=fe.onEnterPrepare,qt=fe.onLeavePrepare,Mn=fe.onAppearStart,mn=fe.onEnterStart,In=fe.onLeaveStart,yn=fe.onAppearActive,on=fe.onEnterActive,kt=fe.onLeaveActive,ra=fe.onAppearEnd,qn=fe.onEnterEnd,ia=fe.onLeaveEnd,ya=fe.onVisibleChanged,ja=Do(),Un=(0,Ge.Z)(ja,2),Gn=Un[0],ha=Un[1],Ea=Do(Fa),ga=(0,Ge.Z)(Ea,2),Nn=ga[0],Vn=ga[1],Ln=Do(null),Ha=(0,Ge.Z)(Ln,2),Kn=Ha[0],Va=Ha[1],so=(0,te.useRef)(!1),_a=(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;Nn===Ma&&Za?co=ra==null?void 0:ra(rn,da):Nn===Ja&&Za?co=qn==null?void 0:qn(rn,da):Nn===ba&&Za&&(co=ia==null?void 0:ia(rn,da)),Nn!==Fa&&Za&&co!==!1&&(Vn(Fa,!0),Va(null,!0))}}var mo=Cn(Zn),Ca=(0,Ge.Z)(mo,1),oa=Ca[0],Ta=te.useMemo(function(){var da,rn,Za;switch(Nn){case Ma:return da={},(0,ce.Z)(da,wa,Wt),(0,ce.Z)(da,Qn,Mn),(0,ce.Z)(da,Jn,yn),da;case Ja:return rn={},(0,ce.Z)(rn,wa,Dt),(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,In),(0,ce.Z)(Za,Jn,kt),Za;default:return{}}},[Nn]),wo=Yt(Nn,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()),Zt>0&&(clearTimeout(_a.current),_a.current=setTimeout(function(){Zn({deadline:!0})},Zt))),Na}),Ro=(0,Ge.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&&ht&&(rn=Ma),da&&le&&ke&&(rn=Ja),(da&&!le&&bt||!da&&Et&&!le&&bt)&&(rn=ba),rn&&(Vn(rn),Uo())}},[le]),(0,te.useEffect)(function(){(Nn===Ma&&!ht||Nn===Ja&&!ke||Nn===ba&&!bt)&&Vn(Fa)},[ht,ke,bt]),(0,te.useEffect)(function(){return function(){so.current=!1,clearTimeout(_a.current)}},[]);var Oo=te.useRef(!1);(0,te.useEffect)(function(){Gn&&(Oo.current=!0),Gn!==void 0&&Nn===Fa&&((Oo.current||Gn)&&(ya==null||ya(Gn)),Oo.current=!0)},[Gn,Nn]);var ro=Kn;return Ta[wa]&&qa===Qn&&(ro=(0,Ee.Z)({transition:"none"},ro)),[Nn,qa,ro,Gn!=null?Gn:le]}var bn=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,bn.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,ke){var He=Ce.visible,ht=He===void 0?!0:He,$t=Ce.removeOnLeave,bt=$t===void 0?!0:$t,Zt=Ce.forceRender,Et=Ce.children,Wt=Ce.motionName,Dt=Ce.leavedClassName,qt=Ce.eventProps,Mn=se(Ce),mn=(0,te.useRef)(),In=(0,te.useRef)();function yn(){try{return mn.current instanceof HTMLElement?mn.current:Fo(In.current)}catch(Ln){return null}}var on=zn(Mn,ht,yn,Ce),kt=(0,Ge.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(ke,Ln)},[ke]),Gn,ha=(0,Ee.Z)((0,Ee.Z)({},qt),{},{visible:ht});if(!Et)Gn=null;else if(ra===Fa||!se(Ce))ya?Gn=Et((0,Ee.Z)({},ha),Un):!bt&&ja.current&&Dt?Gn=Et((0,Ee.Z)((0,Ee.Z)({},ha),{},{className:Dt}),Un):Zt||!bt&&!Dt?Gn=Et((0,Ee.Z)((0,Ee.Z)({},ha),{},{style:{display:"none"}}),Un):Gn=null;else{var Ea,ga;qn===wa?ga="prepare":xa(qn)?ga="active":qn===Qn&&(ga="start"),Gn=Et((0,Ee.Z)((0,Ee.Z)({},ha),{},{className:Se()(pa(Wt,ra),(Ea={},(0,ce.Z)(Ea,pa(Wt,"".concat(ra,"-").concat(ga)),ga),(0,ce.Z)(Ea,Wt,typeof Wt=="string"),Ea)),style:ia}),Un)}if(te.isValidElement(Gn)&&me(Gn)){var Nn=Gn,Vn=Nn.ref;Vn||(Gn=te.cloneElement(Gn,{ref:Un}))}return te.createElement(bo,{ref:In},Gn)});return fe.displayName="CSSMotion",fe}var Gr=Oa(Ra),Ar=oe(97326),cr="add",Er="keep",qo="remove",lo="removed";function Ir(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,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(Ir)}function Dr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],fe=0,Ce=le.length,ke=fr(ie),He=fr(le);ke.forEach(function(bt){for(var Zt=!1,Et=fe;Et<Ce;Et+=1){var Wt=He[Et];if(Wt.key===bt.key){fe<Et&&(se=se.concat(He.slice(fe,Et).map(function(Dt){return(0,Ee.Z)((0,Ee.Z)({},Dt),{},{status:cr})})),fe=Et),se.push((0,Ee.Z)((0,Ee.Z)({},Wt),{},{status:Er})),fe+=1,Zt=!0;break}}Zt||se.push((0,Ee.Z)((0,Ee.Z)({},bt),{},{status:qo}))}),fe<Ce&&(se=se.concat(He.slice(fe).map(function(bt){return(0,Ee.Z)((0,Ee.Z)({},bt),{},{status:cr})})));var ht={};se.forEach(function(bt){var Zt=bt.key;ht[Zt]=(ht[Zt]||0)+1});var $t=Object.keys(ht).filter(function(bt){return ht[bt]>1});return $t.forEach(function(bt){se=se.filter(function(Zt){var Et=Zt.key,Wt=Zt.status;return Et!==bt||Wt!==qo}),se.forEach(function(Zt){Zt.key===bt&&(Zt.status=Er)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Mi=["status"],Ni=["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]:Gr,se=function(fe){(0,Ba.Z)(ke,fe);var Ce=(0,Lo.Z)(ke);function ke(){var He;(0,bn.Z)(this,ke);for(var ht=arguments.length,$t=new Array(ht),bt=0;bt<ht;bt++)$t[bt]=arguments[bt];return He=Ce.call.apply(Ce,[this].concat($t)),(0,ce.Z)((0,Ar.Z)(He),"state",{keyEntities:[]}),(0,ce.Z)((0,Ar.Z)(He),"removeKey",function(Zt){var Et=He.state.keyEntities,Wt=Et.map(function(Dt){return Dt.key!==Zt?Dt:(0,Ee.Z)((0,Ee.Z)({},Dt),{},{status:lo})});return He.setState({keyEntities:Wt}),Wt.filter(function(Dt){var qt=Dt.status;return qt!==lo}).length}),He}return(0,Wn.Z)(ke,[{key:"render",value:function(){var ht=this,$t=this.state.keyEntities,bt=this.props,Zt=bt.component,Et=bt.children,Wt=bt.onVisibleChanged,Dt=bt.onAllRemoved,qt=(0,Me.Z)(bt,$i),Mn=Zt||te.Fragment,mn={};return Ni.forEach(function(In){mn[In]=qt[In],delete qt[In]}),delete qt.keys,te.createElement(Mn,qt,$t.map(function(In){var yn=In.status,on=(0,Me.Z)(In,Mi),kt=yn===cr||yn===Er;return te.createElement(le,(0,Ze.Z)({},mn,{key:on.key,visible:kt,eventProps:on,onVisibleChanged:function(qn){if(Wt==null||Wt(qn,{key:on.key}),!qn){var ia=ht.removeKey(on.key);ia===0&&Dt&&Dt()}}}),Et)}))}}],[{key:"getDerivedStateFromProps",value:function(ht,$t){var bt=ht.keys,Zt=$t.keyEntities,Et=fr(bt),Wt=Dr(Zt,Et);return{keyEntities:Wt.filter(function(Dt){var qt=Zt.find(function(Mn){var mn=Mn.key;return Dt.key===mn});return!(qt&&qt.status===lo&&Dt.status===qo)})}}}]),ke}(te.Component);return(0,ce.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ra),Fi=Gr;function Ti(ie){var le=ie.prefixCls,se=ie.align,fe=ie.arrow,Ce=ie.arrowPos,ke=fe||{},He=ke.className,ht=ke.content,$t=Ce.x,bt=$t===void 0?0:$t,Zt=Ce.y,Et=Zt===void 0?0:Zt,Wt=te.useRef();if(!se||!se.points)return null;var Dt={position:"absolute"};if(se.autoArrow!==!1){var qt=se.points[0],Mn=se.points[1],mn=qt[0],In=qt[1],yn=Mn[0],on=Mn[1];mn===yn||!["t","b"].includes(mn)?Dt.top=Et:mn==="t"?Dt.top=0:Dt.bottom=0,In===on||!["l","r"].includes(In)?Dt.left=bt:In==="l"?Dt.left=0:Dt.right=0}return te.createElement("div",{ref:Wt,className:Se()("".concat(le,"-arrow"),He),style:Dt},ht)}function zi(ie){var le=ie.prefixCls,se=ie.open,fe=ie.zIndex,Ce=ie.mask,ke=ie.motion;return Ce?te.createElement(Fi,(0,Ze.Z)({},ke,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(He){var ht=He.className;return te.createElement("div",{style:{zIndex:fe},className:Se()("".concat(le,"-mask"),ht)})}):null}var Gi=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Ai=Gi,Ii=te.forwardRef(function(ie,le){var se=ie.popup,fe=ie.className,Ce=ie.prefixCls,ke=ie.style,He=ie.target,ht=ie.onVisibleChanged,$t=ie.open,bt=ie.keepDom,Zt=ie.fresh,Et=ie.onClick,Wt=ie.mask,Dt=ie.arrow,qt=ie.arrowPos,Mn=ie.align,mn=ie.motion,In=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,Gn=ie.offsetX,ha=ie.offsetY,Ea=ie.offsetR,ga=ie.offsetB,Nn=ie.onAlign,Vn=ie.onPrepare,Ln=ie.stretch,Ha=ie.targetWidth,Kn=ie.targetHeight,Va=typeof se=="function"?se():se,so=$t||bt,_a=(on==null?void 0:on.length)>0,uo=te.useState(!on||!_a),So=(0,Ge.Z)(uo,2),Zn=So[0],mo=So[1];if(tn(function(){!Zn&&_a&&He&&mo(!0)},[Zn,_a,He]),!Zn)return null;var Ca="auto",oa={left:"-1000vw",top:"-1000vh",right:Ca,bottom:Ca};if(Un||!$t){var Ta,wo=Mn.points,Ro=Mn.dynamicInset||((Ta=Mn._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=Gn,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(He)},autoDestroy:kt},te.createElement(zi,{prefixCls:Ce,open:$t,zIndex:qn,mask:Wt,motion:In}),te.createElement(Nt.Z,{onResize:Nn,disabled:!$t},function(Oo){return te.createElement(Fi,(0,Ze.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),ht(da)}}),function(ro,da){var rn=ro.className,Za=ro.style,co=Se()(Ce,rn,fe);return te.createElement("div",{ref:rt(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},ke),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:Et},Dt&&te.createElement(Ti,{prefixCls:Ce,arrow:Dt,arrowPos:qt,align:Mn}),te.createElement(Ai,{cache:!$t&&!Zt},Va))})}))}),Di=Ii,Ri=te.forwardRef(function(ie,le){var se=ie.children,fe=ie.getTriggerDOMNode,Ce=Pe(se),ke=te.useCallback(function(ht){Ia(le,fe?fe(ht):ht)},[fe]),He=En(ke,se.ref);return Ce?te.cloneElement(se,{ref:He}):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]:sn,le=te.forwardRef(function(se,fe){var Ce=se.prefixCls,ke=Ce===void 0?"rc-trigger-popup":Ce,He=se.children,ht=se.action,$t=ht===void 0?"hover":ht,bt=se.showAction,Zt=se.hideAction,Et=se.popupVisible,Wt=se.defaultPopupVisible,Dt=se.onPopupVisibleChange,qt=se.afterPopupVisibleChange,Mn=se.mouseEnterDelay,mn=se.mouseLeaveDelay,In=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,Gn=se.popup,ha=se.popupClassName,Ea=se.popupStyle,ga=se.popupPlacement,Nn=se.builtinPlacements,Vn=Nn===void 0?{}:Nn,Ln=se.popupAlign,Ha=se.zIndex,Kn=se.stretch,Va=se.getPopupClassNameFromAlign,so=se.fresh,_a=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,Ge.Z)(ro,2),rn=da[0],Za=da[1];tn(function(){Za(Hn())},[]);var co=te.useRef({}),To=te.useContext(_n),er=te.useMemo(function(){return{registerSubPopup:function(On,za){co.current[On]=za,To==null||To.registerSubPopup(On,za)}}},[To]),tr=_t(),ii=te.useState(null),Rr=(0,Ge.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=pe(function(Xt){wn(Xt)&&Bo!==Xt&&kr(Xt),To==null||To.registerSubPopup(tr,Xt)}),Mo=te.useState(null),jr=(0,Ge.Z)(Mo,2),No=jr[0],gi=jr[1],di=pe(function(Xt){wn(Xt)&&No!==Xt&&gi(Xt)}),Pr=te.Children.only(He),ho=(Pr==null?void 0:Pr.props)||{},Vo={},li=pe(function(Xt){var On,za,Ya=No;return(Ya==null?void 0:Ya.contains(Xt))||((On=Pn(Ya))===null||On===void 0?void 0:On.host)===Xt||Xt===Ya||(Bo==null?void 0:Bo.contains(Xt))||((za=Pn(Bo))===null||za===void 0?void 0:za.host)===Xt||Xt===Bo||Object.values(co.current).some(function(Ga){return(Ga==null?void 0:Ga.contains(Xt))||Xt===Ga})}),ko=ma(ke,mo,Ta,oa),Po=ma(ke,Ca,Ro,wo),Hr=te.useState(Wt||!1),Cr=(0,Ge.Z)(Hr,2),Ko=Cr[0],Wa=Cr[1],ea=Et!=null?Et:Ko,zo=pe(function(Xt){Et===void 0&&Wa(Xt)});tn(function(){Wa(Et||!1)},[Et]);var Go=te.useRef(ea);Go.current=ea;var Fr=pe(function(Xt){(0,Ue.flushSync)(function(){ea!==Xt&&(zo(Xt),Dt==null||Dt(Xt))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Eo=function(On){var za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),za===0?Fr(On):xr.current=setTimeout(function(){Fr(On)},za*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Zr=(0,Ge.Z)(vr,2),$r=Zr[0],Mr=Zr[1];tn(function(Xt){(!Xt||ea)&&Mr(!0)},[ea]);var Wr=te.useState(null),Nr=(0,Ge.Z)(Wr,2),jo=Nr[0],nr=Nr[1],ar=te.useState([0,0]),or=(0,Ge.Z)(ar,2),Or=or[0],Ur=or[1],Ao=function(On){Ur([On.clientX,On.clientY])},Vr=ft(ea,Bo,_a?Or:No,ga,Vn,Ln,So),vo=(0,Ge.Z)(Vr,11),rr=vo[0],Kr=vo[1],si=vo[2],Xr=vo[3],_r=vo[4],ir=vo[5],Yr=vo[6],ui=vo[7],gr=vo[8],dr=vo[9],Tr=vo[10],lr=Dn(rn,$t,bt,Zt),Xo=(0,Ge.Z)(lr,2),_o=Xo[0],sr=Xo[1],pr=_o.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Ho=pe(function(){$r||Tr()}),mi=function(){Go.current&&_a&&yr&&Eo(!1)};Tt(ea,No,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 Xt=ua(Vn,ke,dr,_a);return Se()(Xt,Va==null?void 0:Va(dr))},[dr,Va,Vn,ke,_a]);te.useImperativeHandle(fe,function(){return{forceAlign:Ho}});var ci=te.useState(0),Jr=(0,Ge.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Ge.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Kn&&No){var On=No.getBoundingClientRect();Si(On.width),vi(On.height)}},pi=function(){ei(),Ho()},yi=function(On){Mr(!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(Xt,On,za,Ya){Vo[Xt]=function(Ga){var ai;Ya==null||Ya(Ga),Eo(On,za);for(var Ci=arguments.length,Bi=new Array(Ci>1?Ci-1:0),oi=1;oi<Ci;oi++)Bi[oi-1]=arguments[oi];(ai=ho[Xt])===null||ai===void 0||ai.call.apply(ai,[ho,Ga].concat(Bi))}}(pr||yr)&&(Vo.onClick=function(Xt){var On;Go.current&&yr?Eo(!1):!Go.current&&pr&&(Ao(Xt),Eo(!0));for(var za=arguments.length,Ya=new Array(za>1?za-1:0),Ga=1;Ga<za;Ga++)Ya[Ga-1]=arguments[Ga];(On=ho.onClick)===null||On===void 0||On.call.apply(On,[ho,Xt].concat(Ya))}),ca(ea,yr,No,Bo,kt,qn,li,Eo);var ti=_o.has("hover"),ur=sr.has("hover"),Yo,zr;ti&&(Zo("onMouseEnter",!0,Mn,function(Xt){Ao(Xt)}),Zo("onPointerEnter",!0,Mn,function(Xt){Ao(Xt)}),Yo=function(){(ea||$r)&&Eo(!0,Mn)},_a&&(Vo.onMouseMove=function(Xt){var On;(On=ho.onMouseMove)===null||On===void 0||On.call(ho,Xt)})),ur&&(Zo("onMouseLeave",!1,In),Zo("onPointerLeave",!1,In),zr=function(){Eo(!1,In)}),_o.has("focus")&&Zo("onFocus",!0,yn),sr.has("focus")&&Zo("onBlur",!1,on),_o.has("contextMenu")&&(Vo.onContextMenu=function(Xt){var On;Go.current&&sr.has("contextMenu")?Eo(!1):(Ao(Xt),Eo(!0)),Xt.preventDefault();for(var za=arguments.length,Ya=new Array(za>1?za-1:0),Ga=1;Ga<za;Ga++)Ya[Ga-1]=arguments[Ga];(On=ho.onContextMenu)===null||On===void 0||On.call.apply(On,[ho,Xt].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(Xt){oo[Xt]&&(ni[Xt]=function(){for(var On,za=arguments.length,Ya=new Array(za),Ga=0;Ga<za;Ga++)Ya[Ga]=arguments[Ga];(On=Lr[Xt])===null||On===void 0||On.call.apply(On,[Lr].concat(Ya)),oo[Xt].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(Nt.Z,{disabled:!ea,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:qa},bi)),te.createElement(_n.Provider,{value:er},te.createElement(Di,{portal:ie,ref:$o,prefixCls:ke,popup:Gn,className:Se()(ha,Qr),style:Ea,target:No,onMouseEnter:Yo,onMouseLeave:zr,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:Xr,offsetB:_r,onAlign:Ho,stretch:Kn,targetWidth:fi/ui,targetHeight:Pi/gr})))});return le}var Zi=Hi(sn),ln={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>=ln.F1&&se<=ln.F12)return!1;switch(se){case ln.ALT:case ln.CAPS_LOCK:case ln.CONTEXT_MENU:case ln.CTRL:case ln.DOWN:case ln.END:case ln.ESC:case ln.HOME:case ln.INSERT:case ln.LEFT:case ln.MAC_FF_META:case ln.META:case ln.NUMLOCK:case ln.NUM_CENTER:case ln.PAGE_DOWN:case ln.PAGE_UP:case ln.PAUSE:case ln.PRINT_SCREEN:case ln.RIGHT:case ln.SHIFT:case ln.UP:case ln.WIN_KEY:case ln.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=ln.ZERO&&le<=ln.NINE||le>=ln.NUM_ZERO&&le<=ln.NUM_MULTIPLY||le>=ln.A&&le<=ln.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case ln.SPACE:case ln.QUESTION_MARK:case ln.NUM_PLUS:case ln.NUM_MINUS:case ln.NUM_PERIOD:case ln.NUM_DIVISION:case ln.SEMICOLON:case ln.DASH:case ln.EQUALS:case ln.COMMA:case ln.PERIOD:case ln.SLASH:case ln.APOSTROPHE:case ln.SINGLE_QUOTE:case ln.OPEN_SQUARE_BRACKET:case ln.BACKSLASH:case ln.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=ln,Wi=xi.ESC,Ui=xi.TAB;function Vi(ie){var le=ie.visible,se=ie.triggerRef,fe=ie.onVisibleChange,Ce=ie.autoFocus,ke=ie.overlayRef,He=te.useRef(!1),ht=function(){if(le){var Et,Wt;(Et=se.current)===null||Et===void 0||(Wt=Et.focus)===null||Wt===void 0||Wt.call(Et),fe==null||fe(!1)}},$t=function(){var Et;return(Et=ke.current)!==null&&Et!==void 0&&Et.focus?(ke.current.focus(),He.current=!0,!0):!1},bt=function(Et){switch(Et.keyCode){case Wi:ht();break;case Ui:{var Wt=!1;He.current||(Wt=$t()),Wt?Et.preventDefault():ht();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",bt),Ce&&Lt($t,3),function(){window.removeEventListener("keydown",bt),He.current=!1}):function(){He.current=!1}},[le])}var Ki=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,fe=ie.arrow,Ce=ie.prefixCls,ke=(0,te.useMemo)(function(){var ht;return typeof se=="function"?ht=se():ht=se,ht},[se]),He=de(le,ke==null?void 0:ke.ref);return te.createElement(te.Fragment,null,fe&&te.createElement("div",{className:"".concat(Ce,"-arrow")}),te.cloneElement(ke,{ref:me(ke)?He:void 0}))}),Xi=Ki,Sr={adjustX:1,adjustY:1},hr=[0,0],_i={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=_i,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,ke=ie.prefixCls,He=ke===void 0?"rc-dropdown":ke,ht=ie.transitionName,$t=ie.animation,bt=ie.align,Zt=ie.placement,Et=Zt===void 0?"bottomLeft":Zt,Wt=ie.placements,Dt=Wt===void 0?Yi:Wt,qt=ie.getPopupContainer,Mn=ie.showAction,mn=ie.hideAction,In=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),Gn=te.useState(),ha=(0,Ge.Z)(Gn,2),Ea=ha[0],ga=ha[1],Nn="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:Nn,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(Xi,{ref:Ln,overlay:ia,prefixCls:He,arrow:Ce})},_a=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(He,"-open")},Zn=te.cloneElement(ya,{className:Se()((se=ya.props)===null||se===void 0?void 0:se.className,Nn&&So()),ref:me(ya)?de(Ha,ya.ref):void 0}),mo=mn;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Zi,(0,Ze.Z)({builtinPlacements:Dt},Un,{prefixCls:He,ref:Vn,popupClassName:Se()(In,(0,ce.Z)({},"".concat(He,"-show-arrow"),Ce)),popupStyle:yn,action:ra,showAction:Mn,hideAction:mo,popupPlacement:Et,popupAlign:bt,popupTransitionName:ht,popupAnimation:$t,popupVisible:Nn,stretch:uo()?"minWidth":"",popup:_a(),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:ke,disabled:He,dropdownRender:ht,getPopupContainer:$t,overlayClassName:bt,rootClassName:Zt,open:Et,onOpenChange:Wt,visible:Dt,onVisibleChange:qt,mouseEnterDelay:Mn=.15,mouseLeaveDelay:mn=.1,autoAdjustOverflow:In=!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),[Gn,ha]=(0,ug.Z)(Un),[,Ea]=(0,sg.Z)(),ga=te.Children.only(Ce),Nn=(0,ig.Tm)(ga,{className:Se()(`${Un}-trigger`,{[`${Un}-rtl`]:ia==="rtl"},ga.props.className),disabled:He}),Vn=He?[]:ke;let Ln;Vn&&Vn.includes("contextMenu")&&(Ln=!0);const[Ha,Kn]=(0,ng.Z)(!1,{value:Et!=null?Et:Dt}),Va=(0,tg.useEvent)(Zn=>{Wt==null||Wt(Zn),qt==null||qt(Zn),Kn(Zn)}),so=Se()(bt,Zt,ha,{[`${Un}-rtl`]:ia==="rtl"}),_a=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:In,offset:Ea.marginXXS,arrowWidth:se?Ea.sizePopupArrow:0,borderRadius:Ea.borderRadius}),uo=te.useCallback(()=>{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,ht&&(Zn=ht(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(_e.Z,{className:`${Un}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:uo,validator:mo=>{let{mode:Ca}=mo}},Zn)};return Gn(te.createElement(eg,Object.assign({alignPoint:Ln},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:Mn,mouseLeaveDelay:mn,visible:Ha,builtinPlacements:_a,arrow:!!se,overlayClassName:so,prefixCls:Un,getPopupContainer:$t||ra,transitionName:ya,trigger:Vn,overlay:So,placement:ja,onVisibleChange:Va}),Nn))};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(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Ue}});var te=oe(14747),ye=oe(67771),_e=oe(33297),Ke=oe(50438),Se=oe(97414),Ze=oe(67968),ce=oe(45503),Me=Ae=>{const{componentCls:Fe,menuCls:ae,colorError:y,colorTextLightSolid:a}=Ae,E=`${ae}-item`;return{[`${Fe}, ${Fe}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Ee=Ae=>{const{componentCls:Fe,menuCls:ae,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:he,colorBgElevated:me}=Ae;return[{[Fe]:Object.assign(Object.assign({},(0,te.Wf)(Ae)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${Fe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Fe}-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${Fe}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Fe}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Fe}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Fe}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Fe}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Fe}-placement-bottomRight`]:{animationName:ye.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Fe}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Fe}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Fe}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Fe}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Fe}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Fe}-placement-topRight`]:{animationName:ye.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Fe}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Fe}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Fe}-placement-bottomRight`]:{animationName:ye.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Fe}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Fe}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Fe}-placement-topRight`]:{animationName:ye.ly}})},(0,Se.ZP)(Ae,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Fe} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Fe}, ${Fe}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary},(0,te.Qy)(Ae)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${he}px`,color:Ae.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Ae.marginXS,fontSize:Ae.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 ${he}px`,color:Ae.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ae.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ae.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ae.controlItemBgHover}},(0,te.Qy)(Ae)),{"&-selected":{color:Ae.colorPrimary,backgroundColor:Ae.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ae.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ae.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ae.colorSplit},[`${Fe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ae.paddingXS,[`${Fe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ae.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Ae.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:he+Ae.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Fe}-menu-submenu-title`]:{[`&, ${Fe}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Fe}-menu-submenu-title`]:{color:Ae.colorPrimary}})}},[(0,ye.oN)(Ae,"slide-up"),(0,ye.oN)(Ae,"slide-down"),(0,_e.Fm)(Ae,"move-up"),(0,_e.Fm)(Ae,"move-down"),(0,Ke._y)(Ae,"zoom-big")]]};var Ue=(0,Ze.Z)("Dropdown",(Ae,Fe)=>{let{rootPrefixCls:ae}=Fe;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Ae,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,Se.fS)({contentRadius:ne}),de=(0,ce.TS)(Ae,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ee(de),Me(de)]},Ae=>({zIndexPopup:Ae.zIndexPopupBase+50}))},71322:function(Oe,ut,oe){"use strict";oe.d(ut,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),ye=oe(67294),_e={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"},Ke=_e,Se=oe(74643),Ze=function(ge,de){return ye.createElement(Se.Z,(0,te.Z)({},ge,{ref:de,icon:Ke}))},ce=ye.forwardRef(Ze),Ge=oe(22751),Me=oe(91034),Ee=oe(94184),Ue=oe.n(Ee),Ae=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),y=oe(53124),a=oe(84321),E=function(re,ge){var de={};for(var he in re)Object.prototype.hasOwnProperty.call(re,he)&&ge.indexOf(he)<0&&(de[he]=re[he]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,he=Object.getOwnPropertySymbols(re);me<he.length;me++)ge.indexOf(he[me])<0&&Object.prototype.propertyIsEnumerable.call(re,he[me])&&(de[he[me]]=re[he[me]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ye.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=ye.forwardRef((re,ge)=>{const{prefixCls:de,className:he,trigger:me,children:De,defaultCollapsed:We=!1,theme:wt="dark",style:jt={},collapsible:gn=!1,reverseArrow:xe=!1,width:at=200,collapsedWidth:Pt=80,zeroWidthTriggerStyle:st,breakpoint:St,onCollapse:lt,onBreakpoint:dt}=re,mt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:hn}=(0,ye.useContext)(a.Gs),[Be,Re]=(0,ye.useState)("collapsed"in re?re.collapsed:We),[ot,At]=(0,ye.useState)(!1);(0,ye.useEffect)(()=>{"collapsed"in re&&Re(re.collapsed)},[re.collapsed]);const et=(xt,Je)=>{"collapsed"in re||Re(xt),lt==null||lt(xt,Je)},vt=(0,ye.useRef)();vt.current=xt=>{At(xt.matches),dt==null||dt(xt.matches),Be!==xt.matches&&et(xt.matches,"responsive")},(0,ye.useEffect)(()=>{function xt(Te){return vt.current(Te)}let Je;if(typeof window!="undefined"){const{matchMedia:Te}=window;if(Te&&St&&St in b){Je=Te(`(max-width: ${b[St]})`);try{Je.addEventListener("change",xt)}catch(be){Je.addListener(xt)}xt(Je)}}return()=>{try{Je==null||Je.removeEventListener("change",xt)}catch(Te){Je==null||Je.removeListener(xt)}}},[St]),(0,ye.useEffect)(()=>{const xt=z("ant-sider-");return hn.addSider(xt),()=>hn.removeSider(xt)},[]);const ue=()=>{et(!Be,"clickTrigger")},{getPrefixCls:ct}=(0,ye.useContext)(y.E_),Jt=()=>{const xt=ct("layout-sider",de),Je=(0,Ae.Z)(mt,["collapsed"]),Te=Be?Pt:at,be=ae(Te)?`${Te}px`:String(Te),qe=parseFloat(String(Pt||0))===0?ye.createElement("span",{onClick:ue,className:Ue()(`${xt}-zero-width-trigger`,`${xt}-zero-width-trigger-${xe?"right":"left"}`),style:st},me||ye.createElement(ce,null)):null,Rt={expanded:xe?ye.createElement(Me.Z,null):ye.createElement(Ge.Z,null),collapsed:xe?ye.createElement(Ge.Z,null):ye.createElement(Me.Z,null)}[Be?"collapsed":"expanded"],Ht=me!==null?qe||ye.createElement("div",{className:`${xt}-trigger`,onClick:ue,style:{width:be}},me||Rt):null,en=Object.assign(Object.assign({},jt),{flex:`0 0 ${be}`,maxWidth:be,minWidth:be,width:be}),dn=Ue()(xt,`${xt}-${wt}`,{[`${xt}-collapsed`]:!!Be,[`${xt}-has-trigger`]:gn&&me!==null&&!qe,[`${xt}-below`]:!!ot,[`${xt}-zero-width`]:parseFloat(be)===0},he);return ye.createElement("aside",Object.assign({className:dn},Je,{style:en,ref:ge}),ye.createElement("div",{className:`${xt}-children`},De),gn||ot&&qe?Ht:null)},Fn=ye.useMemo(()=>({siderCollapsed:Be}),[Be]);return ye.createElement(x.Provider,{value:Fn},Jt())})},84321:function(Oe,ut,oe){"use strict";oe.d(ut,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Fe},ZP:function(){return ee}});var te=oe(74902),ye=oe(94184),_e=oe.n(ye),Ke=oe(10366),Se=oe(67294),Ze=oe(53124),ce=oe(67968),Me=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:he,lightTriggerColor:me}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:me,background:he},[`${re}-sider-zero-width-trigger`]:{color:me,background:he,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ee=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:he,footerBg:me,triggerBg:De,headerHeight:We,headerPadding:wt,headerColor:jt,footerPadding:gn,triggerHeight:xe,zeroTriggerHeight:at,zeroTriggerWidth:Pt,motionDurationMid:st,motionDurationSlow:St,fontSize:lt,borderRadius:dt,bodyBg:mt,headerBg:hn,siderBg:Be}=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:Be,transition:`all ${st}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:xe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:xe,color:he,lineHeight:`${xe}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${st}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:We,insetInlineEnd:-Pt,zIndex:1,width:Pt,height:at,color:he,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderStartStartRadius:0,borderStartEndRadius:dt,borderEndEndRadius:dt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${St} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${St}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Pt,borderStartStartRadius:dt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:dt}}}}},Me(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:We,padding:wt,color:jt,lineHeight:`${We}px`,background:hn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:gn,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:he,controlHeightSM:me,marginXXS:De,colorTextLightSolid:We,colorBgContainer:wt}=ne,jt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${jt}px`,headerColor:he,footerPadding:`${me}px ${jt}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+De*2,triggerBg:"#002140",triggerColor:We,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:wt,lightTriggerBg:wt,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ae=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 he=0,de=Object.getOwnPropertySymbols(ne);he<de.length;he++)re.indexOf(de[he])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[he])&&(ge[de[he]]=ne[de[he]]);return ge};const Fe=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return he=>Se.forwardRef((De,We)=>Se.createElement(he,Object.assign({ref:We,suffixCls:re,tagName:ge},De)))}const y=Se.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:he,tagName:me}=ne,De=Ae(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:We}=Se.useContext(Ze.E_),wt=We("layout",ge),[jt,gn]=Ue(wt),xe=de?`${wt}-${de}`:wt;return jt(Se.createElement(me,Object.assign({className:_e()(ge||xe,he,gn),ref:re},De)))}),a=Se.forwardRef((ne,re)=>{const{direction:ge}=Se.useContext(Ze.E_),[de,he]=Se.useState([]),{prefixCls:me,className:De,rootClassName:We,children:wt,hasSider:jt,tagName:gn,style:xe}=ne,at=Ae(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Pt=(0,Ke.Z)(at,["suffixCls"]),{getPrefixCls:st,layout:St}=Se.useContext(Ze.E_),lt=st("layout",me),[dt,mt]=Ue(lt),hn=_e()(lt,{[`${lt}-has-sider`]:typeof jt=="boolean"?jt:de.length>0,[`${lt}-rtl`]:ge==="rtl"},St==null?void 0:St.className,De,We,mt),Be=Se.useMemo(()=>({siderHook:{addSider:Re=>{he(ot=>[].concat((0,te.Z)(ot),[Re]))},removeSider:Re=>{he(ot=>ot.filter(At=>At!==Re))}}}),[]);return dt(Se.createElement(Fe.Provider,{value:Be},Se.createElement(gn,Object.assign({ref:re,className:hn,style:Object.assign(Object.assign({},St==null?void 0:St.style),xe)},Pt),wt)))}),E=ae({tagName:"div",displayName:"Layout"})(a),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var ee=E},76529:function(Oe,ut,oe){"use strict";oe.d(ut,{J:function(){return Ze}});var te=oe(67294),ye=oe(4173),_e=oe(60276),Ke=function(ce,Ge){var Me={};for(var Ee in ce)Object.prototype.hasOwnProperty.call(ce,Ee)&&Ge.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++)Ge.indexOf(Ee[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ee[Ue])&&(Me[Ee[Ue]]=ce[Ee[Ue]]);return Me};const Se=te.createContext(null),Ze=te.forwardRef((ce,Ge)=>{const{children:Me}=ce,Ee=Ke(ce,["children"]),Ue=te.useContext(Se),Ae=te.useMemo(()=>Object.assign(Object.assign({},Ue),Ee),[Ue,Ee.prefixCls,Ee.mode,Ee.selectable]);return te.createElement(Se.Provider,{value:Ae},te.createElement(ye.BR,null,(0,_e.supportNodeRef)(Me)?te.cloneElement(Me,{ref:Ge}):Me))});ut.Z=Se},68508:function(Oe,ut,oe){"use strict";oe.d(ut,{default:function(){return xt}});var te=oe(52073),ye=oe(67294),_e=oe(71322),Ke=oe(94184),Se=oe.n(Ke),Ze=oe(53124),ce=function(Je,Te){var be={};for(var qe in Je)Object.prototype.hasOwnProperty.call(Je,qe)&&Te.indexOf(qe)<0&&(be[qe]=Je[qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,qe=Object.getOwnPropertySymbols(Je);Ye<qe.length;Ye++)Te.indexOf(qe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Je,qe[Ye])&&(be[qe[Ye]]=Je[qe[Ye]]);return be},Me=Je=>{const{prefixCls:Te,className:be,dashed:qe}=Je,Ye=ce(Je,["prefixCls","className","dashed"]),{getPrefixCls:yt}=ye.useContext(Ze.E_),Rt=yt("menu",Te),Ht=Se()({[`${Rt}-item-divider-dashed`]:!!qe},be);return ye.createElement(te.iz,Object.assign({className:Ht},Ye))},Ee=oe(37419),Ue=oe(10366),Ae=oe(83062),Fe=oe(96159),y=(0,ye.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Je=>{var Te;const{className:be,children:qe,icon:Ye,title:yt,danger:Rt}=Je,{prefixCls:Ht,firstLevel:en,direction:dn,disableMenuItemTitleTooltip:sn,inlineCollapsed:Nt}=ye.useContext(y),wn=Ne=>{const Qe=ye.createElement("span",{className:`${Ht}-title-content`},qe);return(!Ye||(0,Fe.l$)(qe)&&qe.type==="span")&&qe&&Ne&&en&&typeof qe=="string"?ye.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},qe.charAt(0)):Qe},{siderCollapsed:cn}=ye.useContext(_e.D);let jn=yt;typeof yt=="undefined"?jn=en?qe:"":yt===!1&&(jn="");const xn={title:jn};!cn&&!Nt&&(xn.title=null,xn.open=!1);const Pn=(0,Ee.Z)(qe).length;let pe=ye.createElement(te.ck,Object.assign({},(0,Ue.Z)(Je,["title","icon","danger"]),{className:Se()({[`${Ht}-item-danger`]:Rt,[`${Ht}-item-only-child`]:(Ye?Pn+1:Pn)===1},be),title:typeof yt=="string"?yt:void 0}),(0,Fe.Tm)(Ye,{className:Se()((0,Fe.l$)(Ye)?(Te=Ye.props)===null||Te===void 0?void 0:Te.className:"",`${Ht}-item-icon`)}),wn(Nt));return sn||(pe=ye.createElement(Ae.Z,Object.assign({},xn,{placement:dn==="rtl"?"left":"right",overlayClassName:`${Ht}-inline-collapsed-tooltip`}),pe)),pe},x=Je=>{var Te;const{popupClassName:be,icon:qe,title:Ye,theme:yt}=Je,Rt=ye.useContext(y),{prefixCls:Ht,inlineCollapsed:en,theme:dn}=Rt,sn=(0,te.Xl)();let Nt;if(!qe)Nt=en&&!sn.length&&Ye&&typeof Ye=="string"?ye.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},Ye.charAt(0)):ye.createElement("span",{className:`${Ht}-title-content`},Ye);else{const cn=(0,Fe.l$)(Ye)&&Ye.type==="span";Nt=ye.createElement(ye.Fragment,null,(0,Fe.Tm)(qe,{className:Se()((0,Fe.l$)(qe)?(Te=qe.props)===null||Te===void 0?void 0:Te.className:"",`${Ht}-item-icon`)}),cn?Ye:ye.createElement("span",{className:`${Ht}-title-content`},Ye))}const wn=ye.useMemo(()=>Object.assign(Object.assign({},Rt),{firstLevel:!1}),[Rt]);return ye.createElement(y.Provider,{value:wn},ye.createElement(te.Wd,Object.assign({},(0,Ue.Z)(Je,["icon"]),{title:Nt,popupClassName:Se()(Ht,be,`${Ht}-${yt||dn}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Je,Te){var be={};for(var qe in Je)Object.prototype.hasOwnProperty.call(Je,qe)&&Te.indexOf(qe)<0&&(be[qe]=Je[qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,qe=Object.getOwnPropertySymbols(Je);Ye<qe.length;Ye++)Te.indexOf(qe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Je,qe[Ye])&&(be[qe[Ye]]=Je[qe[Ye]]);return be};function de(Je){return(Je||[]).map((Te,be)=>{if(Te&&typeof Te=="object"){const qe=Te,{label:Ye,children:yt,key:Rt,type:Ht}=qe,en=ge(qe,["label","children","key","type"]),dn=Rt!=null?Rt:`tmp-${be}`;return yt||Ht==="group"?Ht==="group"?ye.createElement(te.BW,Object.assign({key:dn},en,{title:Ye}),de(yt)):ye.createElement(x,Object.assign({key:dn},en,{title:Ye}),de(yt)):Ht==="divider"?ye.createElement(Me,Object.assign({key:dn},en)):ye.createElement(E,Object.assign({key:dn},en),Ye)}return null}).filter(Te=>Te)}function he(Je){return ye.useMemo(()=>Je&&de(Je),[Je])}var me=oe(84780),De=oe(14747),We=oe(33507),wt=oe(67771),jt=oe(50438),gn=oe(67968),xe=oe(45503),Pt=Je=>{const{componentCls:Te,motionDurationSlow:be,horizontalLineHeight:qe,colorSplit:Ye,lineWidth:yt,lineType:Rt,itemPaddingInline:Ht}=Je;return{[`${Te}-horizontal`]:{lineHeight:qe,border:0,borderBottom:`${yt}px ${Rt} ${Ye}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Te}-item, ${Te}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ht},[`> ${Te}-item:hover,
|
|
> ${Te}-item-active,
|
|
> ${Te}-submenu ${Te}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Te}-item, ${Te}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${Te}-submenu-arrow`]:{display:"none"}}}},St=Je=>{let{componentCls:Te,menuArrowOffset:be}=Je;return{[`${Te}-rtl`]:{direction:"rtl"},[`${Te}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Te}-rtl${Te}-vertical,
|
|
${Te}-submenu-rtl ${Te}-vertical`]:{[`${Te}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${be})`},"&::after":{transform:`rotate(45deg) translateY(${be})`}}}}};const lt=Je=>Object.assign({},(0,De.oN)(Je));var mt=(Je,Te)=>{const{componentCls:be,itemColor:qe,itemSelectedColor:Ye,groupTitleColor:yt,itemBg:Rt,subMenuItemBg:Ht,itemSelectedBg:en,activeBarHeight:dn,activeBarWidth:sn,activeBarBorderWidth:Nt,motionDurationSlow:wn,motionEaseInOut:cn,motionEaseOut:jn,itemPaddingInline:xn,motionDurationMid:Pn,itemHoverColor:pe,lineType:Ne,colorSplit:Qe,itemDisabledColor:pt,dangerItemColor:Ft,dangerItemHoverColor:_t,dangerItemSelectedColor:Qt,dangerItemActiveBg:zt,dangerItemSelectedBg:Ut,itemHoverBg:pn,itemActiveBg:tn,menuSubMenuBg:Hn,horizontalItemSelectedColor:Xn,horizontalItemSelectedBg:_n,horizontalItemBorderRadius:la,horizontalItemHoverBg:Dn,popupBg:Tn}=Je;return{[`${be}-${Te}, ${be}-${Te} > ${be}`]:{color:qe,background:Rt,[`&${be}-root:focus-visible`]:Object.assign({},lt(Je)),[`${be}-item-group-title`]:{color:yt},[`${be}-submenu-selected`]:{[`> ${be}-submenu-title`]:{color:Ye}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${pt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:pe}},[`&: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:Ft,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:_t}},[`&${be}-item:active`]:{background:zt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Ye,[`&${be}-item-danger`]:{color:Qt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:en,[`&${be}-item-danger`]:{backgroundColor:Ut}},[`${be}-item, ${be}-submenu-title`]:{[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},lt(Je))},[`&${be}-submenu > ${be}`]:{backgroundColor:Hn},[`&${be}-popup > ${be}`]:{backgroundColor:Tn},[`&${be}-horizontal`]:Object.assign(Object.assign({},Te==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:Nt,marginTop:-Nt,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${dn}px solid transparent`,transition:`border-color ${wn} ${cn}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:dn,borderBottomColor:Xn}},"&-selected":{color:Xn,backgroundColor:_n,"&:hover":{backgroundColor:_n},"&::after":{borderBottomWidth:dn,borderBottomColor:Xn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${Nt}px ${Ne} ${Qe}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:Ht},[`${be}-item, ${be}-submenu-title`]:Nt&&sn?{width:`calc(100% + ${Nt}px)`}:{},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${sn}px solid ${Ye}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pn} ${jn}`,`opacity ${Pn} ${jn}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:Qt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pn} ${cn}`,`opacity ${Pn} ${cn}`].join(",")}}}}}};const hn=Je=>{const{componentCls:Te,itemHeight:be,itemMarginInline:qe,padding:Ye,menuArrowSize:yt,marginXS:Rt,itemMarginBlock:Ht}=Je,en=Ye+yt+Rt;return{[`${Te}-item`]:{position:"relative",overflow:"hidden"},[`${Te}-item, ${Te}-submenu-title`]:{height:be,lineHeight:`${be}px`,paddingInline:Ye,overflow:"hidden",textOverflow:"ellipsis",marginInline:qe,marginBlock:Ht,width:`calc(100% - ${qe*2}px)`},[`> ${Te}-item,
|
|
> ${Te}-submenu > ${Te}-submenu-title`]:{height:be,lineHeight:`${be}px`},[`${Te}-item-group-list ${Te}-submenu-title,
|
|
${Te}-submenu-title`]:{paddingInlineEnd:en}}};var Re=Je=>{const{componentCls:Te,iconCls:be,itemHeight:qe,colorTextLightSolid:Ye,dropdownWidth:yt,controlHeightLG:Rt,motionDurationMid:Ht,motionEaseOut:en,paddingXL:dn,itemMarginInline:sn,fontSizeLG:Nt,motionDurationSlow:wn,paddingXS:cn,boxShadowSecondary:jn,collapsedWidth:xn,collapsedIconSize:Pn}=Je,pe={height:qe,lineHeight:`${qe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Te]:{"&-inline, &-vertical":Object.assign({[`&${Te}-root`]:{boxShadow:"none"}},hn(Je))},[`${Te}-submenu-popup`]:{[`${Te}-vertical`]:Object.assign(Object.assign({},hn(Je)),{boxShadow:jn})}},{[`${Te}-submenu-popup ${Te}-vertical${Te}-sub`]:{minWidth:yt,maxHeight:`calc(100vh - ${Rt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Te}-inline`]:{width:"100%",[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wn}`,`background ${wn}`,`padding ${Ht} ${en}`].join(","),[`> ${Te}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Te}-sub${Te}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Te}-submenu > ${Te}-submenu-title`]:pe,[`& ${Te}-item-group-title`]:{paddingInlineStart:dn}},[`${Te}-item`]:pe}},{[`${Te}-inline-collapsed`]:{width:xn,[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu ${Te}-submenu-title`]:{[`> ${Te}-inline-collapsed-noicon`]:{fontSize:Nt,textAlign:"center"}}},[`> ${Te}-item,
|
|
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-item,
|
|
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-submenu > ${Te}-submenu-title,
|
|
> ${Te}-submenu > ${Te}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Nt/2}px - ${sn}px)`,textOverflow:"clip",[`
|
|
${Te}-submenu-arrow,
|
|
${Te}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Te}-item-icon, ${be}`]:{margin:0,fontSize:Pn,lineHeight:`${qe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Te}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Te}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Ye}},[`${Te}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:cn})}}]};const ot=Je=>{const{componentCls:Te,motionDurationSlow:be,motionDurationMid:qe,motionEaseInOut:Ye,motionEaseOut:yt,iconCls:Rt,iconSize:Ht,iconMarginInlineEnd:en}=Je;return{[`${Te}-item, ${Te}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding ${be} ${Ye}`].join(","),[`${Te}-item-icon, ${Rt}`]:{minWidth:Ht,fontSize:Ht,transition:[`font-size ${qe} ${yt}`,`margin ${be} ${Ye}`,`color ${be}`].join(","),"+ span":{marginInlineStart:en,opacity:1,transition:[`opacity ${be} ${Ye}`,`margin ${be}`,`color ${be}`].join(",")}},[`${Te}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${Te}-item-only-child`]:{[`> ${Rt}, > ${Te}-item-icon`]:{marginInlineEnd:0}}},[`${Te}-item-disabled, ${Te}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Te}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},At=Je=>{const{componentCls:Te,motionDurationSlow:be,motionEaseInOut:qe,borderRadius:Ye,menuArrowSize:yt,menuArrowOffset:Rt}=Je;return{[`${Te}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Je.margin,width:yt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${qe}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:yt*.6,height:yt*.15,backgroundColor:"currentcolor",borderRadius:Ye,transition:[`background ${be} ${qe}`,`transform ${be} ${qe}`,`top ${be} ${qe}`,`color ${be} ${qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Rt})`},"&::after":{transform:`rotate(-45deg) translateY(${Rt})`}}}}},et=Je=>{const{antCls:Te,componentCls:be,fontSize:qe,motionDurationSlow:Ye,motionDurationMid:yt,motionEaseInOut:Rt,paddingXS:Ht,padding:en,colorSplit:dn,lineWidth:sn,zIndexPopup:Nt,borderRadiusLG:wn,subMenuItemBorderRadius:cn,menuArrowSize:jn,menuArrowOffset:xn,lineType:Pn,menuPanelMaskInset:pe,groupTitleLineHeight:Ne,groupTitleFontSize:Qe}=Je;return[{"":{[`${be}`]:Object.assign(Object.assign({},(0,De.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,De.Wf)(Je)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:qe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ye} 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:Je.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${Ht}px ${en}px`,fontSize:Qe,lineHeight:Ne,transition:`all ${Ye}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Ye} ${Rt}`,`background ${Ye} ${Rt}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Ye} ${Rt}`,`background ${Ye} ${Rt}`,`padding ${yt} ${Rt}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Ye} ${Rt}`,`padding ${Ye} ${Rt}`].join(",")},[`${be}-title-content`]:{transition:`color ${Ye}`},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:dn,borderStyle:Pn,borderWidth:0,borderTopWidth:sn,marginBlock:sn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ot(Je)),{[`${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:Nt,borderRadius:wn,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pe},"\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:Je.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Je.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Je.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Je.paddingXS},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:wn},ot(Je)),At(Je)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:cn},[`${be}-submenu-title::after`]:{transition:`transform ${Ye} ${Rt}`}})}}),At(Je)),{[`&-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})`}}})},{[`${Te}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]};var vt=(Je,Te)=>(0,gn.Z)("Menu",qe=>{if(Te===!1)return[];const{colorBgElevated:Ye,colorPrimary:yt,colorTextLightSolid:Rt,controlHeightLG:Ht,fontSize:en,darkItemColor:dn,darkDangerItemColor:sn,darkItemBg:Nt,darkSubMenuItemBg:wn,darkItemSelectedColor:cn,darkItemSelectedBg:jn,darkDangerItemSelectedBg:xn,darkItemHoverBg:Pn,darkGroupTitleColor:pe,darkItemHoverColor:Ne,darkItemDisabledColor:Qe,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:_t}=qe,Qt=en/7*5,zt=(0,xe.TS)(qe,{menuArrowSize:Qt,menuHorizontalHeight:Ht*1.15,menuArrowOffset:`${Qt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ye}),Ut=(0,xe.TS)(zt,{itemColor:dn,itemHoverColor:Ne,groupTitleColor:pe,itemSelectedColor:cn,itemBg:Nt,popupBg:Nt,subMenuItemBg:wn,itemActiveBg:"transparent",itemSelectedBg:jn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Pn,itemDisabledColor:Qe,dangerItemColor:sn,dangerItemHoverColor:pt,dangerItemSelectedColor:Ft,dangerItemActiveBg:_t,dangerItemSelectedBg:xn,menuSubMenuBg:wn,horizontalItemSelectedColor:Rt,horizontalItemSelectedBg:yt});return[et(zt),Pt(zt),Re(zt),mt(zt,"light"),mt(Ut,"dark"),St(zt),(0,We.Z)(zt),(0,wt.oN)(zt,"slide-up"),(0,wt.oN)(zt,"slide-down"),(0,jt._y)(zt,"zoom-big")]},qe=>{const{colorPrimary:Ye,colorError:yt,colorTextDisabled:Rt,colorErrorBg:Ht,colorText:en,colorTextDescription:dn,colorBgContainer:sn,colorFillAlter:Nt,colorFillContent:wn,lineWidth:cn,lineWidthBold:jn,controlItemBgActive:xn,colorBgTextHover:Pn,controlHeightLG:pe,lineHeight:Ne,colorBgElevated:Qe,marginXXS:pt,padding:Ft,fontSize:_t,controlHeightSM:Qt,fontSizeLG:zt,colorTextLightSolid:Ut,colorErrorHover:pn}=qe,tn=new me.C(Ut).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:Ye,horizontalItemHoverColor:Ye,colorGroupTitle:dn,groupTitleColor:dn,colorItemTextSelected:Ye,itemSelectedColor:Ye,colorItemTextSelectedHorizontal:Ye,horizontalItemSelectedColor:Ye,colorItemBg:sn,itemBg:sn,colorItemBgHover:Pn,itemHoverBg:Pn,colorItemBgActive:wn,itemActiveBg:xn,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jn,activeBarHeight:jn,colorActiveBarBorderSize:cn,activeBarBorderWidth:cn,colorItemTextDisabled:Rt,itemDisabledColor:Rt,colorDangerItemText:yt,dangerItemColor:yt,colorDangerItemTextHover:yt,dangerItemHoverColor:yt,colorDangerItemTextSelected:yt,dangerItemSelectedColor:yt,colorDangerItemBgActive:Ht,dangerItemActiveBg:Ht,colorDangerItemBgSelected:Ht,dangerItemSelectedBg:Ht,itemMarginInline:qe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Ne,collapsedWidth:pe*2,popupBg:Qe,itemMarginBlock:pt,itemPaddingInline:Ft,horizontalLineHeight:`${pe*1.15}px`,iconSize:_t,iconMarginInlineEnd:Qt-_t,collapsedIconSize:zt,groupTitleFontSize:_t,darkItemDisabledColor:new me.C(Ut).setAlpha(.25).toRgbString(),darkItemColor:tn,darkDangerItemColor:yt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ut,darkItemSelectedBg:Ye,darkDangerItemSelectedBg:yt,darkItemHoverBg:"transparent",darkGroupTitleColor:tn,darkItemHoverColor:Ut,darkDangerItemHoverColor:pn,darkDangerItemSelectedColor:Ut,darkDangerItemActiveBg:yt}},{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"]]})(Je),ue=function(Je,Te){var be={};for(var qe in Je)Object.prototype.hasOwnProperty.call(Je,qe)&&Te.indexOf(qe)<0&&(be[qe]=Je[qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,qe=Object.getOwnPropertySymbols(Je);Ye<qe.length;Ye++)Te.indexOf(qe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Je,qe[Ye])&&(be[qe[Ye]]=Je[qe[Ye]]);return be},Jt=(0,ye.forwardRef)((Je,Te)=>{var be,qe;const Ye=ye.useContext(re.Z),yt=Ye||{},{getPrefixCls:Rt,getPopupContainer:Ht,direction:en,menu:dn}=ye.useContext(Ze.E_),sn=Rt(),{prefixCls:Nt,className:wn,style:cn,theme:jn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:Pn,inlineCollapsed:pe,siderCollapsed:Ne,items:Qe,children:pt,rootClassName:Ft,mode:_t,selectable:Qt,onClick:zt,overflowedIndicatorPopupClassName:Ut}=Je,pn=ue(Je,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),tn=(0,Ue.Z)(pn,["collapsedWidth"]),Hn=he(Qe)||pt;(be=yt.validator)===null||be===void 0||be.call(yt,{mode:_t});const Xn=(0,ee.useEvent)(function(){var ta;zt==null||zt.apply(void 0,arguments),(ta=yt.onClick)===null||ta===void 0||ta.call(yt)}),_n=yt.mode||_t,la=Qt!=null?Qt:yt.selectable,Dn=ye.useMemo(()=>Ne!==void 0?Ne:pe,[pe,Ne]),Tn={horizontal:{motionName:`${sn}-slide-up`},inline:(0,ne.Z)(sn),other:{motionName:`${sn}-zoom-big`}},Yn=Rt("menu",Nt||yt.prefixCls),[ua,ma]=vt(Yn,!Ye),Rn=Se()(`${Yn}-${jn}`,dn==null?void 0:dn.className,wn);let Pa;if(typeof xn=="function")Pa=xn;else if(xn===null||xn===!1)Pa=null;else if(yt.expandIcon===null||yt.expandIcon===!1)Pa=null;else{const ta=xn!=null?xn:yt.expandIcon;Pa=(0,Fe.Tm)(ta,{className:Se()(`${Yn}-submenu-expand-icon`,(0,Fe.l$)(ta)?(qe=ta.props)===null||qe===void 0?void 0:qe.className:"")})}const Aa=ye.useMemo(()=>({prefixCls:Yn,inlineCollapsed:Dn||!1,direction:en,firstLevel:!0,theme:jn,mode:_n,disableMenuItemTitleTooltip:Pn}),[Yn,Dn,en,Pn,jn]);return ua(ye.createElement(re.Z.Provider,{value:null},ye.createElement(y.Provider,{value:Aa},ye.createElement(te.ZP,Object.assign({getPopupContainer:Ht,overflowedIndicator:ye.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Yn,`${Yn}-${jn}`,Ut),mode:_n,selectable:la,onClick:Xn},tn,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},dn==null?void 0:dn.style),cn),className:Rn,prefixCls:Yn,direction:en,defaultMotions:Tn,expandIcon:Pa,ref:Te,rootClassName:Se()(Ft,ma)}),Hn))))});const Fn=(0,ye.forwardRef)((Je,Te)=>{const be=(0,ye.useRef)(null),qe=ye.useContext(_e.D);return(0,ye.useImperativeHandle)(Te,()=>({menu:be.current,focus:Ye=>{var yt;(yt=be.current)===null||yt===void 0||yt.focus(Ye)}})),ye.createElement(Jt,Object.assign({ref:be},Je,qe))});Fn.Item=E,Fn.SubMenu=x,Fn.Divider=Me,Fn.ItemGroup=te.BW;var xt=Fn},38703:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Pn}});var te=oe(67294),ye=oe(87725),_e=oe(18299),Ke=oe(16646),Se=oe(73475),Ze=oe(94184),ce=oe.n(Ze),Ge=oe(10366),Me=oe(53124),Ee=oe(87462),Ue=oe(1413),Ae=oe(45987),Fe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ne=(0,te.useRef)([]),Qe=(0,te.useRef)(null);return(0,te.useEffect)(function(){var pt=Date.now(),Ft=!1;Ne.current.forEach(function(_t){if(_t){Ft=!0;var Qt=_t.style;Qt.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&pt-Qe.current<100&&(Qt.transitionDuration="0s, 0s")}}),Ft&&(Qe.current=Date.now())}),Ne.current},y=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],a=function(Ne){var Qe=(0,Ue.Z)((0,Ue.Z)({},Fe),Ne),pt=Qe.className,Ft=Qe.percent,_t=Qe.prefixCls,Qt=Qe.strokeColor,zt=Qe.strokeLinecap,Ut=Qe.strokeWidth,pn=Qe.style,tn=Qe.trailColor,Hn=Qe.trailWidth,Xn=Qe.transition,_n=(0,Ae.Z)(Qe,y);delete _n.gapPosition;var la=Array.isArray(Ft)?Ft:[Ft],Dn=Array.isArray(Qt)?Qt:[Qt],Tn=ae(),Yn=Ut/2,ua=100-Ut/2,ma="M ".concat(zt==="round"?Yn:0,",").concat(Yn,`
|
|
L `).concat(zt==="round"?ua:100,",").concat(Yn),Rn="0 0 100 ".concat(Ut),Pa=0;return te.createElement("svg",(0,Ee.Z)({className:ce()("".concat(_t,"-line"),pt),viewBox:Rn,preserveAspectRatio:"none",style:pn},_n),te.createElement("path",{className:"".concat(_t,"-line-trail"),d:ma,strokeLinecap:zt,stroke:tn,strokeWidth:Hn||Ut,fillOpacity:"0"}),la.map(function(Aa,ta){var Ua=1;switch(zt){case"round":Ua=1-Ut/100;break;case"square":Ua=1-Ut/2/100;break;default:Ua=1;break}var eo={strokeDasharray:"".concat(Aa*Ua,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:Xn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qa=Dn[ta]||Dn[Dn.length-1];return Pa+=Aa,te.createElement("path",{key:ta,className:"".concat(_t,"-line-path"),d:ma,strokeLinecap:zt,stroke:Qa,strokeWidth:Ut,fillOpacity:"0",ref:function(we){Tn[ta]=we},style:eo})}))},E=a,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var pe;return ne?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ge=function(pe){var Ne=te.useState(),Qe=(0,x.Z)(Ne,2),pt=Qe[0],Ft=Qe[1];return te.useEffect(function(){Ft("rc_progress_".concat(re()))},[]),pe||pt},de=function(Ne){var Qe=Ne.bg,pt=Ne.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},pt)};function he(pe,Ne){return Object.keys(pe).map(function(Qe){var pt=parseFloat(Qe),Ft="".concat(Math.floor(pt*Ne),"%");return"".concat(pe[Qe]," ").concat(Ft)})}var me=te.forwardRef(function(pe,Ne){var Qe=pe.prefixCls,pt=pe.color,Ft=pe.gradientId,_t=pe.radius,Qt=pe.style,zt=pe.ptg,Ut=pe.strokeLinecap,pn=pe.strokeWidth,tn=pe.size,Hn=pe.gapDegree,Xn=pt&&(0,b.Z)(pt)==="object",_n=Xn?"#FFF":void 0,la=tn/2,Dn=te.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:_t,cx:la,cy:la,stroke:_n,strokeLinecap:Ut,strokeWidth:pn,opacity:zt===0?0:1,style:Qt,ref:Ne});if(!Xn)return Dn;var Tn="".concat(Ft,"-conic"),Yn=Hn?"".concat(180+Hn/2,"deg"):"0deg",ua=he(pt,(360-Hn)/360),ma=he(pt,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},Dn),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}))))}),De=me,We=100,wt=function(Ne,Qe,pt,Ft,_t,Qt,zt,Ut,pn,tn){var Hn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Xn=pt/100*360*((360-Qt)/360),_n=Qt===0?0:{bottom:0,top:180,left:90,right:-90}[zt],la=(100-Ft)/100*Qe;pn==="round"&&Ft!==100&&(la+=tn/2,la>=Qe&&(la=Qe-.01));var Dn=We/2;return{stroke:typeof Ut=="string"?Ut:void 0,strokeDasharray:"".concat(Qe,"px ").concat(Ne),strokeDashoffset:la+Hn,transform:"rotate(".concat(_t+Xn+_n,"deg)"),transformOrigin:"".concat(Dn,"px ").concat(Dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},jt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function gn(pe){var Ne=pe!=null?pe:[];return Array.isArray(Ne)?Ne:[Ne]}var xe=function(Ne){var Qe=(0,Ue.Z)((0,Ue.Z)({},Fe),Ne),pt=Qe.id,Ft=Qe.prefixCls,_t=Qe.steps,Qt=Qe.strokeWidth,zt=Qe.trailWidth,Ut=Qe.gapDegree,pn=Ut===void 0?0:Ut,tn=Qe.gapPosition,Hn=Qe.trailColor,Xn=Qe.strokeLinecap,_n=Qe.style,la=Qe.className,Dn=Qe.strokeColor,Tn=Qe.percent,Yn=(0,Ae.Z)(Qe,jt),ua=We/2,ma=ge(pt),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=gn(Tn),ve=gn(Dn),ft=ve.find(function(Ia){return Ia&&(0,b.Z)(Ia)==="object"}),Tt=ft&&(0,b.Z)(ft)==="object",Gt=Tt?"butt":Xn,kn=wt(Aa,Ua,0,100,ta,pn,tn,Hn,Gt,Qt),un=ae(),Bn=function(){var rt=0;return we.map(function(En,Pe){var Ie=ve[Pe]||ve[ve.length-1],$e=wt(Aa,Ua,rt,En,ta,pn,tn,Ie,Gt,Qt);return rt+=En,te.createElement(De,{key:Pe,color:Ie,ptg:En,radius:Pa,prefixCls:Ft,gradientId:Rn,style:$e,strokeLinecap:Gt,strokeWidth:Qt,gapDegree:pn,ref:function(gt){un[Pe]=gt},size:We})}).reverse()},na=function(){var rt=Math.round(Qa*(we[0]/100)),En=100/Qa,Pe=0;return new Array(Qa).fill(null).map(function(Ie,$e){var ze=$e<=rt-1?ve[0]:Hn,gt=ze&&(0,b.Z)(ze)==="object"?"url(#".concat(Rn,")"):void 0,Xe=wt(Aa,Ua,Pe,En,ta,pn,tn,ze,"butt",Qt,Le);return Pe+=(Ua-Xe.strokeDashoffset+Le)*100/Ua,te.createElement("circle",{key:$e,className:"".concat(Ft,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:gt,strokeWidth:Qt,opacity:1,style:Xe,ref:function(Ve){un[$e]=Ve}})})};return te.createElement("svg",(0,Ee.Z)({className:ce()("".concat(Ft,"-circle"),la),viewBox:"0 0 ".concat(We," ").concat(We),style:_n,id:pt,role:"presentation"},Yn),!Qa&&te.createElement("circle",{className:"".concat(Ft,"-circle-trail"),r:Pa,cx:ua,cy:ua,stroke:Hn,strokeLinecap:Gt,strokeWidth:zt||Qt,style:kn}),Qa?na():Bn())},at=xe,Pt={Line:E,Circle:at},st=oe(83062),St=oe(47448);function lt(pe){return!pe||pe<0?0:pe>100?100:pe}function dt(pe){let{success:Ne,successPercent:Qe}=pe,pt=Qe;return Ne&&"progress"in Ne&&(pt=Ne.progress),Ne&&"percent"in Ne&&(pt=Ne.percent),pt}const mt=pe=>{let{percent:Ne,success:Qe,successPercent:pt}=pe;const Ft=lt(dt({success:Qe,successPercent:pt}));return[Ft,lt(lt(Ne)-Ft)]},hn=pe=>{let{success:Ne={},strokeColor:Qe}=pe;const{strokeColor:pt}=Ne;return[pt||St.presetPrimaryColors.green,Qe||null]},Be=(pe,Ne,Qe)=>{var pt,Ft,_t,Qt;let zt=-1,Ut=-1;if(Ne==="step"){const pn=Qe.steps,tn=Qe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(zt=pe==="small"?2:14,Ut=tn!=null?tn:8):typeof pe=="number"?[zt,Ut]=[pe,pe]:[zt=14,Ut=8]=pe,zt*=pn}else if(Ne==="line"){const pn=Qe==null?void 0:Qe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?Ut=pn||(pe==="small"?6:8):typeof pe=="number"?[zt,Ut]=[pe,pe]:[zt=-1,Ut=8]=pe}else(Ne==="circle"||Ne==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[zt,Ut]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[zt,Ut]=[pe,pe]:(zt=(Ft=(pt=pe[0])!==null&&pt!==void 0?pt:pe[1])!==null&&Ft!==void 0?Ft:120,Ut=(Qt=(_t=pe[0])!==null&&_t!==void 0?_t:pe[1])!==null&&Qt!==void 0?Qt:120));return[zt,Ut]},Re=3,ot=pe=>Re/pe*100;var et=pe=>{const{prefixCls:Ne,trailColor:Qe=null,strokeLinecap:pt="round",gapPosition:Ft,gapDegree:_t,width:Qt=120,type:zt,children:Ut,success:pn,size:tn=Qt}=pe,[Hn,Xn]=Be(tn,"circle");let{strokeWidth:_n}=pe;_n===void 0&&(_n=Math.max(ot(Hn),6));const la={width:Hn,height:Xn,fontSize:Hn*.15+6},Dn=te.useMemo(()=>{if(_t||_t===0)return _t;if(zt==="dashboard")return 75},[_t,zt]),Tn=Ft||zt==="dashboard"&&"bottom"||void 0,Yn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",ua=hn({success:pn,strokeColor:pe.strokeColor}),ma=ce()(`${Ne}-inner`,{[`${Ne}-circle-gradient`]:Yn}),Rn=te.createElement(at,{percent:mt(pe),strokeWidth:_n,trailWidth:_n,strokeColor:ua,strokeLinecap:pt,trailColor:Qe,prefixCls:Ne,gapDegree:Dn,gapPosition:Tn});return te.createElement("div",{className:ma,style:la},Hn<=20?te.createElement(st.Z,{title:Ut},te.createElement("span",null,Rn)):te.createElement(te.Fragment,null,Rn,Ut))},vt=function(pe,Ne){var Qe={};for(var pt in pe)Object.prototype.hasOwnProperty.call(pe,pt)&&Ne.indexOf(pt)<0&&(Qe[pt]=pe[pt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,pt=Object.getOwnPropertySymbols(pe);Ft<pt.length;Ft++)Ne.indexOf(pt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(pe,pt[Ft])&&(Qe[pt[Ft]]=pe[pt[Ft]]);return Qe};const ue=pe=>{let Ne=[];return Object.keys(pe).forEach(Qe=>{const pt=parseFloat(Qe.replace(/%/g,""));isNaN(pt)||Ne.push({key:pt,value:pe[Qe]})}),Ne=Ne.sort((Qe,pt)=>Qe.key-pt.key),Ne.map(Qe=>{let{key:pt,value:Ft}=Qe;return`${Ft} ${pt}%`}).join(", ")},ct=(pe,Ne)=>{const{from:Qe=St.presetPrimaryColors.blue,to:pt=St.presetPrimaryColors.blue,direction:Ft=Ne==="rtl"?"to left":"to right"}=pe,_t=vt(pe,["from","to","direction"]);if(Object.keys(_t).length!==0){const Qt=ue(_t);return{backgroundImage:`linear-gradient(${Ft}, ${Qt})`}}return{backgroundImage:`linear-gradient(${Ft}, ${Qe}, ${pt})`}};var Fn=pe=>{const{prefixCls:Ne,direction:Qe,percent:pt,size:Ft,strokeWidth:_t,strokeColor:Qt,strokeLinecap:zt="round",children:Ut,trailColor:pn=null,success:tn}=pe,Hn=Qt&&typeof Qt!="string"?ct(Qt,Qe):{backgroundColor:Qt},Xn=zt==="square"||zt==="butt"?0:void 0,_n={backgroundColor:pn||void 0,borderRadius:Xn},la=Ft!=null?Ft:[-1,_t||(Ft==="small"?6:8)],[Dn,Tn]=Be(la,"line",{strokeWidth:_t}),Yn=Object.assign({width:`${lt(pt)}%`,height:Tn,borderRadius:Xn},Hn),ua=dt(pe),ma={width:`${lt(ua)}%`,height:Tn,borderRadius:Xn,backgroundColor:tn==null?void 0:tn.strokeColor},Rn={width:Dn<0?"100%":Dn,height:Tn};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Ne}-outer`,style:Rn},te.createElement("div",{className:`${Ne}-inner`,style:_n},te.createElement("div",{className:`${Ne}-bg`,style:Yn}),ua!==void 0?te.createElement("div",{className:`${Ne}-success-bg`,style:ma}):null)),Ut)},Je=pe=>{const{size:Ne,steps:Qe,percent:pt=0,strokeWidth:Ft=8,strokeColor:_t,trailColor:Qt=null,prefixCls:zt,children:Ut}=pe,pn=Math.round(Qe*(pt/100)),tn=Ne==="small"?2:14,Hn=Ne!=null?Ne:[tn,Ft],[Xn,_n]=Be(Hn,"step",{steps:Qe,strokeWidth:Ft}),la=Xn/Qe,Dn=new Array(Qe);for(let Tn=0;Tn<Qe;Tn++){const Yn=Array.isArray(_t)?_t[Tn]:_t;Dn[Tn]=te.createElement("div",{key:Tn,className:ce()(`${zt}-steps-item`,{[`${zt}-steps-item-active`]:Tn<=pn-1}),style:{backgroundColor:Tn<=pn-1?Yn:Qt,width:la,height:_n}})}return te.createElement("div",{className:`${zt}-steps-outer`},Dn,Ut)},Te=oe(45930),be=oe(14747),qe=oe(67968),Ye=oe(45503);const yt=pe=>{const Ne=pe?"100%":"-100%";return new Te.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Rt=pe=>{const{componentCls:Ne,iconCls:Qe}=pe;return{[Ne]:Object.assign(Object.assign({},(0,be.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${Ne}-outer`]:{display:"inline-block",width:"100%"},[`&${Ne}-show-info`]:{[`${Ne}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Ne}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:pe.defaultColor}},[`${Ne}-success-bg, ${Ne}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Ne}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Ne}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:pe.fontSize}},[`&${Ne}-status-active`]:{[`${Ne}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:yt(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ne}-rtl${Ne}-status-active`]:{[`${Ne}-bg::before`]:{animationName:yt(!0)}},[`&${Ne}-status-exception`]:{[`${Ne}-bg`]:{backgroundColor:pe.colorError},[`${Ne}-text`]:{color:pe.colorError}},[`&${Ne}-status-exception ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:pe.colorError}},[`&${Ne}-status-success`]:{[`${Ne}-bg`]:{backgroundColor:pe.colorSuccess},[`${Ne}-text`]:{color:pe.colorSuccess}},[`&${Ne}-status-success ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:pe.colorSuccess}}})}},Ht=pe=>{const{componentCls:Ne,iconCls:Qe}=pe;return{[Ne]:{[`${Ne}-circle-trail`]:{stroke:pe.remainingColor},[`&${Ne}-circle ${Ne}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ne}-circle ${Ne}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:pe.circleTextColor,fontSize:pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qe]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Ne}-circle&-status-exception`]:{[`${Ne}-text`]:{color:pe.colorError}},[`${Ne}-circle&-status-success`]:{[`${Ne}-text`]:{color:pe.colorSuccess}}},[`${Ne}-inline-circle`]:{lineHeight:1,[`${Ne}-inner`]:{verticalAlign:"bottom"}}}},en=pe=>{const{componentCls:Ne}=pe;return{[Ne]:{[`${Ne}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:pe.progressStepMinWidth,marginInlineEnd:pe.progressStepMarginInlineEnd,backgroundColor:pe.remainingColor,transition:`all ${pe.motionDurationSlow}`,"&-active":{backgroundColor:pe.defaultColor}}}}}},dn=pe=>{const{componentCls:Ne,iconCls:Qe}=pe;return{[Ne]:{[`${Ne}-small&-line, ${Ne}-small&-line ${Ne}-text ${Qe}`]:{fontSize:pe.fontSizeSM}}}};var sn=(0,qe.Z)("Progress",pe=>{const Ne=pe.marginXXS/2,Qe=(0,Ye.TS)(pe,{progressStepMarginInlineEnd:Ne,progressStepMinWidth:Ne,progressActiveMotionDuration:"2.4s"});return[Rt(Qe),Ht(Qe),en(Qe),dn(Qe)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nt=function(pe,Ne){var Qe={};for(var pt in pe)Object.prototype.hasOwnProperty.call(pe,pt)&&Ne.indexOf(pt)<0&&(Qe[pt]=pe[pt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,pt=Object.getOwnPropertySymbols(pe);Ft<pt.length;Ft++)Ne.indexOf(pt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(pe,pt[Ft])&&(Qe[pt[Ft]]=pe[pt[Ft]]);return Qe};const wn=null,cn=["normal","exception","active","success"];var xn=te.forwardRef((pe,Ne)=>{const{prefixCls:Qe,className:pt,rootClassName:Ft,steps:_t,strokeColor:Qt,percent:zt=0,size:Ut="default",showInfo:pn=!0,type:tn="line",status:Hn,format:Xn,style:_n}=pe,la=Nt(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Dn=te.useMemo(()=>{var we,ve;const ft=dt(pe);return parseInt(ft!==void 0?(we=ft!=null?ft:0)===null||we===void 0?void 0:we.toString():(ve=zt!=null?zt:0)===null||ve===void 0?void 0:ve.toString(),10)},[zt,pe.success,pe.successPercent]),Tn=te.useMemo(()=>!cn.includes(Hn)&&Dn>=100?"success":Hn||"normal",[Hn,Dn]),{getPrefixCls:Yn,direction:ua,progress:ma}=te.useContext(Me.E_),Rn=Yn("progress",Qe),[Pa,Aa]=sn(Rn),ta=te.useMemo(()=>{if(!pn)return null;const we=dt(pe);let ve;const ft=Xn||(Gt=>`${Gt}%`),Tt=tn==="line";return Xn||Tn!=="exception"&&Tn!=="success"?ve=ft(lt(zt),lt(we)):Tn==="exception"?ve=Tt?te.createElement(Ke.Z,null):te.createElement(Se.Z,null):Tn==="success"&&(ve=Tt?te.createElement(ye.Z,null):te.createElement(_e.Z,null)),te.createElement("span",{className:`${Rn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[pn,zt,Dn,Tn,tn,Rn,Xn]),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(Je,Object.assign({},pe,{strokeColor:eo,prefixCls:Rn,steps:_t}),ta):te.createElement(Fn,Object.assign({},pe,{strokeColor:Ua,prefixCls:Rn,direction:ua}),ta):(tn==="circle"||tn==="dashboard")&&(Qa=te.createElement(et,Object.assign({},pe,{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"&&Be(Ut,"circle")[0]<=20,[`${Rn}-show-info`]:pn,[`${Rn}-${Ut}`]:typeof Ut=="string",[`${Rn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,pt,Ft,Aa);return Pa(te.createElement("div",Object.assign({ref:Ne,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),_n),className:Le,role:"progressbar","aria-valuenow":Dn},(0,Ge.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),Pn=xn},59810:function(Oe,ut,oe){"use strict";oe.d(ut,{default:function(){return En}});var te=oe(67294),ye=oe(74902),_e=oe(94184),Ke=oe.n(_e),Se=oe(87462),Ze=oe(15671),ce=oe(43144),Ge=oe(60136),Me=oe(51630),Ee=oe(4942),Ue=oe(45987),Ae=oe(74165),Fe=oe(71002),ae=oe(15861),y=oe(64217);function a(Pe,Ie){var $e="cannot ".concat(Pe.method," ").concat(Pe.action," ").concat(Ie.status,"'"),ze=new Error($e);return ze.status=Ie.status,ze.method=Pe.method,ze.url=Pe.action,ze}function E(Pe){var Ie=Pe.responseText||Pe.response;if(!Ie)return Ie;try{return JSON.parse(Ie)}catch($e){return Ie}}function b(Pe){var Ie=new XMLHttpRequest;Pe.onProgress&&Ie.upload&&(Ie.upload.onprogress=function(Xe){Xe.total>0&&(Xe.percent=Xe.loaded/Xe.total*100),Pe.onProgress(Xe)});var $e=new FormData;Pe.data&&Object.keys(Pe.data).forEach(function(gt){var Xe=Pe.data[gt];if(Array.isArray(Xe)){Xe.forEach(function(nt){$e.append("".concat(gt,"[]"),nt)});return}$e.append(gt,Xe)}),Pe.file instanceof Blob?$e.append(Pe.filename,Pe.file,Pe.file.name):$e.append(Pe.filename,Pe.file),Ie.onerror=function(Xe){Pe.onError(Xe)},Ie.onload=function(){return Ie.status<200||Ie.status>=300?Pe.onError(a(Pe,Ie),E(Ie)):Pe.onSuccess(E(Ie),Ie)},Ie.open(Pe.method,Pe.action,!0),Pe.withCredentials&&"withCredentials"in Ie&&(Ie.withCredentials=!0);var ze=Pe.headers||{};return ze["X-Requested-With"]!==null&&Ie.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ze).forEach(function(gt){ze[gt]!==null&&Ie.setRequestHeader(gt,ze[gt])}),Ie.send($e),{abort:function(){Ie.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(Pe,Ie){if(Pe&&Ie){var $e=Array.isArray(Ie)?Ie:Ie.split(","),ze=Pe.name||"",gt=Pe.type||"",Xe=gt.replace(/\/.*$/,"");return $e.some(function(nt){var Ve=nt.trim();if(/^\*(\/\*)?$/.test(nt))return!0;if(Ve.charAt(0)==="."){var Kt=ze.toLowerCase(),Mt=Ve.toLowerCase(),nn=[Mt];return(Mt===".jpg"||Mt===".jpeg")&&(nn=[".jpg",".jpeg"]),nn.some(function(vn){return Kt.endsWith(vn)})}return/\/\*$/.test(Ve)?Xe===Ve.replace(/\/.*$/,""):gt===Ve?!0:/^\w+$/.test(Ve)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ve,"'.Skip for check.")),!0):!1})}return!0};function ge(Pe,Ie){var $e=Pe.createReader(),ze=[];function gt(){$e.readEntries(function(Xe){var nt=Array.prototype.slice.apply(Xe);ze=ze.concat(nt);var Ve=!nt.length;Ve?Ie(ze):gt()})}gt()}var de=function(Ie,$e,ze){var gt=function Xe(nt,Ve){nt&&(nt.path=Ve||"",nt.isFile?nt.file(function(Kt){ze(Kt)&&(nt.fullPath&&!Kt.webkitRelativePath&&(Object.defineProperties(Kt,{webkitRelativePath:{writable:!0}}),Kt.webkitRelativePath=nt.fullPath.replace(/^\//,""),Object.defineProperties(Kt,{webkitRelativePath:{writable:!1}})),$e([Kt]))}):nt.isDirectory&&ge(nt,function(Kt){Kt.forEach(function(Mt){Xe(Mt,"".concat(Ve).concat(nt.name,"/"))})}))};Ie.forEach(function(Xe){gt(Xe.webkitGetAsEntry())})},he=de,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],De=function(Pe){(0,Ge.Z)($e,Pe);var Ie=(0,Me.Z)($e);function $e(){var ze;(0,Ze.Z)(this,$e);for(var gt=arguments.length,Xe=new Array(gt),nt=0;nt<gt;nt++)Xe[nt]=arguments[nt];return ze=Ie.call.apply(Ie,[this].concat(Xe)),ze.state={uid:ee()},ze.reqs={},ze.fileInput=void 0,ze._isMounted=void 0,ze.onChange=function(Ve){var Kt=ze.props,Mt=Kt.accept,nn=Kt.directory,vn=Ve.target.files,$n=(0,ye.Z)(vn).filter(function(je){return!nn||re(je,Mt)});ze.uploadFiles($n),ze.reset()},ze.onClick=function(Ve){var Kt=ze.fileInput;if(Kt){var Mt=ze.props,nn=Mt.children,vn=Mt.onClick;if(nn&&nn.type==="button"){var $n=Kt.parentNode;$n.focus(),$n.querySelector("button").blur()}Kt.click(),vn&&vn(Ve)}},ze.onKeyDown=function(Ve){Ve.key==="Enter"&&ze.onClick(Ve)},ze.onFileDrop=function(Ve){var Kt=ze.props.multiple;if(Ve.preventDefault(),Ve.type!=="dragover")if(ze.props.directory)he(Array.prototype.slice.call(Ve.dataTransfer.items),ze.uploadFiles,function(nn){return re(nn,ze.props.accept)});else{var Mt=(0,ye.Z)(Ve.dataTransfer.files).filter(function(nn){return re(nn,ze.props.accept)});Kt===!1&&(Mt=Mt.slice(0,1)),ze.uploadFiles(Mt)}},ze.uploadFiles=function(Ve){var Kt=(0,ye.Z)(Ve),Mt=Kt.map(function(nn){return nn.uid=ee(),ze.processFile(nn,Kt)});Promise.all(Mt).then(function(nn){var vn=ze.props.onBatchStart;vn==null||vn(nn.map(function($n){var je=$n.origin,$a=$n.parsedFile;return{file:je,parsedFile:$a}})),nn.filter(function($n){return $n.parsedFile!==null}).forEach(function($n){ze.post($n)})})},ze.processFile=function(){var Ve=(0,ae.Z)((0,Ae.Z)().mark(function Kt(Mt,nn){var vn,$n,je,$a,La,Da,aa,tt,Ct;return(0,Ae.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(vn=ze.props.beforeUpload,$n=Mt,!vn){it.next=14;break}return it.prev=3,it.next=6,vn(Mt,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:Mt,parsedFile:null,action:null,data:null});case 14:if(je=ze.props.action,typeof je!="function"){it.next=21;break}return it.next=18,je(Mt);case 18:$a=it.sent,it.next=22;break;case 21:$a=je;case 22:if(La=ze.props.data,typeof La!="function"){it.next=29;break}return it.next=26,La(Mt);case 26:Da=it.sent,it.next=30;break;case 29:Da=La;case 30:return aa=((0,Fe.Z)($n)==="object"||typeof $n=="string")&&$n?$n:Mt,aa instanceof File?tt=aa:tt=new File([aa],Mt.name,{type:Mt.type}),Ct=tt,Ct.uid=Mt.uid,it.abrupt("return",{origin:Mt,data:Da,parsedFile:Ct,action:$a});case 35:case"end":return it.stop()}},Kt,null,[[3,9]])}));return function(Kt,Mt){return Ve.apply(this,arguments)}}(),ze.saveFileInput=function(Ve){ze.fileInput=Ve},ze}return(0,ce.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(gt){var Xe=this,nt=gt.data,Ve=gt.origin,Kt=gt.action,Mt=gt.parsedFile;if(this._isMounted){var nn=this.props,vn=nn.onStart,$n=nn.customRequest,je=nn.name,$a=nn.headers,La=nn.withCredentials,Da=nn.method,aa=Ve.uid,tt=$n||b,Ct={action:Kt,filename:je,data:nt,file:Mt,headers:$a,withCredentials:La,method:Da||"post",onProgress:function(it){var fn=Xe.props.onProgress;fn==null||fn(it,Mt)},onSuccess:function(it,fn){var Sn=Xe.props.onSuccess;Sn==null||Sn(it,Mt,fn),delete Xe.reqs[aa]},onError:function(it,fn){var Sn=Xe.props.onError;Sn==null||Sn(it,fn,Mt),delete Xe.reqs[aa]}};vn(Ve),this.reqs[aa]=tt(Ct)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(gt){var Xe=this.reqs;if(gt){var nt=gt.uid?gt.uid:gt;Xe[nt]&&Xe[nt].abort&&Xe[nt].abort(),delete Xe[nt]}else Object.keys(Xe).forEach(function(Ve){Xe[Ve]&&Xe[Ve].abort&&Xe[Ve].abort(),delete Xe[Ve]})}},{key:"render",value:function(){var gt,Xe=this.props,nt=Xe.component,Ve=Xe.prefixCls,Kt=Xe.className,Mt=Xe.disabled,nn=Xe.id,vn=Xe.style,$n=Xe.multiple,je=Xe.accept,$a=Xe.capture,La=Xe.children,Da=Xe.directory,aa=Xe.openFileDialogOnClick,tt=Xe.onMouseEnter,Ct=Xe.onMouseLeave,Vt=(0,Ue.Z)(Xe,me),it=Ke()((gt={},(0,Ee.Z)(gt,Ve,!0),(0,Ee.Z)(gt,"".concat(Ve,"-disabled"),Mt),(0,Ee.Z)(gt,Kt,Kt),gt)),fn=Da?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=Mt?{}:{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)({},Sn,{className:it,role:"button",style:vn}),te.createElement("input",(0,Se.Z)({},(0,y.Z)(Vt,{aria:!0,data:!0}),{id:nn,disabled:Mt,type:"file",ref:this.saveFileInput,onClick:function(ca){return ca.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:je},fn,{multiple:$n,onChange:this.onChange},$a!=null?{capture:$a}:{})),La)}}]),$e}(te.Component),We=De;function wt(){}var jt=function(Pe){(0,Ge.Z)($e,Pe);var Ie=(0,Me.Z)($e);function $e(){var ze;(0,Ze.Z)(this,$e);for(var gt=arguments.length,Xe=new Array(gt),nt=0;nt<gt;nt++)Xe[nt]=arguments[nt];return ze=Ie.call.apply(Ie,[this].concat(Xe)),ze.uploader=void 0,ze.saveUploader=function(Ve){ze.uploader=Ve},ze}return(0,ce.Z)($e,[{key:"abort",value:function(gt){this.uploader.abort(gt)}},{key:"render",value:function(){return te.createElement(We,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(te.Component);jt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wt,onError:wt,onSuccess:wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var gn=jt,xe=gn,at=oe(5663),Pt=oe(73935),st=oe(53124),St=oe(98866),lt=oe(10110),dt=oe(24457),mt={icon:function(Ie,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{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:Ie}}]}},name:"file",theme:"twotone"},hn=mt,Be=oe(74643),Re=function(Ie,$e){return te.createElement(Be.Z,(0,Se.Z)({},Ie,{ref:$e,icon:hn}))},ot=te.forwardRef(Re),At=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"},vt=et,ue=function(Ie,$e){return te.createElement(Be.Z,(0,Se.Z)({},Ie,{ref:$e,icon:vt}))},ct=te.forwardRef(ue),Jt={icon:function(Ie,$e){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:Ie}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{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:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{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:Ie}}]}},name:"picture",theme:"twotone"},Fn=Jt,xt=function(Ie,$e){return te.createElement(Be.Z,(0,Se.Z)({},Ie,{ref:$e,icon:Fn}))},Je=te.forwardRef(xt),Te=oe(38379),be=oe(57838),qe=oe(33603),Ye=oe(96159),yt=oe(71577);function Rt(Pe){return Object.assign(Object.assign({},Pe),{lastModified:Pe.lastModified,lastModifiedDate:Pe.lastModifiedDate,name:Pe.name,size:Pe.size,type:Pe.type,uid:Pe.uid,percent:0,originFileObj:Pe})}function Ht(Pe,Ie){const $e=(0,ye.Z)(Ie),ze=$e.findIndex(gt=>{let{uid:Xe}=gt;return Xe===Pe.uid});return ze===-1?$e.push(Pe):$e[ze]=Pe,$e}function en(Pe,Ie){const $e=Pe.uid!==void 0?"uid":"name";return Ie.filter(ze=>ze[$e]===Pe[$e])[0]}function dn(Pe,Ie){const $e=Pe.uid!==void 0?"uid":"name",ze=Ie.filter(gt=>gt[$e]!==Pe[$e]);return ze.length===Ie.length?null:ze}const sn=function(){const Ie=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ze=Ie[Ie.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ze)||[""])[0]},Nt=Pe=>Pe.indexOf("image/")===0,wn=Pe=>{if(Pe.type&&!Pe.thumbUrl)return Nt(Pe.type);const Ie=Pe.thumbUrl||Pe.url||"",$e=sn(Ie);return/^data:image\//.test(Ie)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(Ie)||$e)},cn=200;function jn(Pe){return new Promise(Ie=>{if(!Pe.type||!Nt(Pe.type)){Ie("");return}const $e=document.createElement("canvas");$e.width=cn,$e.height=cn,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${cn}px; height: ${cn}px; z-index: 9999; display: none;`,document.body.appendChild($e);const ze=$e.getContext("2d"),gt=new Image;if(gt.onload=()=>{const{width:Xe,height:nt}=gt;let Ve=cn,Kt=cn,Mt=0,nn=0;Xe>nt?(Kt=nt*(cn/Xe),nn=-(Kt-Ve)/2):(Ve=Xe*(cn/nt),Mt=-(Ve-Kt)/2),ze.drawImage(gt,Mt,nn,Ve,Kt);const vn=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(gt.src),Ie(vn)},gt.crossOrigin="anonymous",Pe.type.startsWith("image/svg+xml")){const Xe=new FileReader;Xe.onload=()=>{Xe.result&&(gt.src=Xe.result)},Xe.readAsDataURL(Pe)}else if(Pe.type.startsWith("image/gif")){const Xe=new FileReader;Xe.onload=()=>{Xe.result&&Ie(Xe.result)},Xe.readAsDataURL(Pe)}else gt.src=window.URL.createObjectURL(Pe)})}var xn=oe(84249),Pn=oe(90674),pe=oe(99569),Ne=oe(38703),Qe=oe(83062),Ft=te.forwardRef((Pe,Ie)=>{let{prefixCls:$e,className:ze,style:gt,locale:Xe,listType:nt,file:Ve,items:Kt,progress:Mt,iconRender:nn,actionIconRender:vn,itemRender:$n,isImgUrl:je,showPreviewIcon:$a,showRemoveIcon:La,showDownloadIcon:Da,previewIcon:aa,removeIcon:tt,downloadIcon:Ct,onPreview:Vt,onDownload:it,onClose:fn}=Pe;var Sn,sa;const{status:ca}=Ve,[fa,Fo]=te.useState(ca);te.useEffect(()=>{ca!=="removed"&&Fo(ca)},[ca]);const[to,Io]=te.useState(!1);te.useEffect(()=>{const Qn=setTimeout(()=>{Io(!0)},300);return()=>{clearTimeout(Qn)}},[]);const xo=nn(Ve);let Ka=te.createElement("div",{className:`${$e}-icon`},xo);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(fa==="uploading"||!Ve.thumbUrl&&!Ve.url){const Qn=Ke()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fa!=="uploading"});Ka=te.createElement("div",{className:Qn},xo)}else{const Qn=je!=null&&je(Ve)?te.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${$e}-list-item-image`,crossOrigin:Ve.crossOrigin}):xo,Jn=Ke()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:je&&!je(Ve)});Ka=te.createElement("a",{className:Jn,onClick:no=>Vt(Ve,no),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const va=Ke()(`${$e}-list-item`,`${$e}-list-item-${fa}`),io=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,po=La?vn((typeof tt=="function"?tt(Ve):tt)||te.createElement(xn.Z,null),()=>fn(Ve),$e,Xe.removeFile):null,yo=Da&&fa==="done"?vn((typeof Ct=="function"?Ct(Ve):Ct)||te.createElement(Pn.Z,null),()=>it(Ve),$e,Xe.downloadFile):null,Xa=nt!=="picture-card"&&nt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Ke()(`${$e}-list-item-actions`,{picture:nt==="picture"})},yo,po),Ra=Ke()(`${$e}-list-item-name`),fo=Ve.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ra,title:Ve.name},io,{href:Ve.url,onClick:Qn=>Vt(Ve,Qn)}),Ve.name),Xa]:[te.createElement("span",{key:"view",className:Ra,onClick:Qn=>Vt(Ve,Qn),title:Ve.name},Ve.name),Xa],an={pointerEvents:"none",opacity:.5},pa=$a?te.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ve.url||Ve.thumbUrl?void 0:an,onClick:Qn=>Vt(Ve,Qn),title:Xe.previewFile},typeof aa=="function"?aa(Ve):aa||te.createElement(pe.Z,null)):null,Fa=(nt==="picture-card"||nt==="picture-circle")&&fa!=="uploading"&&te.createElement("span",{className:`${$e}-list-item-actions`},pa,fa==="done"&&yo,po),{getPrefixCls:Ma}=te.useContext(st.E_),Ja=Ma(),ba=te.createElement("div",{className:va},Ka,fo,Fa,to&&te.createElement(Te.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Qn=>{let{className:Jn}=Qn;const no="percent"in Ve?te.createElement(Ne.Z,Object.assign({},Mt,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return te.createElement("div",{className:Ke()(`${$e}-list-item-progress`,Jn)},no)})),Wo=Ve.response&&typeof Ve.response=="string"?Ve.response:((Sn=Ve.error)===null||Sn===void 0?void 0:Sn.statusText)||((sa=Ve.error)===null||sa===void 0?void 0:sa.message)||Xe.uploadError,wa=fa==="error"?te.createElement(Qe.Z,{title:Wo,getPopupContainer:Qn=>Qn.parentNode},ba):ba;return te.createElement("div",{className:Ke()(`${$e}-list-item-container`,ze),style:gt,ref:Ie},$n?$n(wa,Ve,Kt,{download:it.bind(null,Ve),preview:Vt.bind(null,Ve),remove:fn.bind(null,Ve)}):wa)});const _t=(Pe,Ie)=>{const{listType:$e="text",previewFile:ze=jn,onPreview:gt,onDownload:Xe,onRemove:nt,locale:Ve,iconRender:Kt,isImageUrl:Mt=wn,prefixCls:nn,items:vn=[],showPreviewIcon:$n=!0,showRemoveIcon:je=!0,showDownloadIcon:$a=!1,removeIcon:La,previewIcon:Da,downloadIcon:aa,progress:tt={size:[-1,2],showInfo:!1},appendAction:Ct,appendActionVisible:Vt=!0,itemRender:it,disabled:fn}=Pe,Sn=(0,be.Z)(),[sa,ca]=te.useState(!1);te.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(vn||[]).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="",ze&&ze(an.originFileObj).then(pa=>{an.thumbUrl=pa||"",Sn()}))})},[$e,vn,ze]),te.useEffect(()=>{ca(!0)},[]);const fa=(an,pa)=>{if(gt)return pa==null||pa.preventDefault(),gt(an)},Fo=an=>{typeof Xe=="function"?Xe(an):an.url&&window.open(an.url)},to=an=>{nt==null||nt(an)},Io=an=>{if(Kt)return Kt(an,$e);const pa=an.status==="uploading",Fa=Mt&&Mt(an)?te.createElement(Je,null):te.createElement(ot,null);let Ma=pa?te.createElement(At.Z,null):te.createElement(ct,null);return $e==="picture"?Ma=pa?te.createElement(At.Z,null):Fa:($e==="picture-card"||$e==="picture-circle")&&(Ma=pa?Ve.uploading:Fa),Ma},xo=(an,pa,Fa,Ma)=>{const Ja={type:"text",size:"small",title:Ma,onClick:ba=>{pa(),(0,Ye.l$)(an)&&an.props.onClick&&an.props.onClick(ba)},className:`${Fa}-list-item-action`,disabled:fn};if((0,Ye.l$)(an)){const ba=(0,Ye.Tm)(an,Object.assign(Object.assign({},an.props),{onClick:()=>{}}));return te.createElement(yt.ZP,Object.assign({},Ja,{icon:ba}))}return te.createElement(yt.ZP,Object.assign({},Ja),te.createElement("span",null,an))};te.useImperativeHandle(Ie,()=>({handlePreview:fa,handleDownload:Fo}));const{getPrefixCls:Ka}=te.useContext(st.E_),va=Ka("upload",nn),io=Ka(),po=Ke()(`${va}-list`,`${va}-list-${$e}`),yo=(0,ye.Z)(vn.map(an=>({key:an.uid,file:an})));let Ra={motionDeadline:2e3,motionName:`${va}-${$e==="picture-card"||$e==="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 $e!=="picture-card"&&$e!=="picture-circle"&&(Ra=Object.assign(Object.assign({},fo),Ra)),te.createElement("div",{className:po},te.createElement(Te.CSSMotionList,Object.assign({},Ra,{component:!1}),an=>{let{key:pa,file:Fa,className:Ma,style:Ja}=an;return te.createElement(Ft,{key:pa,locale:Ve,prefixCls:va,className:Ma,style:Ja,file:Fa,items:vn,progress:tt,listType:$e,isImgUrl:Mt,showPreviewIcon:$n,showRemoveIcon:je,showDownloadIcon:$a,removeIcon:La,previewIcon:Da,downloadIcon:aa,iconRender:Io,actionIconRender:xo,itemRender:it,onPreview:fa,onDownload:Fo,onClose:to})}),Ct&&te.createElement(Te.default,Object.assign({},Ra,{visible:Vt,forceRender:!0}),an=>{let{className:pa,style:Fa}=an;return(0,Ye.Tm)(Ct,Ma=>({className:Ke()(Ma.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Ma.style)}))}))};var zt=te.forwardRef(_t),Ut=oe(14747),pn=oe(33507),tn=oe(67968),Hn=oe(45503),_n=Pe=>{const{componentCls:Ie,iconCls:$e}=Pe;return{[`${Ie}-wrapper`]:{[`${Ie}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Pe.colorFillAlter,border:`${Pe.lineWidth}px dashed ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pe.motionDurationSlow}`,[Ie]:{padding:`${Pe.padding}px 0`},[`${Ie}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ie}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ie}-disabled):hover`]:{borderColor:Pe.colorPrimaryHover},[`p${Ie}-drag-icon`]:{marginBottom:Pe.margin,[$e]:{color:Pe.colorPrimary,fontSize:Pe.uploadThumbnailSize}},[`p${Ie}-text`]:{margin:`0 0 ${Pe.marginXXS}px`,color:Pe.colorTextHeading,fontSize:Pe.fontSizeLG},[`p${Ie}-hint`]:{color:Pe.colorTextDescription,fontSize:Pe.fontSize},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`p${Ie}-drag-icon ${$e},
|
|
p${Ie}-text,
|
|
p${Ie}-hint
|
|
`]:{color:Pe.colorTextDisabled}}}}}},Dn=Pe=>{const{componentCls:Ie,antCls:$e,iconCls:ze,fontSize:gt,lineHeight:Xe}=Pe,nt=`${Ie}-list-item`,Ve=`${nt}-actions`,Kt=`${nt}-action`,Mt=Math.round(gt*Xe);return{[`${Ie}-wrapper`]:{[`${Ie}-list`]:Object.assign(Object.assign({},(0,Ut.dF)()),{lineHeight:Pe.lineHeight,[nt]:{position:"relative",height:Pe.lineHeight*gt,marginTop:Pe.marginXS,fontSize:gt,display:"flex",alignItems:"center",transition:`background-color ${Pe.motionDurationSlow}`,"&:hover":{backgroundColor:Pe.controlItemBgHover},[`${nt}-name`]:Object.assign(Object.assign({},Ut.vS),{padding:`0 ${Pe.paddingXS}px`,lineHeight:Xe,flex:"auto",transition:`all ${Pe.motionDurationSlow}`}),[Ve]:{[Kt]:{opacity:0},[`${Kt}${$e}-btn-sm`]:{height:Mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Kt}:focus-visible,
|
|
&.picture ${Kt}
|
|
`]:{opacity:1},[ze]:{color:Pe.actionsColor,transition:`all ${Pe.motionDurationSlow}`},[`&:hover ${ze}`]:{color:Pe.colorText}},[`${Ie}-icon ${ze}`]:{color:Pe.colorTextDescription,fontSize:gt},[`${nt}-progress`]:{position:"absolute",bottom:-Pe.uploadProgressOffset,width:"100%",paddingInlineStart:gt+Pe.paddingXS,fontSize:gt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${nt}:hover ${Kt}`]:{opacity:1,color:Pe.colorText},[`${nt}-error`]:{color:Pe.colorError,[`${nt}-name, ${Ie}-icon ${ze}`]:{color:Pe.colorError},[Ve]:{[`${ze}, ${ze}:hover`]:{color:Pe.colorError},[Kt]:{opacity:1}}},[`${Ie}-list-item-container`]:{transition:`opacity ${Pe.motionDurationSlow}, height ${Pe.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=Pe=>{const{componentCls:Ie}=Pe,$e=`${Ie}-animate-inline`;return[{[`${Ie}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:ua},[`${$e}-leave`]:{animationName:ma}}},{[`${Ie}-wrapper`]:(0,Yn.J$)(Pe)},ua,ma]},Aa=oe(47448),ta=oe(84780);const Ua=Pe=>{const{componentCls:Ie,iconCls:$e,uploadThumbnailSize:ze,uploadProgressOffset:gt}=Pe,Xe=`${Ie}-list`,nt=`${Xe}-item`;return{[`${Ie}-wrapper`]:{[`
|
|
${Xe}${Xe}-picture,
|
|
${Xe}${Xe}-picture-card,
|
|
${Xe}${Xe}-picture-circle
|
|
`]:{[nt]:{position:"relative",height:ze+Pe.lineWidth*2+Pe.paddingXS*2,padding:Pe.paddingXS,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${nt}-thumbnail`]:Object.assign(Object.assign({},Ut.vS),{width:ze,height:ze,lineHeight:`${ze+Pe.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:Pe.fontSizeHeading2,color:Pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${nt}-progress`]:{bottom:gt,width:`calc(100% - ${Pe.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ze+Pe.paddingXS}},[`${nt}-error`]:{borderColor:Pe.colorError,[`${nt}-thumbnail ${$e}`]:{[`svg path[fill='${Aa.blue[0]}']`]:{fill:Pe.colorErrorBg},[`svg path[fill='${Aa.blue.primary}']`]:{fill:Pe.colorError}}},[`${nt}-uploading`]:{borderStyle:"dashed",[`${nt}-name`]:{marginBottom:gt}}},[`${Xe}${Xe}-picture-circle ${nt}`]:{[`&, &::before, ${nt}-thumbnail`]:{borderRadius:"50%"}}}}},eo=Pe=>{const{componentCls:Ie,iconCls:$e,fontSizeLG:ze,colorTextLightSolid:gt}=Pe,Xe=`${Ie}-list`,nt=`${Xe}-item`,Ve=Pe.uploadPicCardSize;return{[`
|
|
${Ie}-wrapper${Ie}-picture-card-wrapper,
|
|
${Ie}-wrapper${Ie}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ut.dF)()),{display:"inline-block",width:"100%",[`${Ie}${Ie}-select`]:{width:Ve,height:Ve,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Pe.colorFillAlter,border:`${Pe.lineWidth}px dashed ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pe.motionDurationSlow}`,[`> ${Ie}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ie}-disabled):hover`]:{borderColor:Pe.colorPrimary}},[`${Xe}${Xe}-picture-card, ${Xe}${Xe}-picture-circle`]:{[`${Xe}-item-container`]:{display:"inline-block",width:Ve,height:Ve,marginBlock:`0 ${Pe.marginXS}px`,marginInline:`0 ${Pe.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[nt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Pe.paddingXS*2}px)`,height:`calc(100% - ${Pe.paddingXS*2}px)`,backgroundColor:Pe.colorBgMask,opacity:0,transition:`all ${Pe.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 ${Pe.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:ze,margin:`0 ${Pe.marginXXS}px`,fontSize:ze,cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${nt}-actions, ${nt}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-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:Pe.margin,display:"block",width:`calc(100% - ${Pe.paddingXS*2}px)`},[`${nt}-uploading`]:{[`&${nt}`]:{backgroundColor:Pe.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${nt}-progress`]:{bottom:Pe.marginXL,width:`calc(100% - ${Pe.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ie}-wrapper${Ie}-picture-circle-wrapper`]:{[`${Ie}${Ie}-select`]:{borderRadius:"50%"}}}};var Le=Pe=>{const{componentCls:Ie}=Pe;return{[`${Ie}-rtl`]:{direction:"rtl"}}};const we=Pe=>{const{componentCls:Ie,colorTextDisabled:$e}=Pe;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},(0,Ut.Wf)(Pe)),{[Ie]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ie}-select`]:{display:"inline-block"},[`${Ie}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var ve=(0,tn.Z)("Upload",Pe=>{const{fontSizeHeading3:Ie,fontSize:$e,lineHeight:ze,lineWidth:gt,controlHeightLG:Xe}=Pe,nt=Math.round($e*ze),Ve=(0,Hn.TS)(Pe,{uploadThumbnailSize:Ie*2,uploadProgressOffset:nt/2+gt,uploadPicCardSize:Xe*2.55});return[we(Ve),_n(Ve),Ua(Ve),eo(Ve),Dn(Ve),Pa(Ve),Le(Ve),(0,pn.Z)(Ve)]},Pe=>({actionsColor:Pe.colorTextDescription})),ft=function(Pe,Ie,$e,ze){function gt(Xe){return Xe instanceof $e?Xe:new $e(function(nt){nt(Xe)})}return new($e||($e=Promise))(function(Xe,nt){function Ve(nn){try{Mt(ze.next(nn))}catch(vn){nt(vn)}}function Kt(nn){try{Mt(ze.throw(nn))}catch(vn){nt(vn)}}function Mt(nn){nn.done?Xe(nn.value):gt(nn.value).then(Ve,Kt)}Mt((ze=ze.apply(Pe,Ie||[])).next())})};const Tt=`__LIST_IGNORE_${Date.now()}__`,Gt=(Pe,Ie)=>{const{fileList:$e,defaultFileList:ze,onRemove:gt,showUploadList:Xe=!0,listType:nt="text",onPreview:Ve,onDownload:Kt,onChange:Mt,onDrop:nn,previewFile:vn,disabled:$n,locale:je,iconRender:$a,isImageUrl:La,progress:Da,prefixCls:aa,className:tt,type:Ct="select",children:Vt,style:it,itemRender:fn,maxCount:Sn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Io}=Pe,xo=te.useContext(St.Z),Ka=$n!=null?$n:xo,[va,io]=(0,at.Z)(ze||[],{value:$e,postState:Yt=>Yt!=null?Yt:[]}),[po,yo]=te.useState("drop"),Xa=te.useRef(null);te.useMemo(()=>{const Yt=Date.now();($e||[]).forEach((Cn,zn)=>{!Cn.uid&&!Object.isFrozen(Cn)&&(Cn.uid=`__AUTO__${Yt}_${zn}__`)})},[$e]);const Ra=(Yt,Cn,zn)=>{let bn=(0,ye.Z)(Cn),Wn=!1;Sn===1?bn=bn.slice(-1):Sn&&(Wn=bn.length>Sn,bn=bn.slice(0,Sn)),(0,Pt.flushSync)(()=>{io(bn)});const Ba={file:Yt,fileList:bn};zn&&(Ba.event=zn),(!Wn||bn.some(Lo=>Lo.uid===Yt.uid))&&(0,Pt.flushSync)(()=>{Mt==null||Mt(Ba)})},fo=(Yt,Cn)=>ft(void 0,void 0,void 0,function*(){const{beforeUpload:zn,transformFile:bn}=Pe;let Wn=Yt;if(zn){const Ba=yield zn(Yt,Cn);if(Ba===!1)return!1;if(delete Yt[Tt],Ba===Tt)return Object.defineProperty(Yt,Tt,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Wn=Ba)}return bn&&(Wn=yield bn(Wn)),Wn}),an=Yt=>{const Cn=Yt.filter(Wn=>!Wn.file[Tt]);if(!Cn.length)return;const zn=Cn.map(Wn=>Rt(Wn.file));let bn=(0,ye.Z)(va);zn.forEach(Wn=>{bn=Ht(Wn,bn)}),zn.forEach((Wn,Ba)=>{let Lo=Wn;if(Cn[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,bn)})},pa=(Yt,Cn,zn)=>{try{typeof Yt=="string"&&(Yt=JSON.parse(Yt))}catch(Ba){}if(!en(Cn,va))return;const bn=Rt(Cn);bn.status="done",bn.percent=100,bn.response=Yt,bn.xhr=zn;const Wn=Ht(bn,va);Ra(bn,Wn)},Fa=(Yt,Cn)=>{if(!en(Cn,va))return;const zn=Rt(Cn);zn.status="uploading",zn.percent=Yt.percent;const bn=Ht(zn,va);Ra(zn,bn,Yt)},Ma=(Yt,Cn,zn)=>{if(!en(zn,va))return;const bn=Rt(zn);bn.error=Yt,bn.response=Cn,bn.status="error";const Wn=Ht(bn,va);Ra(bn,Wn)},Ja=Yt=>{let Cn;Promise.resolve(typeof gt=="function"?gt(Yt):gt).then(zn=>{var bn;if(zn===!1)return;const Wn=dn(Yt,va);Wn&&(Cn=Object.assign(Object.assign({},Yt),{status:"removed"}),va==null||va.forEach(Ba=>{const Lo=Cn.uid!==void 0?"uid":"name";Ba[Lo]===Cn[Lo]&&!Object.isFrozen(Ba)&&(Ba.status="removed")}),(bn=Xa.current)===null||bn===void 0||bn.abort(Cn),Ra(Cn,Wn))})},ba=Yt=>{yo(Yt.type),Yt.type==="drop"&&(nn==null||nn(Yt))};te.useImperativeHandle(Ie,()=>({onBatchStart:an,onSuccess:pa,onProgress:Fa,onError:Ma,fileList:va,upload:Xa.current}));const{getPrefixCls:Wo,direction:wa,upload:Qn}=te.useContext(st.E_),Jn=Wo("upload",aa),no=Object.assign(Object.assign({onBatchStart:an,onError:Ma,onProgress:Fa,onSuccess:pa},Pe),{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,(!Vt||Ka)&&delete no.id;const[Do,Qo]=ve(Jn),[br]=(0,lt.Z)("Upload",dt.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:It,previewIcon:Lt,downloadIcon:Bt}=typeof Xe=="boolean"?{}:Xe,Ot=(Yt,Cn)=>Xe?te.createElement(zt,{prefixCls:Jn,listType:nt,items:va,previewFile:vn,onPreview:Ve,onDownload:Kt,onRemove:Ja,showRemoveIcon:!Ka&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:It,previewIcon:Lt,downloadIcon:Bt,iconRender:$a,locale:Object.assign(Object.assign({},br),je),isImageUrl:La,progress:Da,appendAction:Yt,appendActionVisible:Cn,itemRender:fn,disabled:Ka}):Yt,An=Ke()(`${Jn}-wrapper`,tt,Io,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 Yt=Ke()(Qo,Jn,`${Jn}-drag`,{[`${Jn}-drag-uploading`]:va.some(Cn=>Cn.status==="uploading"),[`${Jn}-drag-hover`]:po==="dragover",[`${Jn}-disabled`]:Ka,[`${Jn}-rtl`]:wa==="rtl"});return Do(te.createElement("span",{className:An},te.createElement("div",{className:Yt,style:Sa,onDrop:ba,onDragOver:ba,onDragLeave:ba},te.createElement(xe,Object.assign({},no,{ref:Xa,className:`${Jn}-btn`}),te.createElement("div",{className:`${Jn}-drag-container`},Vt))),Ot()))}const ka=Ke()(Jn,`${Jn}-select`,{[`${Jn}-disabled`]:Ka}),xa=(Yt=>te.createElement("div",{className:ka,style:Yt},te.createElement(xe,Object.assign({},no,{ref:Xa}))))(Vt?void 0:{display:"none"});return Do(nt==="picture-card"||nt==="picture-circle"?te.createElement("span",{className:An},Ot(xa,!!Vt)):te.createElement("span",{className:An},xa,Ot()))};var un=te.forwardRef(Gt),Bn=function(Pe,Ie){var $e={};for(var ze in Pe)Object.prototype.hasOwnProperty.call(Pe,ze)&&Ie.indexOf(ze)<0&&($e[ze]=Pe[ze]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ze=Object.getOwnPropertySymbols(Pe);gt<ze.length;gt++)Ie.indexOf(ze[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ze[gt])&&($e[ze[gt]]=Pe[ze[gt]]);return $e},Ia=te.forwardRef((Pe,Ie)=>{var{style:$e,height:ze}=Pe,gt=Bn(Pe,["style","height"]);return te.createElement(un,Object.assign({ref:Ie},gt,{type:"drag",style:Object.assign(Object.assign({},$e),{height:ze})}))});const rt=un;rt.Dragger=Ia,rt.LIST_IGNORE=Tt;var En=rt},62661:function(Oe,ut){"use strict";var oe;var te=Symbol.for("react.element"),ye=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Ze=Symbol.for("react.provider"),ce=Symbol.for("react.context"),Ge=Symbol.for("react.server_context"),Me=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case _e:case Se:case Ke:case Ee:case Ue:return E;default:switch(E=E&&E.$$typeof,E){case Ge:case ce:case Me:case Fe:case Ae:case Ze:return E;default:return b}}case ye:return b}}}oe=ce,oe=Ze,oe=te,oe=Me,oe=_e,oe=Fe,oe=Ae,oe=ye,oe=Se,oe=Ke,oe=Ee,oe=Ue,oe=function(){return!1},oe=function(){return!1},oe=function(E){return a(E)===ce},oe=function(E){return a(E)===Ze},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return a(E)===Me},oe=function(E){return a(E)===_e},oe=function(E){return a(E)===Fe},ut.isMemo=function(E){return a(E)===Ae},oe=function(E){return a(E)===ye},oe=function(E){return a(E)===Se},oe=function(E){return a(E)===Ke},oe=function(E){return a(E)===Ee},oe=function(E){return a(E)===Ue},oe=function(E){return typeof E=="string"||typeof E=="function"||E===_e||E===Se||E===Ke||E===Ee||E===Ue||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Fe||E.$$typeof===Ae||E.$$typeof===Ze||E.$$typeof===ce||E.$$typeof===Me||E.$$typeof===y||E.getModuleId!==void 0)},oe=a},95845:function(Oe,ut,oe){"use strict";Oe.exports=oe(62661)},72665:function(Oe,ut){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,ye=te?Symbol.for("react.element"):60103,_e=te?Symbol.for("react.portal"):60106,Ke=te?Symbol.for("react.fragment"):60107,Se=te?Symbol.for("react.strict_mode"):60108,Ze=te?Symbol.for("react.profiler"):60114,ce=te?Symbol.for("react.provider"):60109,Ge=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,Ae=te?Symbol.for("react.suspense"):60113,Fe=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,y=te?Symbol.for("react.lazy"):60116,a=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 ye:switch(ne=ne.type,ne){case Me:case Ee:case Ke:case Ze:case Se:case Ae:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ge:case Ue:case y:case ae:case ce:return ne;default:return re}}case _e:return re}}}function ee(ne){return z(ne)===Ee}oe=Me,oe=Ee,oe=Ge,oe=ce,oe=ye,oe=Ue,oe=Ke,oe=y,oe=ae,oe=_e,oe=Ze,oe=Se,oe=Ae,oe=function(ne){return ee(ne)||z(ne)===Me},oe=ee,oe=function(ne){return z(ne)===Ge},oe=function(ne){return z(ne)===ce},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===ye},oe=function(ne){return z(ne)===Ue},oe=function(ne){return z(ne)===Ke},oe=function(ne){return z(ne)===y},ut.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===_e},oe=function(ne){return z(ne)===Ze},oe=function(ne){return z(ne)===Se},oe=function(ne){return z(ne)===Ae},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ke||ne===Ee||ne===Ze||ne===Se||ne===Ae||ne===Fe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===ae||ne.$$typeof===ce||ne.$$typeof===Ge||ne.$$typeof===Ue||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},oe=z},12060:function(Oe,ut,oe){"use strict";Oe.exports=oe(72665)},64217:function(Oe,ut,oe){"use strict";oe.d(ut,{Z:function(){return Ge}});var te=oe(1413),ye=`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`,_e=`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`,Ke="".concat(ye," ").concat(_e).split(/[\s\n]+/),Se="aria-",Ze="data-";function ce(Me,Ee){return Me.indexOf(Ee)===0}function Ge(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 Ae={};return Object.keys(Me).forEach(function(Fe){(Ue.aria&&(Fe==="role"||ce(Fe,Se))||Ue.data&&ce(Fe,Ze)||Ue.attr&&Ke.includes(Fe))&&(Ae[Fe]=Me[Fe])}),Ae}}}]);
|