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

165 lines
442 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6820],{84249:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),Je={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"},Ye=Je,he=oe(74643),Ve=function(ze,Ee){return ye.createElement(he.Z,(0,te.Z)({},ze,{ref:Ee,icon:Ye}))},ce=ye.forwardRef(Ve)},90674:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),Je={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"},Ye=Je,he=oe(74643),Ve=function(ze,Ee){return ye.createElement(he.Z,(0,te.Z)({},ze,{ref:Ee,icon:Ye}))},ce=ye.forwardRef(Ve)},22751:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),Je={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"},Ye=Je,he=oe(74643),Ve=function(ze,Ee){return ye.createElement(he.Z,(0,te.Z)({},ze,{ref:Ee,icon:Ye}))},ce=ye.forwardRef(Ve)},91034:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),ye=oe(67294),Je={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"},Ye=Je,he=oe(74643),Ve=function(ze,Ee){return ye.createElement(he.Z,(0,te.Z)({},ze,{ref:Ee,icon:Ye}))},ce=ye.forwardRef(Ve)},71736:function(Ge,mt){"use strict";mt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ge(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var mt=[];function oe(ae,a){var y=mt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=mt.pop();return ae===void 0?new go.Point:ae}function ye(ae){mt.push(ae)}function Je(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var ie=ae-y,ge=b-z,de=NaN,Se=NaN;if(ie===0)if(ge===0)ae===y&&(de=ae,Se=a);else{var me=(x-ee)/ge,Ke=x-me*b;de=ae,Se=me*de+Ke}else if(ge===0){var Ze=(a-E)/ie,bt=a-Ze*ae;de=b,Se=Ze*de+bt}else{var Ze=(a-E)/ie,me=(x-ee)/ge,bt=a-Ze*ae,Ke=x-me*b;de=(Ke-bt)/(Ze-me),Se=Ze*de+bt}return ne.x=de,ne.y=Se,ne}function Ye(ae,a,y,E,b,x,z,ee,ne,ie,ge,de,Se,me){var Ke=1-ne,Ze=ne,bt=ae*Ke+y*Ze,Yt=a*Ke+E*Ze,Zt=y*Ke+b*Ze,xe=E*Ke+x*Ze,it=b*Ke+z*Ze,ct=x*Ke+ee*Ze,gt=bt*Ke+Zt*Ze,St=Yt*Ke+xe*Ze,qt=Zt*Ke+it*Ze,on=xe*Ke+ct*Ze,Mn=gt*Ke+qt*Ze,In=St*Ke+on*Ze;ie.x=bt,ie.y=Yt,ge.x=gt,ge.y=St,de.x=Mn,de.y=In,Se.x=qt,Se.y=on,me.x=it,me.y=ct}var he=new go.Spot(.156,.156),Ve=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ce,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=he,b.spot2=Ve,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ce*a,0,a,(1-ce)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ce*y,(1-ce)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ce*y,ce*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ce)*a,0,0,(1-ce)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var ke=[];function ze(){var ae=ke.pop();return ae===void 0?[]:ae}function Ee(ae){ae.length=0,ke.push(ae)}function Ue(ae){for(var a=ze(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Te(ae){var a=Ae(ae),y=ze();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Ee(a),y}function Ae(ae){for(var a=Ue(ae),y=ze(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],ie=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,ie.x,ie.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ee(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ue(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ue(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ue(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ue(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ue(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ue(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ue(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Ae(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Ae(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Ae(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Ae(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Ae(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Ae(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ee(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=Te(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=Te(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ee(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=Te(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=Te(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=Te(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=Te(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=he,x.spot2=Ve,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=ce/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),ie=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,ie)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-ie)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-ie)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ie).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ce*a,0,a,(.5-ce/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ce/2)*y,ce*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*ce;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=ce*.4;var ie=te(),ge=te(),de=te(),Se=te();Ye(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,ie,ge,de,Se,Se);var me=te(),Ke=te(),Ze=te();Ye(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Se,Se,Ze,me,Ke);var bt=te(),Yt=te(),Zt=te();Ye(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,bt,Yt,Zt,Se,Se);var xe=te(),it=te(),ct=te();return Ye(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Se,Se,ct,xe,it),ne.add(new go.PathSegment(go.PathSegment.Move,ct.x*a,ct.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,xe.x*a,xe.y*y,it.x*a,it.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,ct.x*a,ct.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ze.x*a,Ze.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,me.x*a,me.y*y,Ke.x*a,Ke.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*a,Zt.y*y,bt.x*a,bt.y*y,Yt.x*a,Yt.y*y).close()),ye(ie),ye(ge),ye(de),ye(Se),ye(me),ye(Ke),ye(Ze),ye(bt),ye(Yt),ye(Zt),ye(xe),ye(it),ye(ct),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),ie=te(),ge=te(),de=te(),Se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ye(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,ie,ne,ne),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var me=oe(ie.x,ie.y);Ye(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,ie,ge,de);var Ke=oe(ie.x,ie.y);Se.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Ke.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Ke.x*.1+.9)*a,(Ke.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,Ke.x*a,Ke.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=ce*.35;var Ze=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var bt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(bt),ye(ne),ye(ie),ye(ge),ye(de),ye(me),ye(Ke),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ce,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*ce;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,ie=new go.PathFigure(0,z,!0);ne.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,z)),ie.add(new go.PathSegment(go.PathSegment.Line,x,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),ye(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,ie=new go.PathFigure(0,z,!0);ne.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,z)),ie.add(new go.PathSegment(go.PathSegment.Line,x,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),ye(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Je(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Je(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var ie=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=Je(0,.5,.3,ee/y,0,x/y,1,x/y,te());return ie.spot1=new go.Spot(de.x,de.y),de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,de),ie.spot2=new go.Spot(de.x,de.y),ye(de),ie}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Je(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var ie=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ie.spot1=new go.Spot(0,x/y);var de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,te());return ie.spot2=new go.Spot(de.x,de.y),ye(de),ie}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Je(.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 Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Je(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 Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Je(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Je(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ye(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ce*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ce*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ce*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ce*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ce*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ce*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ce*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ce*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ce*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ce*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ce*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ce*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ce*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ce*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ce*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ce*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ce*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ce*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ce*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=ce*b,ee=ce*x,ne=.5,ie=.1,ge=new go.PathFigure(ne*a,(ie+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,ie*y,(ne-z)*a,(ie+x)*y,(ne-b)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-x)*y,(ne-b)*a,(ie-ee)*y,(ne-z)*a,(ie-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,ie*y,(ne+z)*a,(ie-x)*y,(ne+b)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie+x)*y,(ne+b)*a,(ie+ee)*y,(ne+z)*a,(ie+x)*y));var de=.05,Se=ce*de;ne=.05,ie=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,ie=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,ie*y,(ne+Se)*a,(ie-de)*y,(ne+de)*a,(ie-Se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,Se=ce*de,ne=.825,ie=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-de)*y,(ne+de)*a,(ie-Se)*y,(ne+Se)*a,(ie-de)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,ie*y,(ne-Se)*a,(ie-de)*y,(ne-de)*a,(ie-Se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,Se=ce*de,ne=.5,ie=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-de)*y,(ne+de)*a,(ie-Se)*y,(ne+Se)*a,(ie-de)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,ie*y,(ne-Se)*a,(ie-de)*y,(ne-de)*a,(ie-Se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,Se=ce*de,ne=.175,ie=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-de)*y,(ne+de)*a,(ie-Se)*y,(ne+Se)*a,(ie-de)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,ie*y,(ne-Se)*a,(ie-de)*y,(ne-de)*a,(ie-Se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,Se=ce*de,ne=.05,ie=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-de)*y,(ne-de)*a,(ie-Se)*y,(ne-Se)*a,(ie-de)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ce*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ce*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var ie=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ie.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=ce*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ie=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.4,z=ce*.1,ee=.1,ne=.9,ie=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var de=new go.PathFigure((ne+ee)*a,ie*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie+ee)*y,(ne+ee)*a,(ie+z)*y,(ne+z)*a,(ie+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ie*y,(ne-z)*a,(ie+ee)*y,(ne-ee)*a,(ie+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-ee)*y,(ne-ee)*a,(ie-z)*y,(ne-z)*a,(ie-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ie*y,(ne+z)*a,(ie-ee)*y,(ne+ee)*a,(ie-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ce*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ce*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ie=new go.PathFigure(.2*a,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=ce*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ce*.8,ee=.8,ne=0,ie=.5,ge=(b-a)/2,de=(x-y)/2,Se=new go.PathFigure(ne*a+ge,(ie+ee)*y+de,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,ie*y+de,(ne-z)*a+ge,(ie+ee)*y+de,(ne-ee)*a+ge,(ie+z)*y+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie-ee)*y+de,(ne-ee)*a+ge,(ie-z)*y+de,(ne-z)*a+ge,(ie-ee)*y+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,ie*y+de,ne*a+ge,(ie-ee)*y+de,(ne-ee+z*.5)*a+ge,(ie-z)*y+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie+ee)*y+de,(ne-ee+z*.5)*a+ge,(ie+z)*y+de,ne*a+ge,(ie+ee)*y+de).close()),z=ce*.4,ee=.4,ne=.2,ie=.5;var me=new go.PathFigure(ne*a+ge,(ie+ee)*y+de,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,ie*y+de,(ne-z)*a+ge,(ie+ee)*y+de,(ne-ee)*a+ge,(ie+z)*y+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie-ee)*y+de,(ne-ee)*a+ge,(ie-z)*y+de,(ne-z)*a+ge,(ie-ee)*y+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,ie*y+de,ne*a+ge,(ie-ee)*y+de,(ne-ee+z*.5)*a+ge,(ie-z)*y+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie+ee)*y+de,(ne-ee+z*.5)*a+ge,(ie+z)*y+de,ne*a+ge,(ie+ee)*y+de).close()),z=ce*.2,ee=.2,ne=.5,ie=.5;var Ke=new go.PathFigure((ne-ee)*a+ge,ie*y+de,!0);E.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie-ee)*y+de,(ne-ee)*a+ge,(ie-z)*y+de,(ne-z)*a+ge,(ie-ee)*y+de)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,ie*y+de,(ne+z)*a+ge,(ie-ee)*y+de,(ne+ee)*a+ge,(ie-z)*y+de)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie+ee)*y+de,(ne+ee)*a+ge,(ie+z)*y+de,(ne+z)*a+ge,(ie+ee)*y+de)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,ie*y+de,(ne-z)*a+ge,(ie+ee)*y+de,(ne-ee)*a+ge,(ie+z)*y+de)),z=ce*.4,ee=.4,ne=.8,ie=.5;var Ze=new go.PathFigure(ne*a+ge,(ie-ee)*y+de,!0);E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,ie*y+de,(ne+z)*a+ge,(ie-ee)*y+de,(ne+ee)*a+ge,(ie-z)*y+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie+ee)*y+de,(ne+ee)*a+ge,(ie+z)*y+de,(ne+z)*a+ge,(ie+ee)*y+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,ie*y+de,ne*a+ge,(ie+ee)*y+de,(ne+ee-z*.5)*a+ge,(ie+z)*y+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie-ee)*y+de,(ne+ee-z*.5)*a+ge,(ie-z)*y+de,ne*a+ge,(ie-ee)*y+de).close()),z=ce*.8,ee=.8,ne=1,ie=.5;var bt=new go.PathFigure(ne*a+ge,(ie-ee)*y+de,!0);return E.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,ie*y+de,(ne+z)*a+ge,(ie-ee)*y+de,(ne+ee)*a+ge,(ie-z)*y+de)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie+ee)*y+de,(ne+ee)*a+ge,(ie+z)*y+de,(ne+z)*a+ge,(ie+ee)*y+de)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,ie*y+de,ne*a+ge,(ie+ee)*y+de,(ne+ee-z*.5)*a+ge,(ie+z)*y+de)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(ie-ee)*y+de,(ne+ee-z*.5)*a+ge,(ie-z)*y+de,ne*a+ge,(ie-ee)*y+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),ie=te(),ge=te(),de=te();Ye(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,ie,ge,de);var Se=oe(ie.x,ie.y),me=new go.PathFigure(ie.x*a,ie.y*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ye(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,ie,ne,ne),me.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=ce*.3,x=.3,Ye(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,ie,ne,ne),me.add(new go.PathSegment(go.PathSegment.Line,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ye(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,ie,ge,de),me.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ye(ne),ye(ie),ye(ge),ye(de),ye(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*ce,ne=.4*Math.SQRT2/2+.5,ie=.5-.5*Math.SQRT2/2,ge=1,de=.5,Se=.5,me=0,Ke=new go.PathFigure(ne*a,(1-ie)*y,!1);return E.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+x)*a,(me+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Ke.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ke.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ke.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,ie=Math.PI/4,ge=4*(1-Math.cos(ie))/(3*Math.sin(ie)),de=ge*.5,Se=z,me=z,Ke=ge*Se,Ze=ge*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,ne*y,(ee-(Ke+Se)/2)*a,(ne+(me+Ze)/2)*y,(ee-Se)*a,(ne+Ze)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-me)*y,(ee-Se)*a,(ne-Ze)*y,(ee-Ke)*a,(ne-me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,ne*y,(ee+Ke)*a,(ne-me)*y,(ee+Se)*a,(ne-Ze)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(ne+Ze)*y,(ee+(Ke+Se)/2)*a,(ne+(me+Ze)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var bt=new go.PathFigure(.2*a,y,!1);E.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Yt=new go.PathFigure(.8*a,y,!1);return E.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ce*.1,ne=.2,ie=.9,ge=new go.PathFigure((ne-z)*a,ie*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-z)*y,(ne-z)*a,(ie-ee)*y,(ne-ee)*a,(ie-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,ie*y,(ne+ee)*a,(ie-z)*y,(ne+z)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie+z)*y,(ne+z)*a,(ie+ee)*y,(ne+ee)*a,(ie+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,ie*y,(ne-ee)*a,(ie+z)*y,(ne-z)*a,(ie+ee)*y).close()),z=.1,ee=ce*.1,ne=.8,ie=.9;var de=new go.PathFigure((ne-z)*a,ie*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie-z)*y,(ne-z)*a,(ie-ee)*y,(ne-ee)*a,(ie-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,ie*y,(ne+ee)*a,(ie-z)*y,(ne+z)*a,(ie-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ie+z)*y,(ne+z)*a,(ie+ee)*y,(ne+ee)*a,(ie+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,ie*y,(ne-ee)*a,(ie+z)*y,(ne-z)*a,(ie+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,ie=ce*.1,ge=.1,de=.9,Se=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-ie)*y,(ge-ie)*a,(de-ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+ie)*a,(de-ne)*y,(ge+ne)*a,(de-ie)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+ie)*y,(ge+ie)*a,(de+ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-ie)*a,(de+ne)*y,(ge-ne)*a,(de+ie)*y)),ne=.1,ie=ce*.1,ge=.4,de=.9;var me=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-ie)*y,(ge-ie)*a,(de-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+ie)*a,(de-ne)*y,(ge+ne)*a,(de-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+ie)*y,(ge+ie)*a,(de+ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-ie)*a,(de+ne)*y,(ge-ne)*a,(de+ie)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,de=ce*.05,Se=.175,me=.95,ee=new go.PathFigure((Se-ge)*a,me*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me-ge)*y,(Se-ge)*a,(me-de)*y,(Se-de)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,me*y,(Se+de)*a,(me-ge)*y,(Se+ge)*a,(me-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me+ge)*y,(Se+ge)*a,(me+de)*y,(Se+de)*a,(me+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,me*y,(Se-de)*a,(me+ge)*y,(Se-ge)*a,(me+de)*y));var ge=.05,de=ce*.05,Se=.375,me=.95,ne=new go.PathFigure((Se-ge)*a,me*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me-ge)*y,(Se-ge)*a,(me-de)*y,(Se-de)*a,(me-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,me*y,(Se+de)*a,(me-ge)*y,(Se+ge)*a,(me-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me+ge)*y,(Se+ge)*a,(me+de)*y,(Se+de)*a,(me+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,me*y,(Se-de)*a,(me+ge)*y,(Se-ge)*a,(me+de)*y));var ge=.05,de=ce*.05,Se=.625,me=.95,ie=new go.PathFigure((Se-ge)*a,me*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me-ge)*y,(Se-ge)*a,(me-de)*y,(Se-de)*a,(me-ge)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,me*y,(Se+de)*a,(me-ge)*y,(Se+ge)*a,(me-de)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me+ge)*y,(Se+ge)*a,(me+de)*y,(Se+de)*a,(me+ge)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,me*y,(Se-de)*a,(me+ge)*y,(Se-ge)*a,(me+de)*y));var ge=.05,de=ce*.05,Se=.825,me=.95,Ke=new go.PathFigure((Se-ge)*a,me*y,!0);E.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me-ge)*y,(Se-ge)*a,(me-de)*y,(Se-de)*a,(me-ge)*y)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,me*y,(Se+de)*a,(me-ge)*y,(Se+ge)*a,(me-de)*y)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(me+ge)*y,(Se+ge)*a,(me+de)*y,(Se+de)*a,(me+ge)*y)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ge)*a,me*y,(Se-de)*a,(me+ge)*y,(Se-ge)*a,(me+de)*y).close());var Ze=new go.PathFigure(0,y,!1);return E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=ce*.05,ie=.35,ge=.775,de=new go.PathFigure((ie-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ee)*y,(ie-ee)*a,(ge-ne)*y,(ie-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ee)*a,ge*y,(ie+ne)*a,(ge-ee)*y,(ie+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ee)*y,(ie+ee)*a,(ge+ne)*y,(ie+ne)*a,(ge+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ee)*a,ge*y,(ie-ne)*a,(ge+ee)*y,(ie-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=ce*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var ie=new go.PathFigure(0,.7*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var ie=new go.PathFigure(.15*a,.5*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=ce*.05,z=.5,ee=.8;var ie=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*ce,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ie=new go.PathFigure(a*.78,y*.05,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ce,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*ce,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ge={},mt="5.0",oe={},te=null,ye=!1,Je=!1,Ye=null,he=!1,Ve=null,ce=null,ke=0;ke<arguments.length;ke++){var ze=arguments[ke];if(ze!==null)switch(typeof ze){case"number":mt=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?mt=ze:Ye=ze;break;case"object":typeof ze.is3D!="undefined"?te=ze:oe=ze;break;case"boolean":ye=ze,Je=!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&&!Je&&(ye=!0)),Ye!==null&&oe.id===void 0&&(oe.id=Ye);var Ee="",Ue="",Te=!1,Ae=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(Be){return parseFloat(Be)>4?parseFloat(Be):5};Ge.setHTML5Codebase=function(Be,He){ce=Be,on(Be,He)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(Be,He){var rt=parseFloat(Be);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Ve=Be,qt(Be,He)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(Be){z=Be},Ge.setGiacJSURL=function(Be){},Ge.setJNLPFile=function(Be){Ee=Be},Ge.setJNLPBaseDir=function(Be){},Ge.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var He="auto",rt=oe.id,Vt,lt=!1,wt=0;wt<arguments.length;wt++){var ue=arguments[wt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?He=ue:rt=arguments[wt]):typeof ue=="boolean"?lt=ue:ue instanceof HTMLElement&&(Vt=ue)}ft();function ft(){if(!he){setTimeout(ft,200);return}He=gt(He);var Kt=Vt||document.getElementById(rt);if(!Kt){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(Kt,!1),oe.width===void 0&&Kt.clientWidth&&(oe.width=Kt.clientWidth),oe.height===void 0&&Kt.clientHeight&&(oe.height=Kt.clientHeight),!(oe.width&&oe.height)&&He==="html5"&&(delete oe.width,delete oe.height),Ae=He,He==="screenshot")Yt(Kt,oe);else{var zn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?zn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(zn=(!ie()||Be())&&ge()),zn?(Ae="screenshot",xe(Kt,oe,lt,He)):bt(Kt,oe,lt)}}};function ie(){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}Ge.getViews=function(){return te},Ge.isJavaInstalled=function(){return!1};var de=function(Be){var He=function(wt){var ue=JSON.parse(wt),ft=function(Ft){return Ft.type=="G"||Ft.type=="E"},Kt=ue.elements?ue.elements.filter(ft)[0]:ue;if(!Kt||!Kt.url){rt();return}oe.fileName=Kt.url,Se(Kt.settings||{}),te.is3D=!0;var zn="https://www.geogebra.org/images/";Ge.setPreviewImage(E||Kt.previewUrl,zn+"GeoGebra_loading.png",zn+"applet_play.png"),Be()},rt=function(){oe.onError&&oe.onError(),Mn("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Vt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",lt="/materials/"+oe.material_id+"?scope=basic";me("https://"+Vt+"/api/proxy.php?path="+encodeURIComponent(lt),He,rt)};function Se(Be){var He=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){Be[rt]=!!Be[rt]}),He.forEach(function(rt){oe[rt]===void 0&&Be[rt]!==void 0&&(oe[rt]=Be[rt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(Be,He,rt){var Vt=new XMLHttpRequest;Vt.open("GET",Be),Vt.onload=function(){He(Vt.responseText)},Vt.onerror=rt,Vt.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Ae},Ge.setPreviewImage=function(Be,He,rt){E=Be,b=He,x=rt},Ge.removeExistingApplet=function(Be,He){var rt;typeof Be=="string"&&(Be=document.getElementById(Be)),Ae=null;var Vt=null;for(rt=0;rt<Be.childNodes.length;rt++){var lt=Be.childNodes[rt],wt=lt.className;wt==="applet_screenshot"?He?(lt.style.display="block",Ae="screenshot"):lt.style.display="none":wt!=="applet_scaler prerender"&&(Be.removeChild(lt),Vt=wt&&wt.indexOf("appletParameters")!=-1?lt.id:null,rt--)}var ue=oe.id!==void 0?oe.id:Vt,ft=window[ue];ft&&typeof ft.getBase64=="function"&&(ft.remove(),window[ue]=null)},Ge.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Be=Ge.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var Be=Ge.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},Ge.stopAnimation=function(){var Be=Ge.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var Be=oe.id!==void 0?oe.id:"ggbApplet";return window[Be]},Ge.resize=function(){};var Ke=function(Be,He,rt){var Vt=document.createElement("param");Vt.setAttribute("name",He),Vt.setAttribute("value",rt),Be.appendChild(Vt)},Ze=function(Be){return Be&&Be!=="false"},bt=function(Be,He,rt){ne(ae)<=4.2&&(rt=!0);var Vt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Vt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var lt=document.createElement("div");lt.classList.add("appletParameters","notranslate");var wt=He.width,ue=He.height;if(He.disableAutoScale=He.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():He.disableAutoScale,He.width!==void 0)if(ne(ae)<=4.4)Ze(He.showToolBar)&&(He.height-=7),Ze(He.showAlgebraInput)&&(He.height-=37),He.width<605&&Ze(He.showToolBar)&&(He.width=605,wt=605);else{var ft=100;(Ze(He.showToolBar)||Ze(He.showMenuBar))&&(He.hasOwnProperty("customToolBar")&&(He.customToolbar=He.customToolBar),ft=Ze(He.showMenuBar)?245:155),wt<ft&&(He.width=ft,wt=ft)}lt.style.border="none",lt.style.display="inline-block";for(var Kt in He)He.hasOwnProperty(Kt)&&Kt!=="appletOnLoad"&&lt.setAttribute("data-param-"+Kt,He[Kt]);z&&lt.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(Be,He)},window.addEventListener("resize",function(ln){Ge.resize()});var zn=typeof He.appletOnLoad=="function"?He.appletOnLoad:function(){};if(!rt&&He.width!==void 0){He.hasOwnProperty("showSplash")||lt.setAttribute("data-param-showSplash","false");var Ft=Be.querySelector(".applet_scaler.prerender"),Xe=Ft!==null;if(Xe)var Me=Ft.querySelector(".ggb_preview");else{var Me=ct(wt,ue,He.borderColor,!1);Ft=document.createElement("div"),Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.style.width=wt+"px",Ft.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),ne(ae)>=5?(He.appletOnLoad=function(ln){var rn=Be.querySelector(".ggb_preview");rn&&rn.parentNode.removeChild(rn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ft),window.GGBT_wsf_view&&$(window).trigger("resize"),zn(ln)},Xe||Ft.appendChild(Me)):lt.appendChild(Me),Ft.appendChild(lt),Xe||Be.appendChild(Ft),setTimeout(function(){Ge.resize()},1)}else{var we=document.createElement("div");we.className="applet_scaler",we.style.position="relative",we.style.display="block",we.appendChild(lt),Be.appendChild(we),He.appletOnLoad=function(ln){Ge.resize(),zn(ln)}}function Qe(ln,rn){rn&&typeof rn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ln,rn.appletOnLoad):renderGGBElement(ln),Mn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",rn)}function nt(ln,rn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ln,params:rn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(jn){Qe(jn.article,jn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(ln.className+=" geogebraweb")):Qe(ln,rn)}if(Vt){scriptLoadStarted=!0;for(var vt=0;vt<lt.childNodes.length;vt++){var zt=lt.childNodes[vt].tagName;zt==="TABLE"&&(lt.removeChild(lt.childNodes[vt]),vt--)}if(ggbHTML5LoadedScript!==null){var kt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');kt!=null&&kt.parentNode.removeChild(kt)}var en=document.createElement("script"),dn=function(){nt(lt,He)};en.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=en.src,Mn("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",He),!ce&&(!Ve||Ve=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dn()):Ue.requirejs?__webpack_require__.e(12).then(function(){var ln=[__webpack_require__(12)];dn.apply(null,ln)}.bind(this)).catch(__webpack_require__.oe):(en.onload=dn,Be.appendChild(en))}else nt(lt,He);He.height=ue,He.width=wt},Yt=function(Be,He,rt){var Vt=ct(He.width,He.height,He.borderColor,rt),lt=document.createElement("div");lt.style.position="relative",lt.style.display="block",lt.style.width=He.width+"px",lt.style.height=He.height+"px",lt.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),lt.appendChild(Vt);var wt=GGBAppletUtils.getScale(He,Be,rt);rt?(Be.appendChild(it()),window.GGBT_wsf_view||(Be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(lt,"66%"),Be.appendChild(lt),wt!==1&&!isNaN(wt)&&(GGBAppletUtils.scaleElement(lt,wt),lt.style.width=He.width+"px",lt.style.height=He.height+"px",lt.parentNode.style.width=He.width*wt+"px",lt.parentNode.style.height=He.height*wt+"px"),Ge.resize=function(){Zt(Be,Vt,lt,rt)},window.addEventListener("resize",function(ue){Ge.resize()}),Ge.resize()};function Zt(Be,He,rt,Vt){if(Be.contains(He)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}var lt=GGBAppletUtils.getScale(oe,Be,Vt);rt.parentNode!==null&&(!isNaN(lt)&&lt!==1?(GGBAppletUtils.scaleElement(rt,lt),rt.parentNode.style.width=oe.width*lt+"px",rt.parentNode.style.height=oe.height*lt+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=oe.width+"px",rt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(Be,He){He.appendChild(Be)};var xe=function(Be,He,rt,Vt){Yt(Be,He,!0);for(var lt=function(){var ft=[];for(ue=0;ue<Be.childNodes.length;ue++)ft.push(Be.childNodes[ue]);if(window.GGBT_wsf_view){var Kt=window.GGBT_wsf_view.renderFullScreen(Be,He.id),zn=document.getElementById("fullscreencontainer"),Ft=jQuery(Be).find(".fullscreencontent");Ft.length>0?(Kt.remove(),Ft.attr("id","fullscreencontent").show(),jQuery(zn).append(Ft),window.dispatchEvent(new Event("resize"))):bt(Kt,He,!1),window.GGBT_wsf_view.launchFullScreen(zn)}else Ae=Vt,bt(Be,He,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<ft.length;ue++)Be.removeChild(ft[ue])},wt=Be.getElementsByClassName("ggb_preview_play"),ue=0;ue<wt.length;ue++)wt[ue].addEventListener("click",lt,!1),wt[ue].addEventListener("ontouchstart",lt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var Be=document.createElement("div");if(Be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var He='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=He:rt.appendChild(document.createTextNode(He)),document.getElementsByTagName("head")[0].appendChild(rt)}return Be},ct=function(Be,He,rt,Vt){var lt=document.createElement("div");lt.className="ggb_preview",lt.style.position="absolute",lt.style.zIndex="90",lt.style.width=Be-2+"px",lt.style.height=He-2+"px",lt.style.top="0px",lt.style.left="0px",lt.style.overflow="hidden",lt.style.backgroundColor="white";var wt="lightgrey";rt!==void 0&&(rt==="none"?wt="transparent":wt=rt),lt.style.border="1px solid "+wt;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,b!==null){var ft,Kt,zn;if(!Vt){ft=document.createElement("img"),ft.style.position="absolute",ft.style.zIndex="1001",ft.style.opacity=1,ue.style.opacity=.3,Kt=360,Kt>Be/4*3&&(Kt=Be/4*3),zn=Kt/5.8,ft.setAttribute("src",b),ft.setAttribute("width",Kt),ft.setAttribute("height",zn);var Ft=(Be-Kt)/2,Xe=(He-zn)/2;ft.style.left=Ft+"px",ft.style.top=Xe+"px",lt.appendChild(ft)}}return lt.appendChild(ue),lt},gt=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},St=["web","webSimple","web3d","tablet","tablet3d","phone"],qt=function(Be,He){if(ae=Be,He){on(ae,!0);return}var rt=!ye;if(rt){var Vt=ne(ae);!isNaN(Vt)&&Vt<4.4&&(rt=!1)}var lt,wt;window.location.protocol.substr(0,4)==="http"?lt=window.location.protocol:lt="http:";var ue=ae.indexOf("//");ue>0?wt=ae:ue===0?wt=lt+ae:wt="https://www.geogebra.org/apps/5.2.814.0/";for(var ft in St)if(ae.slice(St[ft].length*-1)===St[ft]||ae.slice((St[ft].length+1)*-1)===St[ft]+"/"){on(wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ze(oe.showToolBar)&&!Ze(oe.showMenuBar)&&!Ze(oe.showAlgebraInput)&&!Ze(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?wt+="webSimple/":wt+="web3d/",on(wt,!1)},on=function(Be,He){if(Be.requirejs){Ue=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),Ue=Be,He===null&&(He=Be.indexOf("http")===-1),Te=He,a="web.nocache.js",y=!1;var rt=Ue.split("/");rt.length>1&&(!He&&rt[rt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):St.indexOf(rt[rt.length-2])>=0&&(a=rt[rt.length-2]+".nocache.js")),rt=Be.split("/"),ae=rt[rt.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Vt=parseFloat(ae);Vt!==NaN&&Vt<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vt+" is deprecated. Using version latest instead."),qt("5.0",He))},Mn=function(Be,He){window.console&&window.console.log&&(!He||typeof He.showLogging=="undefined"||He.showLogging&&He.showLogging!=="false")&&console.log(Be)};oe.material_id!==void 0?de(In):In();function In(){var Be=mt;Ve!==null?Be=Ve:parseFloat(Be)<5&&(Be="5.0"),qt(Be,!1),ce!==null&&on(ce,Te),he=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function mt(he,Ve){Ve!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+Ve+","+Ve+")",he.style.webkitTransform="scale("+Ve+","+Ve+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function oe(he,Ve,ce,ke,ze,Ee){var Ue=null;if(Ee!=null&&Ee!="")for(var Te=he.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+Ee+" ")>-1){Ue=Te;break}else Te=Te.parentNode;var Ae=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ue)Ae=Ue.offsetWidth,ae=Math.max(ke?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ae):(Ae=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=Ae&&(ze===void 0||!ze)&&(document.dir==="rtl"?(E=Ae-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return he&&((ce===void 0||!ce)&&Ve>0&&Ve+y<Ae?Ae=Ve:Ae-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(ae-=x)),{width:Ae,height:ae}}function te(he,Ve,ce,ke,ze){if(he.isScreenshoGenerator)return 1;var Ee=ke!==void 0&&ke,Ue=he.noScaleMargin!=null&&he.noScaleMargin,Te=function(ee){return ee&&ee!=="false"},Ae=Te(he.autoHeight),ae=oe(Ve,he.width,ce,Ae,Ee&&window.GGBT_wsf_view||Ue,ze),a=parseInt(ae.width),y=he.width,E=he.height;if(y===void 0){var b=Ve.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ee?1:ae.height/E;return ce!==void 0&&!ce&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ye(he,Ve,ce){var ke=1,ze,Ee=!1;if(he.hasOwnProperty("allowUpscale")&&(Ee=he.allowUpscale),he.hasOwnProperty("scale")&&(ke=parseFloat(he.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(Ee=!0)),Ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))ze=te(he,Ve,Ee,ce,he.scaleContainerClass);else return ke;return Ee&&(!he.hasOwnProperty("scale")||ke===1)?ze:Math.min(ke,ze)}function Je(he){var Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=he.getBoundingClientRect(),ze=(Ve-ke.width)/2,Ee=(ce-ke.height)/2;Ee<0&&(Ee=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?he.style.left="40px":he.style.left=ze+"px",he.style.top=Ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee<40?he.style.top="40px":he.style.top=Ee+"px",he.style.left=ze+"px")}function Ye(he,Ve){var ce=he.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ve.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var ke=ye(Ve,he);Ge()&&ce.setAttribute("data-param-scale",ke);for(var ze=null,Ee=0;Ee<he.childNodes.length;Ee++)if(he.childNodes[Ee].className!==void 0&&he.childNodes[Ee].className.match(/^applet_scaler/)){ze=he.childNodes[Ee];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var Ue=Ve.id!==void 0?Ve.id:"ggbApplet",Te=window[Ue];(Te==null||!Te.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(ze.parentNode.style.width=Ve.width*ke+"px",ze.parentNode.style.height=Ve.height*ke+"px",mt(ze,ke)):(mt(ze,1),ze.parentNode.style.width=Ve.width+"px",ze.parentNode.style.height=Ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ye,isFlexibleWorksheetEditor:Ge,positionCenter:Je,getScale:ye,scaleElement:mt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,mt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ge){var mt=s[L].bindings;s[L].bindings=function(){for(var oe=mt?mt():{},te=Ge[webModule.__softPermutationId],ye=O;ye<te.length;ye++){var Je=te[ye];oe[Je[O]]=Je[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var mt=document.compatMode==U?V:W;t.write(mt+X),t.close()}}}function w(Ge){function mt(te){function ye(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=ye();if(Je){te();return}function Ye(){if(!Je){if(!ye())return;Je=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ye,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,Ye,!1);var he=setInterval(function(){Ye()},$)}function oe(te){var ye=u(),Je=ye.body,Ye=ye.createElement(_);Ye.language=ab,Ye.crossOrigin=W,Ye.src=te,webModule.__errFn&&(Ye.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Je.appendChild(Ye)}mt(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var mt=u(),oe=mt.body,te=mt.createElement(_);te.language=ab,te.text=Ge,oe.appendChild(te),oe.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var mt=c[Ge];return mt==null?null:mt},r=d,webModule.__errFn=e}function B(){function Ge(he){var Ve=he.lastIndexOf(rb);Ve==-1&&(Ve=he.length);var ce=he.indexOf(sb);ce==-1&&(ce=he.length);var ke=he.lastIndexOf(tb,Math.min(ce,Ve));return ke>=O?he.substring(O,ke+P):W}function mt(he){if(!he.match(/^\w+:\/\//)){var Ve=o.createElement(ub);Ve.src=he+vb,he=Ge(Ve.src)}return he}function oe(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function te(){for(var he=o.getElementsByTagName(_),Ve=O;Ve<he.length;++Ve)if(he[Ve].src.indexOf(xb)!=-1)return Ge(he[Ve].src);return W}function ye(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function Je(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var Ye=oe();return Ye==W&&(Ye=te()),Ye==W&&(Ye=ye()),Ye==W&&Je()&&(Ye=Ge(o.location.href)),Ye=mt(Ye),Ye}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],mt=O,oe=[],te=[];function ye(he){var Ve=te[he](),ce=oe[he];if(Ve in ce)return Ve;var ke=[];for(var ze in ce)ke[ce[ze]]=ze;throw r&&r(he,ke,Ve),null}if(__gwt_isKnownPropertyValue=function(he,Ve){return Ve in oe[he]},webModule.__getPropMap=function(){var he={};for(var Ve in oe)oe.hasOwnProperty(Ve)&&(he[Ve]=ye(Ve));return he},webModule.__computePropValue=ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var Ye=Je.indexOf(Db);Ye!=-1&&(mt=parseInt(Je.substring(Ye+P),$),Je=Je.substring(O,Ye))}catch(he){}return webModule.__softPermutationId=mt,C(Je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Ge,mt,oe){"use strict";oe.d(mt,{Ax:function(){return Ye},Ds:function(){return he},KI:function(){return ce},SI:function(){return Je},f1:function(){return ye}});var te=oe(11320);function ye(ke){let ze=!0;if(ke.length>0){for(let Ee=0;Ee<ke.length;Ee++)if(ke[Ee].compile_success==0||!ke[Ee].compile_success){ze=!1;break}}else ze=!1;return ze}function Je(ke,ze=""){let Ee=[];for(let Ue=0;Ue<ke.length;Ue++){let Te=ke[Ue],Ae=ze?`${ze}/${Te.name}`:`${Te.name}`;Ee.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:Ae})}return Ee}function Ye(ke,ze,Ee){for(let Ue=0;Ue<ke.length;Ue++){let Te=ke[Ue];if(Te.key===ze){Te.children=Ee;break}Te.children&&Ye(Te.children,ze,Ee)}return ke}function he(ke,ze,Ee){let Ue;return function(){let Te=this,Ae=arguments,ae=function(){Ue=null,Ee||ke.apply(Te,Ae)},a=Ee&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,ze),a&&ke.apply(Te,Ae)}}const Ve=!0,ce=te.Z.API_SERVER},63205:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ue}});var te=oe(67294),ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=oe(94184),Ye=oe.n(Je),he=oe(57953),Ve=oe(15979),ce=oe(33170),ke=oe(28706),ze=(Te,Ae,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Te,Ae)).next())}),Ue=({data:Te,className:Ae,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),ie=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[Se,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&Ke()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Te==null?void 0:Te.visible]);const Ke=()=>ze(void 0,null,function*(){de(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const xe=yield(0,ke.ZJ)(Te==null?void 0:Te.src);z.current.src="",z.current.src=xe,z.current.onload=function(){Zt()},de(!1),me("")}),Ze=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},bt=xe=>ze(void 0,null,function*(){de(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const it=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:xe.dataUrl}});it!=null&&it.id&&!x?(yield(0,ce.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:it==null?void 0:it.id,settings:JSON.stringify(xe.state)}})).status===0&&E():it!=null&&it.id&&E(it),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),me("")}),Yt=()=>{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(ct=>{const gt=document.querySelector(ct.name);gt&&gt.setAttribute("title",ct.title)})},Zt=()=>{ee.current=new Ve.hP(z.current),ee.current.targetRoot=ie.current,ee.current.addEventListener("render",bt),ee.current.addEventListener("beforeclose",Ze),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(),Te!=null&&Te.snapshotData&&ee.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Yt()},300)};return te.createElement(te.Fragment,null,(Te==null?void 0:Te.visible)&&te.createElement(he.Z,{spinning:ge,tip:Se,style:{position:"absolute"}},te.createElement("div",{ref:ie,className:Ye()(ye.imageDimensions,Ae,ae?ye.fullWidth:""),style:a},te.createElement("img",{className:ye.img,ref:z}))))}},36527:function(Ge,mt,oe){"use strict";var te=oe(67294),ye=oe(71230),Je=oe(15746),Ye=oe(66368),he=oe(71577),Ve=oe(85725),ce=oe(71736),ke=oe(84279),ze=oe(67294);const Ee=(0,te.forwardRef)(({callback:Ue,showSaveButton:Te,value:Ae=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ze.createElement(ye.Z,{className:ce.Z.lists,gutter:[10,10]},y.map((ee,ne)=>ze.createElement(Je.Z,{flex:"110px",className:ce.Z.item},ze.createElement("div",null,ze.createElement(Ve.Z,{value:`$$${ee.value}$$`}),ee.name),ze.createElement("div",{className:ce.Z.children},ee.children.map((ie,ge)=>ze.createElement("div",{key:ge},ze.createElement("h1",null,ie.name),ze.createElement(ye.Z,{gutter:[10,10]},ie.data.map((de,Se)=>ze.createElement(Je.Z,{key:Se,onClick:()=>b(de),className:ce.Z.diamond},ze.createElement(Ve.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ze.createElement(ye.Z,{className:ce.Z.lists,gutter:[10,10]},E.map((ee,ne)=>ze.createElement(Je.Z,{flex:"110px",className:ce.Z.item},ze.createElement("div",null,ze.createElement(Ve.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ze.createElement("div",{className:ce.Z.children},ee.children.map((ie,ge)=>ze.createElement("div",{key:ge},ie.name&&ze.createElement("h1",null,ie.name),ze.createElement(ye.Z,{gutter:[10,10]},ie.data.map((de,Se)=>ze.createElement(Je.Z,{key:Se,onClick:()=>b(de),className:ce.Z.diamond},ze.createElement(Ve.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ue&&Ue(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),ze.createElement("div",{className:ce.Z.mathWrap},ze.createElement(Ye.default,{defaultActiveKey:"1",items:x}),ze.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ae||""),Te&&ze.createElement("div",{className:ce.Z.button},ze.createElement(he.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});mt.Z=Ee},57444:function(Ge,mt,oe){"use strict";oe.d(mt,{h:function(){return ee}});var te=oe(67294),ye=oe(42563),Je=oe(22150),Ye=oe(71577),he=oe(4631),Ve=oe.n(he),ce=oe(71749),ke=oe(30483),ze=Object.defineProperty,Ee=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,ie,ge)=>ie in ne?ze(ne,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[ie]=ge,y=(ne,ie)=>{for(var ge in ie||(ie={}))Ae.call(ie,ge)&&a(ne,ge,ie[ge]);if(Te)for(var ge of Te(ie))ae.call(ie,ge)&&a(ne,ge,ie[ge]);return ne},E=(ne,ie)=>Ee(ne,Ue(ie));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"]};mt.Z=({callback:ne,onCancel:ie})=>{const[ge,de]=(0,te.useState)("python");function Se(Ke){de(z[Ke][1])}function me(Ke){ne(Ke)}return te.createElement(Je.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(ye.default,{getPopupContainer:Ke=>Ke.parentNode,onChange:Se},Object.keys(z).map(Ke=>te.createElement(b,{key:Ke,value:Ke},z[Ke][0])))),te.createElement(Je.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(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ye.ZP,{type:"ghost",onClick:ie},"\u53D6\u6D88")))};function ee({value:ne,onChange:ie,mode:ge,options:de={}}){const Se=(0,te.useRef)(),[me,Ke]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let Ze=function(bt){const Yt=bt.getValue();ie&&ie(Yt)};return me.on("change",Ze),()=>{me.off("change",Ze)}}},[me,ie]),(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(Se.current&&!me){const Ze=Ve().fromTextArea(Se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));Ke(Ze)}},[Se.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Se}))}},35567:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Qa}});var te=oe(67294),ye=oe(4631),Je=oe.n(ye),Ye=oe(91033),he=oe(71749),Ve=oe(57341),ce=oe(82801),ke=oe(88386),ze=oe(49047),Ee=oe(80785),Ue=oe(85725),Te=({value:Le="",className:be,showTextOnly:ve,showLines:dt,style:$t={}})=>{const Mt=(0,te.useMemo)(()=>"",[Le]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Mt}}))},Ae=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,be,ve)=>be in Le?ae(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[be]=ve,ee=(Le,be)=>{for(var ve in be||(be={}))b.call(be,ve)&&z(Le,ve,be[ve]);if(E)for(var ve of E(be))x.call(be,ve)&&z(Le,ve,be[ve]);return Le},ne=(Le,be)=>a(Le,y(be));let ie=[{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:be,icon:ve,actionName:dt,className:$t="",children:Mt}){function Gn(){Le(dt)}return Ae.createElement("a",{title:be,className:$t,onClick:Gn},Ae.createElement("i",{className:`${ve}`}),Mt)}var de=({watch:Le,showNullButton:be,showNullProgramButton:ve,onActionCallback:dt,fullScreen:$t,insertTemp:Mt,hidetoolBar:Gn,extraUse:sn})=>{const Ln=[...ie,{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 Ae.createElement("ul",{className:"markdown-toolbar-container"},!Gn&&Ln.map((ta,Da)=>Ae.createElement("li",{key:Da},ta.actionName?Ae.createElement(ge,ne(ee({},ta),{onActionCallback:dt})):Ae.createElement("span",{className:"v-line"}))),be?Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},Ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?Ae.createElement(Ae.Fragment,null,Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},Ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},Ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Mt&&Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Mt}`,onActionCallback:dt},Ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),sn&&Ae.createElement("li",null,sn),Ae.createElement("li",{className:"btn-full-screen"},Ae.createElement(ge,{icon:`${$t?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:$t?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},Se=oe(76621),me=oe(22150),Ke=oe(69677),Ze=oe(71577),bt=Object.defineProperty,Yt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,gt=(Le,be,ve)=>be in Le?bt(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[be]=ve,St=(Le,be)=>{for(var ve in be||(be={}))it.call(be,ve)&&gt(Le,ve,be[ve]);if(xe)for(var ve of xe(be))ct.call(be,ve)&&gt(Le,ve,be[ve]);return Le},qt=(Le,be)=>Yt(Le,Zt(be));const on={labelCol:{span:4},wrapperCol:{span:20}};var Mn=({callback:Le,onCancel:be})=>{function ve(dt){Le(dt)}return te.createElement(me.default,qt(St({},on),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,style:{width:500}}),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Ke.default,null)),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Ke.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},In=oe(57444),Be=oe(70859),He=oe(14446),rt=oe(71230),Vt=oe(63205),lt=oe(67294),wt=({callback:Le,onCancel:be})=>{const ve=document.createElement("canvas"),dt=ve.getContext("2d");ve.width=1e3,ve.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,ve.width,ve.height);const $t=ve.toDataURL("image/png");return lt.createElement(He.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},lt.createElement(rt.Z,{style:{height:"100vh"}},lt.createElement(Vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:$t,visible:!0,title:String(Date.now())},onOk:Mt=>{Le({src:Mt.url})},onClose:be})))},ue=oe(23495);function ft(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ft,go.CommandHandler),ft.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},ft.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var be=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(be=Math.min(ve.position.x,be))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(be,ve.position.y))}),Le.commitTransaction("aligning left")},ft.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var be=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var dt=ve.actualBounds.x+ve.actualBounds.width;be=Math.max(dt,be)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(be-ve.actualBounds.width,ve.position.y))}),Le.commitTransaction("aligning right")},ft.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var be=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(be=Math.min(ve.position.y,be))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,be))}),Le.commitTransaction("alignTop")},ft.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var be=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var dt=ve.actualBounds.y+ve.actualBounds.height;be=Math.max(dt,be)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,be-ve.actualBounds.height))}),Le.commitTransaction("aligning bottom")},ft.prototype.alignCenterX=function(){var Le=this.diagram,be=Le.selection.first();if(be){Le.startTransaction("aligning Center X");var ve=be.actualBounds.x+be.actualBounds.width/2;Le.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(ve-dt.actualBounds.width/2,dt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},ft.prototype.alignCenterY=function(){var Le=this.diagram,be=Le.selection.first();if(be){Le.startTransaction("aligning Center Y");var ve=be.actualBounds.y+be.actualBounds.height/2;Le.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,ve-dt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},ft.prototype.alignColumn=function(Le){var be=this.diagram;be.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var ve=new Array;be.selection.each(function(sn){sn instanceof go.Link||ve.push(sn)});for(var dt=0;dt<ve.length-1;dt++){var $t=ve[dt],Mt=$t.actualBounds.y+$t.actualBounds.height+Le,Gn=ve[dt+1];Gn.move(new go.Point($t.actualBounds.x,Mt))}be.commitTransaction("align Column")},ft.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var be=this.diagram;be.startTransaction("align Row");var ve=new Array;be.selection.each(function(sn){sn instanceof go.Link||ve.push(sn)});for(var dt=0;dt<ve.length-1;dt++){var $t=ve[dt],Mt=$t.actualBounds.x+$t.actualBounds.width+Le,Gn=ve[dt+1];Gn.move(new go.Point(Mt,$t.actualBounds.y))}be.commitTransaction("align Row")},ft.prototype.canRotate=function(Le){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},ft.prototype.rotate=function(Le){Le===void 0&&(Le=90);var be=this.diagram;be.startTransaction("rotate "+Le.toString());var be=this.diagram;be.selection.each(function(ve){ve instanceof go.Link||ve instanceof go.Group||(ve.angle+=Le)}),be.commitTransaction("rotate "+Le.toString())},ft.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var be=new go.Map;Le.selection.each(function(ve){be.set(ve.layer,0)}),be.iteratorKeys.each(function(ve){var dt=0;ve.parts.each(function($t){if(!$t.isSelected){var Mt=$t.zOrder;isNaN(Mt)?$t.zOrder=0:dt=Math.max(dt,Mt)}}),be.set(ve,dt)}),Le.selection.each(function(ve){ft._assignZOrder(ve,be.get(ve.layer)+1)}),Le.commitTransaction("pullToFront")},ft.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var be=new go.Map;Le.selection.each(function(ve){be.set(ve.layer,0)}),be.iteratorKeys.each(function(ve){var dt=0;ve.parts.each(function($t){if(!$t.isSelected){var Mt=$t.zOrder;isNaN(Mt)?$t.zOrder=0:dt=Math.min(dt,Mt)}}),be.set(ve,dt)}),Le.selection.each(function(ve){ft._assignZOrder(ve,be.get(ve.layer)-1-ft._findGroupDepth(ve))}),Le.commitTransaction("pushToBack")},ft._assignZOrder=function(Le,be,ve){ve===void 0&&(ve=Le),Le.layer===ve.layer&&(Le.zOrder=be),Le instanceof go.Group&&Le.memberParts.each(function(dt){ft._assignZOrder(dt,be+1,ve)})},ft._findGroupDepth=function(Le){if(Le instanceof go.Group){var be=0;return Le.memberParts.each(function(ve){be=Math.max(be,ft._findGroupDepth(ve))}),be+1}else return 0},ft.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var be=Le.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var ve=this.arrowKeyBehavior;if(ve==="none")return;if(ve==="select"){this._arrowKeySelect();return}else if(ve==="move"){this._arrowKeyMove();return}else if(ve==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ft.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(be){Le.push(be)}),this.diagram.parts.each(function(be){Le.push(be)}),Le},ft.prototype._arrowKeyMove=function(){var Le=this.diagram,be=Le.lastInput,ve=0,dt=0;if(be.control||be.meta)ve=1,dt=1;else if(Le.grid!==null){var $t=Le.grid.gridCellSize;dt=$t.width,ve=$t.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Mt){be.key==="Up"?Mt.move(new go.Point(Mt.actualBounds.x,Mt.actualBounds.y-ve)):be.key==="Down"?Mt.move(new go.Point(Mt.actualBounds.x,Mt.actualBounds.y+ve)):be.key==="Left"?Mt.move(new go.Point(Mt.actualBounds.x-dt,Mt.actualBounds.y)):be.key==="Right"&&Mt.move(new go.Point(Mt.actualBounds.x+dt,Mt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},ft.prototype._arrowKeySelect=function(){var Le=this.diagram,be=Le.lastInput,ve=null;be.key==="Up"?ve=this._findNearestPartTowards(270):be.key==="Down"?ve=this._findNearestPartTowards(90):be.key==="Left"?ve=this._findNearestPartTowards(180):be.key==="Right"&&(ve=this._findNearestPartTowards(0)),ve!==null&&(be.shift?ve.isSelected=!0:be.control||be.meta?ve.isSelected=!ve.isSelected:Le.select(ve))},ft.prototype._findNearestPartTowards=function(Le){var be=this.diagram.selection.first();if(be===null)return null;for(var ve=be.actualBounds.center,dt=this._getAllParts(),$t=1/0,Mt=be,Gn=0;Gn<dt.length;Gn++){var sn=dt[Gn];if(sn!==be&&sn.canSelect()){var Ln=sn.actualBounds.center,ta=ve.directionPoint(Ln),Da=this._angleCloseness(ta,Le);if(Da<=45){var tt=ve.distanceSquaredPoint(Ln);tt*=1+Math.sin(Da*Math.PI/180),tt<$t&&($t=tt,Mt=sn)}}}return Mt},ft.prototype._angleCloseness=function(Le,be){return Math.min(Math.abs(be-Le),Math.min(Math.abs(be+360-Le),Math.abs(be-360-Le)))},ft.prototype._arrowKeyTree=function(){var Le=this.diagram,be=Le.selection.first();if(be instanceof go.Node){var ve=Le.lastInput;if(ve.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)Le.commandHandler.canExpandTree(be)&&Le.commandHandler.expandTree(be);else{var dt=this._sortTreeChildrenByY(be).first();dt!==null&&Le.select(dt)}}else if(ve.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)Le.commandHandler.canCollapseTree(be)&&Le.commandHandler.collapseTree(be);else{var $t=be.findTreeParentNode();$t!==null&&Le.select($t)}else if(ve.key==="Up"){var $t=be.findTreeParentNode();if($t!==null){var Mt=this._sortTreeChildrenByY($t),Gn=Mt.indexOf(be);if(Gn>0){for(var sn=Mt.elt(Gn-1);sn!==null&&sn.isTreeExpanded&&!sn.isTreeLeaf;){var Ln=this._sortTreeChildrenByY(sn);sn=Ln.last()}sn!==null&&Le.select(sn)}else Le.select($t)}}else if(ve.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var dt=this._sortTreeChildrenByY(be).first();dt!==null&&Le.select(dt)}else for(;be!==null;){var $t=be.findTreeParentNode();if($t===null)break;var Mt=this._sortTreeChildrenByY($t),Gn=Mt.indexOf(be);if(Gn<Mt.length-1){Le.select(Mt.elt(Gn+1));break}else be=$t}var ta=Le.selection.first();ta!==null&&Le.scrollToRect(ta.actualBounds)}},ft.prototype._sortTreeChildrenByY=function(Le){var be=new go.List().addAll(Le.findTreeChildrenNodes());return be.sort(function(ve,dt){var $t=ve.location,Mt=dt.location;return $t.y<Mt.y?-1:$t.y>Mt.y?1:$t.x<Mt.x?-1:$t.x>Mt.x?1:0}),be},ft.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},ft.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(ft.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(ft.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var Kt=ft,zn=oe(18023),Ft=oe(15746),Xe=oe(33170),Me={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},we=oe(67294),Qe=(Le,be,ve)=>new Promise((dt,$t)=>{var Mt=Ln=>{try{sn(ve.next(Ln))}catch(ta){$t(ta)}},Gn=Ln=>{try{sn(ve.throw(Ln))}catch(ta){$t(ta)}},sn=Ln=>Ln.done?dt(Ln.value):Promise.resolve(Ln.value).then(Mt,Gn);sn((ve=ve.apply(Le,be)).next())});function nt({onCancel:Le,callback:be}){let ve=(0,te.useRef)(),dt=(0,te.useRef)(),$t=(0,te.useRef)(),Mt=(0,te.useRef)(!1);const Gn=(0,te.useRef)(!1),[sn,Ln]=(0,te.useState)(0);function ta(){const tt=ue.bx.make,pn={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(dt.current,{padding:20,grid:tt(ue.s_,"Grid",tt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qe=>{var yt=qe.diagram.commandHandler.addTopLevelParts(qe.diagram.selection,!0);yt||qe.diagram.currentTool.doCancel()},commandHandler:tt(Kt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qe=>{var yt=qe.subject;yt.location=yt.location.copy().snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qe=>{var yt=qe.subject;setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()})},LinkRelinked:qe=>{var yt=qe.parameter.part;yt.invalidateConnectedLinks();var Rt=qe.subject;qe.diagram.toolManager.linkingTool.isForwards?Rt.toNode.invalidateConnectedLinks():Rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=tt(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),tt(ue.bn,{name:"SHAPE",fill:pn.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")),tt(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),tt(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=tt("ToolTip",tt(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},tt(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),tt(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Pe(qe,yt){var Rt=(at,mn)=>{at.handled=!0,at.diagram.model.commit(cn=>{var sa=mn.part.adornedPart,ca=new ue.E9().setRectSpot(sa.actualBounds,qe);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(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var fa=cn.copyNodeData(sa.data);cn.setGroupKeyForNodeData(fa,cn.getGroupKeyForNodeData(sa.data)),cn.addNodeData(fa);var Fo={from:sa.key,to:cn.getKeyForNodeData(fa)};cn.addLinkData(Fo);var to=at.diagram.findNodeForData(fa);to.location=ca,at.diagram.select(to),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return tt(ue.bn,{figure:yt,alignment:qe,alignmentFocus:qe.opposite(),width:qe.equals(ue.z6.Top)||qe.equals(ue.z6.Bottom)?25:18,height:qe.equals(ue.z6.Top)||qe.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:pn.white,strokeWidth:4,mouseEnter:(at,mn)=>mn.fill="dodgerblue",mouseLeave:(at,mn)=>mn.fill="orange",isActionable:!0,click:Rt,contextClick:Rt})}function Oe(qe){return tt(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:(yt,Rt)=>Rt.fill="dodgerblue",mouseLeave:(yt,Rt)=>Rt.fill="orange",click:(yt,Rt)=>{yt.diagram.commandHandler.showContextMenu(Rt.part.adornedPart)}},qe||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=tt(ue.uz,"Spot",tt(ue.Vm,{padding:10}),Pe(ue.z6.Top,"TriangleUp"),Pe(ue.z6.Left,"TriangleLeft"),Pe(ue.z6.Right,"TriangleRight"),Pe(ue.z6.Bottom,"TriangleDown"),Oe({alignment:new ue.z6(.75,0)}));function Fe(qe,yt){return(Rt,at)=>{Rt.handled=!0,Rt.diagram.model.commit(mn=>{mn.set(at.part.adornedPart.data,qe,yt)})}}function Ne(qe,yt){return yt||(yt="color"),tt(ue.bn,{width:16,height:16,stroke:"lightgray",fill:qe,margin:1,background:"transparent",mouseEnter:(Rt,at)=>at.stroke="dodgerblue",mouseLeave:(Rt,at)=>at.stroke="lightgray",click:Fe(yt,qe),contextClick:Fe(yt,qe)})}function ot(){return[tt("ContextMenuButton",tt(ue.s_,"Horizontal",Ne(pn.white,"fill"),Ne(pn.beige,"fill"),Ne(pn.extralightblue,"fill"),Ne(pn.extralightred,"fill"))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",Ne(pn.lightgray,"fill"),Ne(pn.lightgreen,"fill"),Ne(pn.lightblue,"fill"),Ne(pn.lightred,"fill")))]}function We(){return[tt("ContextMenuButton",tt(ue.s_,"Horizontal",Ne(pn.black),Ne(pn.green),Ne(pn.blue),Ne(pn.red))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",Ne(pn.white),Ne(pn.magenta),Ne(pn.purple),Ne(pn.orange)))]}function et(qe,yt){return yt||(yt="thickness"),tt(ue.bn,"LineH",{width:16,height:16,strokeWidth:qe,margin:1,background:"transparent",mouseEnter:(Rt,at)=>at.background="dodgerblue",mouseLeave:(Rt,at)=>at.background="transparent",click:Fe(yt,qe),contextClick:Fe(yt,qe)})}function je(qe,yt){return yt||(yt="dash"),tt(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qe,margin:1,background:"transparent",mouseEnter:(Rt,at)=>at.background="dodgerblue",mouseLeave:(Rt,at)=>at.background="transparent",click:Fe(yt,qe),contextClick:Fe(yt,qe)})}function jt(){return[tt("ContextMenuButton",tt(ue.s_,"Horizontal",et(1),et(2),et(3),et(4))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",je(null),je([2,4]),je([4,4])))]}function xt(qe,yt){return yt||(yt="figure"),tt(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qe,margin:1,background:"transparent",mouseEnter:(Rt,at)=>at.fill="dodgerblue",mouseLeave:(Rt,at)=>at.fill="lightgray",click:Fe(yt,qe),contextClick:Fe(yt,qe)})}ve.current.nodeTemplate.contextMenu=tt("ContextMenu",tt("ContextMenuButton",tt(ue.s_,"Horizontal",xt("Rectangle"),xt("RoundedRectangle"),xt("Ellipse"),xt("Diamond"))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",xt("Parallelogram2"),xt("ManualOperation"),xt("Procedure"),xt("Cylinder1"))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",xt("Terminator"),xt("CreateRequest"),xt("Document"),xt("TriangleDown"))),ot(),We(),jt()),ve.current.groupTemplate=tt(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qe,yt)=>{var Rt=yt.addMembers(yt.diagram.selection,!0);Rt||yt.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),tt(ue.s_,"Auto",{name:"BODY"},tt(ue.bn,{parameter1:10,fill:pn.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")),tt(ue.Vm,{background:"transparent",margin:20})),tt(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=tt(ue.uz,"Spot",tt(ue.s_,"Auto",tt(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),tt(ue.Vm,{margin:1.5})),Oe({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),ve.current.groupTemplate.contextMenu=tt("ContextMenu",ot(),We(),jt()),ve.current.linkTemplate=tt(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",qe=>qe>=1?10:0),new ue.KX("toShortLength","dir",qe=>qe>=1?10:0),new ue.KX("points").makeTwoWay(),tt(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),tt(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",qe=>qe===1)),tt(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",qe=>qe>=1),new ue.KX("width","thickness",qe=>7+3*qe),new ue.KX("height","thickness",qe=>7+3*qe),new ue.KX("segmentOffset","thickness",qe=>new ue.E9(-15,4+1.5*qe))),tt(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",qe=>qe===2),new ue.KX("width","thickness",qe=>7+3*qe),new ue.KX("height","thickness",qe=>7+3*qe),new ue.KX("segmentOffset","thickness",qe=>new ue.E9(-15,4+1.5*qe))),tt(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=tt(ue.uz,tt(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Jt(2)},new ue.KX("pathPattern","thickness",Jt)),Oe({alignmentFocus:new ue.z6(0,0,-6,-4)}));function Jt(qe){return tt(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qe+4).toString()+" H3"})}function fn(qe){var yt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qe===0?yt="M0 0 M16 16 M0 8 L16 8":qe===2&&(yt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),tt(ue.bn,{geometryString:yt,margin:2,background:"transparent",mouseEnter:(Rt,at)=>at.background="dodgerblue",mouseLeave:(Rt,at)=>at.background="transparent",click:Fe("dir",qe),contextClick:Fe("dir",qe)})}function bn(qe){var yt=(Rt,at)=>{Rt.handled=!0,Rt.diagram.model.commit(mn=>{var cn=at.part.adornedPart;mn.set(cn.data,qe?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(qe?cn.toNode:cn.fromNode).invalidateConnectedLinks()})};return tt(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rt,at)=>at.background="dodgerblue",mouseLeave:(Rt,at)=>at.background="transparent",click:yt,contextClick:yt})}function Ie(qe,yt){var Rt=0,at=ue.z6.RightSide;qe.equals(ue.z6.Top)?(Rt=270,at=ue.z6.TopSide):qe.equals(ue.z6.Left)?(Rt=180,at=ue.z6.LeftSide):qe.equals(ue.z6.Bottom)&&(Rt=90,at=ue.z6.BottomSide),yt||(Rt-=180);var mn=(cn,sa)=>{cn.handled=!0,cn.diagram.model.commit(ca=>{var fa=sa.part.adornedPart;ca.set(fa.data,yt?"toSpot":"fromSpot",ue.z6.stringify(at)),(yt?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return tt(ue.bn,{alignment:qe,alignmentFocus:qe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rt,background:"transparent",mouseEnter:(cn,sa)=>sa.background="dodgerblue",mouseLeave:(cn,sa)=>sa.background="transparent",click:mn,contextClick:mn})}ve.current.linkTemplate.contextMenu=tt("ContextMenu",We(),jt(),tt("ContextMenuButton",tt(ue.s_,"Horizontal",fn(0),fn(1),fn(2))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",tt(ue.s_,"Spot",bn(!1),Ie(ue.z6.Top,!1),Ie(ue.z6.Left,!1),Ie(ue.z6.Right,!1),Ie(ue.z6.Bottom,!1)),tt(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},bn(!0),Ie(ue.z6.Top,!0),Ie(ue.z6.Left,!0),Ie(ue.z6.Right,!0),Ie(ue.z6.Bottom,!0)))));const $a=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var La=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Ia(qe){return console.log("shapeName:",qe),La.indexOf(qe)>=0}var na=new ue.YI($t.current,{maxSelectionCount:1,linkTemplate:tt(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:tt(ue.uz,"Link",{locationSpot:ue.z6.Center},tt(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),tt(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),tt(ue.bn,{isPanelMain:!0,strokeWidth:2}),tt(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(qe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ve.current.addDiagramListener("TextEdited",function(qe){var yt;const Rt=qe.subject.part;var at=(yt=document.activeElement)==null?void 0:yt.value;typeof at=="string"&&at.trim()===""&&ve.current.model.commit(function(mn){mn.set(Rt.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),na.nodeTemplate=tt(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),tt(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")),tt(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=tt(ue.s_,"Grid",tt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ve.current.grid.visible=!0,ve.current.grid.gridCellStroke="darkgray",ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ve.current,ve.current}const Da=()=>Qe(this,null,function*(){var tt=ve.current.makeImage();const pn=yield(0,Xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:tt.src}});be({src:pn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{ta()},500),Ln(sn+1),()=>{ve.current=null}),[]),we.createElement("div",{ref:Gn,className:Mt.current?`${Me.maxH60} body-overflow-initial`:"body-overflow-initial"},we.createElement(He.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!sn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:we.createElement(rt.Z,null,we.createElement(Ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),we.createElement(Ft.Z,{onClick:()=>{var tt,pn,Pe=ve.current.selection.first();if(Mt.current=!Mt.current,document.activeElement&&Pe){let Oe=(pn=(tt=document.activeElement)==null?void 0:tt.value)==null?void 0:pn.trim();typeof Oe=="string"&&ve.current.model.commit(function(Fe){Fe.set(Pe.data,"text",Oe||"\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}Ln(sn+1)}},we.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},we.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Me.flowChartWrp},we.createElement("div",{style:{display:"flex",height:"100%"}},we.createElement("div",{style:{width:"300px",height:"100%"}},we.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),we.createElement("div",{style:{height:"calc(100% - 50px)"},className:Me.myPaletteDiv,ref:$t})),we.createElement("div",{style:{flex:1,position:"relative"}},we.createElement("div",{ref:dt,style:{height:"80vh"}}))),we.createElement("div",{className:"tr"},we.createElement(Ze.ZP,{size:"large",onClick:Da,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var vt=nt,zt=oe(78045),kt=oe(31795);const en=zt.ZP.Group,dn={margin:"0 8px"};var ln=({callback:Le,onCancel:be})=>{function ve(dt){Le(dt)}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(kt.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(kt.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(zt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(zt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(zt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(zt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},rn=oe(47897),jn=oe(61016),Rn=oe.n(jn),An=(0,te.forwardRef)(({use3d:Le,width:be,height:ve,callback:dt,showSaveButton:$t},Mt)=>{const Gn=(0,te.useRef)(),sn=(0,te.useRef)(),[Ln,ta]=(0,te.useState)(!1),Da=(0,te.useRef)({id:Gn,appName:"graphing",width:be||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)(()=>{sn.current=new(Rn())(Da.current,!0),window.onload=function(){sn.current.inject("applet_container")}},[]);const tt=()=>{var pn=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(pn),pn};return(0,te.useEffect)(()=>{Da.current.appName=Ln?"3D":"graphing",sn.current.inject("applet_container")},[Ln]),(0,te.useEffect)(()=>{ta(Le)},[Le]),(0,te.useImperativeHandle)(Mt,()=>({getImgData:tt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gn}),te.createElement(rt.Z,{align:"middle"},te.createElement(Ft.Z,{flex:1},te.createElement(rn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ln,onChange:pn=>ta(pn)})),te.createElement(Ft.Z,null,te.createElement(Ze.ZP,{size:"large",onClick:tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Hn=oe(36527),pe=oe(25934),$e=oe(2453);const _e="link",ut="upload-image",Lt="add-flowchart",Wt="draw-image",_t="add-flowchart",Nt="code-block",It="add-table",Sn="------------",Qt={default:Sn,left:`:${Sn}`,center:`:${Sn}:`,right:`${Sn}:`};var Dn=oe(99914),Kn=(Le,be,ve)=>new Promise((dt,$t)=>{var Mt=Ln=>{try{sn(ve.next(Ln))}catch(ta){$t(ta)}},Gn=Ln=>{try{sn(ve.throw(Ln))}catch(ta){$t(ta)}},sn=Ln=>Ln.done?dt(Ln.value):Promise.resolve(Ln.value).then(Mt,Gn);sn((ve=ve.apply(Le,be)).next())});function _n(){}let la=0;const On=1e4,Fn="\u2581",Xn="@\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`,Tn=["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 ea=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ua={[ea+"-B"]:"bold",[ea+"-I"]:"italic"},eo={[_e]:"\u6DFB\u52A0\u94FE\u63A5",[Nt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ut]:"\u6DFB\u52A0\u56FE\u7247",[Wt]:"\u6DFB\u52A0\u753B\u56FE",[Lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[It]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qa=({defaultValue:Le="",onChange:be,width:ve="100%",height:dt=400,miniToolbar:$t=!1,isFocus:Mt=!1,watch:Gn,insertTemp:sn,mode:Ln="markdown",id:ta="markdown-editor-id",showResizeBar:Da=!1,noStorage:tt=!1,showNullButton:pn=!1,showNullProgramButton:Pe=!1,hidetoolBar:Oe=!1,fullScreen:Fe=!1,onBlur:Ne,onCMBeforeChange:ot,onFullScreen:We,className:et="",disablePaste:je=!1,disabled:jt=!1,disabledFill:xt=!1,placeholder:Jt="",values:fn="",extraUse:bn})=>{const[Ie,$a]=(0,te.useState)(null),[La,Ia]=(0,te.useState)(Le),[na,qe]=(0,te.useState)(Gn),[yt,Rt]=(0,te.useState)(Fe),[at,mn]=(0,te.useState)(""),[cn,sa]=(0,te.useState)(0),[ca,fa]=(0,te.useState)(dt),[Fo,to]=(0,te.useState)(!1),Do=(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),_a=(0,te.useRef)(),Ra=(0,te.useRef)(),fo=(0,te.useRef)(),tn=(0,te.useRef)(),pa=()=>Kn(void 0,null,function*(){var Ot;const ht=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Do.current}});(Ot=ht==null?void 0:ht.attachments)!=null&&Ot.length&&(console.log("cm:",Ie,_a),ht.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?Ie.replaceSelection(`![,](/api/attachments/${Ct.id}?type=${Ct.content_type})`):Ct.content_type.indexOf("video")>-1?Ie.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?Ie.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):Ie.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,te.useEffect)(()=>{const Ot=window.scrollY||window.pageYOffset;Ia(fn),Ie==null||Ie.setValue(fn),window.scrollTo(0,Ot)},[fn]),(0,te.useEffect)(()=>{We==null||We(yt)},[yt]),(0,te.useEffect)(()=>{if(_a.current){let Ot=function(Ct,Bt){var $n;if(je){Bt.preventDefault();return}const Sa=Bt.clipboardData;if(Sa){const ka=Sa.types.toString(),Ma=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(Bt.preventDefault(),Ln=="stex")return;try{let xa=Ma[1];(($n=Ma[0])==null?void 0:$n.kind)==="file"&&(xa=Ma[0]);const Ut=xa.getAsFile(),yn=Ut.name.split(".").pop();(0,Be.I)(Ut,xn=>{var vn,Zn,Ba;xn.id?((vn=Ut==null?void 0:Ut.type)==null?void 0:vn.indexOf("image"))>-1?ht.replaceSelection(`<img width="100%" src="/api/attachments/${xn.id}?type=${xn.content_type})" alt="" />`):((Zn=Ut==null?void 0:Ut.type)==null?void 0:Zn.indexOf("video"))>-1?ht.replaceSelection(`<video width="100%" controls src="/api/attachments/${xn.id}"></video>`):((Ba=Ut==null?void 0:Ut.type)==null?void 0:Ba.indexOf("pdf"))>-1?ht.replaceSelection(`<a href="/api/attachments/${xn.id}?type=${Ut.type}&disposition=inline" target="_blank">${Ut.name}</a>`):Tn.includes(yn)?ht.replaceSelection(`<a href="/api/attachments/${xn.id}?type=office&disposition=inline" target="_blank">${Ut.name}</a>`):ht.replaceSelection(`[${Ut.name}](/api/attachments/${xn.id}?type=${xn.content_type})`):(xn==null?void 0:xn.status)===401&&($e.ZP.warning((xn==null?void 0:xn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){$e.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ht=Je().fromTextArea(_a.current,{mode:Ln,lineNumbers:!$t,lineWrapping:!0,value:Le,autoCloseTags:!Pe,autoCloseBrackets:!0});return ht.on("keyup",function(Ct,Bt){Bt.keyCode===8&&(Ct.getValue()==""?ht.setOption("placeholder",Jt):ht.setOption("placeholder",null))}),ht.on("keydown",function(Ct,Bt){if(Bt.keyCode===8){var $n=Na(Ct);$n&&Bt.preventDefault()}}),Mt&&ht.focus(),ht.on("paste",Ot),ht.on("dragleave",function(Ct,Bt){Ra.current.classList.remove("mouse-hover-md")}),jt&&ht.on("beforeChange",function(Ct,Bt){(Bt.origin==="paste"||Bt.origin==="+input")&&Bt.cancel()}),$a(ht),()=>{ht.off("paste",Ot)}}},[]);const Fa=(0,te.useCallback)(()=>{if(Ra.current)try{}catch(Ot){console.log(Ot,"---- to set md editor body height")}},[ca,Ra,yt]);(0,te.useEffect)(()=>{function Ot(){let ht=new Ye.Z(Ct=>{for(let Bt of Ct)(Bt.target.offsetHeight>0||Bt.target.offsetWidth>0)&&(Fa(),Ie.setSize("100%","100%"),Ie.refresh())});return ht.observe(_a.current.parentElement),ht}if(Ie){const ht=Ot();return()=>{var Ct,Bt;(Ct=_a.current)!=null&&Ct.parentElement&&ht.unobserve((Bt=_a.current)==null?void 0:Bt.parentElement)}}},[Ie,Fa]),(0,te.useEffect)(()=>{if(Ie){let Ot=[];for(const[ht,Ct]of Object.entries(Ua)){let Bt={[ht]:()=>{Ja(Ct)}};Ot.push(Bt),Ie.addKeyMap(Bt)}return Ka.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Ka.current);for(let ht of Ot)Ie.removeKeyMap(ht)}}},[Ie]),(0,te.useEffect)(()=>{Fe!==yt&&Rt(Fe)},[Fe]),(0,Dn.Z)(()=>{if(!tt&&cn>0){let Ot=new Date().getTime(),ht=window.sessionStorage.getItem(ta);Ot>=cn+On&&(!ht||ht!==La)&&(window.sessionStorage.setItem(ta,La),to(!0))}},On),(0,te.useEffect)(()=>{qe(Gn)},[Ie,Gn]),(0,te.useEffect)(()=>{Ie&&Mt&&Ie.focus()},[Ie,Mt]),(0,te.useEffect)(()=>{if(na&&Ie){let Ot=function(Ct){let Bt=Ct.target;if(tn.current){let $n=Bt.scrollTop/Bt.scrollHeight;tn.current.scrollTop=tn.current.scrollHeight*$n}};const ht=Ie.getScrollerElement();return ht.addEventListener("scroll",Ot),()=>{ht.removeEventListener("scroll",Ot)}}},[Ie,na]),(0,te.useEffect)(()=>{if(Ie&&ot){let Ot=function(ht,Ct){ot(ht,Ct)};return Ie.on("beforeChange",Ot),()=>{Ie.off("beforeChange",Ot)}}},[Ie,ot]),(0,te.useEffect)(()=>{if(Ie&&Ne){let Ot=function(){Ne(Ie.getValue())};return Ie.on("blur",Ot),()=>{Ie.off("blur",Ot)}}},[Ie,Ne]);function Na(Ot,ht){var Ct=Ot.getDoc(),Bt=Ct.getCursor(),$n=Ct.getLine(Bt.line),Sa=$n.charAt(Bt.ch-1),ka=$n.lastIndexOf("@\u2581@",Bt.ch),Ma=$n.lastIndexOf("@\u2581\u2581@",Bt.ch),xa=ka>Ma?ka:Ma,Ut=ka>Ma?3:4;if(Xn.indexOf(Sa)===-1)return null;if(console.log("change1:",ht,Ot,$n,Bt,xa,ka,Ma,Sa),xa>=0&&Bt.ch-xa<5){var yn=xa+Ut;return Ct.replaceRange("",{line:Bt.line,ch:xa},{line:Bt.line,ch:yn}),{line:Bt.line,ch:yn}}return null}(0,te.useEffect)(()=>{if(Ie){let Ot=function(ht,Ct){const Bt=ht.getValue();Ia(Bt),sa(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(Pe?be(Bt,Qo(Bt)):be(Bt))};return Ie.on("change",Ot),()=>{Ie.off("change",Ot)}}},[Ie,be]),(0,te.useEffect)(()=>{if(Ie)if(Le==null)Ie.setValue(""),Ia("");else{const Ot=window.scrollY||window.pageYOffset;Le!==Ie.getValue()&&(Ie.setValue(Le),Ia(Le),Ie.setCursor(jt?1:Ie.lineCount(),0),window.scrollTo(0,Ot))}},[Ie,Le]);const Ja=(0,te.useCallback)(Ot=>{const ht=Ie.getCursor(),Ct=Ie.getSelection();let Bt=Ct.split(`
`);switch(Ot){case"bold":return Ie.replaceSelection("**"+Ct+"**"),Ct===""&&Ie.setCursor(ht.line,ht.ch+2),Ie.focus();case"italic":return Ie.replaceSelection("*"+Ct+"*"),Ct===""&&Ie.setCursor(ht.line,ht.ch+1),Ie.focus();case"code":return Ie.replaceSelection("`"+Ct+"`"),Ct===""&&Ie.setCursor(ht.line,ht.ch+1),Ie.focus();case"inline-latex":return mn("inline-latex"),Ie.focus();case"latex":return Ie.replaceSelection("```latex\n"+Ct+"\n```"),Ie.setCursor(ht.line+1,Ct.length+1),Ie.focus();case"line-break":return Ie.replaceSelection(`<br/>
`),Ie.focus();case"list-ul":return Ct===""?Ie.replaceSelection("- "+Ct):Ie.replaceSelection(Bt.map($n=>$n===""?"":`- ${$n}`).join(`
`)),Ie.focus();case"list-ol":return Ct===""?Ie.replaceSelection("1. "+Ct):Ie.replaceSelection(Bt.map(($n,Sa)=>$n===""?"":`${Sa+1}. ${$n}`).join(`
`)),Ie.focus();case"add-null-ch":return Ct===""&&Ie.setCursor(ht.line,ht.ch),Ie.replaceSelection(Fn),Ie.focus();case"add-signal":return Ct===""&&Ie.setCursor(ht.line,ht.ch),Ie.replaceSelection(ua),Ie.focus();case"add-multiple":return Ct===""&&Ie.setCursor(ht.line,ht.ch),Ie.replaceSelection(Xn),Ie.focus();case"inster-template-1":return Ct===""&&Ie.setCursor(ht.line,ht.ch),Ie.replaceSelection(ma),Ie.focus();case"eraser":return Ie.setValue(""),Ie.focus();case"trigger-watch":return qe(!na),Ie.focus();case"trigger-full-screen":return Rt(!yt),Ie.focus();case _e:mn(_e);return;case Nt:mn(Nt);return;case ut:mn(ut);return;case Wt:mn(Wt);return;case"maths-latex":mn("maths-latex");return;case Lt:mn(Lt);return;case It:mn(It);return;default:throw new Error}},[Ie,na,yt]),ba=(0,te.useCallback)((Ot,ht)=>{var Ct,Bt,$n,Sa,ka,Ma;switch(mn(""),at){case _e:const{title:vn,link:Zn}=Ot;return Ie.replaceSelection(`[${vn}](${Zn})`),Ie.focus();case Nt:const{language:Ba,content:Lo}=Ot;return Ie.replaceSelection(["```"+Ba,Lo,"```"].join(`
`)),Ie.focus();case"maths-latex":for(var xa=atob(Ot),Ut=new Uint8Array(xa.length),yn=0;yn<xa.length;yn++)Ut[yn]=xa.charCodeAt(yn);var xn=new Blob([Ut],{type:"image/png"});(0,Be.I)(xn,lo=>{lo.id?Ie.replaceSelection(`![,](/api/attachments/${lo.id}?type=${lo.content_type})`):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ie.replaceSelection("`$$"+Ot+"$$`");break;case ut:case Wt:case _t:const{src:ao,alt:bo}=Ot,Oa=ht,zr=($n=(Bt=(Ct=Oa==null?void 0:Oa.name)==null?void 0:Ct.split("."))==null?void 0:Bt.pop)==null?void 0:$n.call(Bt);return((Sa=Oa==null?void 0:Oa.type)==null?void 0:Sa.indexOf("image"))>-1||!(Oa!=null&&Oa.type)?Oa.align||Oa.width?Ie.replaceSelection(`<p style="text-align:${Oa.align||"initial"}"><img width="${Oa.width?Oa.width+"%":"initial"}" src="${ao}" alt="${bo||""}" /></p>`):Ie.replaceSelection(`<img width="100%" src="${ao}" alt="${bo||""}" />`):((ka=Oa==null?void 0:Oa.type)==null?void 0:ka.indexOf("video"))>-1?Ie.replaceSelection(`<video width="100%" controls src="${ao}"></video>`):((Ma=Oa==null?void 0:Oa.type)==null?void 0:Ma.indexOf("pdf"))>-1?Ie.replaceSelection(`<a href="${ao}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):Tn.includes(zr)?Ie.replaceSelection(`<a href="${ao}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):Ie.replaceSelection(`[${Oa.name}](${ao})`),Ie.focus();case It:const{row:Ar,col:cr,align:Cr}=Ot;let qo=`
`;for(let lo=0;lo<Ar;lo++){let Dr=[],fr=[];for(let Ir=0;Ir<cr;Ir++)lo===1&&fr.push(Qt[Cr]),Dr.push(" ");lo===1&&(qo+=`| ${fr.join(" | ")} |
`),qo+=`| ${Dr.join(cr===1?"":" | ")} |
`}return Ie.replaceSelection(qo+`
`),Ie.focus();default:throw new Error}},[Ie,at]),Wo=(0,te.useMemo)(()=>{switch(at){case _e:return te.createElement(Mn,{callback:ba,onCancel:wa});case Nt:return te.createElement(In.Z,{callback:ba,onCancel:wa});case ut:return te.createElement(Be.Z,{callback:ba,onCancel:wa});case Lt:return te.createElement(vt,{callback:ba,onCancel:wa});case It:return te.createElement(ln,{callback:ba,onCancel:wa});case"maths-latex":return te.createElement(An,{showSaveButton:!0,callback:ba});case"inline-latex":return te.createElement(Hn.Z,{showSaveButton:!0,callback:ba});default:return null}},[at]);function wa(){mn("")}(0,te.useEffect)(()=>{if(fo.current){let Ot=function(ka){$n=!0,Sa=ka.pageY},ht=function(){$n=!1},Ct=function(ka){if($n){let Ma=ka.pageY-Sa;Ma<0&&(Ma=0),Ma>300&&(Ma=300);let xa=dt+Ma+"px";fa(xa)}},Bt=fo.current,$n=!1,Sa=0;return Bt.addEventListener("mousedown",Ot),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",ht),()=>{Bt.removeEventListener("mousedown",Ot),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",ht)}}},[Ie,fo]),(0,te.useEffect)(()=>{fa(dt)},[dt]);const Yn=Pa(ve),Qn=Pa(ca),no={width:Yn,height:Qn},Io=(0,te.useMemo)(()=>{if(cn){let Ot=new Date(cn),ht=Ot.getHours(),Ct=Ot.getMinutes(),Bt=Ot.getSeconds();return ht=ht<10?"0"+ht:ht,Ct=Ct<10?"0"+Ct:Ct,Bt=Bt<10?"0"+Bt:Bt,`${ht}:${Ct}:${Bt}`}return 0},[cn]),Qo=Ot=>{const ht=[];if(Pe){let Ct=-1;Ot=Ot.replace(/(@▁▁@|@▁@)/g,function(Bt,$n,Sa){ht.push({multiLine:Bt!==ua})})}return ht};function br(){window.sessionStorage.removeItem(ta),to(!1),sa(0)}function wr(){to(!1),sa(0),Ie.setValue(window.sessionStorage.getItem(ta))}(0,te.useEffect)(()=>{eo[at]&&at!==Wt&&at!==Lt&&setTimeout(()=>{const Ot=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth/2-Ot.offsetWidth/2,Ct=window.innerHeight/2-Ot.offsetHeight/2;io(ht),yo(Ct)},0)},[at]);const Jo=Ot=>{Ot.preventDefault();const ht=Ot.clientX-va,Ct=Ot.clientY-po;document.body.onmousemove=Bt=>{let $n=Bt.clientX-ht,Sa=Bt.clientY-Ct;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ma=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;$n=Math.max(0,Math.min($n,Ma)),Sa=Math.max(0,Math.min(Sa,xa)),mr(Bt.clientX,Bt.clientY,ht,Ct)&&(io($n),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(Ot,ht,Ct,Bt)=>{const $n=document.body.clientHeight,Sa=document.body.clientWidth;return Ot<20&&Ct>Ot||Ot>Sa-20&&Ct<Ot||ht<20&&Bt>ht||ht>$n-20&&Bt<ht?(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 ${et} ${na?"on-preview":""} ${$t?"mini":""} ${yt?"full-screen":""}`,style:no},te.createElement(de,{insertTemp:sn,watch:na,fullScreen:yt,showNullButton:pn,showNullProgramButton:Pe,onActionCallback:Ja,hidetoolBar:Oe,extraUse:bn}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:_a,placeholder:Jt})),na?te.createElement("div",{ref:tn,className:"preview-container"},Ln==="stex"&&te.createElement(Te,{value:La}),Ln!=="stex"&&te.createElement(Ue.Z,{disabledFill:xt,showProgramFill:Pe,value:La})):null))),Da?te.createElement("a",{ref:fo,className:"editor-resize"}):null,at===Wt&&te.createElement(wt,{callback:ba,onCancel:wa}),at===Lt&&te.createElement(vt,{callback:ba,onCancel:wa}),te.createElement(Se.Z,null,eo[at]&&at!==Wt&&at!==Lt?te.createElement(He.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:va,top:po},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Jo},eo[at]),open:!0,onCancel:wa,footer:null,destroyOnClose:!0,width:at===Lt?"1200px":null,height:at===Lt?"80vh":null,className:"markdown-popup-form"},Wo):null))}},70859:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ge},I:function(){return Se}});var te=oe(22150),ye=oe(2453),Je=oe(69677),Ye=oe(93421),he=oe(31795),Ve=oe(78045),ce=oe(71577),ke=oe(15476),ze=oe(67294),Ee=oe(52262),Ue=oe(67294),Te=Object.defineProperty,Ae=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(me,Ke,Ze)=>Ke in me?Te(me,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):me[Ke]=Ze,x=(me,Ke)=>{for(var Ze in Ke||(Ke={}))y.call(Ke,Ze)&&b(me,Ze,Ke[Ze]);if(a)for(var Ze of a(Ke))E.call(Ke,Ze)&&b(me,Ze,Ke[Ze]);return me},z=(me,Ke)=>Ae(me,ae(Ke));const{useForm:ee}=te.default,ne={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:me,onCancel:Ke})=>{const[Ze]=ee();let bt=(0,ze.useRef)();function Yt(it){bt.current.width=Ze.getFieldValue("width"),bt.current.align=Ze.getFieldValue("align"),me(it,bt.current)}function Zt(it,ct){if(it.status===-1){ye.ZP.error(it.message);return}Ze.setFieldsValue({src:`/api/attachments/${it.id}`,type:ct.type})}function xe(it){let ct=it.target.files[0];bt.current=ct,Se(ct,Zt)}return Ue.createElement(te.default,z(x({form:Ze},ie),{className:"upload-image-panel",onFinish:Yt,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(Je.default,{style:ne})),Ue.createElement(de,{onFileChange:xe}))),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(Je.default,{style:{width:264}})),Ue.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(Ye.Z,null,Ue.createElement(te.default.Item,{name:"width",style:{margin:0}},Ue.createElement(he.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(Ve.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ue.createElement("aside",null,Ue.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(ce.ZP,{type:"default",onClick:Ke},"\u53D6\u6D88"))))};function de({onFileChange:me}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:me}))}function Se(me,Ke){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 Ze=new FormData;Ze.append("editormd-image-file",me),Ze.append("file_param_name","editormd-image-file"),Ze.append("byxhr","true");var bt=new window.XMLHttpRequest;bt.withCredentials=!0,bt.addEventListener("load",function(Yt){Ke(JSON.parse(Yt.target.responseText),me)},!1),bt.addEventListener("error",function(Yt){console.error(Yt)},!1),bt.open("POST",`${ke.KI}/api/attachments.json`),bt.send(Ze)}},76621:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Je}});var te=oe(67294),ye=oe(73935);class Je extends te.Component{constructor(he){super(he);const Ve=window.document;this.node=Ve.createElement("div"),Ve.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,ye.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ye}});var te=oe(67294);function ye(Je,Ye){const he=(0,te.useRef)();(0,te.useEffect)(()=>{he.current=Je}),(0,te.useEffect)(()=>{function Ve(){he.current()}if(Ye!==null){let ce=setInterval(Ve,Ye);return()=>clearInterval(ce)}},[Ye])}},27946:function(Ge,mt,oe){"use strict";oe.r(mt),oe.d(mt,{default:function(){return ge}});var te=oe(67294),ye=oe(35973),Je=oe(22150),Ye=oe(2453),he=oe(85673),Ve=oe(69677),ce=oe(59810),ke=oe(71577),ze=oe(35567),Ee=oe(86763),Ue=oe(11320),Te={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Ae=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(de,Se,me)=>Se in de?Ae(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:me}):de[Se]=me,z=(de,Se)=>{for(var me in Se||(Se={}))E.call(Se,me)&&x(de,me,Se[me]);if(y)for(var me of y(Se))b.call(Se,me)&&x(de,me,Se[me]);return de},ee=(de,Se)=>ae(de,a(Se)),ne=(de,Se,me)=>new Promise((Ke,Ze)=>{var bt=xe=>{try{Zt(me.next(xe))}catch(it){Ze(it)}},Yt=xe=>{try{Zt(me.throw(xe))}catch(it){Ze(it)}},Zt=xe=>xe.done?Ke(xe.value):Promise.resolve(xe.value).then(bt,Yt);Zt((me=me.apply(de,Se)).next())});const ie=({shixunHomeworks:de,newCourse:Se,globalSetting:me,loading:Ke,dispatch:Ze,match:bt})=>{var Yt;const Zt=(0,ye.useParams)(),[xe]=Je.default.useForm(),[it,ct]=(0,te.useState)({}),[gt,St]=(0,te.useState)(!1),[qt,on]=(0,te.useState)([]),[Mn,In]=(0,te.useState)([]),{commonHomeWorkEditDefaultData:Be}=de,He={name:"file",multiple:!0,action:Ue.Z.API_SERVER+"/api/attachments.json",defaultFileList:qt,onChange(wt){const{status:ue}=wt.file;ue==="done"?Ye.ZP.success(`${wt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):ue==="error"&&Ye.ZP.error(`${wt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,te.useEffect)(()=>{Vt()},[Zt.topicId]);const rt=wt=>wt==null?void 0:wt.map(ue=>({uid:ue.id,response:{id:ue.id},name:ue.title,status:"done",url:ue.url})),Vt=()=>ne(void 0,null,function*(){const wt=yield Ze({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:Zt.topicId}});wt&&(xe.setFieldsValue({name:wt.name}),xe.setFieldsValue({description:wt.description}),xe.setFieldsValue({reference_answer:wt.reference_answer}),on([...rt(wt.attachments)]),In([...rt(wt.reference_attachments)]),St(!0))}),lt=wt=>ne(void 0,null,function*(){var ue,ft;const Kt=z({},it);Kt.attachment_ids&&(Kt.attachment_ids=(ue=Kt==null?void 0:Kt.attachment_ids.fileList)==null?void 0:ue.map(Ft=>{var Xe;return(Xe=Ft.response)==null?void 0:Xe.id})),Kt.reference_attachment_ids&&(Kt.reference_attachment_ids=(ft=Kt==null?void 0:Kt.reference_attachment_ids.fileList)==null?void 0:ft.map(Ft=>{var Xe;return(Xe=Ft.response)==null?void 0:Xe.id})),(yield(0,Ee.yT)(ee(z({id:Zt.topicId},Kt),{base_on_project:null,type:1})))&&ye.history.push(`/users/${Zt.username}/topics/${Zt.topicId}/${Zt.topictype}/normal/detail`)});return te.createElement("section",{className:Te.bg},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},te.createElement(he.Z,{separator:">"},te.createElement(he.Z.Item,null,te.createElement(ye.Link,{to:`/users/${Zt.username}/${Zt.topictype==="personal"?"topics":"topicbank"}/${Zt.topictype}`},Zt.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),te.createElement(he.Z.Item,null,te.createElement(ye.Link,{to:`/users/${Zt.username}/topics/${Zt.topicId}/${Zt.topictype}/normal/detail`},"\u8BE6\u60C5")),te.createElement(he.Z.Item,null,"\u7F16\u8F91")))),te.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),te.createElement(Je.default,{form:xe,className:Te.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ct(z({},xe.getFieldsValue()))},onFinish:lt},te.createElement("div",{className:Te.fieldWrap},te.createElement(Je.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},te.createElement(Ve.default,{maxLength:60,suffix:`${((Yt=it.name)==null?void 0:Yt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),te.createElement("div",{className:Te.mdWrap},te.createElement(Je.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},te.createElement(ze.Z,{id:"topic-normal-description",watch:!0,defaultValue:Be.description})),te.createElement("div",null,te.createElement(Je.default.Item,{name:"attachment_ids"},gt&&te.createElement(ce.default,z({defaultFileList:qt},He),te.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),te.createElement("div",{className:Te.mdWrap},te.createElement(Je.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},te.createElement(ze.Z,{id:"topic-normal-reference_answer",defaultValue:Be.reference_answer,watch:!0})),te.createElement("div",null,te.createElement(Je.default.Item,{name:"reference_attachment_ids"},gt&&te.createElement(ce.default,ee(z({},He),{defaultFileList:Mn}),te.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),te.createElement("div",{className:Te.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(Je.default.Item,null,te.createElement(ke.ZP,{size:"middle",type:"primary",className:`${Te.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),te.createElement(ke.ZP,{size:"middle",type:"primary",ghost:!0,className:Te.button,onClick:()=>ye.history.push(`/users/${Zt.username}/topics/${Zt.topicId}/${Zt.topictype}/normal/detail`)},"\u53D6\u6D88"))))))};var ge=(0,ye.connect)(({shixunHomeworks:de,newCourse:Se,loading:me,globalSetting:Ke})=>({shixunHomeworks:de,newCourse:Se,globalSetting:Ke,loading:me.effects}))(ie)},57838:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ye}});var te=oe(67294);function ye(){const[,Je]=te.useReducer(Ye=>Ye+1,0);return Je}},85673:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Zt}});var te=oe(94184),ye=oe.n(te),Je=oe(37419),Ye=oe(1337),he=oe(67294),Ve=oe(96159),ce=oe(53124),ke=oe(42922),ze=oe(56153);const Ee=xe=>{let{children:it}=xe;const{getPrefixCls:ct}=he.useContext(ce.E_),gt=ct("breadcrumb");return he.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},it===""?it:it||"/")};Ee.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ee,Te=function(xe,it){var ct={};for(var gt in xe)Object.prototype.hasOwnProperty.call(xe,gt)&&it.indexOf(gt)<0&&(ct[gt]=xe[gt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,gt=Object.getOwnPropertySymbols(xe);St<gt.length;St++)it.indexOf(gt[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,gt[St])&&(ct[gt[St]]=xe[gt[St]]);return ct};function Ae(xe,it){if(xe.title===void 0||xe.title===null)return null;const ct=Object.keys(it).join("|");return typeof xe.title=="object"?xe.title:String(xe.title).replace(new RegExp(`:(${ct})`,"g"),(gt,St)=>it[St]||gt)}function ae(xe,it,ct,gt){if(ct==null)return null;const{className:St,onClick:qt}=it,on=Te(it,["className","onClick"]),Mn=Object.assign(Object.assign({},(0,Ye.Z)(on,{data:!0,aria:!0})),{onClick:qt});return gt!==void 0?he.createElement("a",Object.assign({},Mn,{className:ye()(`${xe}-link`,St),href:gt}),ct):he.createElement("span",Object.assign({},Mn,{className:ye()(`${xe}-link`,St)}),ct)}function a(xe,it){return(gt,St,qt,on,Mn)=>{if(it)return it(gt,St,qt,on);const In=Ae(gt,St);return ae(xe,gt,In,Mn)}}var y=function(xe,it){var ct={};for(var gt in xe)Object.prototype.hasOwnProperty.call(xe,gt)&&it.indexOf(gt)<0&&(ct[gt]=xe[gt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,gt=Object.getOwnPropertySymbols(xe);St<gt.length;St++)it.indexOf(gt[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,gt[St])&&(ct[gt[St]]=xe[gt[St]]);return ct};const E=xe=>{const{prefixCls:it,separator:ct="/",children:gt,menu:St,overlay:qt,dropdownProps:on,href:Mn}=xe,Be=(He=>{if(St||qt){const rt=Object.assign({},on);if(St){const Vt=St||{},{items:lt}=Vt,wt=y(Vt,["items"]);rt.menu=Object.assign(Object.assign({},wt),{items:lt==null?void 0:lt.map((ue,ft)=>{var{key:Kt,title:zn,label:Ft,path:Xe}=ue,Me=y(ue,["key","title","label","path"]);let we=Ft!=null?Ft:zn;return Xe&&(we=he.createElement("a",{href:`${Mn}${Xe}`},we)),Object.assign(Object.assign({},Me),{key:Kt!=null?Kt:ft,label:we})})})}else qt&&(rt.overlay=qt);return he.createElement(ze.Z,Object.assign({placement:"bottom"},rt),he.createElement("span",{className:`${it}-overlay-link`},He,he.createElement(ke.Z,null)))}return He})(gt);return Be!=null?he.createElement(he.Fragment,null,he.createElement("li",null,Be),ct&&he.createElement(Ue,null,ct)):null},b=xe=>{const{prefixCls:it,children:ct,href:gt}=xe,St=y(xe,["prefixCls","children","href"]),{getPrefixCls:qt}=he.useContext(ce.E_),on=qt("breadcrumb",it);return he.createElement(E,Object.assign({},St,{prefixCls:on}),ae(on,St,ct,gt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const ie=xe=>{const{componentCls:it,iconCls:ct}=xe;return{[it]:Object.assign(Object.assign({},(0,z.Wf)(xe)),{color:xe.itemColor,fontSize:xe.fontSize,[ct]:{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},[`${it}-separator`]:{marginInline:xe.separatorMargin,color:xe.separatorColor},[`${it}-link`]:{[`
> ${ct} + span,
> ${ct} + a
`]:{marginInlineStart:xe.marginXXS}},[`${it}-overlay-link`]:{borderRadius:xe.borderRadiusSM,height:xe.lineHeight*xe.fontSize,display:"inline-block",padding:`0 ${xe.paddingXXS}px`,marginInline:-xe.marginXXS,[`> ${ct}`]:{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 it=(0,ne.TS)(xe,{});return[ie(it)]},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,it){var ct={};for(var gt in xe)Object.prototype.hasOwnProperty.call(xe,gt)&&it.indexOf(gt)<0&&(ct[gt]=xe[gt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,gt=Object.getOwnPropertySymbols(xe);St<gt.length;St++)it.indexOf(gt[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,gt[St])&&(ct[gt[St]]=xe[gt[St]]);return ct};function Se(xe){const{breadcrumbName:it,children:ct}=xe,gt=de(xe,["breadcrumbName","children"]),St=Object.assign({title:it},gt);return ct&&(St.menu={items:ct.map(qt=>{var{breadcrumbName:on}=qt,Mn=de(qt,["breadcrumbName"]);return Object.assign(Object.assign({},Mn),{title:on})})}),St}function me(xe,it){return(0,he.useMemo)(()=>xe||(it?it.map(Se):null),[xe,it])}var Ke=function(xe,it){var ct={};for(var gt in xe)Object.prototype.hasOwnProperty.call(xe,gt)&&it.indexOf(gt)<0&&(ct[gt]=xe[gt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,gt=Object.getOwnPropertySymbols(xe);St<gt.length;St++)it.indexOf(gt[St])<0&&Object.prototype.propertyIsEnumerable.call(xe,gt[St])&&(ct[gt[St]]=xe[gt[St]]);return ct};const Ze=(xe,it)=>{if(it===void 0)return it;let ct=(it||"").replace(/^\//,"");return Object.keys(xe).forEach(gt=>{ct=ct.replace(`:${gt}`,xe[gt])}),ct},bt=xe=>{const{prefixCls:it,separator:ct="/",style:gt,className:St,rootClassName:qt,routes:on,items:Mn,children:In,itemRender:Be,params:He={}}=xe,rt=Ke(xe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Vt,direction:lt,breadcrumb:wt}=he.useContext(ce.E_);let ue;const ft=Vt("breadcrumb",it),[Kt,zn]=ge(ft),Ft=me(Mn,on),Xe=a(ft,Be);if(Ft&&Ft.length>0){const Qe=[],nt=Mn||on;ue=Ft.map((vt,zt)=>{const{path:kt,key:en,type:dn,menu:ln,overlay:rn,onClick:jn,className:Rn,separator:oa,dropdownProps:An}=vt,Hn=Ze(He,kt);Hn!==void 0&&Qe.push(Hn);const pe=en!=null?en:zt;if(dn==="separator")return he.createElement(Ue,{key:pe},oa);const $e={},_e=zt===Ft.length-1;ln?$e.menu=ln:rn&&($e.overlay=rn);let{href:ut}=vt;return Qe.length&&Hn!==void 0&&(ut=`#/${Qe.join("/")}`),he.createElement(E,Object.assign({key:pe},$e,(0,Ye.Z)(vt,{data:!0,aria:!0}),{className:Rn,dropdownProps:An,href:ut,separator:_e?"":ct,onClick:jn,prefixCls:ft}),Xe(vt,He,nt,Qe,ut))})}else if(In){const Qe=(0,Je.Z)(In).length;ue=(0,Je.Z)(In).map((nt,vt)=>{if(!nt)return nt;const zt=vt===Qe-1;return(0,Ve.Tm)(nt,{separator:zt?"":ct,key:vt})})}const Me=ye()(ft,wt==null?void 0:wt.className,{[`${ft}-rtl`]:lt==="rtl"},St,qt,zn),we=Object.assign(Object.assign({},wt==null?void 0:wt.style),gt);return Kt(he.createElement("nav",Object.assign({className:Me,style:we},rt),he.createElement("ol",null,ue)))};bt.Item=x,bt.Separator=Ue;var Yt=bt,Zt=Yt},56153:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Sg}});var te=oe(67294),ye=oe.t(te,2),Je=oe(91034),Ye=oe(94184),he=oe.n(Ye),Ve=oe(87462),ce=oe(4942),ke=oe(97685),ze=oe(45987),Ee=oe(1413),Ue=oe(73935);function Te(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ae={};function ae(re,le){}function a(re,le){}function y(){Ae={}}function E(re,le,se){!le&&!Ae[se]&&(re(!1,se),Ae[se]=!0)}function b(re,le){E(ae,re,le)}function x(re,le){E(a,re,le)}var z=null,ee=oe(71002),ne=oe(12060);function ie(re,le,se){var fe=te.useRef({});return(!("value"in fe.current)||se(fe.current.condition,le))&&(fe.current.value=re(),fe.current.condition=le),fe.current.value}function ge(re,le){typeof re=="function"?re(le):(0,ee.Z)(re)==="object"&&re&&"current"in re&&(re.current=le)}function de(){for(var re=arguments.length,le=new Array(re),se=0;se<re;se++)le[se]=arguments[se];var fe=le.filter(function(Ce){return Ce});return fe.length<=1?fe[0]:function(Ce){le.forEach(function(De){ge(De,Ce)})}}function Se(){for(var re=arguments.length,le=new Array(re),se=0;se<re;se++)le[se]=arguments[se];return ie(function(){return de.apply(void 0,le)},le,function(fe,Ce){return fe.length===Ce.length&&fe.every(function(De,Re){return De===Ce[Re]})})}function me(re){var le,se,fe=(0,ne.isMemo)(re)?re.type.type:re.type;return!(typeof fe=="function"&&!((le=fe.prototype)!==null&&le!==void 0&&le.render)||typeof re=="function"&&!((se=re.prototype)!==null&&se!==void 0&&se.render))}var Ke=te.createContext(null),Ze=Ke,bt=oe(74902),Yt=Te()?te.useLayoutEffect:te.useEffect,Zt=Yt,xe=function(le,se){var fe=React.useRef(!0);Yt(function(){if(!fe.current)return le()},se),Yt(function(){return fe.current=!1,function(){fe.current=!0}},[])},it=[];function ct(re,le){var se=te.useState(function(){if(!Te())return null;var Xt=document.createElement("div");return Xt}),fe=(0,ke.Z)(se,1),Ce=fe[0],De=te.useRef(!1),Re=te.useContext(Ze),st=te.useState(it),Et=(0,ke.Z)(st,2),Pt=Et[0],At=Et[1],pt=Re||(De.current?void 0:function(Xt){At(function(wn){var un=[Xt].concat((0,bt.Z)(wn));return un})});function Dt(){Ce.parentElement||document.body.appendChild(Ce),De.current=!0}function Tt(){var Xt;(Xt=Ce.parentElement)===null||Xt===void 0||Xt.removeChild(Ce),De.current=!1}return Zt(function(){return re?Re?Re(Dt):Dt():Tt(),Tt},[re]),Zt(function(){Pt.length&&(Pt.forEach(function(Xt){return Xt()}),At(it))},[Pt]),[Ce,pt]}function gt(re,le){if(!re)return!1;if(re.contains)return re.contains(le);for(var se=le;se;){if(se===re)return!0;se=se.parentNode}return!1}var St="data-rc-order",qt="rc-util-key",on=new Map;function Mn(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=re.mark;return le?le.startsWith("data-")?le:"data-".concat(le):qt}function In(re){if(re.attachTo)return re.attachTo;var le=document.querySelector("head");return le||document.body}function Be(re){return re==="queue"?"prependQueue":re?"prepend":"append"}function He(re){return Array.from((on.get(re)||re).children).filter(function(le){return le.tagName==="STYLE"})}function rt(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Te())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=re;var De=In(le),Re=De.firstChild;if(fe){if(fe==="queue"){var st=He(De).filter(function(Et){return["prepend","prependQueue"].includes(Et.getAttribute(St))});if(st.length)return De.insertBefore(Ce,st[st.length-1].nextSibling),Ce}De.insertBefore(Ce,Re)}else De.appendChild(Ce);return Ce}function Vt(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=In(le);return He(se).find(function(fe){return fe.getAttribute(Mn(le))===re})}function lt(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Vt(re,le);if(se){var fe=In(le);fe.removeChild(se)}}function wt(re,le){var se=on.get(re);if(!se||!gt(document,se)){var fe=rt("",le),Ce=fe.parentNode;on.set(re,Ce),re.removeChild(fe)}}function ue(){on.clear()}function ft(re,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fe=In(se);wt(fe,se);var Ce=Vt(le,se);if(Ce){var De,Re;if((De=se.csp)!==null&&De!==void 0&&De.nonce&&Ce.nonce!==((Re=se.csp)===null||Re===void 0?void 0:Re.nonce)){var st;Ce.nonce=(st=se.csp)===null||st===void 0?void 0:st.nonce}return Ce.innerHTML!==re&&(Ce.innerHTML=re),Ce}var Et=rt(re,se);return Et.setAttribute(Mn(se),le),Et}var Kt;function zn(re){if(typeof document=="undefined")return 0;if(re||Kt===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 De=le.offsetWidth;Ce===De&&(De=se.clientWidth),document.body.removeChild(se),Kt=Ce-De}return Kt}function Ft(re){var le=re.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?zn():se}function Xe(re){if(typeof document=="undefined"||!re||!(re instanceof Element))return{width:0,height:0};var le=getComputedStyle(re,"::-webkit-scrollbar"),se=le.width,fe=le.height;return{width:Ft(se),height:Ft(fe)}}function Me(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var we="rc-util-locker-".concat(Date.now()),Qe=0;function nt(re){var le=!!re,se=te.useState(function(){return Qe+=1,"".concat(we,"_").concat(Qe)}),fe=(0,ke.Z)(se,1),Ce=fe[0];Zt(function(){if(le){var De=Xe(document.body).width,Re=Me();ft(`
html body {
overflow-y: hidden;
`.concat(Re?"width: calc(100% - ".concat(De,"px);"):"",`
}`),Ce)}else lt(Ce);return function(){lt(Ce)}},[le,Ce])}var vt=!1;function zt(re){return typeof re=="boolean"&&(vt=re),vt}var kt=function(le){return le===!1?!1:!Te()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},en=te.forwardRef(function(re,le){var se=re.open,fe=re.autoLock,Ce=re.getContainer,De=re.debug,Re=re.autoDestroy,st=Re===void 0?!0:Re,Et=re.children,Pt=te.useState(se),At=(0,ke.Z)(Pt,2),pt=At[0],Dt=At[1],Tt=pt||se;te.useEffect(function(){(st||se)&&Dt(se)},[se,st]);var Xt=te.useState(function(){return kt(Ce)}),wn=(0,ke.Z)(Xt,2),un=wn[0],Nn=wn[1];te.useEffect(function(){var ha=kt(Ce);Nn(ha!=null?ha:null)});var hn=ct(Tt&&!un,De),nn=(0,ke.Z)(hn,2),Gt=nn[0],ra=nn[1],Jn=un!=null?un:Gt;nt(fe&&se&&Te()&&(Jn===Gt||Jn===document.body));var ia=null;if(Et&&me(Et)&&le){var ya=Et;ia=ya.ref}var ja=Se(ia,le);if(!Tt||!Te()||un===void 0)return null;var Wn=Jn===!1||zt(),Bn=Et;return le&&(Bn=te.cloneElement(Et,{ref:ja})),te.createElement(Ze.Provider,{value:ra},Wn?Bn:(0,Ue.createPortal)(Bn,Jn))}),dn=en,ln=dn,rn=oe(48555);function jn(re){return re instanceof HTMLElement||re instanceof SVGElement}function Rn(re){return jn(re)?re:re instanceof React.Component?ReactDOM.findDOMNode(re):null}function oa(re){var le;return re==null||(le=re.getRootNode)===null||le===void 0?void 0:le.call(re)}function An(re){return oa(re)instanceof ShadowRoot}function Hn(re){return An(re)?oa(re):null}function pe(re){var le=te.useRef();le.current=re;var se=te.useCallback(function(){for(var fe,Ce=arguments.length,De=new Array(Ce),Re=0;Re<Ce;Re++)De[Re]=arguments[Re];return(fe=le.current)===null||fe===void 0?void 0:fe.call.apply(fe,[le].concat(De))},[]);return se}function $e(){var re=(0,Ee.Z)({},ye);return re.useId}var _e=0;function ut(){}var Lt=$e(),Wt=Lt?function(le){var se=Lt();return le||se}:function(le){var se=te.useState("ssr-id"),fe=(0,ke.Z)(se,2),Ce=fe[0],De=fe[1];return te.useEffect(function(){var Re=_e;_e+=1,De("rc_unique_".concat(Re))},[]),le||Ce};function _t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nt=_t()?te.useLayoutEffect:te.useEffect,It=function(le,se){var fe=te.useRef(!0);Nt(function(){return le(fe.current)},se),Nt(function(){return fe.current=!1,function(){fe.current=!0}},[])},Sn=function(le,se){It(function(fe){if(!fe)return le()},se)},Qt=It,Dn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var re=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(re)||/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(re==null?void 0:re.substr(0,4))},Kn=te.createContext(null),_n=Kn;function la(re){return re?Array.isArray(re)?re:[re]:[]}function On(re,le,se,fe){return te.useMemo(function(){var Ce=la(se!=null?se:le),De=la(fe!=null?fe:le),Re=new Set(Ce),st=new Set(De);return re&&(Re.has("hover")&&(Re.delete("hover"),Re.add("click")),st.has("hover")&&(st.delete("hover"),st.add("click"))),[Re,st]},[re,le,se,fe])}var Fn=function(re){if(!re)return!1;if(re instanceof Element){if(re.offsetParent)return!0;if(re.getBBox){var le=re.getBBox(),se=le.width,fe=le.height;if(se||fe)return!0}if(re.getBoundingClientRect){var Ce=re.getBoundingClientRect(),De=Ce.width,Re=Ce.height;if(De||Re)return!0}}return!1};function Xn(){var re=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?re[0]===le[0]:re[0]===le[0]&&re[1]===le[1]}function ua(re,le,se,fe){for(var Ce=se.points,De=Object.keys(re),Re=0;Re<De.length;Re+=1){var st,Et=De[Re];if(Xn((st=re[Et])===null||st===void 0?void 0:st.points,Ce,fe))return"".concat(le,"-placement-").concat(Et)}return""}function ma(re,le,se,fe){return le||(se?{motionName:"".concat(re,"-").concat(se)}:fe?{motionName:fe}:null)}function Tn(re){return re.ownerDocument.defaultView}function Pa(re){for(var le=[],se=re==null?void 0:re.parentElement,fe=["hidden","scroll","clip","auto"];se;){var Ce=Tn(se).getComputedStyle(se),De=Ce.overflowX,Re=Ce.overflowY,st=Ce.overflow;[De,Re,st].some(function(Et){return fe.includes(Et)})&&le.push(se),se=se.parentElement}return le}function Aa(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(re)?le:re}function ea(re){return Aa(parseFloat(re),0)}function Ua(re,le){var se=(0,Ee.Z)({},re);return(le||[]).forEach(function(fe){if(!(fe instanceof HTMLBodyElement||fe instanceof HTMLHtmlElement)){var Ce=Tn(fe).getComputedStyle(fe),De=Ce.overflow,Re=Ce.overflowClipMargin,st=Ce.borderTopWidth,Et=Ce.borderBottomWidth,Pt=Ce.borderLeftWidth,At=Ce.borderRightWidth,pt=fe.getBoundingClientRect(),Dt=fe.offsetHeight,Tt=fe.clientHeight,Xt=fe.offsetWidth,wn=fe.clientWidth,un=ea(st),Nn=ea(Et),hn=ea(Pt),nn=ea(At),Gt=Aa(Math.round(pt.width/Xt*1e3)/1e3),ra=Aa(Math.round(pt.height/Dt*1e3)/1e3),Jn=(Xt-wn-hn-nn)*Gt,ia=(Dt-Tt-un-Nn)*ra,ya=un*ra,ja=Nn*ra,Wn=hn*Gt,Bn=nn*Gt,ha=0,Ca=0;if(De==="clip"){var ga=ea(Re);ha=ga*Gt,Ca=ga*ra}var Cn=pt.x+Wn-ha,Un=pt.y+ya-Ca,Pn=Cn+pt.width+2*ha-Wn-Bn-Jn,Ha=Un+pt.height+2*Ca-ya-ja-ia;se.left=Math.max(se.left,Cn),se.top=Math.max(se.top,Un),se.right=Math.min(se.right,Pn),se.bottom=Math.min(se.bottom,Ha)}}),se}function eo(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),fe=se.match(/^(.*)\%$/);return fe?re*(parseFloat(fe[1])/100):parseFloat(se)}function Qa(re,le){var se=le||[],fe=(0,ke.Z)(se,2),Ce=fe[0],De=fe[1];return[eo(re.width,Ce),eo(re.height,De)]}function Le(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[re[0],re[1]]}function be(re,le){var se=le[0],fe=le[1],Ce,De;return se==="t"?De=re.y:se==="b"?De=re.y+re.height:De=re.y+re.height/2,fe==="l"?Ce=re.x:fe==="r"?Ce=re.x+re.width:Ce=re.x+re.width/2,{x:Ce,y:De}}function ve(re,le){var se={t:"b",b:"t",l:"r",r:"l"};return re.map(function(fe,Ce){return Ce===le?se[fe]||"c":fe}).join("")}function dt(re,le,se,fe,Ce,De,Re){var st=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ce[fe]||{}}),Et=(0,ke.Z)(st,2),Pt=Et[0],At=Et[1],pt=te.useRef(0),Dt=te.useMemo(function(){return le?Pa(le):[]},[le]),Tt=te.useRef({}),Xt=function(){Tt.current={}};re||Xt();var wn=pe(function(){if(le&&se&&re){let Eo=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Za,Gr=Vn.x+ti,Lr=Vn.y+ur,ni=Gr+aa,Li=Lr+Ea,bi=Math.max(Gr,Yo.left),wi=Math.max(Lr,Yo.top),Ci=Math.min(ni,Yo.right),Ht=Math.min(Li,Yo.bottom);return Math.max(0,(Ci-bi)*(Ht-wi))},Zo=function(){jo=Vn.y+qn,nr=jo+Ea,ar=Vn.x+Wa,or=ar+aa};var hn,nn,Gt=le,ra=Gt.ownerDocument,Jn=Tn(Gt),ia=Jn.getComputedStyle(Gt),ya=ia.width,ja=ia.height,Wn=ia.position,Bn=Gt.style.left,ha=Gt.style.top,Ca=Gt.style.right,ga=Gt.style.bottom,Cn=(0,Ee.Z)((0,Ee.Z)({},Ce[fe]),De),Un=ra.createElement("div");(hn=Gt.parentElement)===null||hn===void 0||hn.appendChild(Un),Un.style.left="".concat(Gt.offsetLeft,"px"),Un.style.top="".concat(Gt.offsetTop,"px"),Un.style.position=Wn,Un.style.height="".concat(Gt.offsetHeight,"px"),Un.style.width="".concat(Gt.offsetWidth,"px"),Gt.style.left="0",Gt.style.top="0",Gt.style.right="auto",Gt.style.bottom="auto";var Pn;if(Array.isArray(se))Pn={x:se[0],y:se[1],width:0,height:0};else{var Ha=se.getBoundingClientRect();Pn={x:Ha.x,y:Ha.y,width:Ha.width,height:Ha.height}}var Vn=Gt.getBoundingClientRect(),Va=ra.documentElement,so=Va.clientWidth,Xa=Va.clientHeight,uo=Va.scrollWidth,So=Va.scrollHeight,kn=Va.scrollTop,mo=Va.scrollLeft,Ea=Vn.height,aa=Vn.width,Ta=Pn.height,wo=Pn.width,Ro={left:0,top:0,right:so,bottom:Xa},Uo={left:-mo,top:-kn,right:uo-mo,bottom:So-kn},qa=Cn.htmlRegion,oo="visible",Oo="visibleFirst";qa!=="scroll"&&qa!==Oo&&(qa=oo);var ro=qa===Oo,da=Ua(Uo,Dt),an=Ua(Ro,Dt),Za=qa===oo?an:da,co=ro?an:Za;Gt.style.left="auto",Gt.style.top="auto",Gt.style.right="0",Gt.style.bottom="0";var To=Gt.getBoundingClientRect();Gt.style.left=Bn,Gt.style.top=ha,Gt.style.right=Ca,Gt.style.bottom=ga,(nn=Gt.parentElement)===null||nn===void 0||nn.removeChild(Un);var er=Aa(Math.round(aa/parseFloat(ya)*1e3)/1e3),tr=Aa(Math.round(Ea/parseFloat(ja)*1e3)/1e3);if(er===0||tr===0||jn(se)&&!Fn(se))return;var ii=Cn.offset,Rr=Cn.targetOffset,Bo=Qa(Vn,ii),kr=(0,ke.Z)(Bo,2),$o=kr[0],No=kr[1],jr=Qa(Pn,Rr),Mo=(0,ke.Z)(jr,2),gi=Mo[0],di=Mo[1];Pn.x-=gi,Pn.y-=di;var Pr=Cn.points||[],ho=(0,ke.Z)(Pr,2),Vo=ho[0],li=ho[1],ko=Le(li),Po=Le(Vo),Hr=be(Pn,ko),Er=be(Vn,Po),Ko=(0,Ee.Z)({},Cn),Wa=Hr.x-Er.x+$o,qn=Hr.y-Er.y+No,Go=Eo(Wa,qn),zo=Eo(Wa,qn,an),Fr=be(Pn,["t","l"]),xr=be(Vn,["t","l"]),Br=be(Pn,["b","r"]),Co=be(Vn,["b","r"]),vr=Cn.overflow||{},Zr=vr.adjustX,$r=vr.adjustY,Nr=vr.shiftX,Wr=vr.shiftY,Mr=function(ur){return typeof ur=="boolean"?ur:ur>=0},jo,nr,ar,or;Zo();var Or=Mr($r),Ur=Po[0]===ko[0];if(Or&&Po[0]==="t"&&(nr>co.bottom||Tt.current.bt)){var Ao=qn;Ur?Ao-=Ea-Ta:Ao=Fr.y-Co.y-No;var Vr=Eo(Wa,Ao),vo=Eo(Wa,Ao,an);Vr>Go||Vr===Go&&(!ro||vo>=zo)?(Tt.current.bt=!0,qn=Ao,No=-No,Ko.points=[ve(Po,0),ve(ko,0)]):Tt.current.bt=!1}if(Or&&Po[0]==="b"&&(jo<co.top||Tt.current.tb)){var rr=qn;Ur?rr+=Ea-Ta:rr=Br.y-xr.y-No;var Kr=Eo(Wa,rr),si=Eo(Wa,rr,an);Kr>Go||Kr===Go&&(!ro||si>=zo)?(Tt.current.tb=!0,qn=rr,No=-No,Ko.points=[ve(Po,0),ve(ko,0)]):Tt.current.tb=!1}var _r=Mr(Zr),Xr=Po[1]===ko[1];if(_r&&Po[1]==="l"&&(or>co.right||Tt.current.rl)){var ir=Wa;Xr?ir-=aa-wo:ir=Fr.x-Co.x-$o;var Yr=Eo(ir,qn),ui=Eo(ir,qn,an);Yr>Go||Yr===Go&&(!ro||ui>=zo)?(Tt.current.rl=!0,Wa=ir,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):Tt.current.rl=!1}if(_r&&Po[1]==="r"&&(ar<co.left||Tt.current.lr)){var gr=Wa;Xr?gr+=aa-wo:gr=Br.x-xr.x-$o;var dr=Eo(gr,qn),Tr=Eo(gr,qn,an);dr>Go||dr===Go&&(!ro||Tr>=zo)?(Tt.current.lr=!0,Wa=gr,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):Tt.current.lr=!1}Zo();var lr=Nr===!0?0:Nr;typeof lr=="number"&&(ar<an.left&&(Wa-=ar-an.left-$o,Pn.x+wo<an.left+lr&&(Wa+=Pn.x-an.left+wo-lr)),or>an.right&&(Wa-=or-an.right-$o,Pn.x>an.right-lr&&(Wa+=Pn.x-an.right+lr)));var _o=Wr===!0?0:Wr;typeof _o=="number"&&(jo<an.top&&(qn-=jo-an.top-No,Pn.y+Ta<an.top+_o&&(qn+=Pn.y-an.top+Ta-_o)),nr>an.bottom&&(qn-=nr-an.bottom-No,Pn.y>an.bottom-_o&&(qn+=Pn.y-an.bottom+_o)));var Xo=Vn.x+Wa,sr=Xo+aa,pr=Vn.y+qn,yr=pr+Ea,Ho=Pn.x,mi=Ho+wo,Qr=Pn.y,ci=Qr+Ta,Jr=Math.max(Xo,Ho),fi=Math.min(sr,mi),Si=(Jr+fi)/2,hi=Si-Xo,qr=Math.max(pr,Qr),Pi=Math.min(yr,ci),vi=(qr+Pi)/2,ei=vi-pr;Re==null||Re(le,Ko);var pi=To.right-Vn.x-(Wa+Vn.width),yi=To.bottom-Vn.y-(qn+Vn.height);At({ready:!0,offsetX:Wa/er,offsetY:qn/tr,offsetR:pi/er,offsetB:yi/tr,arrowX:hi/er,arrowY:ei/tr,scaleX:er,scaleY:tr,align:Ko})}}),un=function(){pt.current+=1;var nn=pt.current;Promise.resolve().then(function(){pt.current===nn&&wn()})},Nn=function(){At(function(nn){return(0,Ee.Z)((0,Ee.Z)({},nn),{},{ready:!1})})};return Qt(Nn,[fe]),Qt(function(){re||Nn()},[re]),[Pt.ready,Pt.offsetX,Pt.offsetY,Pt.offsetR,Pt.offsetB,Pt.arrowX,Pt.arrowY,Pt.scaleX,Pt.scaleY,Pt.align,un]}function $t(re,le,se,fe,Ce){Qt(function(){if(re&&le&&se){let pt=function(){fe(),Ce()};var De=le,Re=se,st=Pa(De),Et=Pa(Re),Pt=Tn(Re),At=new Set([Pt].concat((0,bt.Z)(st),(0,bt.Z)(Et)));return At.forEach(function(Dt){Dt.addEventListener("scroll",pt,{passive:!0})}),Pt.addEventListener("resize",pt,{passive:!0}),fe(),function(){At.forEach(function(Dt){Dt.removeEventListener("scroll",pt),Pt.removeEventListener("resize",pt)})}}},[re,le,se])}function Mt(re){var le=React.useRef(!1),se=React.useState(re),fe=_slicedToArray(se,2),Ce=fe[0],De=fe[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Re(st,Et){Et&&le.current||De(st)}return[Ce,Re]}function Gn(re){return re!==void 0}function sn(re,le){var se=le||{},fe=se.defaultValue,Ce=se.value,De=se.onChange,Re=se.postState,st=useState(function(){return Gn(Ce)?Ce:Gn(fe)?typeof fe=="function"?fe():fe:typeof re=="function"?re():re}),Et=_slicedToArray(st,2),Pt=Et[0],At=Et[1],pt=Ce!==void 0?Ce:Pt,Dt=Re?Re(pt):pt,Tt=useEvent(De),Xt=useState([pt]),wn=_slicedToArray(Xt,2),un=wn[0],Nn=wn[1];useLayoutUpdateEffect(function(){var nn=un[0];Pt!==nn&&Tt(Pt,nn)},[un]),useLayoutUpdateEffect(function(){Gn(Ce)||At(Ce)},[Ce]);var hn=useEvent(function(nn,Gt){At(nn,Gt),Nn([pt],Gt)});return[Dt,hn]}var Ln=oe(95845);function ta(re,le,se){var fe=te.useRef({});return(!("value"in fe.current)||se(fe.current.condition,le))&&(fe.current.value=re(),fe.current.condition=le),fe.current.value}function Da(re,le){typeof re=="function"?re(le):(0,ee.Z)(re)==="object"&&re&&"current"in re&&(re.current=le)}function tt(){for(var re=arguments.length,le=new Array(re),se=0;se<re;se++)le[se]=arguments[se];var fe=le.filter(function(Ce){return Ce});return fe.length<=1?fe[0]:function(Ce){le.forEach(function(De){Da(De,Ce)})}}function pn(){for(var re=arguments.length,le=new Array(re),se=0;se<re;se++)le[se]=arguments[se];return ta(function(){return tt.apply(void 0,le)},le,function(fe,Ce){return fe.length!==Ce.length||fe.every(function(De,Re){return De!==Ce[Re]})})}function Pe(re){var le,se,fe=(0,Ln.isMemo)(re)?re.type.type:re.type;return!(typeof fe=="function"&&!((le=fe.prototype)!==null&&le!==void 0&&le.render)||typeof re=="function"&&!((se=re.prototype)!==null&&se!==void 0&&se.render))}function Oe(re){return!isValidElement(re)||isFragment(re)?!1:Pe(re)}function Fe(re,le,se,fe){if(!le.length)return se;var Ce=_toArray(le),De=Ce[0],Re=Ce.slice(1),st;return!re&&typeof De=="number"?st=[]:Array.isArray(re)?st=_toConsumableArray(re):st=_objectSpread({},re),fe&&se===void 0&&Re.length===1?delete st[De][Re[0]]:st[De]=Fe(st[De],Re,se,fe),st}function Ne(re,le,se){var fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&fe&&se===void 0&&!get(re,le.slice(0,-1))?re:Fe(re,le,se,fe)}function ot(re){return _typeof(re)==="object"&&re!==null&&Object.getPrototypeOf(re)===Object.prototype}function We(re){return Array.isArray(re)?[]:{}}var et=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function je(){for(var re=arguments.length,le=new Array(re),se=0;se<re;se++)le[se]=arguments[se];var fe=We(le[0]);return le.forEach(function(Ce){function De(Re,st){var Et=new Set(st),Pt=get(Ce,Re),At=Array.isArray(Pt);if(At||ot(Pt)){if(!Et.has(Pt)){Et.add(Pt);var pt=get(fe,Re);At?fe=Ne(fe,Re,[]):(!pt||_typeof(pt)!=="object")&&(fe=Ne(fe,Re,We(Pt))),et(Pt).forEach(function(Dt){De([].concat(_toConsumableArray(Re),[Dt]),Et)})}}else fe=Ne(fe,Re,Pt)}De([])}),fe}var jt={},xt=[],Jt=function(le){xt.push(le)};function fn(re,le){if(0)var se}function bn(re,le){if(0)var se}function Ie(){jt={}}function $a(re,le,se){!le&&!jt[se]&&(re(!1,se),jt[se]=!0)}function La(re,le){$a(fn,re,le)}function Ia(re,le){$a(bn,re,le)}La.preMessage=Jt,La.resetWarned=Ie,La.noteOnce=Ia;var na=null,qe=function(le){return+setTimeout(le,16)},yt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(qe=function(le){return window.requestAnimationFrame(le)},yt=function(le){return window.cancelAnimationFrame(le)});var Rt=0,at=new Map;function mn(re){at.delete(re)}var cn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Rt+=1;var fe=Rt;function Ce(De){if(De===0)mn(fe),le();else{var Re=qe(function(){Ce(De-1)});at.set(fe,Re)}}return Ce(se),fe};cn.cancel=function(re){var le=at.get(re);return mn(le),yt(le)};var sa=cn;function ca(re,le,se,fe,Ce,De,Re,st){var Et=te.useRef(re),Pt=te.useRef(!1);Et.current!==re&&(Pt.current=!0,Et.current=re),te.useEffect(function(){var At=sa(function(){Pt.current=!1});return function(){sa.cancel(At)}},[re]),te.useEffect(function(){if(le&&fe&&(!Ce||De)){var At=function(){var Wn=!1,Bn=function(ga){var Cn=ga.target;Wn=Re(Cn)},ha=function(ga){var Cn=ga.target;!Pt.current&&Et.current&&!Wn&&!Re(Cn)&&st(!1)};return[Bn,ha]},pt=At(),Dt=(0,ke.Z)(pt,2),Tt=Dt[0],Xt=Dt[1],wn=At(),un=(0,ke.Z)(wn,2),Nn=un[0],hn=un[1],nn=Tn(fe);nn.addEventListener("mousedown",Tt,!0),nn.addEventListener("click",Xt,!0),nn.addEventListener("contextmenu",Xt,!0);var Gt=Hn(se);if(Gt&&(Gt.addEventListener("mousedown",Nn,!0),Gt.addEventListener("click",hn,!0),Gt.addEventListener("contextmenu",hn,!0)),0)var ra,Jn,ia,ya;return function(){nn.removeEventListener("mousedown",Tt,!0),nn.removeEventListener("click",Xt,!0),nn.removeEventListener("contextmenu",Xt,!0),Gt&&(Gt.removeEventListener("mousedown",Nn,!0),Gt.removeEventListener("click",hn,!0),Gt.removeEventListener("contextmenu",hn,!0))}}},[le,se,fe,Ce,De])}function fa(re){return re instanceof HTMLElement||re instanceof SVGElement}function Fo(re){return fa(re)?re:re instanceof te.Component?Ue.findDOMNode(re):null}function to(re,le){var se={};return se[re.toLowerCase()]=le.toLowerCase(),se["Webkit".concat(re)]="webkit".concat(le),se["Moz".concat(re)]="moz".concat(le),se["ms".concat(re)]="MS".concat(le),se["O".concat(re)]="o".concat(le.toLowerCase()),se}function Do(re,le){var se={animationend:to("Animation","AnimationEnd"),transitionend:to("Transition","TransitionEnd")};return re&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var xo=Do(Te(),typeof window!="undefined"?window:{}),Ka={};if(Te()){var va=document.createElement("div");Ka=va.style}var io={};function po(re){if(io[re])return io[re];var le=xo[re];if(le)for(var se=Object.keys(le),fe=se.length,Ce=0;Ce<fe;Ce+=1){var De=se[Ce];if(Object.prototype.hasOwnProperty.call(le,De)&&De in Ka)return io[re]=le[De],io[re]}return""}var yo=po("animationend"),_a=po("transitionend"),Ra=!!(yo&&_a),fo=yo||"animationend",tn=_a||"transitionend";function pa(re,le){if(!re)return null;if((0,ee.Z)(re)==="object"){var se=le.replace(/-\w/g,function(fe){return fe[1].toUpperCase()});return re[se]}return"".concat(re,"-").concat(le)}var Fa="none",Na="appear",Ja="enter",ba="leave",Wo="none",wa="prepare",Yn="start",Qn="active",no="end";function Io(re){var le=te.useRef(!1),se=te.useState(re),fe=(0,ke.Z)(se,2),Ce=fe[0],De=fe[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Re(st,Et){Et&&le.current||De(st)}return[Ce,Re]}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(re){Jo.delete(re)}var Ot=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wr+=1;var fe=wr;function Ce(De){if(De===0)mr(fe),le();else{var Re=Qo(function(){Ce(De-1)});Jo.set(fe,Re)}}return Ce(se),fe};Ot.cancel=function(re){var le=Jo.get(re);return mr(le),br(le)};var ht=Ot,Ct=function(){var re=te.useRef(null);function le(){ht.cancel(re.current)}function se(fe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var De=ht(function(){Ce<=1?fe({isCanceled:function(){return De!==re.current}}):se(fe,Ce-1)});re.current=De}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Bt=Te()?te.useLayoutEffect:te.useEffect,$n=Bt,Sa=[wa,Yn,Qn,no],ka=!1,Ma=!0;function xa(re){return re===Qn||re===no}var Ut=function(re,le){var se=Io(Wo),fe=(0,ke.Z)(se,2),Ce=fe[0],De=fe[1],Re=Ct(),st=(0,ke.Z)(Re,2),Et=st[0],Pt=st[1];function At(){De(wa,!0)}return $n(function(){if(Ce!==Wo&&Ce!==no){var pt=Sa.indexOf(Ce),Dt=Sa[pt+1],Tt=le(Ce);Tt===ka?De(Dt,!0):Et(function(Xt){function wn(){Xt.isCanceled()||De(Dt,!0)}Tt===!0?wn():Promise.resolve(Tt).then(wn)})}},[re,Ce]),te.useEffect(function(){return function(){Pt()}},[]),[At,Ce]},yn=function(re){var le=(0,te.useRef)(),se=(0,te.useRef)(re);se.current=re;var fe=te.useCallback(function(Re){se.current(Re)},[]);function Ce(Re){Re&&(Re.removeEventListener(tn,fe),Re.removeEventListener(fo,fe))}function De(Re){le.current&&le.current!==Re&&Ce(le.current),Re&&Re!==le.current&&(Re.addEventListener(tn,fe),Re.addEventListener(fo,fe),le.current=Re)}return te.useEffect(function(){return function(){Ce(le.current)}},[]),[De,Ce]};function xn(re,le,se,fe){var Ce=fe.motionEnter,De=Ce===void 0?!0:Ce,Re=fe.motionAppear,st=Re===void 0?!0:Re,Et=fe.motionLeave,Pt=Et===void 0?!0:Et,At=fe.motionDeadline,pt=fe.motionLeaveImmediately,Dt=fe.onAppearPrepare,Tt=fe.onEnterPrepare,Xt=fe.onLeavePrepare,wn=fe.onAppearStart,un=fe.onEnterStart,Nn=fe.onLeaveStart,hn=fe.onAppearActive,nn=fe.onEnterActive,Gt=fe.onLeaveActive,ra=fe.onAppearEnd,Jn=fe.onEnterEnd,ia=fe.onLeaveEnd,ya=fe.onVisibleChanged,ja=Io(),Wn=(0,ke.Z)(ja,2),Bn=Wn[0],ha=Wn[1],Ca=Io(Fa),ga=(0,ke.Z)(Ca,2),Cn=ga[0],Un=ga[1],Pn=Io(null),Ha=(0,ke.Z)(Pn,2),Vn=Ha[0],Va=Ha[1],so=(0,te.useRef)(!1),Xa=(0,te.useRef)(null);function uo(){return se()}var So=(0,te.useRef)(!1);function kn(da){var an=uo();if(!(da&&!da.deadline&&da.target!==an)){var Za=So.current,co;Cn===Na&&Za?co=ra==null?void 0:ra(an,da):Cn===Ja&&Za?co=Jn==null?void 0:Jn(an,da):Cn===ba&&Za&&(co=ia==null?void 0:ia(an,da)),Cn!==Fa&&Za&&co!==!1&&(Un(Fa,!0),Va(null,!0))}}var mo=yn(kn),Ea=(0,ke.Z)(mo,1),aa=Ea[0],Ta=te.useMemo(function(){var da,an,Za;switch(Cn){case Na:return da={},(0,ce.Z)(da,wa,Dt),(0,ce.Z)(da,Yn,wn),(0,ce.Z)(da,Qn,hn),da;case Ja:return an={},(0,ce.Z)(an,wa,Tt),(0,ce.Z)(an,Yn,un),(0,ce.Z)(an,Qn,nn),an;case ba:return Za={},(0,ce.Z)(Za,wa,Xt),(0,ce.Z)(Za,Yn,Nn),(0,ce.Z)(Za,Qn,Gt),Za;default:return{}}},[Cn]),wo=Ut(Cn,function(da){if(da===wa){var an=Ta[wa];return an?an(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===Qn&&(aa(uo()),At>0&&(clearTimeout(Xa.current),Xa.current=setTimeout(function(){kn({deadline:!0})},At))),Ma}),Ro=(0,ke.Z)(wo,2),Uo=Ro[0],qa=Ro[1],oo=xa(qa);So.current=oo,$n(function(){ha(le);var da=so.current;if(so.current=!0,!!re){var an;!da&&le&&st&&(an=Na),da&&le&&De&&(an=Ja),(da&&!le&&Pt||!da&&pt&&!le&&Pt)&&(an=ba),an&&(Un(an),Uo())}},[le]),(0,te.useEffect)(function(){(Cn===Na&&!st||Cn===Ja&&!De||Cn===ba&&!Pt)&&Un(Fa)},[st,De,Pt]),(0,te.useEffect)(function(){return function(){so.current=!1,clearTimeout(Xa.current)}},[]);var Oo=te.useRef(!1);(0,te.useEffect)(function(){Bn&&(Oo.current=!0),Bn!==void 0&&Cn===Fa&&((Oo.current||Bn)&&(ya==null||ya(Bn)),Oo.current=!0)},[Bn,Cn]);var ro=Vn;return Ta[wa]&&qa===Yn&&(ro=(0,Ee.Z)({transition:"none"},ro)),[Cn,qa,ro,Bn!=null?Bn:le]}var vn=oe(15671),Zn=oe(43144),Ba=oe(60136),Lo=oe(51630),ao=function(re){(0,Ba.Z)(se,re);var le=(0,Lo.Z)(se);function se(){return(0,vn.Z)(this,se),le.apply(this,arguments)}return(0,Zn.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),bo=ao;function Oa(re){var le=re;(0,ee.Z)(re)==="object"&&(le=re.transitionSupport);function se(Ce){return!!(Ce.motionName&&le)}var fe=te.forwardRef(function(Ce,De){var Re=Ce.visible,st=Re===void 0?!0:Re,Et=Ce.removeOnLeave,Pt=Et===void 0?!0:Et,At=Ce.forceRender,pt=Ce.children,Dt=Ce.motionName,Tt=Ce.leavedClassName,Xt=Ce.eventProps,wn=se(Ce),un=(0,te.useRef)(),Nn=(0,te.useRef)();function hn(){try{return un.current instanceof HTMLElement?un.current:Fo(Nn.current)}catch(Pn){return null}}var nn=xn(wn,st,hn,Ce),Gt=(0,ke.Z)(nn,4),ra=Gt[0],Jn=Gt[1],ia=Gt[2],ya=Gt[3],ja=te.useRef(ya);ya&&(ja.current=!0);var Wn=te.useCallback(function(Pn){un.current=Pn,ge(De,Pn)},[De]),Bn,ha=(0,Ee.Z)((0,Ee.Z)({},Xt),{},{visible:st});if(!pt)Bn=null;else if(ra===Fa||!se(Ce))ya?Bn=pt((0,Ee.Z)({},ha),Wn):!Pt&&ja.current&&Tt?Bn=pt((0,Ee.Z)((0,Ee.Z)({},ha),{},{className:Tt}),Wn):At||!Pt&&!Tt?Bn=pt((0,Ee.Z)((0,Ee.Z)({},ha),{},{style:{display:"none"}}),Wn):Bn=null;else{var Ca,ga;Jn===wa?ga="prepare":xa(Jn)?ga="active":Jn===Yn&&(ga="start"),Bn=pt((0,Ee.Z)((0,Ee.Z)({},ha),{},{className:he()(pa(Dt,ra),(Ca={},(0,ce.Z)(Ca,pa(Dt,"".concat(ra,"-").concat(ga)),ga),(0,ce.Z)(Ca,Dt,typeof Dt=="string"),Ca)),style:ia}),Wn)}if(te.isValidElement(Bn)&&me(Bn)){var Cn=Bn,Un=Cn.ref;Un||(Bn=te.cloneElement(Bn,{ref:Wn}))}return te.createElement(bo,{ref:Nn},Bn)});return fe.displayName="CSSMotion",fe}var zr=Oa(Ra),Ar=oe(97326),cr="add",Cr="keep",qo="remove",lo="removed";function Dr(re){var le;return re&&(0,ee.Z)(re)==="object"&&"key"in re?le=re:le={key:re},(0,Ee.Z)((0,Ee.Z)({},le),{},{key:String(le.key)})}function fr(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return re.map(Dr)}function Ir(){var re=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,De=fr(re),Re=fr(le);De.forEach(function(Pt){for(var At=!1,pt=fe;pt<Ce;pt+=1){var Dt=Re[pt];if(Dt.key===Pt.key){fe<pt&&(se=se.concat(Re.slice(fe,pt).map(function(Tt){return(0,Ee.Z)((0,Ee.Z)({},Tt),{},{status:cr})})),fe=pt),se.push((0,Ee.Z)((0,Ee.Z)({},Dt),{},{status:Cr})),fe+=1,At=!0;break}}At||se.push((0,Ee.Z)((0,Ee.Z)({},Pt),{},{status:qo}))}),fe<Ce&&(se=se.concat(Re.slice(fe).map(function(Pt){return(0,Ee.Z)((0,Ee.Z)({},Pt),{},{status:cr})})));var st={};se.forEach(function(Pt){var At=Pt.key;st[At]=(st[At]||0)+1});var Et=Object.keys(st).filter(function(Pt){return st[Pt]>1});return Et.forEach(function(Pt){se=se.filter(function(At){var pt=At.key,Dt=At.status;return pt!==Pt||Dt!==qo}),se.forEach(function(At){At.key===Pt&&(At.status=Cr)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Ni=["status"],Mi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oi(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zr,se=function(fe){(0,Ba.Z)(De,fe);var Ce=(0,Lo.Z)(De);function De(){var Re;(0,vn.Z)(this,De);for(var st=arguments.length,Et=new Array(st),Pt=0;Pt<st;Pt++)Et[Pt]=arguments[Pt];return Re=Ce.call.apply(Ce,[this].concat(Et)),(0,ce.Z)((0,Ar.Z)(Re),"state",{keyEntities:[]}),(0,ce.Z)((0,Ar.Z)(Re),"removeKey",function(At){var pt=Re.state.keyEntities,Dt=pt.map(function(Tt){return Tt.key!==At?Tt:(0,Ee.Z)((0,Ee.Z)({},Tt),{},{status:lo})});return Re.setState({keyEntities:Dt}),Dt.filter(function(Tt){var Xt=Tt.status;return Xt!==lo}).length}),Re}return(0,Zn.Z)(De,[{key:"render",value:function(){var st=this,Et=this.state.keyEntities,Pt=this.props,At=Pt.component,pt=Pt.children,Dt=Pt.onVisibleChanged,Tt=Pt.onAllRemoved,Xt=(0,ze.Z)(Pt,$i),wn=At||te.Fragment,un={};return Mi.forEach(function(Nn){un[Nn]=Xt[Nn],delete Xt[Nn]}),delete Xt.keys,te.createElement(wn,Xt,Et.map(function(Nn){var hn=Nn.status,nn=(0,ze.Z)(Nn,Ni),Gt=hn===cr||hn===Cr;return te.createElement(le,(0,Ve.Z)({},un,{key:nn.key,visible:Gt,eventProps:nn,onVisibleChanged:function(Jn){if(Dt==null||Dt(Jn,{key:nn.key}),!Jn){var ia=st.removeKey(nn.key);ia===0&&Tt&&Tt()}}}),pt)}))}}],[{key:"getDerivedStateFromProps",value:function(st,Et){var Pt=st.keys,At=Et.keyEntities,pt=fr(Pt),Dt=Ir(At,pt);return{keyEntities:Dt.filter(function(Tt){var Xt=At.find(function(wn){var un=wn.key;return Tt.key===un});return!(Xt&&Xt.status===lo&&Tt.status===qo)})}}}]),De}(te.Component);return(0,ce.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ra),Fi=zr;function Ti(re){var le=re.prefixCls,se=re.align,fe=re.arrow,Ce=re.arrowPos,De=fe||{},Re=De.className,st=De.content,Et=Ce.x,Pt=Et===void 0?0:Et,At=Ce.y,pt=At===void 0?0:At,Dt=te.useRef();if(!se||!se.points)return null;var Tt={position:"absolute"};if(se.autoArrow!==!1){var Xt=se.points[0],wn=se.points[1],un=Xt[0],Nn=Xt[1],hn=wn[0],nn=wn[1];un===hn||!["t","b"].includes(un)?Tt.top=pt:un==="t"?Tt.top=0:Tt.bottom=0,Nn===nn||!["l","r"].includes(Nn)?Tt.left=Pt:Nn==="l"?Tt.left=0:Tt.right=0}return te.createElement("div",{ref:Dt,className:he()("".concat(le,"-arrow"),Re),style:Tt},st)}function Gi(re){var le=re.prefixCls,se=re.open,fe=re.zIndex,Ce=re.mask,De=re.motion;return Ce?te.createElement(Fi,(0,Ve.Z)({},De,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(Re){var st=Re.className;return te.createElement("div",{style:{zIndex:fe},className:he()("".concat(le,"-mask"),st)})}):null}var zi=te.memo(function(re){var le=re.children;return le},function(re,le){return le.cache}),Ai=zi,Di=te.forwardRef(function(re,le){var se=re.popup,fe=re.className,Ce=re.prefixCls,De=re.style,Re=re.target,st=re.onVisibleChanged,Et=re.open,Pt=re.keepDom,At=re.fresh,pt=re.onClick,Dt=re.mask,Tt=re.arrow,Xt=re.arrowPos,wn=re.align,un=re.motion,Nn=re.maskMotion,hn=re.forceRender,nn=re.getPopupContainer,Gt=re.autoDestroy,ra=re.portal,Jn=re.zIndex,ia=re.onMouseEnter,ya=re.onMouseLeave,ja=re.onPointerEnter,Wn=re.ready,Bn=re.offsetX,ha=re.offsetY,Ca=re.offsetR,ga=re.offsetB,Cn=re.onAlign,Un=re.onPrepare,Pn=re.stretch,Ha=re.targetWidth,Vn=re.targetHeight,Va=typeof se=="function"?se():se,so=Et||Pt,Xa=(nn==null?void 0:nn.length)>0,uo=te.useState(!nn||!Xa),So=(0,ke.Z)(uo,2),kn=So[0],mo=So[1];if(Qt(function(){!kn&&Xa&&Re&&mo(!0)},[kn,Xa,Re]),!kn)return null;var Ea="auto",aa={left:"-1000vw",top:"-1000vh",right:Ea,bottom:Ea};if(Wn||!Et){var Ta,wo=wn.points,Ro=wn.dynamicInset||((Ta=wn._experimental)===null||Ta===void 0?void 0:Ta.dynamicInset),Uo=Ro&&wo[0][1]==="r",qa=Ro&&wo[0][0]==="b";Uo?(aa.right=Ca,aa.left=Ea):(aa.left=Bn,aa.right=Ea),qa?(aa.bottom=ga,aa.top=Ea):(aa.top=ha,aa.bottom=Ea)}var oo={};return Pn&&(Pn.includes("height")&&Vn?oo.height=Vn:Pn.includes("minHeight")&&Vn&&(oo.minHeight=Vn),Pn.includes("width")&&Ha?oo.width=Ha:Pn.includes("minWidth")&&Ha&&(oo.minWidth=Ha)),Et||(oo.pointerEvents="none"),te.createElement(ra,{open:hn||so,getContainer:nn&&function(){return nn(Re)},autoDestroy:Gt},te.createElement(Gi,{prefixCls:Ce,open:Et,zIndex:Jn,mask:Dt,motion:Nn}),te.createElement(rn.Z,{onResize:Cn,disabled:!Et},function(Oo){return te.createElement(Fi,(0,Ve.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:hn,leavedClassName:"".concat(Ce,"-hidden")},un,{onAppearPrepare:Un,onEnterPrepare:Un,visible:Et,onVisibleChanged:function(da){var an;un==null||(an=un.onVisibleChanged)===null||an===void 0||an.call(un,da),st(da)}}),function(ro,da){var an=ro.className,Za=ro.style,co=he()(Ce,an,fe);return te.createElement("div",{ref:tt(Oo,le,da),className:co,style:(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({"--arrow-x":"".concat(Xt.x||0,"px"),"--arrow-y":"".concat(Xt.y||0,"px")},aa),oo),Za),{},{boxSizing:"border-box",zIndex:Jn},De),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:pt},Tt&&te.createElement(Ti,{prefixCls:Ce,arrow:Tt,arrowPos:Xt,align:wn}),te.createElement(Ai,{cache:!Et&&!At},Va))})}))}),Ii=Di,Ri=te.forwardRef(function(re,le){var se=re.children,fe=re.getTriggerDOMNode,Ce=Pe(se),De=te.useCallback(function(st){Da(le,fe?fe(st):st)},[fe]),Re=pn(De,se.ref);return Ce?te.cloneElement(se,{ref:Re}):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 re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln,le=te.forwardRef(function(se,fe){var Ce=se.prefixCls,De=Ce===void 0?"rc-trigger-popup":Ce,Re=se.children,st=se.action,Et=st===void 0?"hover":st,Pt=se.showAction,At=se.hideAction,pt=se.popupVisible,Dt=se.defaultPopupVisible,Tt=se.onPopupVisibleChange,Xt=se.afterPopupVisibleChange,wn=se.mouseEnterDelay,un=se.mouseLeaveDelay,Nn=un===void 0?.1:un,hn=se.focusDelay,nn=se.blurDelay,Gt=se.mask,ra=se.maskClosable,Jn=ra===void 0?!0:ra,ia=se.getPopupContainer,ya=se.forceRender,ja=se.autoDestroy,Wn=se.destroyPopupOnHide,Bn=se.popup,ha=se.popupClassName,Ca=se.popupStyle,ga=se.popupPlacement,Cn=se.builtinPlacements,Un=Cn===void 0?{}:Cn,Pn=se.popupAlign,Ha=se.zIndex,Vn=se.stretch,Va=se.getPopupClassNameFromAlign,so=se.fresh,Xa=se.alignPoint,uo=se.onPopupClick,So=se.onPopupAlign,kn=se.arrow,mo=se.popupMotion,Ea=se.maskMotion,aa=se.popupTransitionName,Ta=se.popupAnimation,wo=se.maskTransitionName,Ro=se.maskAnimation,Uo=se.className,qa=se.getTriggerDOMNode,oo=(0,ze.Z)(se,ji),Oo=ja||Wn||!1,ro=te.useState(!1),da=(0,ke.Z)(ro,2),an=da[0],Za=da[1];Qt(function(){Za(Dn())},[]);var co=te.useRef({}),To=te.useContext(_n),er=te.useMemo(function(){return{registerSubPopup:function(En,Ga){co.current[En]=Ga,To==null||To.registerSubPopup(En,Ga)}}},[To]),tr=Wt(),ii=te.useState(null),Rr=(0,ke.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=pe(function(Ht){jn(Ht)&&Bo!==Ht&&kr(Ht),To==null||To.registerSubPopup(tr,Ht)}),No=te.useState(null),jr=(0,ke.Z)(No,2),Mo=jr[0],gi=jr[1],di=pe(function(Ht){jn(Ht)&&Mo!==Ht&&gi(Ht)}),Pr=te.Children.only(Re),ho=(Pr==null?void 0:Pr.props)||{},Vo={},li=pe(function(Ht){var En,Ga,Ya=Mo;return(Ya==null?void 0:Ya.contains(Ht))||((En=Hn(Ya))===null||En===void 0?void 0:En.host)===Ht||Ht===Ya||(Bo==null?void 0:Bo.contains(Ht))||((Ga=Hn(Bo))===null||Ga===void 0?void 0:Ga.host)===Ht||Ht===Bo||Object.values(co.current).some(function(za){return(za==null?void 0:za.contains(Ht))||Ht===za})}),ko=ma(De,mo,Ta,aa),Po=ma(De,Ea,Ro,wo),Hr=te.useState(Dt||!1),Er=(0,ke.Z)(Hr,2),Ko=Er[0],Wa=Er[1],qn=pt!=null?pt:Ko,Go=pe(function(Ht){pt===void 0&&Wa(Ht)});Qt(function(){Wa(pt||!1)},[pt]);var zo=te.useRef(qn);zo.current=qn;var Fr=pe(function(Ht){(0,Ue.flushSync)(function(){qn!==Ht&&(Go(Ht),Tt==null||Tt(Ht))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Co=function(En){var Ga=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),Ga===0?Fr(En):xr.current=setTimeout(function(){Fr(En)},Ga*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Zr=(0,ke.Z)(vr,2),$r=Zr[0],Nr=Zr[1];Qt(function(Ht){(!Ht||qn)&&Nr(!0)},[qn]);var Wr=te.useState(null),Mr=(0,ke.Z)(Wr,2),jo=Mr[0],nr=Mr[1],ar=te.useState([0,0]),or=(0,ke.Z)(ar,2),Or=or[0],Ur=or[1],Ao=function(En){Ur([En.clientX,En.clientY])},Vr=dt(qn,Bo,Xa?Or:Mo,ga,Un,Pn,So),vo=(0,ke.Z)(Vr,11),rr=vo[0],Kr=vo[1],si=vo[2],_r=vo[3],Xr=vo[4],ir=vo[5],Yr=vo[6],ui=vo[7],gr=vo[8],dr=vo[9],Tr=vo[10],lr=On(an,Et,Pt,At),_o=(0,ke.Z)(lr,2),Xo=_o[0],sr=_o[1],pr=Xo.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Ho=pe(function(){$r||Tr()}),mi=function(){zo.current&&Xa&&yr&&Co(!1)};$t(qn,Mo,Bo,Ho,mi),Qt(function(){Ho()},[Or,ga]),Qt(function(){qn&&!(Un!=null&&Un[ga])&&Ho()},[JSON.stringify(Pn)]);var Qr=te.useMemo(function(){var Ht=ua(Un,De,dr,Xa);return he()(Ht,Va==null?void 0:Va(dr))},[dr,Va,Un,De,Xa]);te.useImperativeHandle(fe,function(){return{forceAlign:Ho}});var ci=te.useState(0),Jr=(0,ke.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,ke.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Vn&&Mo){var En=Mo.getBoundingClientRect();Si(En.width),vi(En.height)}},pi=function(){ei(),Ho()},yi=function(En){Nr(!1),Tr(),Xt==null||Xt(En)},Eo=function(){return new Promise(function(En){ei(),nr(function(){return En})})};Qt(function(){jo&&(Tr(),jo(),nr(null))},[jo]);function Zo(Ht,En,Ga,Ya){Vo[Ht]=function(za){var ai;Ya==null||Ya(za),Co(En,Ga);for(var Ei=arguments.length,Bi=new Array(Ei>1?Ei-1:0),oi=1;oi<Ei;oi++)Bi[oi-1]=arguments[oi];(ai=ho[Ht])===null||ai===void 0||ai.call.apply(ai,[ho,za].concat(Bi))}}(pr||yr)&&(Vo.onClick=function(Ht){var En;zo.current&&yr?Co(!1):!zo.current&&pr&&(Ao(Ht),Co(!0));for(var Ga=arguments.length,Ya=new Array(Ga>1?Ga-1:0),za=1;za<Ga;za++)Ya[za-1]=arguments[za];(En=ho.onClick)===null||En===void 0||En.call.apply(En,[ho,Ht].concat(Ya))}),ca(qn,yr,Mo,Bo,Gt,Jn,li,Co);var ti=Xo.has("hover"),ur=sr.has("hover"),Yo,Gr;ti&&(Zo("onMouseEnter",!0,wn,function(Ht){Ao(Ht)}),Zo("onPointerEnter",!0,wn,function(Ht){Ao(Ht)}),Yo=function(){(qn||$r)&&Co(!0,wn)},Xa&&(Vo.onMouseMove=function(Ht){var En;(En=ho.onMouseMove)===null||En===void 0||En.call(ho,Ht)})),ur&&(Zo("onMouseLeave",!1,Nn),Zo("onPointerLeave",!1,Nn),Gr=function(){Co(!1,Nn)}),Xo.has("focus")&&Zo("onFocus",!0,hn),sr.has("focus")&&Zo("onBlur",!1,nn),Xo.has("contextMenu")&&(Vo.onContextMenu=function(Ht){var En;zo.current&&sr.has("contextMenu")?Co(!1):(Ao(Ht),Co(!0)),Ht.preventDefault();for(var Ga=arguments.length,Ya=new Array(Ga>1?Ga-1:0),za=1;za<Ga;za++)Ya[za-1]=arguments[za];(En=ho.onContextMenu)===null||En===void 0||En.call.apply(En,[ho,Ht].concat(Ya))}),Uo&&(Vo.className=he()(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(Ht){oo[Ht]&&(ni[Ht]=function(){for(var En,Ga=arguments.length,Ya=new Array(Ga),za=0;za<Ga;za++)Ya[za]=arguments[za];(En=Lr[Ht])===null||En===void 0||En.call.apply(En,[Lr].concat(Ya)),oo[Ht].apply(oo,Ya)})});var bi=te.cloneElement(Pr,(0,Ee.Z)((0,Ee.Z)({},Lr),ni)),wi={x:ir,y:Yr},Ci=kn?(0,Ee.Z)({},kn!==!0?kn:{}):null;return te.createElement(te.Fragment,null,te.createElement(rn.Z,{disabled:!qn,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:qa},bi)),te.createElement(_n.Provider,{value:er},te.createElement(Ii,{portal:re,ref:$o,prefixCls:De,popup:Bn,className:he()(ha,Qr),style:Ca,target:Mo,onMouseEnter:Yo,onMouseLeave:Gr,onPointerEnter:Yo,zIndex:Ha,open:qn,keepDom:$r,fresh:so,onClick:uo,mask:Gt,motion:ko,maskMotion:Po,onVisibleChanged:yi,onPrepare:Eo,forceRender:ya,autoDestroy:Oo,getPopupContainer:ia,align:dr,arrow:Ci,arrowPos:wi,ready:rr,offsetX:Kr,offsetY:si,offsetR:_r,offsetB:Xr,onAlign:Ho,stretch:Vn,targetWidth:fi/ui,targetHeight:Pi/gr})))});return le}var Zi=Hi(ln),gn={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>=gn.F1&&se<=gn.F12)return!1;switch(se){case gn.ALT:case gn.CAPS_LOCK:case gn.CONTEXT_MENU:case gn.CTRL:case gn.DOWN:case gn.END:case gn.ESC:case gn.HOME:case gn.INSERT:case gn.LEFT:case gn.MAC_FF_META:case gn.META:case gn.NUMLOCK:case gn.NUM_CENTER:case gn.PAGE_DOWN:case gn.PAGE_UP:case gn.PAUSE:case gn.PRINT_SCREEN:case gn.RIGHT:case gn.SHIFT:case gn.UP:case gn.WIN_KEY:case gn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=gn.ZERO&&le<=gn.NINE||le>=gn.NUM_ZERO&&le<=gn.NUM_MULTIPLY||le>=gn.A&&le<=gn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case gn.SPACE:case gn.QUESTION_MARK:case gn.NUM_PLUS:case gn.NUM_MINUS:case gn.NUM_PERIOD:case gn.NUM_DIVISION:case gn.SEMICOLON:case gn.DASH:case gn.EQUALS:case gn.COMMA:case gn.PERIOD:case gn.SLASH:case gn.APOSTROPHE:case gn.SINGLE_QUOTE:case gn.OPEN_SQUARE_BRACKET:case gn.BACKSLASH:case gn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=gn,Wi=xi.ESC,Ui=xi.TAB;function Vi(re){var le=re.visible,se=re.triggerRef,fe=re.onVisibleChange,Ce=re.autoFocus,De=re.overlayRef,Re=te.useRef(!1),st=function(){if(le){var pt,Dt;(pt=se.current)===null||pt===void 0||(Dt=pt.focus)===null||Dt===void 0||Dt.call(pt),fe==null||fe(!1)}},Et=function(){var pt;return(pt=De.current)!==null&&pt!==void 0&&pt.focus?(De.current.focus(),Re.current=!0,!0):!1},Pt=function(pt){switch(pt.keyCode){case Wi:st();break;case Ui:{var Dt=!1;Re.current||(Dt=Et()),Dt?pt.preventDefault():st();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",Pt),Ce&&ht(Et,3),function(){window.removeEventListener("keydown",Pt),Re.current=!1}):function(){Re.current=!1}},[le])}var Ki=(0,te.forwardRef)(function(re,le){var se=re.overlay,fe=re.arrow,Ce=re.prefixCls,De=(0,te.useMemo)(function(){var st;return typeof se=="function"?st=se():st=se,st},[se]),Re=de(le,De==null?void 0:De.ref);return te.createElement(te.Fragment,null,fe&&te.createElement("div",{className:"".concat(Ce,"-arrow")}),te.cloneElement(De,{ref:me(De)?Re:void 0}))}),_i=Ki,Sr={adjustX:1,adjustY:1},hr=[0,0],Xi={topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-4],targetOffset:hr},top:{points:["bc","tc"],overflow:Sr,offset:[0,-4],targetOffset:hr},topRight:{points:["br","tr"],overflow:Sr,offset:[0,-4],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:Sr,offset:[0,4],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:Sr,offset:[0,4],targetOffset:hr}},Yi=Xi,Qi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ji(re,le){var se,fe=re.arrow,Ce=fe===void 0?!1:fe,De=re.prefixCls,Re=De===void 0?"rc-dropdown":De,st=re.transitionName,Et=re.animation,Pt=re.align,At=re.placement,pt=At===void 0?"bottomLeft":At,Dt=re.placements,Tt=Dt===void 0?Yi:Dt,Xt=re.getPopupContainer,wn=re.showAction,un=re.hideAction,Nn=re.overlayClassName,hn=re.overlayStyle,nn=re.visible,Gt=re.trigger,ra=Gt===void 0?["hover"]:Gt,Jn=re.autoFocus,ia=re.overlay,ya=re.children,ja=re.onVisibleChange,Wn=(0,ze.Z)(re,Qi),Bn=te.useState(),ha=(0,ke.Z)(Bn,2),Ca=ha[0],ga=ha[1],Cn="visible"in re?nn:Ca,Un=te.useRef(null),Pn=te.useRef(null),Ha=te.useRef(null);te.useImperativeHandle(le,function(){return Un.current});var Vn=function(aa){ga(aa),ja==null||ja(aa)};Vi({visible:Cn,triggerRef:Ha,onVisibleChange:Vn,autoFocus:Jn,overlayRef:Pn});var Va=function(aa){var Ta=re.onOverlayClick;ga(!1),Ta&&Ta(aa)},so=function(){return te.createElement(_i,{ref:Pn,overlay:ia,prefixCls:Re,arrow:Ce})},Xa=function(){return typeof ia=="function"?so:so()},uo=function(){var aa=re.minOverlayWidthMatchTrigger,Ta=re.alignPoint;return"minOverlayWidthMatchTrigger"in re?aa:!Ta},So=function(){var aa=re.openClassName;return aa!==void 0?aa:"".concat(Re,"-open")},kn=te.cloneElement(ya,{className:he()((se=ya.props)===null||se===void 0?void 0:se.className,Cn&&So()),ref:me(ya)?de(Ha,ya.ref):void 0}),mo=un;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Zi,(0,Ve.Z)({builtinPlacements:Tt},Wn,{prefixCls:Re,ref:Un,popupClassName:he()(Nn,(0,ce.Z)({},"".concat(Re,"-show-arrow"),Ce)),popupStyle:hn,action:ra,showAction:wn,hideAction:mo,popupPlacement:pt,popupAlign:Pt,popupTransitionName:st,popupAnimation:Et,popupVisible:Cn,stretch:uo()?"minWidth":"",popup:Xa(),onPopupVisibleChange:Vn,onPopupClick:Va,getPopupContainer:Xt}),kn)}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=re=>{const{menu:le,arrow:se,prefixCls:fe,children:Ce,trigger:De,disabled:Re,dropdownRender:st,getPopupContainer:Et,overlayClassName:Pt,rootClassName:At,open:pt,onOpenChange:Dt,visible:Tt,onVisibleChange:Xt,mouseEnterDelay:wn=.15,mouseLeaveDelay:un=.1,autoAdjustOverflow:Nn=!0,placement:hn="",overlay:nn,transitionName:Gt}=re,{getPopupContainer:ra,getPrefixCls:Jn,direction:ia}=te.useContext(gg.E_),ya=te.useMemo(()=>{const kn=Jn();return Gt!==void 0?Gt:hn.includes("top")?`${kn}-slide-down`:`${kn}-slide-up`},[Jn,hn,Gt]),ja=te.useMemo(()=>hn?hn.includes("Center")?hn.slice(0,hn.indexOf("Center")):hn:ia==="rtl"?"bottomRight":"bottomLeft",[hn,ia]),Wn=Jn("dropdown",fe),[Bn,ha]=(0,ug.Z)(Wn),[,Ca]=(0,sg.Z)(),ga=te.Children.only(Ce),Cn=(0,ig.Tm)(ga,{className:he()(`${Wn}-trigger`,{[`${Wn}-rtl`]:ia==="rtl"},ga.props.className),disabled:Re}),Un=Re?[]:De;let Pn;Un&&Un.includes("contextMenu")&&(Pn=!0);const[Ha,Vn]=(0,ng.Z)(!1,{value:pt!=null?pt:Tt}),Va=(0,tg.useEvent)(kn=>{Dt==null||Dt(kn),Xt==null||Xt(kn),Vn(kn)}),so=he()(Pt,At,ha,{[`${Wn}-rtl`]:ia==="rtl"}),Xa=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Nn,offset:Ca.marginXXS,arrowWidth:se?Ca.sizePopupArrow:0,borderRadius:Ca.borderRadius}),uo=te.useCallback(()=>{Vn(!1)},[]),So=()=>{let kn;return le!=null&&le.items?kn=te.createElement(dg.default,Object.assign({},le)):typeof nn=="function"?kn=nn():kn=nn,st&&(kn=st(kn)),kn=te.Children.only(typeof kn=="string"?te.createElement("span",null,kn):kn),te.createElement(lg.J,{prefixCls:`${Wn}-menu`,expandIcon:te.createElement("span",{className:`${Wn}-menu-submenu-arrow`},te.createElement(Je.Z,{className:`${Wn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:uo,validator:mo=>{let{mode:Ea}=mo}},kn)};return Bn(te.createElement(eg,Object.assign({alignPoint:Pn},(0,ag.Z)(re,["rootClassName"]),{mouseEnterDelay:wn,mouseLeaveDelay:un,visible:Ha,builtinPlacements:Xa,arrow:!!se,overlayClassName:so,prefixCls:Wn,getPopupContainer:Et||ra,transitionName:ya,trigger:Un,overlay:So,placement:ja,onVisibleChange:Va}),Cn))};function mg(re){return Object.assign(Object.assign({},re),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cg=(0,rg.Z)(ri,"dropdown",re=>re,mg),fg=re=>te.createElement(cg,Object.assign({},re),te.createElement("span",null));ri._InternalPanelDoNotUseOrYouWillBeFired=fg;var Sg=ri},66748:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ue}});var te=oe(14747),ye=oe(67771),Je=oe(33297),Ye=oe(50438),he=oe(97414),Ve=oe(67968),ce=oe(45503),ze=Te=>{const{componentCls:Ae,menuCls:ae,colorError:a,colorTextLightSolid:y}=Te,E=`${ae}-item`;return{[`${Ae}, ${Ae}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ee=Te=>{const{componentCls:Ae,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:ie,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:Se,colorBgElevated:me}=Te;return[{[Ae]:Object.assign(Object.assign({},(0,te.Wf)(Te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${Ae}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ae}-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${Ae}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ae}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ae}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ae}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ae}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ae}-placement-bottomRight`]:{animationName:ye.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ae}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ae}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ae}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ae}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ae}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ae}-placement-topRight`]:{animationName:ye.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ae}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ae}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ae}-placement-bottomRight`]:{animationName:ye.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ae}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ae}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ae}-placement-topRight`]:{animationName:ye.ly}})},(0,he.ZP)(Te,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ae} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ae}, ${Ae}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:ie,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary},(0,te.Qy)(Te)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Te.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Te.marginXS,fontSize:Te.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:Te.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Te.borderRadiusSM,"&:hover, &-active":{backgroundColor:Te.controlItemBgHover}},(0,te.Qy)(Te)),{"&-selected":{color:Te.colorPrimary,backgroundColor:Te.controlItemBgActive,"&:hover, &-active":{backgroundColor:Te.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Te.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Te.colorSplit},[`${Ae}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Te.paddingXS,[`${Ae}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Te.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Te.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Se+Te.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ae}-menu-submenu-title`]:{[`&, ${Ae}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ae}-menu-submenu-title`]:{color:Te.colorPrimary}})}},[(0,ye.oN)(Te,"slide-up"),(0,ye.oN)(Te,"slide-down"),(0,Je.Fm)(Te,"move-up"),(0,Je.Fm)(Te,"move-down"),(0,Ye._y)(Te,"zoom-big")]]};var Ue=(0,Ve.Z)("Dropdown",(Te,Ae)=>{let{rootPrefixCls:ae}=Ae;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Te,ie=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,he.fS)({contentRadius:ne}),de=(0,ce.TS)(Te,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:ie,dropdownEdgeChildPadding:z});return[Ee(de),ze(de)]},Te=>({zIndexPopup:Te.zIndexPopupBase+50}))},71322:function(Ge,mt,oe){"use strict";oe.d(mt,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),ye=oe(67294),Je={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"},Ye=Je,he=oe(74643),Ve=function(ge,de){return ye.createElement(he.Z,(0,te.Z)({},ge,{ref:de,icon:Ye}))},ce=ye.forwardRef(Ve),ke=oe(22751),ze=oe(91034),Ee=oe(94184),Ue=oe.n(Ee),Te=oe(10366),ae=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),a=oe(53124),y=oe(84321),E=function(ie,ge){var de={};for(var Se in ie)Object.prototype.hasOwnProperty.call(ie,Se)&&ge.indexOf(Se)<0&&(de[Se]=ie[Se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Se=Object.getOwnPropertySymbols(ie);me<Se.length;me++)ge.indexOf(Se[me])<0&&Object.prototype.propertyIsEnumerable.call(ie,Se[me])&&(de[Se[me]]=ie[Se[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 ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var ne=ye.forwardRef((ie,ge)=>{const{prefixCls:de,className:Se,trigger:me,children:Ke,defaultCollapsed:Ze=!1,theme:bt="dark",style:Yt={},collapsible:Zt=!1,reverseArrow:xe=!1,width:it=200,collapsedWidth:ct=80,zeroWidthTriggerStyle:gt,breakpoint:St,onCollapse:qt,onBreakpoint:on}=ie,Mn=E(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:In}=(0,ye.useContext)(y.Gs),[Be,He]=(0,ye.useState)("collapsed"in ie?ie.collapsed:Ze),[rt,Vt]=(0,ye.useState)(!1);(0,ye.useEffect)(()=>{"collapsed"in ie&&He(ie.collapsed)},[ie.collapsed]);const lt=(Ft,Xe)=>{"collapsed"in ie||He(Ft),qt==null||qt(Ft,Xe)},wt=(0,ye.useRef)();wt.current=Ft=>{Vt(Ft.matches),on==null||on(Ft.matches),Be!==Ft.matches&&lt(Ft.matches,"responsive")},(0,ye.useEffect)(()=>{function Ft(Me){return wt.current(Me)}let Xe;if(typeof window!="undefined"){const{matchMedia:Me}=window;if(Me&&St&&St in b){Xe=Me(`(max-width: ${b[St]})`);try{Xe.addEventListener("change",Ft)}catch(we){Xe.addListener(Ft)}Ft(Xe)}}return()=>{try{Xe==null||Xe.removeEventListener("change",Ft)}catch(Me){Xe==null||Xe.removeListener(Ft)}}},[St]),(0,ye.useEffect)(()=>{const Ft=z("ant-sider-");return In.addSider(Ft),()=>In.removeSider(Ft)},[]);const ue=()=>{lt(!Be,"clickTrigger")},{getPrefixCls:ft}=(0,ye.useContext)(a.E_),Kt=()=>{const Ft=ft("layout-sider",de),Xe=(0,Te.Z)(Mn,["collapsed"]),Me=Be?ct:it,we=ae(Me)?`${Me}px`:String(Me),Qe=parseFloat(String(ct||0))===0?ye.createElement("span",{onClick:ue,className:Ue()(`${Ft}-zero-width-trigger`,`${Ft}-zero-width-trigger-${xe?"right":"left"}`),style:gt},me||ye.createElement(ce,null)):null,zt={expanded:xe?ye.createElement(ze.Z,null):ye.createElement(ke.Z,null),collapsed:xe?ye.createElement(ke.Z,null):ye.createElement(ze.Z,null)}[Be?"collapsed":"expanded"],kt=me!==null?Qe||ye.createElement("div",{className:`${Ft}-trigger`,onClick:ue,style:{width:we}},me||zt):null,en=Object.assign(Object.assign({},Yt),{flex:`0 0 ${we}`,maxWidth:we,minWidth:we,width:we}),dn=Ue()(Ft,`${Ft}-${bt}`,{[`${Ft}-collapsed`]:!!Be,[`${Ft}-has-trigger`]:Zt&&me!==null&&!Qe,[`${Ft}-below`]:!!rt,[`${Ft}-zero-width`]:parseFloat(we)===0},Se);return ye.createElement("aside",Object.assign({className:dn},Xe,{style:en,ref:ge}),ye.createElement("div",{className:`${Ft}-children`},Ke),Zt||rt&&Qe?kt:null)},zn=ye.useMemo(()=>({siderCollapsed:Be}),[Be]);return ye.createElement(x.Provider,{value:zn},Kt())})},84321:function(Ge,mt,oe){"use strict";oe.d(mt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ae},ZP:function(){return ee}});var te=oe(74902),ye=oe(94184),Je=oe.n(ye),Ye=oe(10366),he=oe(67294),Ve=oe(53124),ce=oe(67968),ze=ne=>{const{componentCls:ie,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Se,lightTriggerColor:me}=ne;return{[`${ie}-sider-light`]:{background:de,[`${ie}-sider-trigger`]:{color:me,background:Se},[`${ie}-sider-zero-width-trigger`]:{color:me,background:Se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ee=ne=>{const{antCls:ie,componentCls:ge,colorText:de,triggerColor:Se,footerBg:me,triggerBg:Ke,headerHeight:Ze,headerPadding:bt,headerColor:Yt,footerPadding:Zt,triggerHeight:xe,zeroTriggerHeight:it,zeroTriggerWidth:ct,motionDurationMid:gt,motionDurationSlow:St,fontSize:qt,borderRadius:on,bodyBg:Mn,headerBg:In,siderBg:Be}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Mn,"&, *":{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 ${gt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ie}-menu${ie}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:xe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:xe,color:Se,lineHeight:`${xe}px`,textAlign:"center",background:Ke,cursor:"pointer",transition:`all ${gt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ze,insetInlineEnd:-ct,zIndex:1,width:ct,height:it,color:Se,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderStartStartRadius:0,borderStartEndRadius:on,borderEndEndRadius:on,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:-ct,borderStartStartRadius:on,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:on}}}}},ze(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ze,padding:bt,color:Yt,lineHeight:`${Ze}px`,background:In,[`${ie}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Zt,color:de,fontSize:qt,background:me},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,ce.Z)("Layout",ne=>[Ee(ne)],ne=>{const{colorBgLayout:ie,controlHeight:ge,controlHeightLG:de,colorText:Se,controlHeightSM:me,marginXXS:Ke,colorTextLightSolid:Ze,colorBgContainer:bt}=ne,Yt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:ie,colorBgTrigger:"#002140",bodyBg:ie,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Yt}px`,headerColor:Se,footerPadding:`${me}px ${Yt}px`,footerBg:ie,siderBg:"#001529",triggerHeight:de+Ke*2,triggerBg:"#002140",triggerColor:Ze,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:bt,lightTriggerBg:bt,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Te=function(ne,ie){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&ie.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,de=Object.getOwnPropertySymbols(ne);Se<de.length;Se++)ie.indexOf(de[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Se])&&(ge[de[Se]]=ne[de[Se]]);return ge};const Ae=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:ie,tagName:ge,displayName:de}=ne;return Se=>he.forwardRef((Ke,Ze)=>he.createElement(Se,Object.assign({ref:Ze,suffixCls:ie,tagName:ge},Ke)))}const a=he.forwardRef((ne,ie)=>{const{prefixCls:ge,suffixCls:de,className:Se,tagName:me}=ne,Ke=Te(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ze}=he.useContext(Ve.E_),bt=Ze("layout",ge),[Yt,Zt]=Ue(bt),xe=de?`${bt}-${de}`:bt;return Yt(he.createElement(me,Object.assign({className:Je()(ge||xe,Se,Zt),ref:ie},Ke)))}),y=he.forwardRef((ne,ie)=>{const{direction:ge}=he.useContext(Ve.E_),[de,Se]=he.useState([]),{prefixCls:me,className:Ke,rootClassName:Ze,children:bt,hasSider:Yt,tagName:Zt,style:xe}=ne,it=Te(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,Ye.Z)(it,["suffixCls"]),{getPrefixCls:gt,layout:St}=he.useContext(Ve.E_),qt=gt("layout",me),[on,Mn]=Ue(qt),In=Je()(qt,{[`${qt}-has-sider`]:typeof Yt=="boolean"?Yt:de.length>0,[`${qt}-rtl`]:ge==="rtl"},St==null?void 0:St.className,Ke,Ze,Mn),Be=he.useMemo(()=>({siderHook:{addSider:He=>{Se(rt=>[].concat((0,te.Z)(rt),[He]))},removeSider:He=>{Se(rt=>rt.filter(Vt=>Vt!==He))}}}),[]);return on(he.createElement(Ae.Provider,{value:Be},he.createElement(Zt,Object.assign({ref:ie,className:In,style:Object.assign(Object.assign({},St==null?void 0:St.style),xe)},ct),bt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ge,mt,oe){"use strict";oe.d(mt,{J:function(){return Ve}});var te=oe(67294),ye=oe(4173),Je=oe(60276),Ye=function(ce,ke){var ze={};for(var Ee in ce)Object.prototype.hasOwnProperty.call(ce,Ee)&&ke.indexOf(Ee)<0&&(ze[Ee]=ce[Ee]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ee=Object.getOwnPropertySymbols(ce);Ue<Ee.length;Ue++)ke.indexOf(Ee[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ee[Ue])&&(ze[Ee[Ue]]=ce[Ee[Ue]]);return ze};const he=te.createContext(null),Ve=te.forwardRef((ce,ke)=>{const{children:ze}=ce,Ee=Ye(ce,["children"]),Ue=te.useContext(he),Te=te.useMemo(()=>Object.assign(Object.assign({},Ue),Ee),[Ue,Ee.prefixCls,Ee.mode,Ee.selectable]);return te.createElement(he.Provider,{value:Te},te.createElement(ye.BR,null,(0,Je.supportNodeRef)(ze)?te.cloneElement(ze,{ref:ke}):ze))});mt.Z=he},68508:function(Ge,mt,oe){"use strict";oe.d(mt,{default:function(){return Ft}});var te=oe(52073),ye=oe(67294),Je=oe(71322),Ye=oe(94184),he=oe.n(Ye),Ve=oe(53124),ce=function(Xe,Me){var we={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&Me.indexOf(Qe)<0&&(we[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Qe=Object.getOwnPropertySymbols(Xe);nt<Qe.length;nt++)Me.indexOf(Qe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[nt])&&(we[Qe[nt]]=Xe[Qe[nt]]);return we},ze=Xe=>{const{prefixCls:Me,className:we,dashed:Qe}=Xe,nt=ce(Xe,["prefixCls","className","dashed"]),{getPrefixCls:vt}=ye.useContext(Ve.E_),zt=vt("menu",Me),kt=he()({[`${zt}-item-divider-dashed`]:!!Qe},we);return ye.createElement(te.iz,Object.assign({className:kt},nt))},Ee=oe(37419),Ue=oe(10366),Te=oe(83062),Ae=oe(96159),a=(0,ye.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Xe=>{var Me;const{className:we,children:Qe,icon:nt,title:vt,danger:zt}=Xe,{prefixCls:kt,firstLevel:en,direction:dn,disableMenuItemTitleTooltip:ln,inlineCollapsed:rn}=ye.useContext(a),jn=$e=>{const _e=ye.createElement("span",{className:`${kt}-title-content`},Qe);return(!nt||(0,Ae.l$)(Qe)&&Qe.type==="span")&&Qe&&$e&&en&&typeof Qe=="string"?ye.createElement("div",{className:`${kt}-inline-collapsed-noicon`},Qe.charAt(0)):_e},{siderCollapsed:Rn}=ye.useContext(Je.D);let oa=vt;typeof vt=="undefined"?oa=en?Qe:"":vt===!1&&(oa="");const An={title:oa};!Rn&&!rn&&(An.title=null,An.open=!1);const Hn=(0,Ee.Z)(Qe).length;let pe=ye.createElement(te.ck,Object.assign({},(0,Ue.Z)(Xe,["title","icon","danger"]),{className:he()({[`${kt}-item-danger`]:zt,[`${kt}-item-only-child`]:(nt?Hn+1:Hn)===1},we),title:typeof vt=="string"?vt:void 0}),(0,Ae.Tm)(nt,{className:he()((0,Ae.l$)(nt)?(Me=nt.props)===null||Me===void 0?void 0:Me.className:"",`${kt}-item-icon`)}),jn(rn));return ln||(pe=ye.createElement(Te.Z,Object.assign({},An,{placement:dn==="rtl"?"left":"right",overlayClassName:`${kt}-inline-collapsed-tooltip`}),pe)),pe},x=Xe=>{var Me;const{popupClassName:we,icon:Qe,title:nt,theme:vt}=Xe,zt=ye.useContext(a),{prefixCls:kt,inlineCollapsed:en,theme:dn}=zt,ln=(0,te.Xl)();let rn;if(!Qe)rn=en&&!ln.length&&nt&&typeof nt=="string"?ye.createElement("div",{className:`${kt}-inline-collapsed-noicon`},nt.charAt(0)):ye.createElement("span",{className:`${kt}-title-content`},nt);else{const Rn=(0,Ae.l$)(nt)&&nt.type==="span";rn=ye.createElement(ye.Fragment,null,(0,Ae.Tm)(Qe,{className:he()((0,Ae.l$)(Qe)?(Me=Qe.props)===null||Me===void 0?void 0:Me.className:"",`${kt}-item-icon`)}),Rn?nt:ye.createElement("span",{className:`${kt}-title-content`},nt))}const jn=ye.useMemo(()=>Object.assign(Object.assign({},zt),{firstLevel:!1}),[zt]);return ye.createElement(a.Provider,{value:jn},ye.createElement(te.Wd,Object.assign({},(0,Ue.Z)(Xe,["icon"]),{title:rn,popupClassName:he()(kt,we,`${kt}-${vt||dn}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),ie=oe(76529),ge=function(Xe,Me){var we={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&Me.indexOf(Qe)<0&&(we[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Qe=Object.getOwnPropertySymbols(Xe);nt<Qe.length;nt++)Me.indexOf(Qe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[nt])&&(we[Qe[nt]]=Xe[Qe[nt]]);return we};function de(Xe){return(Xe||[]).map((Me,we)=>{if(Me&&typeof Me=="object"){const Qe=Me,{label:nt,children:vt,key:zt,type:kt}=Qe,en=ge(Qe,["label","children","key","type"]),dn=zt!=null?zt:`tmp-${we}`;return vt||kt==="group"?kt==="group"?ye.createElement(te.BW,Object.assign({key:dn},en,{title:nt}),de(vt)):ye.createElement(x,Object.assign({key:dn},en,{title:nt}),de(vt)):kt==="divider"?ye.createElement(ze,Object.assign({key:dn},en)):ye.createElement(E,Object.assign({key:dn},en),nt)}return null}).filter(Me=>Me)}function Se(Xe){return ye.useMemo(()=>Xe&&de(Xe),[Xe])}var me=oe(84780),Ke=oe(14747),Ze=oe(33507),bt=oe(67771),Yt=oe(50438),Zt=oe(67968),xe=oe(45503),ct=Xe=>{const{componentCls:Me,motionDurationSlow:we,horizontalLineHeight:Qe,colorSplit:nt,lineWidth:vt,lineType:zt,itemPaddingInline:kt}=Xe;return{[`${Me}-horizontal`]:{lineHeight:Qe,border:0,borderBottom:`${vt}px ${zt} ${nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Me}-item, ${Me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:kt},[`> ${Me}-item:hover,
> ${Me}-item-active,
> ${Me}-submenu ${Me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Me}-item, ${Me}-submenu-title`]:{transition:[`border-color ${we}`,`background ${we}`].join(",")},[`${Me}-submenu-arrow`]:{display:"none"}}}},St=Xe=>{let{componentCls:Me,menuArrowOffset:we}=Xe;return{[`${Me}-rtl`]:{direction:"rtl"},[`${Me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Me}-rtl${Me}-vertical,
${Me}-submenu-rtl ${Me}-vertical`]:{[`${Me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${we})`},"&::after":{transform:`rotate(45deg) translateY(${we})`}}}}};const qt=Xe=>Object.assign({},(0,Ke.oN)(Xe));var Mn=(Xe,Me)=>{const{componentCls:we,itemColor:Qe,itemSelectedColor:nt,groupTitleColor:vt,itemBg:zt,subMenuItemBg:kt,itemSelectedBg:en,activeBarHeight:dn,activeBarWidth:ln,activeBarBorderWidth:rn,motionDurationSlow:jn,motionEaseInOut:Rn,motionEaseOut:oa,itemPaddingInline:An,motionDurationMid:Hn,itemHoverColor:pe,lineType:$e,colorSplit:_e,itemDisabledColor:ut,dangerItemColor:Lt,dangerItemHoverColor:Wt,dangerItemSelectedColor:_t,dangerItemActiveBg:Nt,dangerItemSelectedBg:It,itemHoverBg:Sn,itemActiveBg:Qt,menuSubMenuBg:Dn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:_n,horizontalItemBorderRadius:la,horizontalItemHoverBg:On,popupBg:Fn}=Xe;return{[`${we}-${Me}, ${we}-${Me} > ${we}`]:{color:Qe,background:zt,[`&${we}-root:focus-visible`]:Object.assign({},qt(Xe)),[`${we}-item-group-title`]:{color:vt},[`${we}-submenu-selected`]:{[`> ${we}-submenu-title`]:{color:nt}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{color:`${ut} !important`},[`${we}-item:not(${we}-item-selected):not(${we}-submenu-selected)`]:{[`&:hover, > ${we}-submenu-title:hover`]:{color:pe}},[`&:not(${we}-horizontal)`]:{[`${we}-item:not(${we}-item-selected)`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Qt}},[`${we}-submenu-title`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Qt}}},[`${we}-item-danger`]:{color:Lt,[`&${we}-item:hover`]:{[`&:not(${we}-item-selected):not(${we}-submenu-selected)`]:{color:Wt}},[`&${we}-item:active`]:{background:Nt}},[`${we}-item a`]:{"&, &:hover":{color:"inherit"}},[`${we}-item-selected`]:{color:nt,[`&${we}-item-danger`]:{color:_t},"a, a:hover":{color:"inherit"}},[`& ${we}-item-selected`]:{backgroundColor:en,[`&${we}-item-danger`]:{backgroundColor:It}},[`${we}-item, ${we}-submenu-title`]:{[`&:not(${we}-item-disabled):focus-visible`]:Object.assign({},qt(Xe))},[`&${we}-submenu > ${we}`]:{backgroundColor:Dn},[`&${we}-popup > ${we}`]:{backgroundColor:Fn},[`&${we}-horizontal`]:Object.assign(Object.assign({},Me==="dark"?{borderBottom:0}:{}),{[`> ${we}-item, > ${we}-submenu`]:{top:rn,marginTop:-rn,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:An,bottom:0,borderBottom:`${dn}px solid transparent`,transition:`border-color ${jn} ${Rn}`,content:'""'},"&:hover, &-active, &-open":{background:On,"&::after":{borderBottomWidth:dn,borderBottomColor:Kn}},"&-selected":{color:Kn,backgroundColor:_n,"&:hover":{backgroundColor:_n},"&::after":{borderBottomWidth:dn,borderBottomColor:Kn}}}}),[`&${we}-root`]:{[`&${we}-inline, &${we}-vertical`]:{borderInlineEnd:`${rn}px ${$e} ${_e}`}},[`&${we}-inline`]:{[`${we}-sub${we}-inline`]:{background:kt},[`${we}-item, ${we}-submenu-title`]:rn&&ln?{width:`calc(100% + ${rn}px)`}:{},[`${we}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ln}px solid ${nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Hn} ${oa}`,`opacity ${Hn} ${oa}`].join(","),content:'""'},[`&${we}-item-danger`]:{"&::after":{borderInlineEndColor:_t}}},[`${we}-selected, ${we}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Hn} ${Rn}`,`opacity ${Hn} ${Rn}`].join(",")}}}}}};const In=Xe=>{const{componentCls:Me,itemHeight:we,itemMarginInline:Qe,padding:nt,menuArrowSize:vt,marginXS:zt,itemMarginBlock:kt}=Xe,en=nt+vt+zt;return{[`${Me}-item`]:{position:"relative",overflow:"hidden"},[`${Me}-item, ${Me}-submenu-title`]:{height:we,lineHeight:`${we}px`,paddingInline:nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Qe,marginBlock:kt,width:`calc(100% - ${Qe*2}px)`},[`> ${Me}-item,
> ${Me}-submenu > ${Me}-submenu-title`]:{height:we,lineHeight:`${we}px`},[`${Me}-item-group-list ${Me}-submenu-title,
${Me}-submenu-title`]:{paddingInlineEnd:en}}};var He=Xe=>{const{componentCls:Me,iconCls:we,itemHeight:Qe,colorTextLightSolid:nt,dropdownWidth:vt,controlHeightLG:zt,motionDurationMid:kt,motionEaseOut:en,paddingXL:dn,itemMarginInline:ln,fontSizeLG:rn,motionDurationSlow:jn,paddingXS:Rn,boxShadowSecondary:oa,collapsedWidth:An,collapsedIconSize:Hn}=Xe,pe={height:Qe,lineHeight:`${Qe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Me]:{"&-inline, &-vertical":Object.assign({[`&${Me}-root`]:{boxShadow:"none"}},In(Xe))},[`${Me}-submenu-popup`]:{[`${Me}-vertical`]:Object.assign(Object.assign({},In(Xe)),{boxShadow:oa})}},{[`${Me}-submenu-popup ${Me}-vertical${Me}-sub`]:{minWidth:vt,maxHeight:`calc(100vh - ${zt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Me}-inline`]:{width:"100%",[`&${Me}-root`]:{[`${Me}-item, ${Me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${jn}`,`background ${jn}`,`padding ${kt} ${en}`].join(","),[`> ${Me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Me}-sub${Me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Me}-submenu > ${Me}-submenu-title`]:pe,[`& ${Me}-item-group-title`]:{paddingInlineStart:dn}},[`${Me}-item`]:pe}},{[`${Me}-inline-collapsed`]:{width:An,[`&${Me}-root`]:{[`${Me}-item, ${Me}-submenu ${Me}-submenu-title`]:{[`> ${Me}-inline-collapsed-noicon`]:{fontSize:rn,textAlign:"center"}}},[`> ${Me}-item,
> ${Me}-item-group > ${Me}-item-group-list > ${Me}-item,
> ${Me}-item-group > ${Me}-item-group-list > ${Me}-submenu > ${Me}-submenu-title,
> ${Me}-submenu > ${Me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${rn/2}px - ${ln}px)`,textOverflow:"clip",[`
${Me}-submenu-arrow,
${Me}-submenu-expand-icon
`]:{opacity:0},[`${Me}-item-icon, ${we}`]:{margin:0,fontSize:Hn,lineHeight:`${Qe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Me}-item-icon, ${we}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Me}-item-icon, ${we}`]:{display:"none"},"a, a:hover":{color:nt}},[`${Me}-item-group-title`]:Object.assign(Object.assign({},Ke.vS),{paddingInline:Rn})}}]};const rt=Xe=>{const{componentCls:Me,motionDurationSlow:we,motionDurationMid:Qe,motionEaseInOut:nt,motionEaseOut:vt,iconCls:zt,iconSize:kt,iconMarginInlineEnd:en}=Xe;return{[`${Me}-item, ${Me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${we}`,`background ${we}`,`padding ${we} ${nt}`].join(","),[`${Me}-item-icon, ${zt}`]:{minWidth:kt,fontSize:kt,transition:[`font-size ${Qe} ${vt}`,`margin ${we} ${nt}`,`color ${we}`].join(","),"+ span":{marginInlineStart:en,opacity:1,transition:[`opacity ${we} ${nt}`,`margin ${we}`,`color ${we}`].join(",")}},[`${Me}-item-icon`]:Object.assign({},(0,Ke.Ro)()),[`&${Me}-item-only-child`]:{[`> ${zt}, > ${Me}-item-icon`]:{marginInlineEnd:0}}},[`${Me}-item-disabled, ${Me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Vt=Xe=>{const{componentCls:Me,motionDurationSlow:we,motionEaseInOut:Qe,borderRadius:nt,menuArrowSize:vt,menuArrowOffset:zt}=Xe;return{[`${Me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Xe.margin,width:vt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${we} ${Qe}, opacity ${we}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:vt*.6,height:vt*.15,backgroundColor:"currentcolor",borderRadius:nt,transition:[`background ${we} ${Qe}`,`transform ${we} ${Qe}`,`top ${we} ${Qe}`,`color ${we} ${Qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${zt})`},"&::after":{transform:`rotate(-45deg) translateY(${zt})`}}}}},lt=Xe=>{const{antCls:Me,componentCls:we,fontSize:Qe,motionDurationSlow:nt,motionDurationMid:vt,motionEaseInOut:zt,paddingXS:kt,padding:en,colorSplit:dn,lineWidth:ln,zIndexPopup:rn,borderRadiusLG:jn,subMenuItemBorderRadius:Rn,menuArrowSize:oa,menuArrowOffset:An,lineType:Hn,menuPanelMaskInset:pe,groupTitleLineHeight:$e,groupTitleFontSize:_e}=Xe;return[{"":{[`${we}`]:Object.assign(Object.assign({},(0,Ke.dF)()),{"&-hidden":{display:"none"}})},[`${we}-submenu-hidden`]:{display:"none"}},{[we]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(Xe)),(0,Ke.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Qe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${we}-item`]:{flex:"none"}},[`${we}-item, ${we}-submenu, ${we}-submenu-title`]:{borderRadius:Xe.itemBorderRadius},[`${we}-item-group-title`]:{padding:`${kt}px ${en}px`,fontSize:_e,lineHeight:$e,transition:`all ${nt}`},[`&-horizontal ${we}-submenu`]:{transition:[`border-color ${nt} ${zt}`,`background ${nt} ${zt}`].join(",")},[`${we}-submenu, ${we}-submenu-inline`]:{transition:[`border-color ${nt} ${zt}`,`background ${nt} ${zt}`,`padding ${vt} ${zt}`].join(",")},[`${we}-submenu ${we}-sub`]:{cursor:"initial",transition:[`background ${nt} ${zt}`,`padding ${nt} ${zt}`].join(",")},[`${we}-title-content`]:{transition:`color ${nt}`},[`${we}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${we}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:dn,borderStyle:Hn,borderWidth:0,borderTopWidth:ln,marginBlock:ln,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Xe)),{[`${we}-item-group`]:{[`${we}-item-group-list`]:{margin:0,padding:0,[`${we}-item, ${we}-submenu-title`]:{paddingInline:`${Qe*2}px ${en}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:rn,borderRadius:jn,boxShadow:"none",transformOrigin:"0 0",[`&${we}-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:Xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Xe.paddingXS},[`> ${we}`]:Object.assign(Object.assign(Object.assign({borderRadius:jn},rt(Xe)),Vt(Xe)),{[`${we}-item, ${we}-submenu > ${we}-submenu-title`]:{borderRadius:Rn},[`${we}-submenu-title::after`]:{transition:`transform ${nt} ${zt}`}})}}),Vt(Xe)),{[`&-inline-collapsed ${we}-submenu-arrow,
&-inline ${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${An})`},"&::after":{transform:`rotate(45deg) translateX(-${An})`}},[`${we}-submenu-open${we}-submenu-inline > ${we}-submenu-title > ${we}-submenu-arrow`]:{transform:`translateY(-${oa*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${An})`},"&::before":{transform:`rotate(45deg) translateX(${An})`}}})},{[`${Me}-layout-header`]:{[we]:{lineHeight:"inherit"}}}]};var wt=(Xe,Me)=>(0,Zt.Z)("Menu",Qe=>{if(Me===!1)return[];const{colorBgElevated:nt,colorPrimary:vt,colorTextLightSolid:zt,controlHeightLG:kt,fontSize:en,darkItemColor:dn,darkDangerItemColor:ln,darkItemBg:rn,darkSubMenuItemBg:jn,darkItemSelectedColor:Rn,darkItemSelectedBg:oa,darkDangerItemSelectedBg:An,darkItemHoverBg:Hn,darkGroupTitleColor:pe,darkItemHoverColor:$e,darkItemDisabledColor:_e,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:Lt,darkDangerItemActiveBg:Wt}=Qe,_t=en/7*5,Nt=(0,xe.TS)(Qe,{menuArrowSize:_t,menuHorizontalHeight:kt*1.15,menuArrowOffset:`${_t*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:nt}),It=(0,xe.TS)(Nt,{itemColor:dn,itemHoverColor:$e,groupTitleColor:pe,itemSelectedColor:Rn,itemBg:rn,popupBg:rn,subMenuItemBg:jn,itemActiveBg:"transparent",itemSelectedBg:oa,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Hn,itemDisabledColor:_e,dangerItemColor:ln,dangerItemHoverColor:ut,dangerItemSelectedColor:Lt,dangerItemActiveBg:Wt,dangerItemSelectedBg:An,menuSubMenuBg:jn,horizontalItemSelectedColor:zt,horizontalItemSelectedBg:vt});return[lt(Nt),ct(Nt),He(Nt),Mn(Nt,"light"),Mn(It,"dark"),St(Nt),(0,Ze.Z)(Nt),(0,bt.oN)(Nt,"slide-up"),(0,bt.oN)(Nt,"slide-down"),(0,Yt._y)(Nt,"zoom-big")]},Qe=>{const{colorPrimary:nt,colorError:vt,colorTextDisabled:zt,colorErrorBg:kt,colorText:en,colorTextDescription:dn,colorBgContainer:ln,colorFillAlter:rn,colorFillContent:jn,lineWidth:Rn,lineWidthBold:oa,controlItemBgActive:An,colorBgTextHover:Hn,controlHeightLG:pe,lineHeight:$e,colorBgElevated:_e,marginXXS:ut,padding:Lt,fontSize:Wt,controlHeightSM:_t,fontSizeLG:Nt,colorTextLightSolid:It,colorErrorHover:Sn}=Qe,Qt=new me.C(It).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:nt,horizontalItemHoverColor:nt,colorGroupTitle:dn,groupTitleColor:dn,colorItemTextSelected:nt,itemSelectedColor:nt,colorItemTextSelectedHorizontal:nt,horizontalItemSelectedColor:nt,colorItemBg:ln,itemBg:ln,colorItemBgHover:Hn,itemHoverBg:Hn,colorItemBgActive:jn,itemActiveBg:An,colorSubItemBg:rn,subMenuItemBg:rn,colorItemBgSelected:An,itemSelectedBg:An,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:oa,activeBarHeight:oa,colorActiveBarBorderSize:Rn,activeBarBorderWidth:Rn,colorItemTextDisabled:zt,itemDisabledColor:zt,colorDangerItemText:vt,dangerItemColor:vt,colorDangerItemTextHover:vt,dangerItemHoverColor:vt,colorDangerItemTextSelected:vt,dangerItemSelectedColor:vt,colorDangerItemBgActive:kt,dangerItemActiveBg:kt,colorDangerItemBgSelected:kt,dangerItemSelectedBg:kt,itemMarginInline:Qe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:$e,collapsedWidth:pe*2,popupBg:_e,itemMarginBlock:ut,itemPaddingInline:Lt,horizontalLineHeight:`${pe*1.15}px`,iconSize:Wt,iconMarginInlineEnd:_t-Wt,collapsedIconSize:Nt,groupTitleFontSize:Wt,darkItemDisabledColor:new me.C(It).setAlpha(.25).toRgbString(),darkItemColor:Qt,darkDangerItemColor:vt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:It,darkItemSelectedBg:nt,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:Qt,darkItemHoverColor:It,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:vt}},{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"]]})(Xe),ue=function(Xe,Me){var we={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&Me.indexOf(Qe)<0&&(we[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Qe=Object.getOwnPropertySymbols(Xe);nt<Qe.length;nt++)Me.indexOf(Qe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[nt])&&(we[Qe[nt]]=Xe[Qe[nt]]);return we},Kt=(0,ye.forwardRef)((Xe,Me)=>{var we,Qe;const nt=ye.useContext(ie.Z),vt=nt||{},{getPrefixCls:zt,getPopupContainer:kt,direction:en,menu:dn}=ye.useContext(Ve.E_),ln=zt(),{prefixCls:rn,className:jn,style:Rn,theme:oa="light",expandIcon:An,_internalDisableMenuItemTitleTooltip:Hn,inlineCollapsed:pe,siderCollapsed:$e,items:_e,children:ut,rootClassName:Lt,mode:Wt,selectable:_t,onClick:Nt,overflowedIndicatorPopupClassName:It}=Xe,Sn=ue(Xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Qt=(0,Ue.Z)(Sn,["collapsedWidth"]),Dn=Se(_e)||ut;(we=vt.validator)===null||we===void 0||we.call(vt,{mode:Wt});const Kn=(0,ee.useEvent)(function(){var ea;Nt==null||Nt.apply(void 0,arguments),(ea=vt.onClick)===null||ea===void 0||ea.call(vt)}),_n=vt.mode||Wt,la=_t!=null?_t:vt.selectable,On=ye.useMemo(()=>$e!==void 0?$e:pe,[pe,$e]),Fn={horizontal:{motionName:`${ln}-slide-up`},inline:(0,ne.Z)(ln),other:{motionName:`${ln}-zoom-big`}},Xn=zt("menu",rn||vt.prefixCls),[ua,ma]=wt(Xn,!nt),Tn=he()(`${Xn}-${oa}`,dn==null?void 0:dn.className,jn);let Pa;if(typeof An=="function")Pa=An;else if(An===null||An===!1)Pa=null;else if(vt.expandIcon===null||vt.expandIcon===!1)Pa=null;else{const ea=An!=null?An:vt.expandIcon;Pa=(0,Ae.Tm)(ea,{className:he()(`${Xn}-submenu-expand-icon`,(0,Ae.l$)(ea)?(Qe=ea.props)===null||Qe===void 0?void 0:Qe.className:"")})}const Aa=ye.useMemo(()=>({prefixCls:Xn,inlineCollapsed:On||!1,direction:en,firstLevel:!0,theme:oa,mode:_n,disableMenuItemTitleTooltip:Hn}),[Xn,On,en,Hn,oa]);return ua(ye.createElement(ie.Z.Provider,{value:null},ye.createElement(a.Provider,{value:Aa},ye.createElement(te.ZP,Object.assign({getPopupContainer:kt,overflowedIndicator:ye.createElement(z.Z,null),overflowedIndicatorPopupClassName:he()(Xn,`${Xn}-${oa}`,It),mode:_n,selectable:la,onClick:Kn},Qt,{inlineCollapsed:On,style:Object.assign(Object.assign({},dn==null?void 0:dn.style),Rn),className:Tn,prefixCls:Xn,direction:en,defaultMotions:Fn,expandIcon:Pa,ref:Me,rootClassName:he()(Lt,ma)}),Dn))))});const zn=(0,ye.forwardRef)((Xe,Me)=>{const we=(0,ye.useRef)(null),Qe=ye.useContext(Je.D);return(0,ye.useImperativeHandle)(Me,()=>({menu:we.current,focus:nt=>{var vt;(vt=we.current)===null||vt===void 0||vt.focus(nt)}})),ye.createElement(Kt,Object.assign({ref:we},Xe,Qe))});zn.Item=E,zn.SubMenu=x,zn.Divider=ze,zn.ItemGroup=te.BW;var Ft=zn},38703:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return Hn}});var te=oe(67294),ye=oe(87725),Je=oe(18299),Ye=oe(16646),he=oe(73475),Ve=oe(94184),ce=oe.n(Ve),ke=oe(10366),ze=oe(53124),Ee=oe(87462),Ue=oe(1413),Te=oe(45987),Ae={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var $e=(0,te.useRef)([]),_e=(0,te.useRef)(null);return(0,te.useEffect)(function(){var ut=Date.now(),Lt=!1;$e.current.forEach(function(Wt){if(Wt){Lt=!0;var _t=Wt.style;_t.transitionDuration=".3s, .3s, .3s, .06s",_e.current&&ut-_e.current<100&&(_t.transitionDuration="0s, 0s")}}),Lt&&(_e.current=Date.now())}),$e.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function($e){var _e=(0,Ue.Z)((0,Ue.Z)({},Ae),$e),ut=_e.className,Lt=_e.percent,Wt=_e.prefixCls,_t=_e.strokeColor,Nt=_e.strokeLinecap,It=_e.strokeWidth,Sn=_e.style,Qt=_e.trailColor,Dn=_e.trailWidth,Kn=_e.transition,_n=(0,Te.Z)(_e,a);delete _n.gapPosition;var la=Array.isArray(Lt)?Lt:[Lt],On=Array.isArray(_t)?_t:[_t],Fn=ae(),Xn=It/2,ua=100-It/2,ma="M ".concat(Nt==="round"?Xn:0,",").concat(Xn,`
L `).concat(Nt==="round"?ua:100,",").concat(Xn),Tn="0 0 100 ".concat(It),Pa=0;return te.createElement("svg",(0,Ee.Z)({className:ce()("".concat(Wt,"-line"),ut),viewBox:Tn,preserveAspectRatio:"none",style:Sn},_n),te.createElement("path",{className:"".concat(Wt,"-line-trail"),d:ma,strokeLinecap:Nt,stroke:Qt,strokeWidth:Dn||It,fillOpacity:"0"}),la.map(function(Aa,ea){var Ua=1;switch(Nt){case"round":Ua=1-It/100;break;case"square":Ua=1-It/2/100;break;default:Ua=1;break}var eo={strokeDasharray:"".concat(Aa*Ua,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:Kn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qa=On[ea]||On[On.length-1];return Pa+=Aa,te.createElement("path",{key:ea,className:"".concat(Wt,"-line-path"),d:ma,strokeLinecap:Nt,stroke:Qa,strokeWidth:It,fillOpacity:"0",ref:function(be){Fn[ea]=be},style:eo})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function ie(){var pe;return ne?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ge=function(pe){var $e=te.useState(),_e=(0,x.Z)($e,2),ut=_e[0],Lt=_e[1];return te.useEffect(function(){Lt("rc_progress_".concat(ie()))},[]),pe||ut},de=function($e){var _e=$e.bg,ut=$e.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:_e}},ut)};function Se(pe,$e){return Object.keys(pe).map(function(_e){var ut=parseFloat(_e),Lt="".concat(Math.floor(ut*$e),"%");return"".concat(pe[_e]," ").concat(Lt)})}var me=te.forwardRef(function(pe,$e){var _e=pe.prefixCls,ut=pe.color,Lt=pe.gradientId,Wt=pe.radius,_t=pe.style,Nt=pe.ptg,It=pe.strokeLinecap,Sn=pe.strokeWidth,Qt=pe.size,Dn=pe.gapDegree,Kn=ut&&(0,b.Z)(ut)==="object",_n=Kn?"#FFF":void 0,la=Qt/2,On=te.createElement("circle",{className:"".concat(_e,"-circle-path"),r:Wt,cx:la,cy:la,stroke:_n,strokeLinecap:It,strokeWidth:Sn,opacity:Nt===0?0:1,style:_t,ref:$e});if(!Kn)return On;var Fn="".concat(Lt,"-conic"),Xn=Dn?"".concat(180+Dn/2,"deg"):"0deg",ua=Se(ut,(360-Dn)/360),ma=Se(ut,1),Tn="conic-gradient(from ".concat(Xn,", ").concat(ua.join(", "),")"),Pa="linear-gradient(to ".concat(Dn?"bottom":"top",", ").concat(ma.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Fn},On),te.createElement("foreignObject",{x:0,y:0,width:Qt,height:Qt,mask:"url(#".concat(Fn,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Tn}))))}),Ke=me,Ze=100,bt=function($e,_e,ut,Lt,Wt,_t,Nt,It,Sn,Qt){var Dn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Kn=ut/100*360*((360-_t)/360),_n=_t===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],la=(100-Lt)/100*_e;Sn==="round"&&Lt!==100&&(la+=Qt/2,la>=_e&&(la=_e-.01));var On=Ze/2;return{stroke:typeof It=="string"?It:void 0,strokeDasharray:"".concat(_e,"px ").concat($e),strokeDashoffset:la+Dn,transform:"rotate(".concat(Wt+Kn+_n,"deg)"),transformOrigin:"".concat(On,"px ").concat(On,"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}},Yt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(pe){var $e=pe!=null?pe:[];return Array.isArray($e)?$e:[$e]}var xe=function($e){var _e=(0,Ue.Z)((0,Ue.Z)({},Ae),$e),ut=_e.id,Lt=_e.prefixCls,Wt=_e.steps,_t=_e.strokeWidth,Nt=_e.trailWidth,It=_e.gapDegree,Sn=It===void 0?0:It,Qt=_e.gapPosition,Dn=_e.trailColor,Kn=_e.strokeLinecap,_n=_e.style,la=_e.className,On=_e.strokeColor,Fn=_e.percent,Xn=(0,Te.Z)(_e,Yt),ua=Ze/2,ma=ge(ut),Tn="".concat(ma,"-gradient"),Pa=ua-_t/2,Aa=Math.PI*2*Pa,ea=Sn>0?90+Sn/2:-90,Ua=Aa*((360-Sn)/360),eo=(0,b.Z)(Wt)==="object"?Wt:{count:Wt,space:2},Qa=eo.count,Le=eo.space,be=Zt(Fn),ve=Zt(On),dt=ve.find(function(Da){return Da&&(0,b.Z)(Da)==="object"}),$t=dt&&(0,b.Z)(dt)==="object",Mt=$t?"butt":Kn,Gn=bt(Aa,Ua,0,100,ea,Sn,Qt,Dn,Mt,_t),sn=ae(),Ln=function(){var tt=0;return be.map(function(pn,Pe){var Oe=ve[Pe]||ve[ve.length-1],Fe=bt(Aa,Ua,tt,pn,ea,Sn,Qt,Oe,Mt,_t);return tt+=pn,te.createElement(Ke,{key:Pe,color:Oe,ptg:pn,radius:Pa,prefixCls:Lt,gradientId:Tn,style:Fe,strokeLinecap:Mt,strokeWidth:_t,gapDegree:Sn,ref:function(ot){sn[Pe]=ot},size:Ze})}).reverse()},ta=function(){var tt=Math.round(Qa*(be[0]/100)),pn=100/Qa,Pe=0;return new Array(Qa).fill(null).map(function(Oe,Fe){var Ne=Fe<=tt-1?ve[0]:Dn,ot=Ne&&(0,b.Z)(Ne)==="object"?"url(#".concat(Tn,")"):void 0,We=bt(Aa,Ua,Pe,pn,ea,Sn,Qt,Ne,"butt",_t,Le);return Pe+=(Ua-We.strokeDashoffset+Le)*100/Ua,te.createElement("circle",{key:Fe,className:"".concat(Lt,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:ot,strokeWidth:_t,opacity:1,style:We,ref:function(je){sn[Fe]=je}})})};return te.createElement("svg",(0,Ee.Z)({className:ce()("".concat(Lt,"-circle"),la),viewBox:"0 0 ".concat(Ze," ").concat(Ze),style:_n,id:ut,role:"presentation"},Xn),!Qa&&te.createElement("circle",{className:"".concat(Lt,"-circle-trail"),r:Pa,cx:ua,cy:ua,stroke:Dn,strokeLinecap:Mt,strokeWidth:Nt||_t,style:Gn}),Qa?ta():Ln())},it=xe,ct={Line:E,Circle:it},gt=oe(83062),St=oe(47448);function qt(pe){return!pe||pe<0?0:pe>100?100:pe}function on(pe){let{success:$e,successPercent:_e}=pe,ut=_e;return $e&&"progress"in $e&&(ut=$e.progress),$e&&"percent"in $e&&(ut=$e.percent),ut}const Mn=pe=>{let{percent:$e,success:_e,successPercent:ut}=pe;const Lt=qt(on({success:_e,successPercent:ut}));return[Lt,qt(qt($e)-Lt)]},In=pe=>{let{success:$e={},strokeColor:_e}=pe;const{strokeColor:ut}=$e;return[ut||St.presetPrimaryColors.green,_e||null]},Be=(pe,$e,_e)=>{var ut,Lt,Wt,_t;let Nt=-1,It=-1;if($e==="step"){const Sn=_e.steps,Qt=_e.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Nt=pe==="small"?2:14,It=Qt!=null?Qt:8):typeof pe=="number"?[Nt,It]=[pe,pe]:[Nt=14,It=8]=pe,Nt*=Sn}else if($e==="line"){const Sn=_e==null?void 0:_e.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?It=Sn||(pe==="small"?6:8):typeof pe=="number"?[Nt,It]=[pe,pe]:[Nt=-1,It=8]=pe}else($e==="circle"||$e==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Nt,It]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Nt,It]=[pe,pe]:(Nt=(Lt=(ut=pe[0])!==null&&ut!==void 0?ut:pe[1])!==null&&Lt!==void 0?Lt:120,It=(_t=(Wt=pe[0])!==null&&Wt!==void 0?Wt:pe[1])!==null&&_t!==void 0?_t:120));return[Nt,It]},He=3,rt=pe=>He/pe*100;var lt=pe=>{const{prefixCls:$e,trailColor:_e=null,strokeLinecap:ut="round",gapPosition:Lt,gapDegree:Wt,width:_t=120,type:Nt,children:It,success:Sn,size:Qt=_t}=pe,[Dn,Kn]=Be(Qt,"circle");let{strokeWidth:_n}=pe;_n===void 0&&(_n=Math.max(rt(Dn),6));const la={width:Dn,height:Kn,fontSize:Dn*.15+6},On=te.useMemo(()=>{if(Wt||Wt===0)return Wt;if(Nt==="dashboard")return 75},[Wt,Nt]),Fn=Lt||Nt==="dashboard"&&"bottom"||void 0,Xn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",ua=In({success:Sn,strokeColor:pe.strokeColor}),ma=ce()(`${$e}-inner`,{[`${$e}-circle-gradient`]:Xn}),Tn=te.createElement(it,{percent:Mn(pe),strokeWidth:_n,trailWidth:_n,strokeColor:ua,strokeLinecap:ut,trailColor:_e,prefixCls:$e,gapDegree:On,gapPosition:Fn});return te.createElement("div",{className:ma,style:la},Dn<=20?te.createElement(gt.Z,{title:It},te.createElement("span",null,Tn)):te.createElement(te.Fragment,null,Tn,It))},wt=function(pe,$e){var _e={};for(var ut in pe)Object.prototype.hasOwnProperty.call(pe,ut)&&$e.indexOf(ut)<0&&(_e[ut]=pe[ut]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,ut=Object.getOwnPropertySymbols(pe);Lt<ut.length;Lt++)$e.indexOf(ut[Lt])<0&&Object.prototype.propertyIsEnumerable.call(pe,ut[Lt])&&(_e[ut[Lt]]=pe[ut[Lt]]);return _e};const ue=pe=>{let $e=[];return Object.keys(pe).forEach(_e=>{const ut=parseFloat(_e.replace(/%/g,""));isNaN(ut)||$e.push({key:ut,value:pe[_e]})}),$e=$e.sort((_e,ut)=>_e.key-ut.key),$e.map(_e=>{let{key:ut,value:Lt}=_e;return`${Lt} ${ut}%`}).join(", ")},ft=(pe,$e)=>{const{from:_e=St.presetPrimaryColors.blue,to:ut=St.presetPrimaryColors.blue,direction:Lt=$e==="rtl"?"to left":"to right"}=pe,Wt=wt(pe,["from","to","direction"]);if(Object.keys(Wt).length!==0){const _t=ue(Wt);return{backgroundImage:`linear-gradient(${Lt}, ${_t})`}}return{backgroundImage:`linear-gradient(${Lt}, ${_e}, ${ut})`}};var zn=pe=>{const{prefixCls:$e,direction:_e,percent:ut,size:Lt,strokeWidth:Wt,strokeColor:_t,strokeLinecap:Nt="round",children:It,trailColor:Sn=null,success:Qt}=pe,Dn=_t&&typeof _t!="string"?ft(_t,_e):{backgroundColor:_t},Kn=Nt==="square"||Nt==="butt"?0:void 0,_n={backgroundColor:Sn||void 0,borderRadius:Kn},la=Lt!=null?Lt:[-1,Wt||(Lt==="small"?6:8)],[On,Fn]=Be(la,"line",{strokeWidth:Wt}),Xn=Object.assign({width:`${qt(ut)}%`,height:Fn,borderRadius:Kn},Dn),ua=on(pe),ma={width:`${qt(ua)}%`,height:Fn,borderRadius:Kn,backgroundColor:Qt==null?void 0:Qt.strokeColor},Tn={width:On<0?"100%":On,height:Fn};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${$e}-outer`,style:Tn},te.createElement("div",{className:`${$e}-inner`,style:_n},te.createElement("div",{className:`${$e}-bg`,style:Xn}),ua!==void 0?te.createElement("div",{className:`${$e}-success-bg`,style:ma}):null)),It)},Xe=pe=>{const{size:$e,steps:_e,percent:ut=0,strokeWidth:Lt=8,strokeColor:Wt,trailColor:_t=null,prefixCls:Nt,children:It}=pe,Sn=Math.round(_e*(ut/100)),Qt=$e==="small"?2:14,Dn=$e!=null?$e:[Qt,Lt],[Kn,_n]=Be(Dn,"step",{steps:_e,strokeWidth:Lt}),la=Kn/_e,On=new Array(_e);for(let Fn=0;Fn<_e;Fn++){const Xn=Array.isArray(Wt)?Wt[Fn]:Wt;On[Fn]=te.createElement("div",{key:Fn,className:ce()(`${Nt}-steps-item`,{[`${Nt}-steps-item-active`]:Fn<=Sn-1}),style:{backgroundColor:Fn<=Sn-1?Xn:_t,width:la,height:_n}})}return te.createElement("div",{className:`${Nt}-steps-outer`},On,It)},Me=oe(45930),we=oe(14747),Qe=oe(67968),nt=oe(45503);const vt=pe=>{const $e=pe?"100%":"-100%";return new Me.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},zt=pe=>{const{componentCls:$e,iconCls:_e}=pe;return{[$e]:Object.assign(Object.assign({},(0,we.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${$e}-outer`]:{display:"inline-block",width:"100%"},[`&${$e}-show-info`]:{[`${$e}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${$e}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:pe.defaultColor}},[`${$e}-success-bg, ${$e}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${$e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${$e}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[_e]:{fontSize:pe.fontSize}},[`&${$e}-status-active`]:{[`${$e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:vt(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${$e}-rtl${$e}-status-active`]:{[`${$e}-bg::before`]:{animationName:vt(!0)}},[`&${$e}-status-exception`]:{[`${$e}-bg`]:{backgroundColor:pe.colorError},[`${$e}-text`]:{color:pe.colorError}},[`&${$e}-status-exception ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:pe.colorError}},[`&${$e}-status-success`]:{[`${$e}-bg`]:{backgroundColor:pe.colorSuccess},[`${$e}-text`]:{color:pe.colorSuccess}},[`&${$e}-status-success ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:pe.colorSuccess}}})}},kt=pe=>{const{componentCls:$e,iconCls:_e}=pe;return{[$e]:{[`${$e}-circle-trail`]:{stroke:pe.remainingColor},[`&${$e}-circle ${$e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${$e}-circle ${$e}-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%)",[_e]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${$e}-circle&-status-exception`]:{[`${$e}-text`]:{color:pe.colorError}},[`${$e}-circle&-status-success`]:{[`${$e}-text`]:{color:pe.colorSuccess}}},[`${$e}-inline-circle`]:{lineHeight:1,[`${$e}-inner`]:{verticalAlign:"bottom"}}}},en=pe=>{const{componentCls:$e}=pe;return{[$e]:{[`${$e}-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:$e,iconCls:_e}=pe;return{[$e]:{[`${$e}-small&-line, ${$e}-small&-line ${$e}-text ${_e}`]:{fontSize:pe.fontSizeSM}}}};var ln=(0,Qe.Z)("Progress",pe=>{const $e=pe.marginXXS/2,_e=(0,nt.TS)(pe,{progressStepMarginInlineEnd:$e,progressStepMinWidth:$e,progressActiveMotionDuration:"2.4s"});return[zt(_e),kt(_e),en(_e),dn(_e)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),rn=function(pe,$e){var _e={};for(var ut in pe)Object.prototype.hasOwnProperty.call(pe,ut)&&$e.indexOf(ut)<0&&(_e[ut]=pe[ut]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,ut=Object.getOwnPropertySymbols(pe);Lt<ut.length;Lt++)$e.indexOf(ut[Lt])<0&&Object.prototype.propertyIsEnumerable.call(pe,ut[Lt])&&(_e[ut[Lt]]=pe[ut[Lt]]);return _e};const jn=null,Rn=["normal","exception","active","success"];var An=te.forwardRef((pe,$e)=>{const{prefixCls:_e,className:ut,rootClassName:Lt,steps:Wt,strokeColor:_t,percent:Nt=0,size:It="default",showInfo:Sn=!0,type:Qt="line",status:Dn,format:Kn,style:_n}=pe,la=rn(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),On=te.useMemo(()=>{var be,ve;const dt=on(pe);return parseInt(dt!==void 0?(be=dt!=null?dt:0)===null||be===void 0?void 0:be.toString():(ve=Nt!=null?Nt:0)===null||ve===void 0?void 0:ve.toString(),10)},[Nt,pe.success,pe.successPercent]),Fn=te.useMemo(()=>!Rn.includes(Dn)&&On>=100?"success":Dn||"normal",[Dn,On]),{getPrefixCls:Xn,direction:ua,progress:ma}=te.useContext(ze.E_),Tn=Xn("progress",_e),[Pa,Aa]=ln(Tn),ea=te.useMemo(()=>{if(!Sn)return null;const be=on(pe);let ve;const dt=Kn||(Mt=>`${Mt}%`),$t=Qt==="line";return Kn||Fn!=="exception"&&Fn!=="success"?ve=dt(qt(Nt),qt(be)):Fn==="exception"?ve=$t?te.createElement(Ye.Z,null):te.createElement(he.Z,null):Fn==="success"&&(ve=$t?te.createElement(ye.Z,null):te.createElement(Je.Z,null)),te.createElement("span",{className:`${Tn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[Sn,Nt,On,Fn,Qt,Tn,Kn]),Ua=Array.isArray(_t)?_t[0]:_t,eo=typeof _t=="string"||Array.isArray(_t)?_t:void 0;let Qa;Qt==="line"?Qa=Wt?te.createElement(Xe,Object.assign({},pe,{strokeColor:eo,prefixCls:Tn,steps:Wt}),ea):te.createElement(zn,Object.assign({},pe,{strokeColor:Ua,prefixCls:Tn,direction:ua}),ea):(Qt==="circle"||Qt==="dashboard")&&(Qa=te.createElement(lt,Object.assign({},pe,{strokeColor:Ua,prefixCls:Tn,progressStatus:Fn}),ea));const Le=ce()(Tn,`${Tn}-status-${Fn}`,`${Tn}-${Qt==="dashboard"&&"circle"||Wt&&"steps"||Qt}`,{[`${Tn}-inline-circle`]:Qt==="circle"&&Be(It,"circle")[0]<=20,[`${Tn}-show-info`]:Sn,[`${Tn}-${It}`]:typeof It=="string",[`${Tn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,ut,Lt,Aa);return Pa(te.createElement("div",Object.assign({ref:$e,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),_n),className:Le,role:"progressbar","aria-valuenow":On},(0,ke.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),Hn=An},59810:function(Ge,mt,oe){"use strict";oe.d(mt,{default:function(){return pn}});var te=oe(67294),ye=oe(74902),Je=oe(94184),Ye=oe.n(Je),he=oe(87462),Ve=oe(15671),ce=oe(43144),ke=oe(60136),ze=oe(51630),Ee=oe(4942),Ue=oe(45987),Te=oe(74165),Ae=oe(71002),ae=oe(15861),a=oe(64217);function y(Pe,Oe){var Fe="cannot ".concat(Pe.method," ").concat(Pe.action," ").concat(Oe.status,"'"),Ne=new Error(Fe);return Ne.status=Oe.status,Ne.method=Pe.method,Ne.url=Pe.action,Ne}function E(Pe){var Oe=Pe.responseText||Pe.response;if(!Oe)return Oe;try{return JSON.parse(Oe)}catch(Fe){return Oe}}function b(Pe){var Oe=new XMLHttpRequest;Pe.onProgress&&Oe.upload&&(Oe.upload.onprogress=function(We){We.total>0&&(We.percent=We.loaded/We.total*100),Pe.onProgress(We)});var Fe=new FormData;Pe.data&&Object.keys(Pe.data).forEach(function(ot){var We=Pe.data[ot];if(Array.isArray(We)){We.forEach(function(et){Fe.append("".concat(ot,"[]"),et)});return}Fe.append(ot,We)}),Pe.file instanceof Blob?Fe.append(Pe.filename,Pe.file,Pe.file.name):Fe.append(Pe.filename,Pe.file),Oe.onerror=function(We){Pe.onError(We)},Oe.onload=function(){return Oe.status<200||Oe.status>=300?Pe.onError(y(Pe,Oe),E(Oe)):Pe.onSuccess(E(Oe),Oe)},Oe.open(Pe.method,Pe.action,!0),Pe.withCredentials&&"withCredentials"in Oe&&(Oe.withCredentials=!0);var Ne=Pe.headers||{};return Ne["X-Requested-With"]!==null&&Oe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ne).forEach(function(ot){Ne[ot]!==null&&Oe.setRequestHeader(ot,Ne[ot])}),Oe.send(Fe),{abort:function(){Oe.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),ie=function(Pe,Oe){if(Pe&&Oe){var Fe=Array.isArray(Oe)?Oe:Oe.split(","),Ne=Pe.name||"",ot=Pe.type||"",We=ot.replace(/\/.*$/,"");return Fe.some(function(et){var je=et.trim();if(/^\*(\/\*)?$/.test(et))return!0;if(je.charAt(0)==="."){var jt=Ne.toLowerCase(),xt=je.toLowerCase(),Jt=[xt];return(xt===".jpg"||xt===".jpeg")&&(Jt=[".jpg",".jpeg"]),Jt.some(function(fn){return jt.endsWith(fn)})}return/\/\*$/.test(je)?We===je.replace(/\/.*$/,""):ot===je?!0:/^\w+$/.test(je)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(je,"'.Skip for check.")),!0):!1})}return!0};function ge(Pe,Oe){var Fe=Pe.createReader(),Ne=[];function ot(){Fe.readEntries(function(We){var et=Array.prototype.slice.apply(We);Ne=Ne.concat(et);var je=!et.length;je?Oe(Ne):ot()})}ot()}var de=function(Oe,Fe,Ne){var ot=function We(et,je){et&&(et.path=je||"",et.isFile?et.file(function(jt){Ne(jt)&&(et.fullPath&&!jt.webkitRelativePath&&(Object.defineProperties(jt,{webkitRelativePath:{writable:!0}}),jt.webkitRelativePath=et.fullPath.replace(/^\//,""),Object.defineProperties(jt,{webkitRelativePath:{writable:!1}})),Fe([jt]))}):et.isDirectory&&ge(et,function(jt){jt.forEach(function(xt){We(xt,"".concat(je).concat(et.name,"/"))})}))};Oe.forEach(function(We){ot(We.webkitGetAsEntry())})},Se=de,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ke=function(Pe){(0,ke.Z)(Fe,Pe);var Oe=(0,ze.Z)(Fe);function Fe(){var Ne;(0,Ve.Z)(this,Fe);for(var ot=arguments.length,We=new Array(ot),et=0;et<ot;et++)We[et]=arguments[et];return Ne=Oe.call.apply(Oe,[this].concat(We)),Ne.state={uid:ee()},Ne.reqs={},Ne.fileInput=void 0,Ne._isMounted=void 0,Ne.onChange=function(je){var jt=Ne.props,xt=jt.accept,Jt=jt.directory,fn=je.target.files,bn=(0,ye.Z)(fn).filter(function(Ie){return!Jt||ie(Ie,xt)});Ne.uploadFiles(bn),Ne.reset()},Ne.onClick=function(je){var jt=Ne.fileInput;if(jt){var xt=Ne.props,Jt=xt.children,fn=xt.onClick;if(Jt&&Jt.type==="button"){var bn=jt.parentNode;bn.focus(),bn.querySelector("button").blur()}jt.click(),fn&&fn(je)}},Ne.onKeyDown=function(je){je.key==="Enter"&&Ne.onClick(je)},Ne.onFileDrop=function(je){var jt=Ne.props.multiple;if(je.preventDefault(),je.type!=="dragover")if(Ne.props.directory)Se(Array.prototype.slice.call(je.dataTransfer.items),Ne.uploadFiles,function(Jt){return ie(Jt,Ne.props.accept)});else{var xt=(0,ye.Z)(je.dataTransfer.files).filter(function(Jt){return ie(Jt,Ne.props.accept)});jt===!1&&(xt=xt.slice(0,1)),Ne.uploadFiles(xt)}},Ne.uploadFiles=function(je){var jt=(0,ye.Z)(je),xt=jt.map(function(Jt){return Jt.uid=ee(),Ne.processFile(Jt,jt)});Promise.all(xt).then(function(Jt){var fn=Ne.props.onBatchStart;fn==null||fn(Jt.map(function(bn){var Ie=bn.origin,$a=bn.parsedFile;return{file:Ie,parsedFile:$a}})),Jt.filter(function(bn){return bn.parsedFile!==null}).forEach(function(bn){Ne.post(bn)})})},Ne.processFile=function(){var je=(0,ae.Z)((0,Te.Z)().mark(function jt(xt,Jt){var fn,bn,Ie,$a,La,Ia,na,qe,yt;return(0,Te.Z)().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(fn=Ne.props.beforeUpload,bn=xt,!fn){at.next=14;break}return at.prev=3,at.next=6,fn(xt,Jt);case 6:bn=at.sent,at.next=12;break;case 9:at.prev=9,at.t0=at.catch(3),bn=!1;case 12:if(bn!==!1){at.next=14;break}return at.abrupt("return",{origin:xt,parsedFile:null,action:null,data:null});case 14:if(Ie=Ne.props.action,typeof Ie!="function"){at.next=21;break}return at.next=18,Ie(xt);case 18:$a=at.sent,at.next=22;break;case 21:$a=Ie;case 22:if(La=Ne.props.data,typeof La!="function"){at.next=29;break}return at.next=26,La(xt);case 26:Ia=at.sent,at.next=30;break;case 29:Ia=La;case 30:return na=((0,Ae.Z)(bn)==="object"||typeof bn=="string")&&bn?bn:xt,na instanceof File?qe=na:qe=new File([na],xt.name,{type:xt.type}),yt=qe,yt.uid=xt.uid,at.abrupt("return",{origin:xt,data:Ia,parsedFile:yt,action:$a});case 35:case"end":return at.stop()}},jt,null,[[3,9]])}));return function(jt,xt){return je.apply(this,arguments)}}(),Ne.saveFileInput=function(je){Ne.fileInput=je},Ne}return(0,ce.Z)(Fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ot){var We=this,et=ot.data,je=ot.origin,jt=ot.action,xt=ot.parsedFile;if(this._isMounted){var Jt=this.props,fn=Jt.onStart,bn=Jt.customRequest,Ie=Jt.name,$a=Jt.headers,La=Jt.withCredentials,Ia=Jt.method,na=je.uid,qe=bn||b,yt={action:jt,filename:Ie,data:et,file:xt,headers:$a,withCredentials:La,method:Ia||"post",onProgress:function(at){var mn=We.props.onProgress;mn==null||mn(at,xt)},onSuccess:function(at,mn){var cn=We.props.onSuccess;cn==null||cn(at,xt,mn),delete We.reqs[na]},onError:function(at,mn){var cn=We.props.onError;cn==null||cn(at,mn,xt),delete We.reqs[na]}};fn(je),this.reqs[na]=qe(yt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ot){var We=this.reqs;if(ot){var et=ot.uid?ot.uid:ot;We[et]&&We[et].abort&&We[et].abort(),delete We[et]}else Object.keys(We).forEach(function(je){We[je]&&We[je].abort&&We[je].abort(),delete We[je]})}},{key:"render",value:function(){var ot,We=this.props,et=We.component,je=We.prefixCls,jt=We.className,xt=We.disabled,Jt=We.id,fn=We.style,bn=We.multiple,Ie=We.accept,$a=We.capture,La=We.children,Ia=We.directory,na=We.openFileDialogOnClick,qe=We.onMouseEnter,yt=We.onMouseLeave,Rt=(0,Ue.Z)(We,me),at=Ye()((ot={},(0,Ee.Z)(ot,je,!0),(0,Ee.Z)(ot,"".concat(je,"-disabled"),xt),(0,Ee.Z)(ot,jt,jt),ot)),mn=Ia?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},cn=xt?{}:{onClick:na?this.onClick:function(){},onKeyDown:na?this.onKeyDown:function(){},onMouseEnter:qe,onMouseLeave:yt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(et,(0,he.Z)({},cn,{className:at,role:"button",style:fn}),te.createElement("input",(0,he.Z)({},(0,a.Z)(Rt,{aria:!0,data:!0}),{id:Jt,disabled:xt,type:"file",ref:this.saveFileInput,onClick:function(ca){return ca.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ie},mn,{multiple:bn,onChange:this.onChange},$a!=null?{capture:$a}:{})),La)}}]),Fe}(te.Component),Ze=Ke;function bt(){}var Yt=function(Pe){(0,ke.Z)(Fe,Pe);var Oe=(0,ze.Z)(Fe);function Fe(){var Ne;(0,Ve.Z)(this,Fe);for(var ot=arguments.length,We=new Array(ot),et=0;et<ot;et++)We[et]=arguments[et];return Ne=Oe.call.apply(Oe,[this].concat(We)),Ne.uploader=void 0,Ne.saveUploader=function(je){Ne.uploader=je},Ne}return(0,ce.Z)(Fe,[{key:"abort",value:function(ot){this.uploader.abort(ot)}},{key:"render",value:function(){return te.createElement(Ze,(0,he.Z)({},this.props,{ref:this.saveUploader}))}}]),Fe}(te.Component);Yt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:bt,onError:bt,onSuccess:bt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Zt=Yt,xe=Zt,it=oe(5663),ct=oe(73935),gt=oe(53124),St=oe(98866),qt=oe(10110),on=oe(24457),Mn={icon:function(Oe,Fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Fe}},{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:Oe}}]}},name:"file",theme:"twotone"},In=Mn,Be=oe(74643),He=function(Oe,Fe){return te.createElement(Be.Z,(0,he.Z)({},Oe,{ref:Fe,icon:In}))},rt=te.forwardRef(He),Vt=oe(3407),lt={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"},wt=lt,ue=function(Oe,Fe){return te.createElement(Be.Z,(0,he.Z)({},Oe,{ref:Fe,icon:wt}))},ft=te.forwardRef(ue),Kt={icon:function(Oe,Fe){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:Oe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Fe}},{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:Fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Fe}},{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:Oe}}]}},name:"picture",theme:"twotone"},zn=Kt,Ft=function(Oe,Fe){return te.createElement(Be.Z,(0,he.Z)({},Oe,{ref:Fe,icon:zn}))},Xe=te.forwardRef(Ft),Me=oe(38379),we=oe(57838),Qe=oe(33603),nt=oe(96159),vt=oe(71577);function zt(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 kt(Pe,Oe){const Fe=(0,ye.Z)(Oe),Ne=Fe.findIndex(ot=>{let{uid:We}=ot;return We===Pe.uid});return Ne===-1?Fe.push(Pe):Fe[Ne]=Pe,Fe}function en(Pe,Oe){const Fe=Pe.uid!==void 0?"uid":"name";return Oe.filter(Ne=>Ne[Fe]===Pe[Fe])[0]}function dn(Pe,Oe){const Fe=Pe.uid!==void 0?"uid":"name",Ne=Oe.filter(ot=>ot[Fe]!==Pe[Fe]);return Ne.length===Oe.length?null:Ne}const ln=function(){const Oe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ne=Oe[Oe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ne)||[""])[0]},rn=Pe=>Pe.indexOf("image/")===0,jn=Pe=>{if(Pe.type&&!Pe.thumbUrl)return rn(Pe.type);const Oe=Pe.thumbUrl||Pe.url||"",Fe=ln(Oe);return/^data:image\//.test(Oe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Fe)?!0:!(/^data:/.test(Oe)||Fe)},Rn=200;function oa(Pe){return new Promise(Oe=>{if(!Pe.type||!rn(Pe.type)){Oe("");return}const Fe=document.createElement("canvas");Fe.width=Rn,Fe.height=Rn,Fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Rn}px; height: ${Rn}px; z-index: 9999; display: none;`,document.body.appendChild(Fe);const Ne=Fe.getContext("2d"),ot=new Image;if(ot.onload=()=>{const{width:We,height:et}=ot;let je=Rn,jt=Rn,xt=0,Jt=0;We>et?(jt=et*(Rn/We),Jt=-(jt-je)/2):(je=We*(Rn/et),xt=-(je-jt)/2),Ne.drawImage(ot,xt,Jt,je,jt);const fn=Fe.toDataURL();document.body.removeChild(Fe),window.URL.revokeObjectURL(ot.src),Oe(fn)},ot.crossOrigin="anonymous",Pe.type.startsWith("image/svg+xml")){const We=new FileReader;We.onload=()=>{We.result&&(ot.src=We.result)},We.readAsDataURL(Pe)}else if(Pe.type.startsWith("image/gif")){const We=new FileReader;We.onload=()=>{We.result&&Oe(We.result)},We.readAsDataURL(Pe)}else ot.src=window.URL.createObjectURL(Pe)})}var An=oe(84249),Hn=oe(90674),pe=oe(99569),$e=oe(38703),_e=oe(83062),Lt=te.forwardRef((Pe,Oe)=>{let{prefixCls:Fe,className:Ne,style:ot,locale:We,listType:et,file:je,items:jt,progress:xt,iconRender:Jt,actionIconRender:fn,itemRender:bn,isImgUrl:Ie,showPreviewIcon:$a,showRemoveIcon:La,showDownloadIcon:Ia,previewIcon:na,removeIcon:qe,downloadIcon:yt,onPreview:Rt,onDownload:at,onClose:mn}=Pe;var cn,sa;const{status:ca}=je,[fa,Fo]=te.useState(ca);te.useEffect(()=>{ca!=="removed"&&Fo(ca)},[ca]);const[to,Do]=te.useState(!1);te.useEffect(()=>{const Yn=setTimeout(()=>{Do(!0)},300);return()=>{clearTimeout(Yn)}},[]);const xo=Jt(je);let Ka=te.createElement("div",{className:`${Fe}-icon`},xo);if(et==="picture"||et==="picture-card"||et==="picture-circle")if(fa==="uploading"||!je.thumbUrl&&!je.url){const Yn=Ye()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:fa!=="uploading"});Ka=te.createElement("div",{className:Yn},xo)}else{const Yn=Ie!=null&&Ie(je)?te.createElement("img",{src:je.thumbUrl||je.url,alt:je.name,className:`${Fe}-list-item-image`,crossOrigin:je.crossOrigin}):xo,Qn=Ye()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:Ie&&!Ie(je)});Ka=te.createElement("a",{className:Qn,onClick:no=>Rt(je,no),href:je.url||je.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Yn)}const va=Ye()(`${Fe}-list-item`,`${Fe}-list-item-${fa}`),io=typeof je.linkProps=="string"?JSON.parse(je.linkProps):je.linkProps,po=La?fn((typeof qe=="function"?qe(je):qe)||te.createElement(An.Z,null),()=>mn(je),Fe,We.removeFile):null,yo=Ia&&fa==="done"?fn((typeof yt=="function"?yt(je):yt)||te.createElement(Hn.Z,null),()=>at(je),Fe,We.downloadFile):null,_a=et!=="picture-card"&&et!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Ye()(`${Fe}-list-item-actions`,{picture:et==="picture"})},yo,po),Ra=Ye()(`${Fe}-list-item-name`),fo=je.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ra,title:je.name},io,{href:je.url,onClick:Yn=>Rt(je,Yn)}),je.name),_a]:[te.createElement("span",{key:"view",className:Ra,onClick:Yn=>Rt(je,Yn),title:je.name},je.name),_a],tn={pointerEvents:"none",opacity:.5},pa=$a?te.createElement("a",{href:je.url||je.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:je.url||je.thumbUrl?void 0:tn,onClick:Yn=>Rt(je,Yn),title:We.previewFile},typeof na=="function"?na(je):na||te.createElement(pe.Z,null)):null,Fa=(et==="picture-card"||et==="picture-circle")&&fa!=="uploading"&&te.createElement("span",{className:`${Fe}-list-item-actions`},pa,fa==="done"&&yo,po),{getPrefixCls:Na}=te.useContext(gt.E_),Ja=Na(),ba=te.createElement("div",{className:va},Ka,fo,Fa,to&&te.createElement(Me.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Yn=>{let{className:Qn}=Yn;const no="percent"in je?te.createElement($e.Z,Object.assign({},xt,{type:"line",percent:je.percent,"aria-label":je["aria-label"],"aria-labelledby":je["aria-labelledby"]})):null;return te.createElement("div",{className:Ye()(`${Fe}-list-item-progress`,Qn)},no)})),Wo=je.response&&typeof je.response=="string"?je.response:((cn=je.error)===null||cn===void 0?void 0:cn.statusText)||((sa=je.error)===null||sa===void 0?void 0:sa.message)||We.uploadError,wa=fa==="error"?te.createElement(_e.Z,{title:Wo,getPopupContainer:Yn=>Yn.parentNode},ba):ba;return te.createElement("div",{className:Ye()(`${Fe}-list-item-container`,Ne),style:ot,ref:Oe},bn?bn(wa,je,jt,{download:at.bind(null,je),preview:Rt.bind(null,je),remove:mn.bind(null,je)}):wa)});const Wt=(Pe,Oe)=>{const{listType:Fe="text",previewFile:Ne=oa,onPreview:ot,onDownload:We,onRemove:et,locale:je,iconRender:jt,isImageUrl:xt=jn,prefixCls:Jt,items:fn=[],showPreviewIcon:bn=!0,showRemoveIcon:Ie=!0,showDownloadIcon:$a=!1,removeIcon:La,previewIcon:Ia,downloadIcon:na,progress:qe={size:[-1,2],showInfo:!1},appendAction:yt,appendActionVisible:Rt=!0,itemRender:at,disabled:mn}=Pe,cn=(0,we.Z)(),[sa,ca]=te.useState(!1);te.useEffect(()=>{Fe!=="picture"&&Fe!=="picture-card"&&Fe!=="picture-circle"||(fn||[]).forEach(tn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(tn.originFileObj instanceof File||tn.originFileObj instanceof Blob)||tn.thumbUrl!==void 0||(tn.thumbUrl="",Ne&&Ne(tn.originFileObj).then(pa=>{tn.thumbUrl=pa||"",cn()}))})},[Fe,fn,Ne]),te.useEffect(()=>{ca(!0)},[]);const fa=(tn,pa)=>{if(ot)return pa==null||pa.preventDefault(),ot(tn)},Fo=tn=>{typeof We=="function"?We(tn):tn.url&&window.open(tn.url)},to=tn=>{et==null||et(tn)},Do=tn=>{if(jt)return jt(tn,Fe);const pa=tn.status==="uploading",Fa=xt&&xt(tn)?te.createElement(Xe,null):te.createElement(rt,null);let Na=pa?te.createElement(Vt.Z,null):te.createElement(ft,null);return Fe==="picture"?Na=pa?te.createElement(Vt.Z,null):Fa:(Fe==="picture-card"||Fe==="picture-circle")&&(Na=pa?je.uploading:Fa),Na},xo=(tn,pa,Fa,Na)=>{const Ja={type:"text",size:"small",title:Na,onClick:ba=>{pa(),(0,nt.l$)(tn)&&tn.props.onClick&&tn.props.onClick(ba)},className:`${Fa}-list-item-action`,disabled:mn};if((0,nt.l$)(tn)){const ba=(0,nt.Tm)(tn,Object.assign(Object.assign({},tn.props),{onClick:()=>{}}));return te.createElement(vt.ZP,Object.assign({},Ja,{icon:ba}))}return te.createElement(vt.ZP,Object.assign({},Ja),te.createElement("span",null,tn))};te.useImperativeHandle(Oe,()=>({handlePreview:fa,handleDownload:Fo}));const{getPrefixCls:Ka}=te.useContext(gt.E_),va=Ka("upload",Jt),io=Ka(),po=Ye()(`${va}-list`,`${va}-list-${Fe}`),yo=(0,ye.Z)(fn.map(tn=>({key:tn.uid,file:tn})));let Ra={motionDeadline:2e3,motionName:`${va}-${Fe==="picture-card"||Fe==="picture-circle"?"animate-inline":"animate"}`,keys:yo,motionAppear:sa};const fo=te.useMemo(()=>{const tn=Object.assign({},(0,Qe.Z)(io));return delete tn.onAppearEnd,delete tn.onEnterEnd,delete tn.onLeaveEnd,tn},[io]);return Fe!=="picture-card"&&Fe!=="picture-circle"&&(Ra=Object.assign(Object.assign({},fo),Ra)),te.createElement("div",{className:po},te.createElement(Me.CSSMotionList,Object.assign({},Ra,{component:!1}),tn=>{let{key:pa,file:Fa,className:Na,style:Ja}=tn;return te.createElement(Lt,{key:pa,locale:je,prefixCls:va,className:Na,style:Ja,file:Fa,items:fn,progress:qe,listType:Fe,isImgUrl:xt,showPreviewIcon:bn,showRemoveIcon:Ie,showDownloadIcon:$a,removeIcon:La,previewIcon:Ia,downloadIcon:na,iconRender:Do,actionIconRender:xo,itemRender:at,onPreview:fa,onDownload:Fo,onClose:to})}),yt&&te.createElement(Me.default,Object.assign({},Ra,{visible:Rt,forceRender:!0}),tn=>{let{className:pa,style:Fa}=tn;return(0,nt.Tm)(yt,Na=>({className:Ye()(Na.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Na.style)}))}))};var Nt=te.forwardRef(Wt),It=oe(14747),Sn=oe(33507),Qt=oe(67968),Dn=oe(45503),_n=Pe=>{const{componentCls:Oe,iconCls:Fe}=Pe;return{[`${Oe}-wrapper`]:{[`${Oe}-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}`,[Oe]:{padding:`${Pe.padding}px 0`},[`${Oe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Oe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Oe}-disabled):hover`]:{borderColor:Pe.colorPrimaryHover},[`p${Oe}-drag-icon`]:{marginBottom:Pe.margin,[Fe]:{color:Pe.colorPrimary,fontSize:Pe.uploadThumbnailSize}},[`p${Oe}-text`]:{margin:`0 0 ${Pe.marginXXS}px`,color:Pe.colorTextHeading,fontSize:Pe.fontSizeLG},[`p${Oe}-hint`]:{color:Pe.colorTextDescription,fontSize:Pe.fontSize},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`p${Oe}-drag-icon ${Fe},
p${Oe}-text,
p${Oe}-hint
`]:{color:Pe.colorTextDisabled}}}}}},On=Pe=>{const{componentCls:Oe,antCls:Fe,iconCls:Ne,fontSize:ot,lineHeight:We}=Pe,et=`${Oe}-list-item`,je=`${et}-actions`,jt=`${et}-action`,xt=Math.round(ot*We);return{[`${Oe}-wrapper`]:{[`${Oe}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:Pe.lineHeight,[et]:{position:"relative",height:Pe.lineHeight*ot,marginTop:Pe.marginXS,fontSize:ot,display:"flex",alignItems:"center",transition:`background-color ${Pe.motionDurationSlow}`,"&:hover":{backgroundColor:Pe.controlItemBgHover},[`${et}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${Pe.paddingXS}px`,lineHeight:We,flex:"auto",transition:`all ${Pe.motionDurationSlow}`}),[je]:{[jt]:{opacity:0},[`${jt}${Fe}-btn-sm`]:{height:xt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${jt}:focus-visible,
&.picture ${jt}
`]:{opacity:1},[Ne]:{color:Pe.actionsColor,transition:`all ${Pe.motionDurationSlow}`},[`&:hover ${Ne}`]:{color:Pe.colorText}},[`${Oe}-icon ${Ne}`]:{color:Pe.colorTextDescription,fontSize:ot},[`${et}-progress`]:{position:"absolute",bottom:-Pe.uploadProgressOffset,width:"100%",paddingInlineStart:ot+Pe.paddingXS,fontSize:ot,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${et}:hover ${jt}`]:{opacity:1,color:Pe.colorText},[`${et}-error`]:{color:Pe.colorError,[`${et}-name, ${Oe}-icon ${Ne}`]:{color:Pe.colorError},[je]:{[`${Ne}, ${Ne}:hover`]:{color:Pe.colorError},[jt]:{opacity:1}}},[`${Oe}-list-item-container`]:{transition:`opacity ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Fn=oe(45930),Xn=oe(16932);const ua=new Fn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ma=new Fn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pa=Pe=>{const{componentCls:Oe}=Pe,Fe=`${Oe}-animate-inline`;return[{[`${Oe}-wrapper`]:{[`${Fe}-appear, ${Fe}-enter, ${Fe}-leave`]:{animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Fe}-appear, ${Fe}-enter`]:{animationName:ua},[`${Fe}-leave`]:{animationName:ma}}},{[`${Oe}-wrapper`]:(0,Xn.J$)(Pe)},ua,ma]},Aa=oe(47448),ea=oe(84780);const Ua=Pe=>{const{componentCls:Oe,iconCls:Fe,uploadThumbnailSize:Ne,uploadProgressOffset:ot}=Pe,We=`${Oe}-list`,et=`${We}-item`;return{[`${Oe}-wrapper`]:{[`
${We}${We}-picture,
${We}${We}-picture-card,
${We}${We}-picture-circle
`]:{[et]:{position:"relative",height:Ne+Pe.lineWidth*2+Pe.paddingXS*2,padding:Pe.paddingXS,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${et}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:Ne,height:Ne,lineHeight:`${Ne+Pe.paddingSM}px`,textAlign:"center",flex:"none",[Fe]:{fontSize:Pe.fontSizeHeading2,color:Pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${et}-progress`]:{bottom:ot,width:`calc(100% - ${Pe.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ne+Pe.paddingXS}},[`${et}-error`]:{borderColor:Pe.colorError,[`${et}-thumbnail ${Fe}`]:{[`svg path[fill='${Aa.blue[0]}']`]:{fill:Pe.colorErrorBg},[`svg path[fill='${Aa.blue.primary}']`]:{fill:Pe.colorError}}},[`${et}-uploading`]:{borderStyle:"dashed",[`${et}-name`]:{marginBottom:ot}}},[`${We}${We}-picture-circle ${et}`]:{[`&, &::before, ${et}-thumbnail`]:{borderRadius:"50%"}}}}},eo=Pe=>{const{componentCls:Oe,iconCls:Fe,fontSizeLG:Ne,colorTextLightSolid:ot}=Pe,We=`${Oe}-list`,et=`${We}-item`,je=Pe.uploadPicCardSize;return{[`
${Oe}-wrapper${Oe}-picture-card-wrapper,
${Oe}-wrapper${Oe}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${Oe}${Oe}-select`]:{width:je,height:je,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}`,[`> ${Oe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Oe}-disabled):hover`]:{borderColor:Pe.colorPrimary}},[`${We}${We}-picture-card, ${We}${We}-picture-circle`]:{[`${We}-item-container`]:{display:"inline-block",width:je,height:je,marginBlock:`0 ${Pe.marginXS}px`,marginInline:`0 ${Pe.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[et]:{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:'" "'}},[`${et}:hover`]:{[`&::before, ${et}-actions`]:{opacity:1}},[`${et}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Pe.motionDurationSlow}`,[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{zIndex:10,width:Ne,margin:`0 ${Pe.marginXXS}px`,fontSize:Ne,cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${et}-actions, ${et}-actions:hover`]:{[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{color:new ea.C(ot).setAlpha(.65).toRgbString(),"&:hover":{color:ot}}},[`${et}-thumbnail, ${et}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${et}-name`]:{display:"none",textAlign:"center"},[`${et}-file + ${et}-name`]:{position:"absolute",bottom:Pe.margin,display:"block",width:`calc(100% - ${Pe.paddingXS*2}px)`},[`${et}-uploading`]:{[`&${et}`]:{backgroundColor:Pe.colorFillAlter},[`&::before, ${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{display:"none"}},[`${et}-progress`]:{bottom:Pe.marginXL,width:`calc(100% - ${Pe.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Oe}-wrapper${Oe}-picture-circle-wrapper`]:{[`${Oe}${Oe}-select`]:{borderRadius:"50%"}}}};var Le=Pe=>{const{componentCls:Oe}=Pe;return{[`${Oe}-rtl`]:{direction:"rtl"}}};const be=Pe=>{const{componentCls:Oe,colorTextDisabled:Fe}=Pe;return{[`${Oe}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(Pe)),{[Oe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Oe}-select`]:{display:"inline-block"},[`${Oe}-disabled`]:{color:Fe,cursor:"not-allowed"}})}};var ve=(0,Qt.Z)("Upload",Pe=>{const{fontSizeHeading3:Oe,fontSize:Fe,lineHeight:Ne,lineWidth:ot,controlHeightLG:We}=Pe,et=Math.round(Fe*Ne),je=(0,Dn.TS)(Pe,{uploadThumbnailSize:Oe*2,uploadProgressOffset:et/2+ot,uploadPicCardSize:We*2.55});return[be(je),_n(je),Ua(je),eo(je),On(je),Pa(je),Le(je),(0,Sn.Z)(je)]},Pe=>({actionsColor:Pe.colorTextDescription})),dt=function(Pe,Oe,Fe,Ne){function ot(We){return We instanceof Fe?We:new Fe(function(et){et(We)})}return new(Fe||(Fe=Promise))(function(We,et){function je(Jt){try{xt(Ne.next(Jt))}catch(fn){et(fn)}}function jt(Jt){try{xt(Ne.throw(Jt))}catch(fn){et(fn)}}function xt(Jt){Jt.done?We(Jt.value):ot(Jt.value).then(je,jt)}xt((Ne=Ne.apply(Pe,Oe||[])).next())})};const $t=`__LIST_IGNORE_${Date.now()}__`,Mt=(Pe,Oe)=>{const{fileList:Fe,defaultFileList:Ne,onRemove:ot,showUploadList:We=!0,listType:et="text",onPreview:je,onDownload:jt,onChange:xt,onDrop:Jt,previewFile:fn,disabled:bn,locale:Ie,iconRender:$a,isImageUrl:La,progress:Ia,prefixCls:na,className:qe,type:yt="select",children:Rt,style:at,itemRender:mn,maxCount:cn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Do}=Pe,xo=te.useContext(St.Z),Ka=bn!=null?bn:xo,[va,io]=(0,it.Z)(Ne||[],{value:Fe,postState:Ut=>Ut!=null?Ut:[]}),[po,yo]=te.useState("drop"),_a=te.useRef(null);te.useMemo(()=>{const Ut=Date.now();(Fe||[]).forEach((yn,xn)=>{!yn.uid&&!Object.isFrozen(yn)&&(yn.uid=`__AUTO__${Ut}_${xn}__`)})},[Fe]);const Ra=(Ut,yn,xn)=>{let vn=(0,ye.Z)(yn),Zn=!1;cn===1?vn=vn.slice(-1):cn&&(Zn=vn.length>cn,vn=vn.slice(0,cn)),(0,ct.flushSync)(()=>{io(vn)});const Ba={file:Ut,fileList:vn};xn&&(Ba.event=xn),(!Zn||vn.some(Lo=>Lo.uid===Ut.uid))&&(0,ct.flushSync)(()=>{xt==null||xt(Ba)})},fo=(Ut,yn)=>dt(void 0,void 0,void 0,function*(){const{beforeUpload:xn,transformFile:vn}=Pe;let Zn=Ut;if(xn){const Ba=yield xn(Ut,yn);if(Ba===!1)return!1;if(delete Ut[$t],Ba===$t)return Object.defineProperty(Ut,$t,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Zn=Ba)}return vn&&(Zn=yield vn(Zn)),Zn}),tn=Ut=>{const yn=Ut.filter(Zn=>!Zn.file[$t]);if(!yn.length)return;const xn=yn.map(Zn=>zt(Zn.file));let vn=(0,ye.Z)(va);xn.forEach(Zn=>{vn=kt(Zn,vn)}),xn.forEach((Zn,Ba)=>{let Lo=Zn;if(yn[Ba].parsedFile)Zn.status="uploading";else{const{originFileObj:ao}=Zn;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=Zn.uid,Lo=bo}Ra(Lo,vn)})},pa=(Ut,yn,xn)=>{try{typeof Ut=="string"&&(Ut=JSON.parse(Ut))}catch(Ba){}if(!en(yn,va))return;const vn=zt(yn);vn.status="done",vn.percent=100,vn.response=Ut,vn.xhr=xn;const Zn=kt(vn,va);Ra(vn,Zn)},Fa=(Ut,yn)=>{if(!en(yn,va))return;const xn=zt(yn);xn.status="uploading",xn.percent=Ut.percent;const vn=kt(xn,va);Ra(xn,vn,Ut)},Na=(Ut,yn,xn)=>{if(!en(xn,va))return;const vn=zt(xn);vn.error=Ut,vn.response=yn,vn.status="error";const Zn=kt(vn,va);Ra(vn,Zn)},Ja=Ut=>{let yn;Promise.resolve(typeof ot=="function"?ot(Ut):ot).then(xn=>{var vn;if(xn===!1)return;const Zn=dn(Ut,va);Zn&&(yn=Object.assign(Object.assign({},Ut),{status:"removed"}),va==null||va.forEach(Ba=>{const Lo=yn.uid!==void 0?"uid":"name";Ba[Lo]===yn[Lo]&&!Object.isFrozen(Ba)&&(Ba.status="removed")}),(vn=_a.current)===null||vn===void 0||vn.abort(yn),Ra(yn,Zn))})},ba=Ut=>{yo(Ut.type),Ut.type==="drop"&&(Jt==null||Jt(Ut))};te.useImperativeHandle(Oe,()=>({onBatchStart:tn,onSuccess:pa,onProgress:Fa,onError:Na,fileList:va,upload:_a.current}));const{getPrefixCls:Wo,direction:wa,upload:Yn}=te.useContext(gt.E_),Qn=Wo("upload",na),no=Object.assign(Object.assign({onBatchStart:tn,onError:Na,onProgress:Fa,onSuccess:pa},Pe),{data:sa,multiple:ca,action:fa,accept:Fo,supportServerRender:to,prefixCls:Qn,disabled:Ka,beforeUpload:fo,onChange:void 0});delete no.className,delete no.style,(!Rt||Ka)&&delete no.id;const[Io,Qo]=ve(Qn),[br]=(0,qt.Z)("Upload",on.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Ot,previewIcon:ht,downloadIcon:Ct}=typeof We=="boolean"?{}:We,Bt=(Ut,yn)=>We?te.createElement(Nt,{prefixCls:Qn,listType:et,items:va,previewFile:fn,onPreview:je,onDownload:jt,onRemove:Ja,showRemoveIcon:!Ka&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Ot,previewIcon:ht,downloadIcon:Ct,iconRender:$a,locale:Object.assign(Object.assign({},br),Ie),isImageUrl:La,progress:Ia,appendAction:Ut,appendActionVisible:yn,itemRender:mn,disabled:Ka}):Ut,$n=Ye()(`${Qn}-wrapper`,qe,Do,Qo,Yn==null?void 0:Yn.className,{[`${Qn}-rtl`]:wa==="rtl",[`${Qn}-picture-card-wrapper`]:et==="picture-card",[`${Qn}-picture-circle-wrapper`]:et==="picture-circle"}),Sa=Object.assign(Object.assign({},Yn==null?void 0:Yn.style),at);if(yt==="drag"){const Ut=Ye()(Qo,Qn,`${Qn}-drag`,{[`${Qn}-drag-uploading`]:va.some(yn=>yn.status==="uploading"),[`${Qn}-drag-hover`]:po==="dragover",[`${Qn}-disabled`]:Ka,[`${Qn}-rtl`]:wa==="rtl"});return Io(te.createElement("span",{className:$n},te.createElement("div",{className:Ut,style:Sa,onDrop:ba,onDragOver:ba,onDragLeave:ba},te.createElement(xe,Object.assign({},no,{ref:_a,className:`${Qn}-btn`}),te.createElement("div",{className:`${Qn}-drag-container`},Rt))),Bt()))}const ka=Ye()(Qn,`${Qn}-select`,{[`${Qn}-disabled`]:Ka}),xa=(Ut=>te.createElement("div",{className:ka,style:Ut},te.createElement(xe,Object.assign({},no,{ref:_a}))))(Rt?void 0:{display:"none"});return Io(et==="picture-card"||et==="picture-circle"?te.createElement("span",{className:$n},Bt(xa,!!Rt)):te.createElement("span",{className:$n},xa,Bt()))};var sn=te.forwardRef(Mt),Ln=function(Pe,Oe){var Fe={};for(var Ne in Pe)Object.prototype.hasOwnProperty.call(Pe,Ne)&&Oe.indexOf(Ne)<0&&(Fe[Ne]=Pe[Ne]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ne=Object.getOwnPropertySymbols(Pe);ot<Ne.length;ot++)Oe.indexOf(Ne[ot])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ne[ot])&&(Fe[Ne[ot]]=Pe[Ne[ot]]);return Fe},Da=te.forwardRef((Pe,Oe)=>{var{style:Fe,height:Ne}=Pe,ot=Ln(Pe,["style","height"]);return te.createElement(sn,Object.assign({ref:Oe},ot,{type:"drag",style:Object.assign(Object.assign({},Fe),{height:Ne})}))});const tt=sn;tt.Dragger=Da,tt.LIST_IGNORE=$t;var pn=tt},62661:function(Ge,mt){"use strict";var oe;var te=Symbol.for("react.element"),ye=Symbol.for("react.portal"),Je=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),Ve=Symbol.for("react.provider"),ce=Symbol.for("react.context"),ke=Symbol.for("react.server_context"),ze=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case Je:case he:case Ye:case Ee:case Ue:return E;default:switch(E=E&&E.$$typeof,E){case ke:case ce:case ze:case Ae:case Te:case Ve:return E;default:return b}}case ye:return b}}}oe=ce,oe=Ve,oe=te,oe=ze,oe=Je,oe=Ae,oe=Te,oe=ye,oe=he,oe=Ye,oe=Ee,oe=Ue,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ce},oe=function(E){return y(E)===Ve},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return y(E)===ze},oe=function(E){return y(E)===Je},oe=function(E){return y(E)===Ae},mt.isMemo=function(E){return y(E)===Te},oe=function(E){return y(E)===ye},oe=function(E){return y(E)===he},oe=function(E){return y(E)===Ye},oe=function(E){return y(E)===Ee},oe=function(E){return y(E)===Ue},oe=function(E){return typeof E=="string"||typeof E=="function"||E===Je||E===he||E===Ye||E===Ee||E===Ue||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Ae||E.$$typeof===Te||E.$$typeof===Ve||E.$$typeof===ce||E.$$typeof===ze||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(Ge,mt,oe){"use strict";Ge.exports=oe(62661)},72665:function(Ge,mt){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,ye=te?Symbol.for("react.element"):60103,Je=te?Symbol.for("react.portal"):60106,Ye=te?Symbol.for("react.fragment"):60107,he=te?Symbol.for("react.strict_mode"):60108,Ve=te?Symbol.for("react.profiler"):60114,ce=te?Symbol.for("react.provider"):60109,ke=te?Symbol.for("react.context"):60110,ze=te?Symbol.for("react.async_mode"):60111,Ee=te?Symbol.for("react.concurrent_mode"):60111,Ue=te?Symbol.for("react.forward_ref"):60112,Te=te?Symbol.for("react.suspense"):60113,Ae=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var ie=ne.$$typeof;switch(ie){case ye:switch(ne=ne.type,ne){case ze:case Ee:case Ye:case Ve:case he:case Te:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case ke:case Ue:case a:case ae:case ce:return ne;default:return ie}}case Je:return ie}}}function ee(ne){return z(ne)===Ee}oe=ze,oe=Ee,oe=ke,oe=ce,oe=ye,oe=Ue,oe=Ye,oe=a,oe=ae,oe=Je,oe=Ve,oe=he,oe=Te,oe=function(ne){return ee(ne)||z(ne)===ze},oe=ee,oe=function(ne){return z(ne)===ke},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)===Ye},oe=function(ne){return z(ne)===a},mt.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===Je},oe=function(ne){return z(ne)===Ve},oe=function(ne){return z(ne)===he},oe=function(ne){return z(ne)===Te},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ye||ne===Ee||ne===Ve||ne===he||ne===Te||ne===Ae||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ce||ne.$$typeof===ke||ne.$$typeof===Ue||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(Ge,mt,oe){"use strict";Ge.exports=oe(72665)},64217:function(Ge,mt,oe){"use strict";oe.d(mt,{Z:function(){return ke}});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`,Je=`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`,Ye="".concat(ye," ").concat(Je).split(/[\s\n]+/),he="aria-",Ve="data-";function ce(ze,Ee){return ze.indexOf(Ee)===0}function ke(ze){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 Te={};return Object.keys(ze).forEach(function(Ae){(Ue.aria&&(Ae==="role"||ce(Ae,he))||Ue.data&&ce(Ae,Ve)||Ue.attr&&Ye.includes(Ae))&&(Te[Ae]=ze[Ae])}),Te}}}]);