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__Gr...

171 lines
451 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[8517],{84249:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),pe=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"},je=Je,fe=oe(74643),Fe=function(Te,xe){return pe.createElement(fe.Z,(0,te.Z)({},Te,{ref:xe,icon:je}))},ue=pe.forwardRef(Fe)},90674:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),pe=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"},je=Je,fe=oe(74643),Fe=function(Te,xe){return pe.createElement(fe.Z,(0,te.Z)({},Te,{ref:xe,icon:je}))},ue=pe.forwardRef(Fe)},22751:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),pe=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"},je=Je,fe=oe(74643),Fe=function(Te,xe){return pe.createElement(fe.Z,(0,te.Z)({},Te,{ref:xe,icon:je}))},ue=pe.forwardRef(Fe)},91034:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),pe=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"},je=Je,fe=oe(74643),Fe=function(Te,xe){return pe.createElement(fe.Z,(0,te.Z)({},Te,{ref:xe,icon:je}))},ue=pe.forwardRef(Fe)},71736:function(ze,ct){"use strict";ct.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 ze(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(ze.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(ze.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(ze.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(ze.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 ze))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 ct=[];function oe(ae,a){var y=ct.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=ct.pop();return ae===void 0?new go.Point:ae}function pe(ae){ct.push(ae)}function Je(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ge=b-z,de=NaN,he=NaN;if(re===0)if(ge===0)ae===y&&(de=ae,he=a);else{var ce=(x-ee)/ge,De=x-ce*b;de=ae,he=ce*de+De}else if(ge===0){var Ne=(a-E)/re,st=a-Ne*ae;de=b,he=Ne*de+st}else{var Ne=(a-E)/re,ce=(x-ee)/ge,st=a-Ne*ae,De=x-ce*b;de=(De-st)/(Ne-ce),he=Ne*de+st}return ne.x=de,ne.y=he,ne}function je(ae,a,y,E,b,x,z,ee,ne,re,ge,de,he,ce){var De=1-ne,Ne=ne,st=ae*De+y*Ne,xt=a*De+E*Ne,gn=y*De+b*Ne,Me=E*De+x*Ne,dt=b*De+z*Ne,qe=x*De+ee*Ne,at=st*De+gn*Ne,ut=xt*De+Me*Ne,Bt=gn*De+dt*Ne,Yt=Me*De+qe*Ne,bn=at*De+Bt*Ne,cn=ut*De+Yt*Ne;re.x=st,re.y=xt,ge.x=at,ge.y=ut,de.x=bn,de.y=cn,he.x=Bt,he.y=Yt,ce.x=dt,ce.y=qe}var fe=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=fe,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ue*y,(1-ue)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ue*y,ue*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ue)*a,0,0,(1-ue)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("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 ze("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 ze("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 ze("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 ze("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 Ie=[];function Te(){var ae=Ie.pop();return ae===void 0?[]:ae}function xe(ae){ae.length=0,Ie.push(ae)}function Ke(ae){for(var a=Te(),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 ke(ae){var a=Re(ae),y=Te();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return xe(a),y}function Re(ae){for(var a=Ke(ae),y=Te(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],re=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],xe(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ke(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("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 ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=fe,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=ue/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("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 ze("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 ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ze("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 ze("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 ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=ue*.4;var re=te(),ge=te(),de=te(),he=te();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,he,he);var ce=te(),De=te(),Ne=te();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,Ne,ce,De);var st=te(),xt=te(),gn=te();je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,st,xt,gn,he,he);var Me=te(),dt=te(),qe=te();return je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,qe,Me,dt),ne.add(new go.PathSegment(go.PathSegment.Move,qe.x*a,qe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Me.x*a,Me.y*y,dt.x*a,dt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,qe.x*a,qe.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,gn.x*a,gn.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,De.x*a,De.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,gn.x*a,gn.y*y,st.x*a,st.y*y,xt.x*a,xt.y*y).close()),pe(re),pe(ge),pe(de),pe(he),pe(ce),pe(De),pe(Ne),pe(st),pe(xt),pe(gn),pe(Me),pe(dt),pe(qe),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 ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),he=new go.PathFigure((z-x)*a,ee*y,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),he.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var ce=oe(re.x,re.y);je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var De=oe(re.x,re.y);he.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,(De.y*.1+.05*.9)*y)),he.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=ue*.35;var Ne=new go.PathFigure(z*a,(ee-x)*y,!1);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));var st=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(st),pe(ne),pe(re),pe(ge),pe(de),pe(ce),pe(De),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ue,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*ue;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),pe(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),pe(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("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),pe(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=Je(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(de.x,de.y),de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,de),re.spot2=new go.Spot(de.x,de.y),pe(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("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),pe(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(de.x,de.y),pe(de),re}),go.Shape.setFigureParameter("Pointer",0,new ze("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),pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("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),pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("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),pe(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("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),pe(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ue*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ue*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ue*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ue*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ue*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ue*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ue*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ue*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ue*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=ue*b,ee=ue*x,ne=.5,re=.1,ge=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-ee)*y,(ne-z)*a,(re-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+ee)*y,(ne+z)*a,(re+x)*y));var de=.05,he=ue*de;ne=.05,re=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,re*y,(ne+he)*a,(re-de)*y,(ne+de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,he=ue*de,ne=.825,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-he)*y,(ne+he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-he)*a,(re-de)*y,(ne-de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,he=ue*de,ne=.5,re=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-he)*y,(ne+he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-he)*a,(re-de)*y,(ne-de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,he=ue*de,ne=.175,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-he)*y,(ne+he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-he)*a,(re-de)*y,(ne-de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,he=ue*de,ne=.05,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne-de)*a,(re-he)*y,(ne-he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ue*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=ue*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.4,z=ue*.1,ee=.1,ne=.9,re=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var de=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,re*y,(ne+z)*a,(re-ee)*y,(ne+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ue*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ue*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=ue*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,ne=0,re=.5,ge=(b-a)/2,de=(x-y)/2,he=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=ue*.4,ee=.4,ne=.2,re=.5;var ce=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=ue*.2,ee=.2,ne=.5,re=.5;var De=new go.PathFigure((ne-ee)*a+ge,re*y+de,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),z=ue*.4,ee=.4,ne=.8,re=.5;var Ne=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),z=ue*.8,ee=.8,ne=1,re=.5;var st=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);return E.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),st.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),st.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),st.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var he=oe(re.x,re.y),ce=new go.PathFigure(re.x*a,re.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=ue*.3,x=.3,je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),pe(ne),pe(re),pe(ge),pe(de),pe(he),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*ue,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,he=.5,ce=0,De=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ge*.5,he=z,ce=z,De=ge*he,Ne=ge*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*a,ne*y,(ee-(De+he)/2)*a,(ne+(ce+Ne)/2)*y,(ee-he)*a,(ne+Ne)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-he)*a,(ne-Ne)*y,(ee-De)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*a,ne*y,(ee+De)*a,(ne-ce)*y,(ee+he)*a,(ne-Ne)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+he)*a,(ne+Ne)*y,(ee+(De+he)/2)*a,(ne+(ce+Ne)/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 st=new go.PathFigure(.2*a,y,!1);E.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var xt=new go.PathFigure(.8*a,y,!1);return E.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,ne=.2,re=.9,ge=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),z=.1,ee=ue*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,re=ue*.1,ge=.1,de=.9,he=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+re)*y)),ne=.1,re=ue*.1,ge=.4,de=.9;var ce=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,de=ue*.05,he=.175,ce=.95,ee=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,he=.375,ce=.95,ne=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,he=.625,ce=.95,re=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,he=.825,ce=.95,De=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y).close());var Ne=new go.PathFigure(0,y,!1);return E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=ue*.05,re=.35,ge=.775,de=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-ne)*y,(re-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+ne)*a,(ge-ee)*y,(re+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+ne)*y,(re+ne)*a,(ge+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ge*y,(re-ne)*a,(ge+ee)*y,(re-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=ue*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=ue*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*ue,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ze={},ct="5.0",oe={},te=null,pe=!1,Je=!1,je=null,fe=!1,Fe=null,ue=null,Ie=0;Ie<arguments.length;Ie++){var Te=arguments[Ie];if(Te!==null)switch(typeof Te){case"number":ct=Te.toFixed(1);break;case"string":Te.match(new RegExp("^[0-9]\\.[0-9]+$"))?ct=Te:je=Te;break;case"object":typeof Te.is3D!="undefined"?te=Te:oe=Te;break;case"boolean":pe=Te,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&&(pe=!0)),je!==null&&oe.id===void 0&&(oe.id=je);var xe="",Ke="",ke=!1,Re=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(Ce){return parseFloat(Ce)>4?parseFloat(Ce):5};ze.setHTML5Codebase=function(Ce,Ue){ue=Ce,Yt(Ce,Ue)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(Ce,Ue){var rt=parseFloat(Ce);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Fe=Ce,Bt(Ce,Ue)},ze.getHTML5CodebaseVersion=function(){return ae},ze.getParameters=function(){return oe},ze.setFontsCSSURL=function(Ce){z=Ce},ze.setGiacJSURL=function(Ce){},ze.setJNLPFile=function(Ce){xe=Ce},ze.setJNLPBaseDir=function(Ce){},ze.inject=function(){function Ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",rt=oe.id,Rt,lt=!1,Ct=0;Ct<arguments.length;Ct++){var me=arguments[Ct];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=me:rt=arguments[Ct]):typeof me=="boolean"?lt=me:me instanceof HTMLElement&&(Rt=me)}St();function St(){if(!fe){setTimeout(St,200);return}Ue=at(Ue);var $t=Rt||document.getElementById(rt);if(!$t){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet($t,!1),oe.width===void 0&&$t.clientWidth&&(oe.width=$t.clientWidth),oe.height===void 0&&$t.clientHeight&&(oe.height=$t.clientHeight),!(oe.width&&oe.height)&&Ue==="html5"&&(delete oe.width,delete oe.height),Re=Ue,Ue==="screenshot")xt($t,oe);else{var tn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?tn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(tn=(!re()||Ce())&&ge()),tn?(Re="screenshot",Me($t,oe,lt,Ue)):st($t,oe,lt)}}};function re(){try{return window.self!==window.top}catch(Ce){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return te},ze.isJavaInstalled=function(){return!1};var de=function(Ce){var Ue=function(Ct){var me=JSON.parse(Ct),St=function(wt){return wt.type=="G"||wt.type=="E"},$t=me.elements?me.elements.filter(St)[0]:me;if(!$t||!$t.url){rt();return}oe.fileName=$t.url,he($t.settings||{}),te.is3D=!0;var tn="https://www.geogebra.org/images/";ze.setPreviewImage(E||$t.previewUrl,tn+"GeoGebra_loading.png",tn+"applet_play.png"),Ce()},rt=function(){oe.onError&&oe.onError(),bn("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Rt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",lt="/materials/"+oe.material_id+"?scope=basic";ce("https://"+Rt+"/api/proxy.php?path="+encodeURIComponent(lt),Ue,rt)};function he(Ce){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){Ce[rt]=!!Ce[rt]}),Ue.forEach(function(rt){oe[rt]===void 0&&Ce[rt]!==void 0&&(oe[rt]=Ce[rt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ce(Ce,Ue,rt){var Rt=new XMLHttpRequest;Rt.open("GET",Ce),Rt.onload=function(){Ue(Rt.responseText)},Rt.onerror=rt,Rt.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return Re},ze.setPreviewImage=function(Ce,Ue,rt){E=Ce,b=Ue,x=rt},ze.removeExistingApplet=function(Ce,Ue){var rt;typeof Ce=="string"&&(Ce=document.getElementById(Ce)),Re=null;var Rt=null;for(rt=0;rt<Ce.childNodes.length;rt++){var lt=Ce.childNodes[rt],Ct=lt.className;Ct==="applet_screenshot"?Ue?(lt.style.display="block",Re="screenshot"):lt.style.display="none":Ct!=="applet_scaler prerender"&&(Ce.removeChild(lt),Rt=Ct&&Ct.indexOf("appletParameters")!=-1?lt.id:null,rt--)}var me=oe.id!==void 0?oe.id:Rt,St=window[me];St&&typeof St.getBase64=="function"&&(St.remove(),window[me]=null)},ze.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ce=ze.getAppletObject();return Ce&&typeof Ce.recalculateEnvironments=="function"?(Ce.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var Ce=ze.getAppletObject();return Ce&&typeof Ce.startAnimation=="function"?(Ce.startAnimation(),!0):!1},ze.stopAnimation=function(){var Ce=ze.getAppletObject();return Ce&&typeof Ce.stopAnimation=="function"?(Ce.stopAnimation(),!0):!1},ze.getAppletObject=function(){var Ce=oe.id!==void 0?oe.id:"ggbApplet";return window[Ce]},ze.resize=function(){};var De=function(Ce,Ue,rt){var Rt=document.createElement("param");Rt.setAttribute("name",Ue),Rt.setAttribute("value",rt),Ce.appendChild(Rt)},Ne=function(Ce){return Ce&&Ce!=="false"},st=function(Ce,Ue,rt){ne(ae)<=4.2&&(rt=!0);var Rt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Rt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var lt=document.createElement("div");lt.classList.add("appletParameters","notranslate");var Ct=Ue.width,me=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(ne(ae)<=4.4)Ne(Ue.showToolBar)&&(Ue.height-=7),Ne(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&Ne(Ue.showToolBar)&&(Ue.width=605,Ct=605);else{var St=100;(Ne(Ue.showToolBar)||Ne(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),St=Ne(Ue.showMenuBar)?245:155),Ct<St&&(Ue.width=St,Ct=St)}lt.style.border="none",lt.style.display="inline-block";for(var $t in Ue)Ue.hasOwnProperty($t)&&$t!=="appletOnLoad"&&lt.setAttribute("data-param-"+$t,Ue[$t]);z&&lt.setAttribute("data-param-fontscssurl",z),ze.resize=function(){GGBAppletUtils.responsiveResize(Ce,Ue)},window.addEventListener("resize",function(sn){ze.resize()});var tn=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!rt&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||lt.setAttribute("data-param-showSplash","false");var wt=Ce.querySelector(".applet_scaler.prerender"),Xe=wt!==null;if(Xe)var Be=wt.querySelector(".ggb_preview");else{var Be=qe(Ct,me,Ue.borderColor,!1);wt=document.createElement("div"),wt.className="applet_scaler",wt.style.position="relative",wt.style.display="block",wt.style.width=Ct+"px",wt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(wt,"66%"),ne(ae)>=5?(Ue.appletOnLoad=function(sn){var rn=Ce.querySelector(".ggb_preview");rn&&rn.parentNode.removeChild(rn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(wt),window.GGBT_wsf_view&&$(window).trigger("resize"),tn(sn)},Xe||wt.appendChild(Be)):lt.appendChild(Be),wt.appendChild(lt),Xe||Ce.appendChild(wt),setTimeout(function(){ze.resize()},1)}else{var be=document.createElement("div");be.className="applet_scaler",be.style.position="relative",be.style.display="block",be.appendChild(lt),Ce.appendChild(be),Ue.appletOnLoad=function(sn){ze.resize(),tn(sn)}}function Qe(sn,rn){rn&&typeof rn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,rn.appletOnLoad):renderGGBElement(sn),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",rn)}function nt(sn,rn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,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&&(sn.className+=" geogebraweb")):Qe(sn,rn)}if(Rt){scriptLoadStarted=!0;for(var pt=0;pt<lt.childNodes.length;pt++){var It=lt.childNodes[pt].tagName;It==="TABLE"&&(lt.removeChild(lt.childNodes[pt]),pt--)}if(ggbHTML5LoadedScript!==null){var kt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');kt!=null&&kt.parentNode.removeChild(kt)}var Qt=document.createElement("script"),ln=function(){nt(lt,Ue)};Qt.src=Ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Qt.src,bn("GeoGebra HTML5 codebase loaded: '"+Ke+"'.",Ue),!ue&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ln()):Ke.requirejs?__webpack_require__.e(12).then(function(){var sn=[__webpack_require__(12)];ln.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(Qt.onload=ln,Ce.appendChild(Qt))}else nt(lt,Ue);Ue.height=me,Ue.width=Ct},xt=function(Ce,Ue,rt){var Rt=qe(Ue.width,Ue.height,Ue.borderColor,rt),lt=document.createElement("div");lt.style.position="relative",lt.style.display="block",lt.style.width=Ue.width+"px",lt.style.height=Ue.height+"px",lt.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),lt.appendChild(Rt);var Ct=GGBAppletUtils.getScale(Ue,Ce,rt);rt?(Ce.appendChild(dt()),window.GGBT_wsf_view||(Ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(lt,"66%"),Ce.appendChild(lt),Ct!==1&&!isNaN(Ct)&&(GGBAppletUtils.scaleElement(lt,Ct),lt.style.width=Ue.width+"px",lt.style.height=Ue.height+"px",lt.parentNode.style.width=Ue.width*Ct+"px",lt.parentNode.style.height=Ue.height*Ct+"px"),ze.resize=function(){gn(Ce,Rt,lt,rt)},window.addEventListener("resize",function(me){ze.resize()}),ze.resize()};function gn(Ce,Ue,rt,Rt){if(Ce.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}var lt=GGBAppletUtils.getScale(oe,Ce,Rt);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(Ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(Ce,Ue){Ue.appendChild(Ce)};var Me=function(Ce,Ue,rt,Rt){xt(Ce,Ue,!0);for(var lt=function(){var St=[];for(me=0;me<Ce.childNodes.length;me++)St.push(Ce.childNodes[me]);if(window.GGBT_wsf_view){var $t=window.GGBT_wsf_view.renderFullScreen(Ce,Ue.id),tn=document.getElementById("fullscreencontainer"),wt=jQuery(Ce).find(".fullscreencontent");wt.length>0?($t.remove(),wt.attr("id","fullscreencontent").show(),jQuery(tn).append(wt),window.dispatchEvent(new Event("resize"))):st($t,Ue,!1),window.GGBT_wsf_view.launchFullScreen(tn)}else Re=Rt,st(Ce,Ue,!1);if(!window.GGBT_wsf_view)for(me=0;me<St.length;me++)Ce.removeChild(St[me])},Ct=Ce.getElementsByClassName("ggb_preview_play"),me=0;me<Ct.length;me++)Ct[me].addEventListener("click",lt,!1),Ct[me].addEventListener("ontouchstart",lt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ce),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},dt=function(){var Ce=document.createElement("div");if(Ce.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.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=Ue:rt.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(rt)}return Ce},qe=function(Ce,Ue,rt,Rt){var lt=document.createElement("div");lt.className="ggb_preview",lt.style.position="absolute",lt.style.zIndex="90",lt.style.width=Ce-2+"px",lt.style.height=Ue-2+"px",lt.style.top="0px",lt.style.left="0px",lt.style.overflow="hidden",lt.style.backgroundColor="white";var Ct="lightgrey";rt!==void 0&&(rt==="none"?Ct="transparent":Ct=rt),lt.style.border="1px solid "+Ct;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",E!==null&&me.setAttribute("src",E),me.style.opacity=.7,b!==null){var St,$t,tn;if(!Rt){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,me.style.opacity=.3,$t=360,$t>Ce/4*3&&($t=Ce/4*3),tn=$t/5.8,St.setAttribute("src",b),St.setAttribute("width",$t),St.setAttribute("height",tn);var wt=(Ce-$t)/2,Xe=(Ue-tn)/2;St.style.left=wt+"px",St.style.top=Xe+"px",lt.appendChild(St)}}return lt.appendChild(me),lt},at=function(Ce){return Ce=Ce.toLowerCase(),Ce==="html5"||Ce==="screenshot"?Ce:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Bt=function(Ce,Ue){if(ae=Ce,Ue){Yt(ae,!0);return}var rt=!pe;if(rt){var Rt=ne(ae);!isNaN(Rt)&&Rt<4.4&&(rt=!1)}var lt,Ct;window.location.protocol.substr(0,4)==="http"?lt=window.location.protocol:lt="http:";var me=ae.indexOf("//");me>0?Ct=ae:me===0?Ct=lt+ae:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var St in ut)if(ae.slice(ut[St].length*-1)===ut[St]||ae.slice((ut[St].length+1)*-1)===ut[St]+"/"){Yt(Ct,!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&&!Ne(oe.showToolBar)&&!Ne(oe.showMenuBar)&&!Ne(oe.showAlgebraInput)&&!Ne(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",Yt(Ct,!1)},Yt=function(Ce,Ue){if(Ce.requirejs){Ke=Ce;return}Ce.slice(-1)!=="/"&&(Ce+="/"),Ke=Ce,Ue===null&&(Ue=Ce.indexOf("http")===-1),ke=Ue,a="web.nocache.js",y=!1;var rt=Ke.split("/");rt.length>1&&(!Ue&&rt[rt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ut.indexOf(rt[rt.length-2])>=0&&(a=rt[rt.length-2]+".nocache.js")),rt=Ce.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 Rt=parseFloat(ae);Rt!==NaN&&Rt<5&&Ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Rt+" is deprecated. Using version latest instead."),Bt("5.0",Ue))},bn=function(Ce,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(Ce)};oe.material_id!==void 0?de(cn):cn();function cn(){var Ce=ct;Fe!==null?Ce=Fe:parseFloat(Ce)<5&&(Ce="5.0"),Bt(Ce,!1),ue!==null&&Yt(ue,ke),fe=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function ct(fe,Fe){Fe!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Fe+","+Fe+")",fe.style.webkitTransform="scale("+Fe+","+Fe+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function oe(fe,Fe,ue,Ie,Te,xe){var Ke=null;if(xe!=null&&xe!="")for(var ke=fe.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+xe+" ")>-1){Ke=ke;break}else ke=ke.parentNode;var Re=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ke)Re=Ke.offsetWidth,ae=Math.max(Ie?Ke.offsetWidth:0,Ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=Re&&(Te===void 0||!Te)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((ue===void 0||!ue)&&Fe>0&&Fe+y<Re?Re=Fe:Re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ae-=x)),{width:Re,height:ae}}function te(fe,Fe,ue,Ie,Te){if(fe.isScreenshoGenerator)return 1;var xe=Ie!==void 0&&Ie,Ke=fe.noScaleMargin!=null&&fe.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},Re=ke(fe.autoHeight),ae=oe(Fe,fe.width,ue,Re,xe&&window.GGBT_wsf_view||Ke,Te),a=parseInt(ae.width),y=fe.width,E=fe.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=xe?1:ae.height/E;return ue!==void 0&&!ue&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function pe(fe,Fe,ue){var Ie=1,Te,xe=!1;if(fe.hasOwnProperty("allowUpscale")&&(xe=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Ie=parseFloat(fe.scale),(isNaN(Ie)||Ie===null||Ie===0)&&(Ie=1),Ie>1&&(xe=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xe=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Te=te(fe,Fe,xe,ue,fe.scaleContainerClass);else return Ie;return xe&&(!fe.hasOwnProperty("scale")||Ie===1)?Te:Math.min(Ie,Te)}function Je(fe){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=fe.getBoundingClientRect(),Te=(Fe-Ie.width)/2,xe=(ue-Ie.height)/2;xe<0&&(xe=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te<40?fe.style.left="40px":fe.style.left=Te+"px",fe.style.top=xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe<40?fe.style.top="40px":fe.style.top=xe+"px",fe.style.left=Te+"px")}function je(fe,Fe){var ue=fe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ie=pe(Fe,fe);ze()&&ue.setAttribute("data-param-scale",Ie);for(var Te=null,xe=0;xe<fe.childNodes.length;xe++)if(fe.childNodes[xe].className!==void 0&&fe.childNodes[xe].className.match(/^applet_scaler/)){Te=fe.childNodes[xe];break}if(Te!==null&&Te.querySelector(".noscale")!==null)return;var Ke=Fe.id!==void 0?Fe.id:"ggbApplet",ke=window[Ke];(ke==null||!ke.recalculateEnvironments)&&Te!==null&&!Te.className.match(/fullscreen/)&&(Te.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(Te.parentNode.style.width=Fe.width*Ie+"px",Te.parentNode.style.height=Fe.height*Ie+"px",ct(Te,Ie)):(ct(Te,1),Te.parentNode.style.width=Fe.width+"px",Te.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:ze,positionCenter:Je,getScale:pe,scaleElement:ct}}();__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 ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,ct){}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(ze){var ct=s[L].bindings;s[L].bindings=function(){for(var oe=ct?ct():{},te=ze[webModule.__softPermutationId],pe=O;pe<te.length;pe++){var Je=te[pe];oe[Je[O]]=Je[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ct=document.compatMode==U?V:W;t.write(ct+X),t.close()}}}function w(ze){function ct(te){function pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=pe();if(Je){te();return}function je(){if(!Je){if(!pe())return;Je=!0,te(),o.removeEventListener&&o.removeEventListener(Z,je,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,je,!1);var fe=setInterval(function(){je()},$)}function oe(te){var pe=u(),Je=pe.body,je=pe.createElement(_);je.language=ab,je.crossOrigin=W,je.src=te,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Je.appendChild(je)}ct(function(){oe(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var ct=u(),oe=ct.body,te=ct.createElement(_);te.language=ab,te.text=ze,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(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var ct=c[ze];return ct==null?null:ct},r=d,webModule.__errFn=e}function B(){function ze(fe){var Fe=fe.lastIndexOf(rb);Fe==-1&&(Fe=fe.length);var ue=fe.indexOf(sb);ue==-1&&(ue=fe.length);var Ie=fe.lastIndexOf(tb,Math.min(ue,Fe));return Ie>=O?fe.substring(O,Ie+P):W}function ct(fe){if(!fe.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=fe+vb,fe=ze(Fe.src)}return fe}function oe(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function te(){for(var fe=o.getElementsByTagName(_),Fe=O;Fe<fe.length;++Fe)if(fe[Fe].src.indexOf(xb)!=-1)return ze(fe[Fe].src);return W}function pe(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Je(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var je=oe();return je==W&&(je=te()),je==W&&(je=pe()),je==W&&Je()&&(je=ze(o.location.href)),je=ct(je),je}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],ct=O,oe=[],te=[];function pe(fe){var Fe=te[fe](),ue=oe[fe];if(Fe in ue)return Fe;var Ie=[];for(var Te in ue)Ie[ue[Te]]=Te;throw r&&r(fe,Ie,Fe),null}if(__gwt_isKnownPropertyValue=function(fe,Fe){return Fe in oe[fe]},webModule.__getPropMap=function(){var fe={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(fe[Fe]=pe(Fe));return fe},webModule.__computePropValue=pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var je=Je.indexOf(Db);je!=-1&&(ct=parseInt(Je.substring(je+P),$),Je=Je.substring(O,je))}catch(fe){}return webModule.__softPermutationId=ct,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(ze,ct,oe){"use strict";oe.d(ct,{Ax:function(){return je},Ds:function(){return fe},KI:function(){return ue},SI:function(){return Je},f1:function(){return pe}});var te=oe(11320);function pe(Ie){let Te=!0;if(Ie.length>0){for(let xe=0;xe<Ie.length;xe++)if(Ie[xe].compile_success==0||!Ie[xe].compile_success){Te=!1;break}}else Te=!1;return Te}function Je(Ie,Te=""){let xe=[];for(let Ke=0;Ke<Ie.length;Ke++){let ke=Ie[Ke],Re=Te?`${Te}/${ke.name}`:`${ke.name}`;xe.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:Re})}return xe}function je(Ie,Te,xe){for(let Ke=0;Ke<Ie.length;Ke++){let ke=Ie[Ke];if(ke.key===Te){ke.children=xe;break}ke.children&&je(ke.children,Te,xe)}return Ie}function fe(Ie,Te,xe){let Ke;return function(){let ke=this,Re=arguments,ae=function(){Ke=null,xe||Ie.apply(ke,Re)},a=xe&&!Ke;clearTimeout(Ke),Ke=setTimeout(ae,Te),a&&Ie.apply(ke,Re)}}const Fe=!0,ue=te.Z.API_SERVER},63205:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Ke}});var te=oe(67294),pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=oe(94184),je=oe.n(Je),fe=oe(57953),Fe=oe(15979),ue=oe(33170),Ie=oe(28706),Te=(ke,Re,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(ke,Re)).next())}),Ke=({data:ke,className:Re,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[he,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&De()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[ke==null?void 0:ke.visible]);const De=()=>Te(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Me=yield(0,Ie.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Me,z.current.onload=function(){gn()},de(!1),ce("")}),Ne=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},st=Me=>Te(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const dt=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Me.dataUrl}});dt!=null&&dt.id&&!x?(yield(0,ue.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:dt==null?void 0:dt.id,settings:JSON.stringify(Me.state)}})).status===0&&E():dt!=null&&dt.id&&E(dt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),ce("")}),xt=()=>{const Me=document.querySelector('a[href="https://markerjs.com/"]');Me&&Me.parentNode&&(Me.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(qe=>{const at=document.querySelector(qe.name);at&&at.setAttribute("title",qe.title)})},gn=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",st),ee.current.addEventListener("beforeclose",Ne),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(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),xt()},300)};return te.createElement(te.Fragment,null,(ke==null?void 0:ke.visible)&&te.createElement(fe.Z,{spinning:ge,tip:he,style:{position:"absolute"}},te.createElement("div",{ref:re,className:je()(pe.imageDimensions,Re,ae?pe.fullWidth:""),style:a},te.createElement("img",{className:pe.img,ref:z}))))}},36527:function(ze,ct,oe){"use strict";var te=oe(67294),pe=oe(71230),Je=oe(15746),je=oe(66368),fe=oe(71577),Fe=oe(85725),ue=oe(71736),Ie=oe(84279),Te=oe(67294);const xe=(0,te.forwardRef)(({callback:Ke,showSaveButton:ke,value:Re=""},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:Te.createElement(pe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Te.createElement(Je.Z,{flex:"110px",className:ue.Z.item},Te.createElement("div",null,Te.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Te.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>Te.createElement("div",{key:ge},Te.createElement("h1",null,re.name),Te.createElement(pe.Z,{gutter:[10,10]},re.data.map((de,he)=>Te.createElement(Je.Z,{key:he,onClick:()=>b(de),className:ue.Z.diamond},Te.createElement(Fe.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Te.createElement(pe.Z,{className:ue.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Te.createElement(Je.Z,{flex:"110px",className:ue.Z.item},Te.createElement("div",null,Te.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Te.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>Te.createElement("div",{key:ge},re.name&&Te.createElement("h1",null,re.name),Te.createElement(pe.Z,{gutter:[10,10]},re.data.map((de,he)=>Te.createElement(Je.Z,{key:he,onClick:()=>b(de),className:ue.Z.diamond},Te.createElement(Fe.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ke&&Ke(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Te.createElement("div",{className:ue.Z.mathWrap},Te.createElement(je.default,{defaultActiveKey:"1",items:x}),Te.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),ke&&Te.createElement("div",{className:ue.Z.button},Te.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ct.Z=xe},57444:function(ze,ct,oe){"use strict";oe.d(ct,{h:function(){return ee}});var te=oe(67294),pe=oe(42563),Je=oe(22150),je=oe(71577),fe=oe(4631),Fe=oe.n(fe),ue=oe(71749),Ie=oe(30483),Te=Object.defineProperty,xe=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ge)=>re in ne?Te(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,y=(ne,re)=>{for(var ge in re||(re={}))Re.call(re,ge)&&a(ne,ge,re[ge]);if(ke)for(var ge of ke(re))ae.call(re,ge)&&a(ne,ge,re[ge]);return ne},E=(ne,re)=>xe(ne,Ke(re));const b=pe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ct.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function he(De){de(z[De][1])}function ce(De){ne(De)}return te.createElement(Je.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(pe.default,{getPopupContainer:De=>De.parentNode,onChange:he},Object.keys(z).map(De=>te.createElement(b,{key:De,value:De},z[De][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(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(je.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const he=(0,te.useRef)(),[ce,De]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let Ne=function(st){const xt=st.getValue();re&&re(xt)};return ce.on("change",Ne),()=>{ce.off("change",Ne)}}},[ce,re]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",ge)},[ce,ge]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(he.current&&!ce){const Ne=Fe().fromTextArea(he.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));De(Ne)}},[he.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:he}))}},35567:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Qa}});var te=oe(67294),pe=oe(4631),Je=oe.n(pe),je=oe(91033),fe=oe(71749),Fe=oe(57341),ue=oe(82801),Ie=oe(88386),Te=oe(49047),xe=oe(80785),Ke=oe(85725),ke=({value:Le="",className:we,showTextOnly:ve,showLines:mt,style:Ot={}})=>{const Tt=(0,te.useMemo)(()=>"",[Le]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Tt}}))},Re=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,ve)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,ee=(Le,we)=>{for(var ve in we||(we={}))b.call(we,ve)&&z(Le,ve,we[ve]);if(E)for(var ve of E(we))x.call(we,ve)&&z(Le,ve,we[ve]);return Le},ne=(Le,we)=>a(Le,y(we));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:Le,title:we,icon:ve,actionName:mt,className:Ot="",children:Tt}){function An(){Le(mt)}return Re.createElement("a",{title:we,className:Ot,onClick:An},Re.createElement("i",{className:`${ve}`}),Tt)}var de=({watch:Le,showNullButton:we,showNullProgramButton:ve,onActionCallback:mt,fullScreen:Ot,insertTemp:Tt,hidetoolBar:An,extraUse:un})=>{const Cn=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!An&&Cn.map((ta,Ia)=>Re.createElement("li",{key:Ia},ta.actionName?Re.createElement(ge,ne(ee({},ta),{onActionCallback:mt})):Re.createElement("span",{className:"v-line"}))),we?Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mt},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mt},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mt},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Tt&&Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Tt}`,onActionCallback:mt},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&Re.createElement("li",null,un),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ge,{icon:`${Ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mt})))},he=oe(76621),ce=oe(22150),De=oe(69677),Ne=oe(71577),st=Object.defineProperty,xt=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,at=(Le,we,ve)=>we in Le?st(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,ut=(Le,we)=>{for(var ve in we||(we={}))dt.call(we,ve)&&at(Le,ve,we[ve]);if(Me)for(var ve of Me(we))qe.call(we,ve)&&at(Le,ve,we[ve]);return Le},Bt=(Le,we)=>xt(Le,gn(we));const Yt={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:Le,onCancel:we})=>{function ve(mt){Le(mt)}return te.createElement(ce.default,Bt(ut({},Yt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(De.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(De.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ne.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},cn=oe(57444),Ce=oe(70859),Ue=oe(14446),rt=oe(71230),Rt=oe(63205),lt=oe(67294),Ct=({callback:Le,onCancel:we})=>{const ve=document.createElement("canvas"),mt=ve.getContext("2d");ve.width=1e3,ve.height=800,mt.fillStyle="#ffffff",mt.fillRect(0,0,ve.width,ve.height);const Ot=ve.toDataURL("image/png");return lt.createElement(Ue.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(Rt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ot,visible:!0,title:String(Date.now())},onOk:Tt=>{Le({src:Tt.url})},onClose:we})))},me=oe(23495);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},St.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(we=Math.min(ve.position.x,we))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(we,ve.position.y))}),Le.commitTransaction("aligning left")},St.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var mt=ve.actualBounds.x+ve.actualBounds.width;we=Math.max(mt,we)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(we-ve.actualBounds.width,ve.position.y))}),Le.commitTransaction("aligning right")},St.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(we=Math.min(ve.position.y,we))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,we))}),Le.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var mt=ve.actualBounds.y+ve.actualBounds.height;we=Math.max(mt,we)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,we-ve.actualBounds.height))}),Le.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var ve=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(mt){mt instanceof go.Link||mt.move(new go.Point(ve-mt.actualBounds.width/2,mt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var ve=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(mt){mt instanceof go.Link||mt.move(new go.Point(mt.actualBounds.x,ve-mt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var ve=new Array;we.selection.each(function(un){un instanceof go.Link||ve.push(un)});for(var mt=0;mt<ve.length-1;mt++){var Ot=ve[mt],Tt=Ot.actualBounds.y+Ot.actualBounds.height+Le,An=ve[mt+1];An.move(new go.Point(Ot.actualBounds.x,Tt))}we.commitTransaction("align Column")},St.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var ve=new Array;we.selection.each(function(un){un instanceof go.Link||ve.push(un)});for(var mt=0;mt<ve.length-1;mt++){var Ot=ve[mt],Tt=Ot.actualBounds.x+Ot.actualBounds.width+Le,An=ve[mt+1];An.move(new go.Point(Tt,Ot.actualBounds.y))}we.commitTransaction("align Row")},St.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},St.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(ve){ve instanceof go.Link||ve instanceof go.Group||(ve.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},St.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(ve){we.set(ve.layer,0)}),we.iteratorKeys.each(function(ve){var mt=0;ve.parts.each(function(Ot){if(!Ot.isSelected){var Tt=Ot.zOrder;isNaN(Tt)?Ot.zOrder=0:mt=Math.max(mt,Tt)}}),we.set(ve,mt)}),Le.selection.each(function(ve){St._assignZOrder(ve,we.get(ve.layer)+1)}),Le.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(ve){we.set(ve.layer,0)}),we.iteratorKeys.each(function(ve){var mt=0;ve.parts.each(function(Ot){if(!Ot.isSelected){var Tt=Ot.zOrder;isNaN(Tt)?Ot.zOrder=0:mt=Math.min(mt,Tt)}}),we.set(ve,mt)}),Le.selection.each(function(ve){St._assignZOrder(ve,we.get(ve.layer)-1-St._findGroupDepth(ve))}),Le.commitTransaction("pushToBack")},St._assignZOrder=function(Le,we,ve){ve===void 0&&(ve=Le),Le.layer===ve.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(mt){St._assignZOrder(mt,we+1,ve)})},St._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(ve){we=Math.max(we,St._findGroupDepth(ve))}),we+1}else return 0},St.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var ve=this.arrowKeyBehavior;if(ve==="none")return;if(ve==="select"){this._arrowKeySelect();return}else if(ve==="move"){this._arrowKeyMove();return}else if(ve==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},St.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,ve=0,mt=0;if(we.control||we.meta)ve=1,mt=1;else if(Le.grid!==null){var Ot=Le.grid.gridCellSize;mt=Ot.width,ve=Ot.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Tt){we.key==="Up"?Tt.move(new go.Point(Tt.actualBounds.x,Tt.actualBounds.y-ve)):we.key==="Down"?Tt.move(new go.Point(Tt.actualBounds.x,Tt.actualBounds.y+ve)):we.key==="Left"?Tt.move(new go.Point(Tt.actualBounds.x-mt,Tt.actualBounds.y)):we.key==="Right"&&Tt.move(new go.Point(Tt.actualBounds.x+mt,Tt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.lastInput,ve=null;we.key==="Up"?ve=this._findNearestPartTowards(270):we.key==="Down"?ve=this._findNearestPartTowards(90):we.key==="Left"?ve=this._findNearestPartTowards(180):we.key==="Right"&&(ve=this._findNearestPartTowards(0)),ve!==null&&(we.shift?ve.isSelected=!0:we.control||we.meta?ve.isSelected=!ve.isSelected:Le.select(ve))},St.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var ve=we.actualBounds.center,mt=this._getAllParts(),Ot=1/0,Tt=we,An=0;An<mt.length;An++){var un=mt[An];if(un!==we&&un.canSelect()){var Cn=un.actualBounds.center,ta=ve.directionPoint(Cn),Ia=this._angleCloseness(ta,Le);if(Ia<=45){var ot=ve.distanceSquaredPoint(Cn);ot*=1+Math.sin(Ia*Math.PI/180),ot<Ot&&(Ot=ot,Tt=un)}}}return Tt},St.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},St.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var ve=Le.lastInput;if(ve.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var mt=this._sortTreeChildrenByY(we).first();mt!==null&&Le.select(mt)}}else if(ve.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var Ot=we.findTreeParentNode();Ot!==null&&Le.select(Ot)}else if(ve.key==="Up"){var Ot=we.findTreeParentNode();if(Ot!==null){var Tt=this._sortTreeChildrenByY(Ot),An=Tt.indexOf(we);if(An>0){for(var un=Tt.elt(An-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(un);un=Cn.last()}un!==null&&Le.select(un)}else Le.select(Ot)}}else if(ve.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var mt=this._sortTreeChildrenByY(we).first();mt!==null&&Le.select(mt)}else for(;we!==null;){var Ot=we.findTreeParentNode();if(Ot===null)break;var Tt=this._sortTreeChildrenByY(Ot),An=Tt.indexOf(we);if(An<Tt.length-1){Le.select(Tt.elt(An+1));break}else we=Ot}var ta=Le.selection.first();ta!==null&&Le.scrollToRect(ta.actualBounds)}},St.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(ve,mt){var Ot=ve.location,Tt=mt.location;return Ot.y<Tt.y?-1:Ot.y>Tt.y?1:Ot.x<Tt.x?-1:Ot.x>Tt.x?1:0}),we},St.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},St.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(St.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(St.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 $t=St,tn=oe(18023),wt=oe(15746),Xe=oe(33170),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},be=oe(67294),Qe=(Le,we,ve)=>new Promise((mt,Ot)=>{var Tt=Cn=>{try{un(ve.next(Cn))}catch(ta){Ot(ta)}},An=Cn=>{try{un(ve.throw(Cn))}catch(ta){Ot(ta)}},un=Cn=>Cn.done?mt(Cn.value):Promise.resolve(Cn.value).then(Tt,An);un((ve=ve.apply(Le,we)).next())});function nt({onCancel:Le,callback:we}){let ve=(0,te.useRef)(),mt=(0,te.useRef)(),Ot=(0,te.useRef)(),Tt=(0,te.useRef)(!1);const An=(0,te.useRef)(!1),[un,Cn]=(0,te.useState)(0);function ta(){const ot=me.bx.make,Ln={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 me.S0(mt.current,{padding:20,grid:ot(me.s_,"Grid",ot(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ot(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:et=>{var bt=et.diagram.commandHandler.addTopLevelParts(et.diagram.selection,!0);bt||et.diagram.currentTool.doCancel()},commandHandler:ot($t),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:et=>{var bt=et.subject;bt.location=bt.location.copy().snapToGridPoint(et.diagram.grid.gridOrigin,et.diagram.grid.gridCellSize),setTimeout(()=>{et.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:et=>{var bt=et.subject;setTimeout(()=>{et.diagram.commandHandler.editTextBlock()})},LinkRelinked:et=>{var bt=et.parameter.part;bt.invalidateConnectedLinks();var Wt=et.subject;et.diagram.toolManager.linkingTool.isForwards?Wt.toNode.invalidateConnectedLinks():Wt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=ot(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),ot(me.bn,{name:"SHAPE",fill:Ln.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ot(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ot(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),ve.current.nodeTemplate.toolTip=ot("ToolTip",ot(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},ot(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),ot(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function Pe(et,bt){var Wt=(it,fn)=>{it.handled=!0,it.diagram.model.commit(Sn=>{var sa=fn.part.adornedPart,ca=new me.E9().setRectSpot(sa.actualBounds,et);ca.subtract(sa.location),ca.scale(2,2),ca.x+=Math.sign(ca.x)*130,ca.y+=Math.sign(ca.y)*130,ca.add(sa.location),ca.snapToGridPoint(it.diagram.grid.gridOrigin,it.diagram.grid.gridCellSize);var fa=Sn.copyNodeData(sa.data);Sn.setGroupKeyForNodeData(fa,Sn.getGroupKeyForNodeData(sa.data)),Sn.addNodeData(fa);var Fo={from:sa.key,to:Sn.getKeyForNodeData(fa)};Sn.addLinkData(Fo);var to=it.diagram.findNodeForData(fa);to.location=ca,it.diagram.select(to),setTimeout(()=>{it.diagram.commandHandler.editTextBlock()},20)})};return ot(me.bn,{figure:bt,alignment:et,alignmentFocus:et.opposite(),width:et.equals(me.z6.Top)||et.equals(me.z6.Bottom)?25:18,height:et.equals(me.z6.Top)||et.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:Ln.white,strokeWidth:4,mouseEnter:(it,fn)=>fn.fill="dodgerblue",mouseLeave:(it,fn)=>fn.fill="orange",isActionable:!0,click:Wt,contextClick:Wt})}function Ae(et){return ot(me.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(bt,Wt)=>Wt.fill="dodgerblue",mouseLeave:(bt,Wt)=>Wt.fill="orange",click:(bt,Wt)=>{bt.diagram.commandHandler.showContextMenu(Wt.part.adornedPart)}},et||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=ot(me.uz,"Spot",ot(me.Vm,{padding:10}),Pe(me.z6.Top,"TriangleUp"),Pe(me.z6.Left,"TriangleLeft"),Pe(me.z6.Right,"TriangleRight"),Pe(me.z6.Bottom,"TriangleDown"),Ae({alignment:new me.z6(.75,0)}));function $e(et,bt){return(Wt,it)=>{Wt.handled=!0,Wt.diagram.model.commit(fn=>{fn.set(it.part.adornedPart.data,et,bt)})}}function Ge(et,bt){return bt||(bt="color"),ot(me.bn,{width:16,height:16,stroke:"lightgray",fill:et,margin:1,background:"transparent",mouseEnter:(Wt,it)=>it.stroke="dodgerblue",mouseLeave:(Wt,it)=>it.stroke="lightgray",click:$e(bt,et),contextClick:$e(bt,et)})}function gt(){return[ot("ContextMenuButton",ot(me.s_,"Horizontal",Ge(Ln.white,"fill"),Ge(Ln.beige,"fill"),Ge(Ln.extralightblue,"fill"),Ge(Ln.extralightred,"fill"))),ot("ContextMenuButton",ot(me.s_,"Horizontal",Ge(Ln.lightgray,"fill"),Ge(Ln.lightgreen,"fill"),Ge(Ln.lightblue,"fill"),Ge(Ln.lightred,"fill")))]}function _e(){return[ot("ContextMenuButton",ot(me.s_,"Horizontal",Ge(Ln.black),Ge(Ln.green),Ge(Ln.blue),Ge(Ln.red))),ot("ContextMenuButton",ot(me.s_,"Horizontal",Ge(Ln.white),Ge(Ln.magenta),Ge(Ln.purple),Ge(Ln.orange)))]}function tt(et,bt){return bt||(bt="thickness"),ot(me.bn,"LineH",{width:16,height:16,strokeWidth:et,margin:1,background:"transparent",mouseEnter:(Wt,it)=>it.background="dodgerblue",mouseLeave:(Wt,it)=>it.background="transparent",click:$e(bt,et),contextClick:$e(bt,et)})}function Ve(et,bt){return bt||(bt="dash"),ot(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:et,margin:1,background:"transparent",mouseEnter:(Wt,it)=>it.background="dodgerblue",mouseLeave:(Wt,it)=>it.background="transparent",click:$e(bt,et),contextClick:$e(bt,et)})}function Ut(){return[ot("ContextMenuButton",ot(me.s_,"Horizontal",tt(1),tt(2),tt(3),tt(4))),ot("ContextMenuButton",ot(me.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function Nt(et,bt){return bt||(bt="figure"),ot(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:et,margin:1,background:"transparent",mouseEnter:(Wt,it)=>it.fill="dodgerblue",mouseLeave:(Wt,it)=>it.fill="lightgray",click:$e(bt,et),contextClick:$e(bt,et)})}ve.current.nodeTemplate.contextMenu=ot("ContextMenu",ot("ContextMenuButton",ot(me.s_,"Horizontal",Nt("Rectangle"),Nt("RoundedRectangle"),Nt("Ellipse"),Nt("Diamond"))),ot("ContextMenuButton",ot(me.s_,"Horizontal",Nt("Parallelogram2"),Nt("ManualOperation"),Nt("Procedure"),Nt("Cylinder1"))),ot("ContextMenuButton",ot(me.s_,"Horizontal",Nt("Terminator"),Nt("CreateRequest"),Nt("Document"),Nt("TriangleDown"))),gt(),_e(),Ut()),ve.current.groupTemplate=ot(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(et,bt)=>{var Wt=bt.addMembers(bt.diagram.selection,!0);Wt||bt.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),ot(me.s_,"Auto",{name:"BODY"},ot(me.bn,{parameter1:10,fill:Ln.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ot(me.Vm,{background:"transparent",margin:20})),ot(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),ve.current.groupTemplate.selectionAdornmentTemplate=ot(me.uz,"Spot",ot(me.s_,"Auto",ot(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ot(me.Vm,{margin:1.5})),Ae({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),ve.current.groupTemplate.contextMenu=ot("ContextMenu",gt(),_e(),Ut()),ve.current.linkTemplate=ot(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",et=>et>=1?10:0),new me.KX("toShortLength","dir",et=>et>=1?10:0),new me.KX("points").makeTwoWay(),ot(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ot(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",et=>et===1)),ot(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",et=>et>=1),new me.KX("width","thickness",et=>7+3*et),new me.KX("height","thickness",et=>7+3*et),new me.KX("segmentOffset","thickness",et=>new me.E9(-15,4+1.5*et))),ot(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",et=>et===2),new me.KX("width","thickness",et=>7+3*et),new me.KX("height","thickness",et=>7+3*et),new me.KX("segmentOffset","thickness",et=>new me.E9(-15,4+1.5*et))),ot(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),ve.current.linkTemplate.selectionAdornmentTemplate=ot(me.uz,ot(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:en(2)},new me.KX("pathPattern","thickness",en)),Ae({alignmentFocus:new me.z6(0,0,-6,-4)}));function en(et){return ot(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(et+4).toString()+" H3"})}function hn(et){var bt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return et===0?bt="M0 0 M16 16 M0 8 L16 8":et===2&&(bt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ot(me.bn,{geometryString:bt,margin:2,background:"transparent",mouseEnter:(Wt,it)=>it.background="dodgerblue",mouseLeave:(Wt,it)=>it.background="transparent",click:$e("dir",et),contextClick:$e("dir",et)})}function En(et){var bt=(Wt,it)=>{Wt.handled=!0,Wt.diagram.model.commit(fn=>{var Sn=it.part.adornedPart;fn.set(Sn.data,et?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(et?Sn.toNode:Sn.fromNode).invalidateConnectedLinks()})};return ot(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Wt,it)=>it.background="dodgerblue",mouseLeave:(Wt,it)=>it.background="transparent",click:bt,contextClick:bt})}function Ze(et,bt){var Wt=0,it=me.z6.RightSide;et.equals(me.z6.Top)?(Wt=270,it=me.z6.TopSide):et.equals(me.z6.Left)?(Wt=180,it=me.z6.LeftSide):et.equals(me.z6.Bottom)&&(Wt=90,it=me.z6.BottomSide),bt||(Wt-=180);var fn=(Sn,sa)=>{Sn.handled=!0,Sn.diagram.model.commit(ca=>{var fa=sa.part.adornedPart;ca.set(fa.data,bt?"toSpot":"fromSpot",me.z6.stringify(it)),(bt?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return ot(me.bn,{alignment:et,alignmentFocus:et.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Wt,background:"transparent",mouseEnter:(Sn,sa)=>sa.background="dodgerblue",mouseLeave:(Sn,sa)=>sa.background="transparent",click:fn,contextClick:fn})}ve.current.linkTemplate.contextMenu=ot("ContextMenu",_e(),Ut(),ot("ContextMenuButton",ot(me.s_,"Horizontal",hn(0),hn(1),hn(2))),ot("ContextMenuButton",ot(me.s_,"Horizontal",ot(me.s_,"Spot",En(!1),Ze(me.z6.Top,!1),Ze(me.z6.Left,!1),Ze(me.z6.Right,!1),Ze(me.z6.Bottom,!1)),ot(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},En(!0),Ze(me.z6.Top,!0),Ze(me.z6.Left,!0),Ze(me.z6.Right,!0),Ze(me.z6.Bottom,!0)))));const $a=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var ba=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Da(et){return console.log("shapeName:",et),ba.indexOf(et)>=0}var na=new me.YI(Ot.current,{maxSelectionCount:1,linkTemplate:ot(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:ot(me.uz,"Link",{locationSpot:me.z6.Center},ot(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ot(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),ot(me.bn,{isPanelMain:!0,strokeWidth:2}),ot(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(et=>({text:"\u672A\u547D\u540D",size:"100 100",figure:et.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ve.current.addDiagramListener("TextEdited",function(et){var bt;const Wt=et.subject.part;var it=(bt=document.activeElement)==null?void 0:bt.value;typeof it=="string"&&it.trim()===""&&ve.current.model.commit(function(fn){fn.set(Wt.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),na.nodeTemplate=ot(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),ot(me.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),ot(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{ve.current.grid=ot(me.s_,"Grid",ot(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ot(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ve.current.grid.visible=!0,ve.current.grid.gridCellStroke="darkgray",ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ve.current,ve.current}const Ia=()=>Qe(this,null,function*(){var ot=ve.current.makeImage();const Ln=yield(0,Xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ot.src}});we({src:Ln.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{ta()},500),Cn(un+1),()=>{ve.current=null}),[]),be.createElement("div",{ref:An,className:Tt.current?`${Be.maxH60} body-overflow-initial`:"body-overflow-initial"},be.createElement(Ue.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:be.createElement(rt.Z,null,be.createElement(wt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),be.createElement(wt.Z,{onClick:()=>{var ot,Ln,Pe=ve.current.selection.first();if(Tt.current=!Tt.current,document.activeElement&&Pe){let Ae=(Ln=(ot=document.activeElement)==null?void 0:ot.value)==null?void 0:Ln.trim();typeof Ae=="string"&&ve.current.model.commit(function($e){$e.set(Pe.data,"text",Ae||"\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}Cn(un+1)}},be.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},be.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Be.flowChartWrp},be.createElement("div",{style:{display:"flex",height:"100%"}},be.createElement("div",{style:{width:"300px",height:"100%"}},be.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),be.createElement("div",{style:{height:"calc(100% - 50px)"},className:Be.myPaletteDiv,ref:Ot})),be.createElement("div",{style:{flex:1,position:"relative"}},be.createElement("div",{ref:mt,style:{height:"80vh"}}))),be.createElement("div",{className:"tr"},be.createElement(Ne.ZP,{size:"large",onClick:Ia,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var pt=nt,It=oe(78045),kt=oe(31795);const Qt=It.ZP.Group,ln={margin:"0 8px"};var sn=({callback:Le,onCancel:we})=>{function ve(mt){Le(mt)}return te.createElement(ce.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:ln},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:ln},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(kt.Z,null)),te.createElement("span",{style:ln},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(kt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:ln},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(Qt,null,te.createElement(It.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(It.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(It.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(It.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ne.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},rn=oe(47897),jn=oe(61016),Rn=oe.n(jn),In=(0,te.forwardRef)(({use3d:Le,width:we,height:ve,callback:mt,showSaveButton:Ot},Tt)=>{const An=(0,te.useRef)(),un=(0,te.useRef)(),[Cn,ta]=(0,te.useState)(!1),Ia=(0,te.useRef)({id:An,appName:"graphing",width:we||1e3,height:ve||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{un.current=new(Rn())(Ia.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const ot=()=>{var Ln=window.ggbApplet.getPNGBase64(1,!0,72);return mt&&mt(Ln),Ln};return(0,te.useEffect)(()=>{Ia.current.appName=Cn?"3D":"graphing",un.current.inject("applet_container")},[Cn]),(0,te.useEffect)(()=>{ta(Le)},[Le]),(0,te.useImperativeHandle)(Tt,()=>({getImgData:ot})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:An}),te.createElement(rt.Z,{align:"middle"},te.createElement(wt.Z,{flex:1},te.createElement(rn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:Ln=>ta(Ln)})),te.createElement(wt.Z,null,te.createElement(Ne.ZP,{size:"large",onClick:ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Hn=oe(36527),ye=oe(25934),Oe=oe(2453);const Ye="link",ht="upload-image",Lt="add-flowchart",Kt="draw-image",_t="add-flowchart",Gt="code-block",Zt="add-table",Pn="------------",qt={default:Pn,left:`:${Pn}`,center:`:${Pn}:`,right:`${Pn}:`};var Dn=oe(99914),Kn=(Le,we,ve)=>new Promise((mt,Ot)=>{var Tt=Cn=>{try{un(ve.next(Cn))}catch(ta){Ot(ta)}},An=Cn=>{try{un(ve.throw(Cn))}catch(ta){Ot(ta)}},un=Cn=>Cn.done?mt(Cn.value):Promise.resolve(Cn.value).then(Tt,An);un((ve=ve.apply(Le,we)).next())});function Xn(){}let la=0;const Tn=1e4,$n="\u2581",_n="@\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`,zn=["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={[Ye]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ht]:"\u6DFB\u52A0\u56FE\u7247",[Kt]:"\u6DFB\u52A0\u753B\u56FE",[Lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Zt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qa=({defaultValue:Le="",onChange:we,width:ve="100%",height:mt=400,miniToolbar:Ot=!1,isFocus:Tt=!1,watch:An,insertTemp:un,mode:Cn="markdown",id:ta="markdown-editor-id",showResizeBar:Ia=!1,noStorage:ot=!1,showNullButton:Ln=!1,showNullProgramButton:Pe=!1,hidetoolBar:Ae=!1,fullScreen:$e=!1,onBlur:Ge,onCMBeforeChange:gt,onFullScreen:_e,className:tt="",disablePaste:Ve=!1,disabled:Ut=!1,disabledFill:Nt=!1,placeholder:en="",values:hn="",extraUse:En})=>{const[Ze,$a]=(0,te.useState)(null),[ba,Da]=(0,te.useState)(Le),[na,et]=(0,te.useState)(An),[bt,Wt]=(0,te.useState)($e),[it,fn]=(0,te.useState)(""),[Sn,sa]=(0,te.useState)(0),[ca,fa]=(0,te.useState)(mt),[Fo,to]=(0,te.useState)(!1),Io=(0,te.useRef)((0,ye.Z)()),xo=(0,te.useRef)(!1),Ka=(0,te.useRef)(),[va,io]=(0,te.useState)(0),[po,yo]=(0,te.useState)(0),Xa=(0,te.useRef)(),Ra=(0,te.useRef)(),fo=(0,te.useRef)(),nn=(0,te.useRef)(),pa=()=>Kn(void 0,null,function*(){var zt;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Io.current}});(zt=Pt==null?void 0:Pt.attachments)!=null&&zt.length&&(console.log("cm:",Ze,Xa),Pt.attachments.map(Et=>{Et.content_type.indexOf("image")>-1?Ze.replaceSelection(`![,](/api/attachments/${Et.id}?type=${Et.content_type})`):Et.content_type.indexOf("video")>-1?Ze.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Et.content_type.indexOf("pdf")>-1?Ze.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Et.id}?type=${Et.content_type}&disposition=inline" target="_blank">${Et.name}</a>`):Ze.replaceSelection(`[${Et.name}](${ENV.API_SERVER}/api/attachments/${Et.id}?type=${Et.content_type})`)}))});(0,te.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;Da(hn),Ze==null||Ze.setValue(hn),window.scrollTo(0,zt)},[hn]),(0,te.useEffect)(()=>{_e==null||_e(bt)},[bt]),(0,te.useEffect)(()=>{if(Xa.current){let zt=function(Et,Mt){var On;if(Ve){Mt.preventDefault();return}const Sa=Mt.clipboardData;if(Sa){const ka=Sa.types.toString(),Ma=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(Mt.preventDefault(),Cn=="stex")return;try{let xa=Ma[1];((On=Ma[0])==null?void 0:On.kind)==="file"&&(xa=Ma[0]);const Xt=xa.getAsFile(),wn=Xt.name.split(".").pop();(0,Ce.I)(Xt,Nn=>{var yn,Zn,Ba;Nn.id?((yn=Xt==null?void 0:Xt.type)==null?void 0:yn.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Nn.id}?type=${Nn.content_type})" alt="" />`):((Zn=Xt==null?void 0:Xt.type)==null?void 0:Zn.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Nn.id}"></video>`):((Ba=Xt==null?void 0:Xt.type)==null?void 0:Ba.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Nn.id}?type=${Xt.type}&disposition=inline" target="_blank">${Xt.name}</a>`):zn.includes(wn)?Pt.replaceSelection(`<a href="/api/attachments/${Nn.id}?type=office&disposition=inline" target="_blank">${Xt.name}</a>`):Pt.replaceSelection(`[${Xt.name}](/api/attachments/${Nn.id}?type=${Nn.content_type})`):(Nn==null?void 0:Nn.status)===401&&(Oe.ZP.warning((Nn==null?void 0:Nn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){Oe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Je().fromTextArea(Xa.current,{mode:Cn,lineNumbers:!Ot,lineWrapping:!0,value:Le,autoCloseTags:!Pe,autoCloseBrackets:!0});return Pt.on("keyup",function(Et,Mt){Mt.keyCode===8&&(Et.getValue()==""?Pt.setOption("placeholder",en):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(Et,Mt){if(Mt.keyCode===8){var On=Na(Et);On&&Mt.preventDefault()}}),Tt&&Pt.focus(),Pt.on("paste",zt),Pt.on("dragleave",function(Et,Mt){Ra.current.classList.remove("mouse-hover-md")}),Ut&&Pt.on("beforeChange",function(Et,Mt){(Mt.origin==="paste"||Mt.origin==="+input")&&Mt.cancel()}),$a(Pt),()=>{Pt.off("paste",zt)}}},[]);const Fa=(0,te.useCallback)(()=>{if(Ra.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[ca,Ra,bt]);(0,te.useEffect)(()=>{function zt(){let Pt=new je.Z(Et=>{for(let Mt of Et)(Mt.target.offsetHeight>0||Mt.target.offsetWidth>0)&&(Fa(),Ze.setSize("100%","100%"),Ze.refresh())});return Pt.observe(Xa.current.parentElement),Pt}if(Ze){const Pt=zt();return()=>{var Et,Mt;(Et=Xa.current)!=null&&Et.parentElement&&Pt.unobserve((Mt=Xa.current)==null?void 0:Mt.parentElement)}}},[Ze,Fa]),(0,te.useEffect)(()=>{if(Ze){let zt=[];for(const[Pt,Et]of Object.entries(Ua)){let Mt={[Pt]:()=>{Ja(Et)}};zt.push(Mt),Ze.addKeyMap(Mt)}return Ka.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Ka.current);for(let Pt of zt)Ze.removeKeyMap(Pt)}}},[Ze]),(0,te.useEffect)(()=>{$e!==bt&&Wt($e)},[$e]),(0,Dn.Z)(()=>{if(!ot&&Sn>0){let zt=new Date().getTime(),Pt=window.sessionStorage.getItem(ta);zt>=Sn+Tn&&(!Pt||Pt!==ba)&&(window.sessionStorage.setItem(ta,ba),to(!0))}},Tn),(0,te.useEffect)(()=>{et(An)},[Ze,An]),(0,te.useEffect)(()=>{Ze&&Tt&&Ze.focus()},[Ze,Tt]),(0,te.useEffect)(()=>{if(na&&Ze){let zt=function(Et){let Mt=Et.target;if(nn.current){let On=Mt.scrollTop/Mt.scrollHeight;nn.current.scrollTop=nn.current.scrollHeight*On}};const Pt=Ze.getScrollerElement();return Pt.addEventListener("scroll",zt),()=>{Pt.removeEventListener("scroll",zt)}}},[Ze,na]),(0,te.useEffect)(()=>{if(Ze&&gt){let zt=function(Pt,Et){gt(Pt,Et)};return Ze.on("beforeChange",zt),()=>{Ze.off("beforeChange",zt)}}},[Ze,gt]),(0,te.useEffect)(()=>{if(Ze&&Ge){let zt=function(){Ge(Ze.getValue())};return Ze.on("blur",zt),()=>{Ze.off("blur",zt)}}},[Ze,Ge]);function Na(zt,Pt){var Et=zt.getDoc(),Mt=Et.getCursor(),On=Et.getLine(Mt.line),Sa=On.charAt(Mt.ch-1),ka=On.lastIndexOf("@\u2581@",Mt.ch),Ma=On.lastIndexOf("@\u2581\u2581@",Mt.ch),xa=ka>Ma?ka:Ma,Xt=ka>Ma?3:4;if(_n.indexOf(Sa)===-1)return null;if(console.log("change1:",Pt,zt,On,Mt,xa,ka,Ma,Sa),xa>=0&&Mt.ch-xa<5){var wn=xa+Xt;return Et.replaceRange("",{line:Mt.line,ch:xa},{line:Mt.line,ch:wn}),{line:Mt.line,ch:wn}}return null}(0,te.useEffect)(()=>{if(Ze){let zt=function(Pt,Et){const Mt=Pt.getValue();Da(Mt),sa(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Pe?we(Mt,Qo(Mt)):we(Mt))};return Ze.on("change",zt),()=>{Ze.off("change",zt)}}},[Ze,we]),(0,te.useEffect)(()=>{if(Ze)if(Le==null)Ze.setValue(""),Da("");else{const zt=window.scrollY||window.pageYOffset;Le!==Ze.getValue()&&(Ze.setValue(Le),Da(Le),Ze.setCursor(Ut?1:Ze.lineCount(),0),window.scrollTo(0,zt))}},[Ze,Le]);const Ja=(0,te.useCallback)(zt=>{const Pt=Ze.getCursor(),Et=Ze.getSelection();let Mt=Et.split(`
`);switch(zt){case"bold":return Ze.replaceSelection("**"+Et+"**"),Et===""&&Ze.setCursor(Pt.line,Pt.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+Et+"*"),Et===""&&Ze.setCursor(Pt.line,Pt.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+Et+"`"),Et===""&&Ze.setCursor(Pt.line,Pt.ch+1),Ze.focus();case"inline-latex":return fn("inline-latex"),Ze.focus();case"latex":return Ze.replaceSelection("```latex\n"+Et+"\n```"),Ze.setCursor(Pt.line+1,Et.length+1),Ze.focus();case"line-break":return Ze.replaceSelection(`<br/>
`),Ze.focus();case"list-ul":return Et===""?Ze.replaceSelection("- "+Et):Ze.replaceSelection(Mt.map(On=>On===""?"":`- ${On}`).join(`
`)),Ze.focus();case"list-ol":return Et===""?Ze.replaceSelection("1. "+Et):Ze.replaceSelection(Mt.map((On,Sa)=>On===""?"":`${Sa+1}. ${On}`).join(`
`)),Ze.focus();case"add-null-ch":return Et===""&&Ze.setCursor(Pt.line,Pt.ch),Ze.replaceSelection($n),Ze.focus();case"add-signal":return Et===""&&Ze.setCursor(Pt.line,Pt.ch),Ze.replaceSelection(ua),Ze.focus();case"add-multiple":return Et===""&&Ze.setCursor(Pt.line,Pt.ch),Ze.replaceSelection(_n),Ze.focus();case"inster-template-1":return Et===""&&Ze.setCursor(Pt.line,Pt.ch),Ze.replaceSelection(ma),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return et(!na),Ze.focus();case"trigger-full-screen":return Wt(!bt),Ze.focus();case Ye:fn(Ye);return;case Gt:fn(Gt);return;case ht:fn(ht);return;case Kt:fn(Kt);return;case"maths-latex":fn("maths-latex");return;case Lt:fn(Lt);return;case Zt:fn(Zt);return;default:throw new Error}},[Ze,na,bt]),La=(0,te.useCallback)((zt,Pt)=>{var Et,Mt,On,Sa,ka,Ma;switch(fn(""),it){case Ye:const{title:yn,link:Zn}=zt;return Ze.replaceSelection(`[${yn}](${Zn})`),Ze.focus();case Gt:const{language:Ba,content:bo}=zt;return Ze.replaceSelection(["```"+Ba,bo,"```"].join(`
`)),Ze.focus();case"maths-latex":for(var xa=atob(zt),Xt=new Uint8Array(xa.length),wn=0;wn<xa.length;wn++)Xt[wn]=xa.charCodeAt(wn);var Nn=new Blob([Xt],{type:"image/png"});(0,Ce.I)(Nn,lo=>{lo.id?Ze.replaceSelection(`![,](/api/attachments/${lo.id}?type=${lo.content_type})`):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ze.replaceSelection("`$$"+zt+"$$`");break;case ht:case Kt:case _t:const{src:ao,alt:Lo}=zt,Oa=Pt,zr=(On=(Mt=(Et=Oa==null?void 0:Oa.name)==null?void 0:Et.split("."))==null?void 0:Mt.pop)==null?void 0:On.call(Mt);return((Sa=Oa==null?void 0:Oa.type)==null?void 0:Sa.indexOf("image"))>-1||!(Oa!=null&&Oa.type)?Oa.align||Oa.width?Ze.replaceSelection(`<p style="text-align:${Oa.align||"initial"}"><img width="${Oa.width?Oa.width+"%":"initial"}" src="${ao}" alt="${Lo||""}" /></p>`):Ze.replaceSelection(`<img width="100%" src="${ao}" alt="${Lo||""}" />`):((ka=Oa==null?void 0:Oa.type)==null?void 0:ka.indexOf("video"))>-1?Ze.replaceSelection(`<video width="100%" controls src="${ao}"></video>`):((Ma=Oa==null?void 0:Oa.type)==null?void 0:Ma.indexOf("pdf"))>-1?Ze.replaceSelection(`<a href="${ao}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):zn.includes(zr)?Ze.replaceSelection(`<a href="${ao}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):Ze.replaceSelection(`[${Oa.name}](${ao})`),Ze.focus();case Zt:const{row:Ar,col:cr,align:Cr}=zt;let qo=`
`;for(let lo=0;lo<Ar;lo++){let Ir=[],fr=[];for(let Dr=0;Dr<cr;Dr++)lo===1&&fr.push(qt[Cr]),Ir.push(" ");lo===1&&(qo+=`| ${fr.join(" | ")} |
`),qo+=`| ${Ir.join(cr===1?"":" | ")} |
`}return Ze.replaceSelection(qo+`
`),Ze.focus();default:throw new Error}},[Ze,it]),Wo=(0,te.useMemo)(()=>{switch(it){case Ye:return te.createElement(bn,{callback:La,onCancel:wa});case Gt:return te.createElement(cn.Z,{callback:La,onCancel:wa});case ht:return te.createElement(Ce.Z,{callback:La,onCancel:wa});case Lt:return te.createElement(pt,{callback:La,onCancel:wa});case Zt:return te.createElement(sn,{callback:La,onCancel:wa});case"maths-latex":return te.createElement(In,{showSaveButton:!0,callback:La});case"inline-latex":return te.createElement(Hn.Z,{showSaveButton:!0,callback:La});default:return null}},[it]);function wa(){fn("")}(0,te.useEffect)(()=>{if(fo.current){let zt=function(ka){On=!0,Sa=ka.pageY},Pt=function(){On=!1},Et=function(ka){if(On){let Ma=ka.pageY-Sa;Ma<0&&(Ma=0),Ma>300&&(Ma=300);let xa=mt+Ma+"px";fa(xa)}},Mt=fo.current,On=!1,Sa=0;return Mt.addEventListener("mousedown",zt),document.addEventListener("mousemove",Et),document.addEventListener("mouseup",Pt),()=>{Mt.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",Pt)}}},[Ze,fo]),(0,te.useEffect)(()=>{fa(mt)},[mt]);const Yn=Pa(ve),Qn=Pa(ca),no={width:Yn,height:Qn},Do=(0,te.useMemo)(()=>{if(Sn){let zt=new Date(Sn),Pt=zt.getHours(),Et=zt.getMinutes(),Mt=zt.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,Et=Et<10?"0"+Et:Et,Mt=Mt<10?"0"+Mt:Mt,`${Pt}:${Et}:${Mt}`}return 0},[Sn]),Qo=zt=>{const Pt=[];if(Pe){let Et=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function(Mt,On,Sa){Pt.push({multiLine:Mt!==ua})})}return Pt};function Lr(){window.sessionStorage.removeItem(ta),to(!1),sa(0)}function wr(){to(!1),sa(0),Ze.setValue(window.sessionStorage.getItem(ta))}(0,te.useEffect)(()=>{eo[it]&&it!==Kt&&it!==Lt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-zt.offsetWidth/2,Et=window.innerHeight/2-zt.offsetHeight/2;io(Pt),yo(Et)},0)},[it]);const Jo=zt=>{zt.preventDefault();const Pt=zt.clientX-va,Et=zt.clientY-po;document.body.onmousemove=Mt=>{let On=Mt.clientX-Pt,Sa=Mt.clientY-Et;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ma=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;On=Math.max(0,Math.min(On,Ma)),Sa=Math.max(0,Math.min(Sa,xa)),mr(Mt.clientX,Mt.clientY,Pt,Et)&&(io(On),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(zt,Pt,Et,Mt)=>{const On=document.body.clientHeight,Sa=document.body.clientWidth;return zt<20&&Et>zt||zt>Sa-20&&Et<zt||Pt<20&&Mt>Pt||Pt>On-20&&Mt<Pt?(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 ${tt} ${na?"on-preview":""} ${Ot?"mini":""} ${bt?"full-screen":""}`,style:no},te.createElement(de,{insertTemp:un,watch:na,fullScreen:bt,showNullButton:Ln,showNullProgramButton:Pe,onActionCallback:Ja,hidetoolBar:Ae,extraUse:En}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Xa,placeholder:en})),na?te.createElement("div",{ref:nn,className:"preview-container"},Cn==="stex"&&te.createElement(ke,{value:ba}),Cn!=="stex"&&te.createElement(Ke.Z,{disabledFill:Nt,showProgramFill:Pe,value:ba})):null))),Ia?te.createElement("a",{ref:fo,className:"editor-resize"}):null,it===Kt&&te.createElement(Ct,{callback:La,onCancel:wa}),it===Lt&&te.createElement(pt,{callback:La,onCancel:wa}),te.createElement(he.Z,null,eo[it]&&it!==Kt&&it!==Lt?te.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:va,top:po},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Jo},eo[it]),open:!0,onCancel:wa,footer:null,destroyOnClose:!0,width:it===Lt?"1200px":null,height:it===Lt?"80vh":null,className:"markdown-popup-form"},Wo):null))}},70859:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return ge},I:function(){return he}});var te=oe(22150),pe=oe(2453),Je=oe(69677),je=oe(93421),fe=oe(31795),Fe=oe(78045),ue=oe(71577),Ie=oe(15476),Te=oe(67294),xe=oe(52262),Ke=oe(67294),ke=Object.defineProperty,Re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ce,De,Ne)=>De in ce?ke(ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):ce[De]=Ne,x=(ce,De)=>{for(var Ne in De||(De={}))y.call(De,Ne)&&b(ce,Ne,De[Ne]);if(a)for(var Ne of a(De))E.call(De,Ne)&&b(ce,Ne,De[Ne]);return ce},z=(ce,De)=>Re(ce,ae(De));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ce,onCancel:De})=>{const[Ne]=ee();let st=(0,Te.useRef)();function xt(dt){st.current.width=Ne.getFieldValue("width"),st.current.align=Ne.getFieldValue("align"),ce(dt,st.current)}function gn(dt,qe){if(dt.status===-1){pe.ZP.error(dt.message);return}Ne.setFieldsValue({src:`/api/attachments/${dt.id}`,type:qe.type})}function Me(dt){let qe=dt.target.files[0];st.current=qe,he(qe,gn)}return Ke.createElement(te.default,z(x({form:Ne},re),{className:"upload-image-panel",onFinish:xt,style:{width:470,overflow:"hidden"}}),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ke.createElement("div",{className:"flex-container"},Ke.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ke.createElement(Je.default,{style:ne})),Ke.createElement(de,{onFileChange:Me}))),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ke.createElement(Je.default,{style:{width:264}})),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ke.createElement(je.Z,null,Ke.createElement(te.default.Item,{name:"width",style:{margin:0}},Ke.createElement(fe.Z,{style:{width:264}})),Ke.createElement("span",{className:"ml8"},"%"))),Ke.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ke.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ke.createElement("aside",null,Ke.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ke.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ke.createElement(ue.ZP,{type:"default",onClick:De},"\u53D6\u6D88"))))};function de({onFileChange:ce}){return Ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ke.createElement("input",{type:"file",onChange:ce}))}function he(ce,De){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,xe.bg)())throw pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ne=new FormData;Ne.append("editormd-image-file",ce),Ne.append("file_param_name","editormd-image-file"),Ne.append("byxhr","true");var st=new window.XMLHttpRequest;st.withCredentials=!0,st.addEventListener("load",function(xt){De(JSON.parse(xt.target.responseText),ce)},!1),st.addEventListener("error",function(xt){console.error(xt)},!1),st.open("POST",`${Ie.KI}/api/attachments.json`),st.send(Ne)}},76621:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Je}});var te=oe(67294),pe=oe(73935);class Je extends te.Component{constructor(fe){super(fe);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,pe.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return pe}});var te=oe(67294);function pe(Je,je){const fe=(0,te.useRef)();(0,te.useEffect)(()=>{fe.current=Je}),(0,te.useEffect)(()=>{function Fe(){fe.current()}if(je!==null){let ue=setInterval(Fe,je);return()=>clearInterval(ue)}},[je])}},38361:function(ze,ct,oe){"use strict";oe.r(ct),oe.d(ct,{default:function(){return De}});var te=oe(67294),pe=oe(35973),Je=oe(22150),je=oe(2453),fe=oe(85673),Fe=oe(69677),ue=oe(59810),Ie=oe(71230),Te=oe(15746),xe=oe(31795),Ke=oe(84567),ke=oe(71577),Re=oe(35567),ae=oe(86763),a=oe(11320),y={bg:"bg___iB8eB",flexRow:"flexRow___rWsOs",flexJustifyCenter:"flexJustifyCenter___GenLk",flexAlignEnd:"flexAlignEnd___AMfei",flexAlignCenter:"flexAlignCenter___rQos5",flexColumn:"flexColumn___fJhyT",formWrap:"formWrap___pNpQ9",titleWrap:"titleWrap____VSL0",fieldWrap:"fieldWrap___ACUG9",mdWrap:"mdWrap___xFqQa",backgroundFa:"backgroundFa___MuFzN",button:"button___tzh3S"},E=Object.defineProperty,b=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(Ne,st,xt)=>st in Ne?E(Ne,st,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Ne[st]=xt,ge=(Ne,st)=>{for(var xt in st||(st={}))ee.call(st,xt)&&re(Ne,xt,st[xt]);if(z)for(var xt of z(st))ne.call(st,xt)&&re(Ne,xt,st[xt]);return Ne},de=(Ne,st)=>b(Ne,x(st)),he=(Ne,st,xt)=>new Promise((gn,Me)=>{var dt=ut=>{try{at(xt.next(ut))}catch(Bt){Me(Bt)}},qe=ut=>{try{at(xt.throw(ut))}catch(Bt){Me(Bt)}},at=ut=>ut.done?gn(ut.value):Promise.resolve(ut.value).then(dt,qe);at((xt=xt.apply(Ne,st)).next())});const ce=({shixunHomeworks:Ne,newCourse:st,globalSetting:xt,loading:gn,dispatch:Me})=>{var dt;const qe=(0,pe.useParams)(),[at]=Je.default.useForm(),[ut,Bt]=(0,te.useState)({}),[Yt,bn]=(0,te.useState)(!1),[cn,Ce]=(0,te.useState)([]),[Ue,rt]=(0,te.useState)([]),{commonHomeWorkEditDefaultData:Rt}=Ne,lt={name:"file",multiple:!0,action:a.Z.API_SERVER+"/api/attachments.json",defaultFileList:cn,onChange($t){const{status:tn}=$t.file;tn==="done"?je.ZP.success(`${$t.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):tn==="error"&&je.ZP.error(`${$t.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,te.useEffect)(()=>{me()},[qe.topicId]);const Ct=$t=>$t==null?void 0:$t.map(tn=>({uid:tn.id,response:{id:tn.id},name:tn.title,status:"done",url:tn.url})),me=()=>he(void 0,null,function*(){const $t=yield Me({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:qe.topicId}});$t&&(at.setFieldsValue({name:$t.name}),at.setFieldsValue({description:$t.description}),at.setFieldsValue(ge({},$t)),Bt(ge({},$t)),Ce([...Ct($t.attachments)]),rt([...Ct($t.reference_attachments)]),bn(!0))}),St=$t=>he(void 0,null,function*(){var tn,wt;const Xe=ge({},$t);Xe.attachment_ids&&(Xe.attachment_ids=(tn=Xe==null?void 0:Xe.attachment_ids.fileList)==null?void 0:tn.map(be=>be.response.id)),Xe.reference_attachment_ids&&(Xe.reference_attachment_ids=(wt=Xe==null?void 0:Xe.reference_attachment_ids.fileList)==null?void 0:wt.map(be=>be.response.id)),(yield(0,ae.yT)(de(ge(ge({id:qe.topicId},qe),Xe),{type:3})))&&pe.history.push(`/users/${qe.username}/topics/${qe.topicId}/${qe.topictype}/group/detail`)});return te.createElement("section",{className:y.bg},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},te.createElement(fe.Z,{separator:">"},te.createElement(fe.Z.Item,null,te.createElement(pe.Link,{to:`/users/${qe.username}/${qe.topictype==="personal"?"topics":"topicbank"}/${qe.topictype}`},qe.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),te.createElement(fe.Z.Item,null,te.createElement(pe.Link,{to:`/users/${qe.username}/topics/${qe.topicId}/${qe.topictype}/group/detail`},"\u8BE6\u60C5")),te.createElement(fe.Z.Item,null,"\u7F16\u8F91")))),te.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u666E\u901A\u4F5C\u4E1A"),te.createElement(Je.default,{form:at,className:y.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{Bt(ge({},at.getFieldsValue()))},onFinish:St},te.createElement("div",{className:y.fieldWrap},te.createElement(Je.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},te.createElement(Fe.default,{maxLength:60,suffix:`${((dt=ut.name)==null?void 0:dt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),te.createElement("div",{className:y.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(Re.Z,{watch:!0,defaultValue:Rt.description})),te.createElement("div",null,te.createElement(Je.default.Item,{name:"attachment_ids"},Yt&&te.createElement(ue.default,ge({defaultFileList:cn},lt),te.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09"))),te.createElement(Ie.Z,{gutter:[20,20]},te.createElement(Te.Z,{flex:"230px"},te.createElement(Je.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},te.createElement(xe.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),te.createElement(Te.Z,{flex:"230px"},te.createElement(Je.default.Item,{name:"max_num",label:te.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},te.createElement(xe.Z,{style:{width:200},max:10,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),te.createElement(Te.Z,null,te.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),te.createElement(Ie.Z,null,te.createElement(Te.Z,null,te.createElement(Je.default.Item,{name:"base_on_project",valuePropName:"checked"},te.createElement(Ke.default,{value:1,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),te.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),te.createElement("div",{className:y.mdWrap},te.createElement(Je.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},te.createElement(Re.Z,{defaultValue:Rt.reference_answer,watch:!0})),te.createElement("div",null,te.createElement(Je.default.Item,{name:"reference_attachment_ids"},Yt&&te.createElement(ue.default,de(ge({},lt),{defaultFileList:Ue}),te.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),te.createElement("div",{className:y.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(Je.default.Item,null,te.createElement(ke.ZP,{size:"middle",type:"primary",className:`${y.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),te.createElement(ke.ZP,{size:"middle",type:"primary",ghost:!0,className:y.button,onClick:()=>pe.history.push(`/users/${qe.username}/topics/${qe.topicId}/${qe.topictype}/group/detail`)},"\u53D6\u6D88"))))))};var De=(0,pe.connect)(({shixunHomeworks:Ne,newCourse:st,loading:xt,globalSetting:gn})=>({shixunHomeworks:Ne,newCourse:st,globalSetting:gn,loading:xt.effects}))(ce)},57838:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return pe}});var te=oe(67294);function pe(){const[,Je]=te.useReducer(je=>je+1,0);return Je}},85673:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return gn}});var te=oe(94184),pe=oe.n(te),Je=oe(37419),je=oe(1337),fe=oe(67294),Fe=oe(96159),ue=oe(53124),Ie=oe(42922),Te=oe(56153);const xe=Me=>{let{children:dt}=Me;const{getPrefixCls:qe}=fe.useContext(ue.E_),at=qe("breadcrumb");return fe.createElement("li",{className:`${at}-separator`,"aria-hidden":"true"},dt===""?dt:dt||"/")};xe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ke=xe,ke=function(Me,dt){var qe={};for(var at in Me)Object.prototype.hasOwnProperty.call(Me,at)&&dt.indexOf(at)<0&&(qe[at]=Me[at]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,at=Object.getOwnPropertySymbols(Me);ut<at.length;ut++)dt.indexOf(at[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,at[ut])&&(qe[at[ut]]=Me[at[ut]]);return qe};function Re(Me,dt){if(Me.title===void 0||Me.title===null)return null;const qe=Object.keys(dt).join("|");return typeof Me.title=="object"?Me.title:String(Me.title).replace(new RegExp(`:(${qe})`,"g"),(at,ut)=>dt[ut]||at)}function ae(Me,dt,qe,at){if(qe==null)return null;const{className:ut,onClick:Bt}=dt,Yt=ke(dt,["className","onClick"]),bn=Object.assign(Object.assign({},(0,je.Z)(Yt,{data:!0,aria:!0})),{onClick:Bt});return at!==void 0?fe.createElement("a",Object.assign({},bn,{className:pe()(`${Me}-link`,ut),href:at}),qe):fe.createElement("span",Object.assign({},bn,{className:pe()(`${Me}-link`,ut)}),qe)}function a(Me,dt){return(at,ut,Bt,Yt,bn)=>{if(dt)return dt(at,ut,Bt,Yt);const cn=Re(at,ut);return ae(Me,at,cn,bn)}}var y=function(Me,dt){var qe={};for(var at in Me)Object.prototype.hasOwnProperty.call(Me,at)&&dt.indexOf(at)<0&&(qe[at]=Me[at]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,at=Object.getOwnPropertySymbols(Me);ut<at.length;ut++)dt.indexOf(at[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,at[ut])&&(qe[at[ut]]=Me[at[ut]]);return qe};const E=Me=>{const{prefixCls:dt,separator:qe="/",children:at,menu:ut,overlay:Bt,dropdownProps:Yt,href:bn}=Me,Ce=(Ue=>{if(ut||Bt){const rt=Object.assign({},Yt);if(ut){const Rt=ut||{},{items:lt}=Rt,Ct=y(Rt,["items"]);rt.menu=Object.assign(Object.assign({},Ct),{items:lt==null?void 0:lt.map((me,St)=>{var{key:$t,title:tn,label:wt,path:Xe}=me,Be=y(me,["key","title","label","path"]);let be=wt!=null?wt:tn;return Xe&&(be=fe.createElement("a",{href:`${bn}${Xe}`},be)),Object.assign(Object.assign({},Be),{key:$t!=null?$t:St,label:be})})})}else Bt&&(rt.overlay=Bt);return fe.createElement(Te.Z,Object.assign({placement:"bottom"},rt),fe.createElement("span",{className:`${dt}-overlay-link`},Ue,fe.createElement(Ie.Z,null)))}return Ue})(at);return Ce!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,Ce),qe&&fe.createElement(Ke,null,qe)):null},b=Me=>{const{prefixCls:dt,children:qe,href:at}=Me,ut=y(Me,["prefixCls","children","href"]),{getPrefixCls:Bt}=fe.useContext(ue.E_),Yt=Bt("breadcrumb",dt);return fe.createElement(E,Object.assign({},ut,{prefixCls:Yt}),ae(Yt,ut,qe,at))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=Me=>{const{componentCls:dt,iconCls:qe}=Me;return{[dt]:Object.assign(Object.assign({},(0,z.Wf)(Me)),{color:Me.itemColor,fontSize:Me.fontSize,[qe]:{fontSize:Me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Me.linkColor,transition:`color ${Me.motionDurationMid}`,padding:`0 ${Me.paddingXXS}px`,borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",marginInline:-Me.marginXXS,"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover}},(0,z.Qy)(Me)),"li:last-child":{color:Me.lastItemColor},[`${dt}-separator`]:{marginInline:Me.separatorMargin,color:Me.separatorColor},[`${dt}-link`]:{[`
> ${qe} + span,
> ${qe} + a
`]:{marginInlineStart:Me.marginXXS}},[`${dt}-overlay-link`]:{borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",padding:`0 ${Me.paddingXXS}px`,marginInline:-Me.marginXXS,[`> ${qe}`]:{marginInlineStart:Me.marginXXS,fontSize:Me.fontSizeIcon},"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover,a:{color:Me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Me.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Me=>{const dt=(0,ne.TS)(Me,{});return[re(dt)]},Me=>({itemColor:Me.colorTextDescription,lastItemColor:Me.colorText,iconFontSize:Me.fontSize,linkColor:Me.colorTextDescription,linkHoverColor:Me.colorText,separatorColor:Me.colorTextDescription,separatorMargin:Me.marginXS})),de=function(Me,dt){var qe={};for(var at in Me)Object.prototype.hasOwnProperty.call(Me,at)&&dt.indexOf(at)<0&&(qe[at]=Me[at]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,at=Object.getOwnPropertySymbols(Me);ut<at.length;ut++)dt.indexOf(at[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,at[ut])&&(qe[at[ut]]=Me[at[ut]]);return qe};function he(Me){const{breadcrumbName:dt,children:qe}=Me,at=de(Me,["breadcrumbName","children"]),ut=Object.assign({title:dt},at);return qe&&(ut.menu={items:qe.map(Bt=>{var{breadcrumbName:Yt}=Bt,bn=de(Bt,["breadcrumbName"]);return Object.assign(Object.assign({},bn),{title:Yt})})}),ut}function ce(Me,dt){return(0,fe.useMemo)(()=>Me||(dt?dt.map(he):null),[Me,dt])}var De=function(Me,dt){var qe={};for(var at in Me)Object.prototype.hasOwnProperty.call(Me,at)&&dt.indexOf(at)<0&&(qe[at]=Me[at]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,at=Object.getOwnPropertySymbols(Me);ut<at.length;ut++)dt.indexOf(at[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,at[ut])&&(qe[at[ut]]=Me[at[ut]]);return qe};const Ne=(Me,dt)=>{if(dt===void 0)return dt;let qe=(dt||"").replace(/^\//,"");return Object.keys(Me).forEach(at=>{qe=qe.replace(`:${at}`,Me[at])}),qe},st=Me=>{const{prefixCls:dt,separator:qe="/",style:at,className:ut,rootClassName:Bt,routes:Yt,items:bn,children:cn,itemRender:Ce,params:Ue={}}=Me,rt=De(Me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Rt,direction:lt,breadcrumb:Ct}=fe.useContext(ue.E_);let me;const St=Rt("breadcrumb",dt),[$t,tn]=ge(St),wt=ce(bn,Yt),Xe=a(St,Ce);if(wt&&wt.length>0){const Qe=[],nt=bn||Yt;me=wt.map((pt,It)=>{const{path:kt,key:Qt,type:ln,menu:sn,overlay:rn,onClick:jn,className:Rn,separator:oa,dropdownProps:In}=pt,Hn=Ne(Ue,kt);Hn!==void 0&&Qe.push(Hn);const ye=Qt!=null?Qt:It;if(ln==="separator")return fe.createElement(Ke,{key:ye},oa);const Oe={},Ye=It===wt.length-1;sn?Oe.menu=sn:rn&&(Oe.overlay=rn);let{href:ht}=pt;return Qe.length&&Hn!==void 0&&(ht=`#/${Qe.join("/")}`),fe.createElement(E,Object.assign({key:ye},Oe,(0,je.Z)(pt,{data:!0,aria:!0}),{className:Rn,dropdownProps:In,href:ht,separator:Ye?"":qe,onClick:jn,prefixCls:St}),Xe(pt,Ue,nt,Qe,ht))})}else if(cn){const Qe=(0,Je.Z)(cn).length;me=(0,Je.Z)(cn).map((nt,pt)=>{if(!nt)return nt;const It=pt===Qe-1;return(0,Fe.Tm)(nt,{separator:It?"":qe,key:pt})})}const Be=pe()(St,Ct==null?void 0:Ct.className,{[`${St}-rtl`]:lt==="rtl"},ut,Bt,tn),be=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),at);return $t(fe.createElement("nav",Object.assign({className:Be,style:be},rt),fe.createElement("ol",null,me)))};st.Item=x,st.Separator=Ke;var xt=st,gn=xt},84567:function(ze,ct,oe){"use strict";oe.d(ct,{default:function(){return ge}});var te=oe(94184),pe=oe.n(te),Je=oe(95860),je=oe(67294),fe=oe(53124),Fe=oe(98866),ue=oe(65223),Te=je.createContext(null),xe=oe(63185),Ke=oe(45353),ke=oe(92429),Re=function(de,he){var ce={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&he.indexOf(De)<0&&(ce[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,De=Object.getOwnPropertySymbols(de);Ne<De.length;Ne++)he.indexOf(De[Ne])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ne])&&(ce[De[Ne]]=de[De[Ne]]);return ce};const ae=(de,he)=>{var ce;const{prefixCls:De,className:Ne,rootClassName:st,children:xt,indeterminate:gn=!1,style:Me,onMouseEnter:dt,onMouseLeave:qe,skipGroup:at=!1,disabled:ut}=de,Bt=Re(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Yt,direction:bn,checkbox:cn}=je.useContext(fe.E_),Ce=je.useContext(Te),{isFormItemInput:Ue}=je.useContext(ue.aM),rt=je.useContext(Fe.Z),Rt=(ce=(Ce==null?void 0:Ce.disabled)||ut)!==null&&ce!==void 0?ce:rt,lt=je.useRef(Bt.value);je.useEffect(()=>{Ce==null||Ce.registerValue(Bt.value)},[]),je.useEffect(()=>{if(!at)return Bt.value!==lt.current&&(Ce==null||Ce.cancelValue(lt.current),Ce==null||Ce.registerValue(Bt.value),lt.current=Bt.value),()=>Ce==null?void 0:Ce.cancelValue(Bt.value)},[Bt.value]);const Ct=Yt("checkbox",De),[me,St]=(0,xe.ZP)(Ct),$t=Object.assign({},Bt);Ce&&!at&&($t.onChange=function(){Bt.onChange&&Bt.onChange.apply(Bt,arguments),Ce.toggleOption&&Ce.toggleOption({label:xt,value:Bt.value})},$t.name=Ce.name,$t.checked=Ce.value.includes(Bt.value));const tn=pe()(`${Ct}-wrapper`,{[`${Ct}-rtl`]:bn==="rtl",[`${Ct}-wrapper-checked`]:$t.checked,[`${Ct}-wrapper-disabled`]:Rt,[`${Ct}-wrapper-in-form-item`]:Ue},cn==null?void 0:cn.className,Ne,st,St),wt=pe()({[`${Ct}-indeterminate`]:gn},ke.A,St),Xe=gn?"mixed":void 0;return me(je.createElement(Ke.Z,{component:"Checkbox",disabled:Rt},je.createElement("label",{className:tn,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),Me),onMouseEnter:dt,onMouseLeave:qe},je.createElement(Je.Z,Object.assign({"aria-checked":Xe},$t,{prefixCls:Ct,className:wt,disabled:Rt,ref:he})),xt!==void 0&&je.createElement("span",null,xt))))};var y=je.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(de,he){var ce={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&he.indexOf(De)<0&&(ce[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,De=Object.getOwnPropertySymbols(de);Ne<De.length;Ne++)he.indexOf(De[Ne])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ne])&&(ce[De[Ne]]=de[De[Ne]]);return ce};const z=(de,he)=>{const{defaultValue:ce,children:De,options:Ne=[],prefixCls:st,className:xt,rootClassName:gn,style:Me,onChange:dt}=de,qe=x(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:ut}=je.useContext(fe.E_),[Bt,Yt]=je.useState(qe.value||ce||[]),[bn,cn]=je.useState([]);je.useEffect(()=>{"value"in qe&&Yt(qe.value||[])},[qe.value]);const Ce=je.useMemo(()=>Ne.map(Be=>typeof Be=="string"||typeof Be=="number"?{label:Be,value:Be}:Be),[Ne]),Ue=Be=>{cn(be=>be.filter(Qe=>Qe!==Be))},rt=Be=>{cn(be=>[].concat((0,E.Z)(be),[Be]))},Rt=Be=>{const be=Bt.indexOf(Be.value),Qe=(0,E.Z)(Bt);be===-1?Qe.push(Be.value):Qe.splice(be,1),"value"in qe||Yt(Qe),dt==null||dt(Qe.filter(nt=>bn.includes(nt)).sort((nt,pt)=>{const It=Ce.findIndex(Qt=>Qt.value===nt),kt=Ce.findIndex(Qt=>Qt.value===pt);return It-kt}))},lt=at("checkbox",st),Ct=`${lt}-group`,[me,St]=(0,xe.ZP)(lt),$t=(0,b.Z)(qe,["value","disabled"]),tn=Ne.length?Ce.map(Be=>je.createElement(y,{prefixCls:lt,key:Be.value.toString(),disabled:"disabled"in Be?Be.disabled:qe.disabled,value:Be.value,checked:Bt.includes(Be.value),onChange:Be.onChange,className:`${Ct}-item`,style:Be.style,title:Be.title},Be.label)):De,wt={toggleOption:Rt,value:Bt,disabled:qe.disabled,name:qe.name,registerValue:rt,cancelValue:Ue},Xe=pe()(Ct,{[`${Ct}-rtl`]:ut==="rtl"},xt,gn,St);return me(je.createElement("div",Object.assign({className:Xe,style:Me},$t,{ref:he}),je.createElement(Te.Provider,{value:wt},tn)))},ee=je.forwardRef(z);var ne=je.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ge=re},63185:function(ze,ct,oe){"use strict";oe.d(ct,{C2:function(){return fe}});var te=oe(14747),pe=oe(45503),Je=oe(67968);const je=Fe=>{const{checkboxCls:ue}=Fe,Ie=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,te.oN)(Fe))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${ue}:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{borderColor:Fe.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${ue}-checked:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function fe(Fe,ue){const Ie=(0,pe.TS)(ue,{checkboxCls:`.${Fe}`,checkboxSize:ue.controlInteractiveSize});return[je(Ie)]}ct.ZP=(0,Je.Z)("Checkbox",(Fe,ue)=>{let{prefixCls:Ie}=ue;return[fe(Ie,Fe)]})},56153:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Sg}});var te=oe(67294),pe=oe.t(te,2),Je=oe(91034),je=oe(94184),fe=oe.n(je),Fe=oe(87462),ue=oe(4942),Ie=oe(97685),Te=oe(45987),xe=oe(1413),Ke=oe(73935);function ke(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Re={};function ae(ie,le){}function a(ie,le){}function y(){Re={}}function E(ie,le,se){!le&&!Re[se]&&(ie(!1,se),Re[se]=!0)}function b(ie,le){E(ae,ie,le)}function x(ie,le){E(a,ie,le)}var z=null,ee=oe(71002),ne=oe(12060);function re(ie,le,se){var Se=te.useRef({});return(!("value"in Se.current)||se(Se.current.condition,le))&&(Se.current.value=ie(),Se.current.condition=le),Se.current.value}function ge(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function de(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=le.filter(function(Ee){return Ee});return Se.length<=1?Se[0]:function(Ee){le.forEach(function(He){ge(He,Ee)})}}function he(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return re(function(){return de.apply(void 0,le)},le,function(Se,Ee){return Se.length===Ee.length&&Se.every(function(He,We){return He===Ee[We]})})}function ce(ie){var le,se,Se=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof Se=="function"&&!((le=Se.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}var De=te.createContext(null),Ne=De,st=oe(74902),xt=ke()?te.useLayoutEffect:te.useEffect,gn=xt,Me=function(le,se){var Se=React.useRef(!0);xt(function(){if(!Se.current)return le()},se),xt(function(){return Se.current=!1,function(){Se.current=!0}},[])},dt=[];function qe(ie,le){var se=te.useState(function(){if(!ke())return null;var Jt=document.createElement("div");return Jt}),Se=(0,Ie.Z)(se,1),Ee=Se[0],He=te.useRef(!1),We=te.useContext(Ne),ft=te.useState(dt),Ft=(0,Ie.Z)(ft,2),vt=Ft[0],jt=Ft[1],yt=We||(He.current?void 0:function(Jt){jt(function(Fn){var mn=[Jt].concat((0,st.Z)(Fn));return mn})});function Ht(){Ee.parentElement||document.body.appendChild(Ee),He.current=!0}function At(){var Jt;(Jt=Ee.parentElement)===null||Jt===void 0||Jt.removeChild(Ee),He.current=!1}return gn(function(){return ie?We?We(Ht):Ht():At(),At},[ie]),gn(function(){vt.length&&(vt.forEach(function(Jt){return Jt()}),jt(dt))},[vt]),[Ee,yt]}function at(ie,le){if(!ie)return!1;if(ie.contains)return ie.contains(le);for(var se=le;se;){if(se===ie)return!0;se=se.parentNode}return!1}var ut="data-rc-order",Bt="rc-util-key",Yt=new Map;function bn(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=ie.mark;return le?le.startsWith("data-")?le:"data-".concat(le):Bt}function cn(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function Ce(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function Ue(ie){return Array.from((Yt.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function rt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ke())return null;var se=le.csp,Se=le.prepend,Ee=document.createElement("style");Ee.setAttribute(ut,Ce(Se)),se!=null&&se.nonce&&(Ee.nonce=se==null?void 0:se.nonce),Ee.innerHTML=ie;var He=cn(le),We=He.firstChild;if(Se){if(Se==="queue"){var ft=Ue(He).filter(function(Ft){return["prepend","prependQueue"].includes(Ft.getAttribute(ut))});if(ft.length)return He.insertBefore(Ee,ft[ft.length-1].nextSibling),Ee}He.insertBefore(Ee,We)}else He.appendChild(Ee);return Ee}function Rt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=cn(le);return Ue(se).find(function(Se){return Se.getAttribute(bn(le))===ie})}function lt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Rt(ie,le);if(se){var Se=cn(le);Se.removeChild(se)}}function Ct(ie,le){var se=Yt.get(ie);if(!se||!at(document,se)){var Se=rt("",le),Ee=Se.parentNode;Yt.set(ie,Ee),ie.removeChild(Se)}}function me(){Yt.clear()}function St(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=cn(se);Ct(Se,se);var Ee=Rt(le,se);if(Ee){var He,We;if((He=se.csp)!==null&&He!==void 0&&He.nonce&&Ee.nonce!==((We=se.csp)===null||We===void 0?void 0:We.nonce)){var ft;Ee.nonce=(ft=se.csp)===null||ft===void 0?void 0:ft.nonce}return Ee.innerHTML!==ie&&(Ee.innerHTML=ie),Ee}var Ft=rt(ie,se);return Ft.setAttribute(bn(se),le),Ft}var $t;function tn(ie){if(typeof document=="undefined")return 0;if(ie||$t===void 0){var le=document.createElement("div");le.style.width="100%",le.style.height="200px";var se=document.createElement("div"),Se=se.style;Se.position="absolute",Se.top="0",Se.left="0",Se.pointerEvents="none",Se.visibility="hidden",Se.width="200px",Se.height="150px",Se.overflow="hidden",se.appendChild(le),document.body.appendChild(se);var Ee=le.offsetWidth;se.style.overflow="scroll";var He=le.offsetWidth;Ee===He&&(He=se.clientWidth),document.body.removeChild(se),$t=Ee-He}return $t}function wt(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?tn():se}function Xe(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var le=getComputedStyle(ie,"::-webkit-scrollbar"),se=le.width,Se=le.height;return{width:wt(se),height:wt(Se)}}function Be(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var be="rc-util-locker-".concat(Date.now()),Qe=0;function nt(ie){var le=!!ie,se=te.useState(function(){return Qe+=1,"".concat(be,"_").concat(Qe)}),Se=(0,Ie.Z)(se,1),Ee=Se[0];gn(function(){if(le){var He=Xe(document.body).width,We=Be();St(`
html body {
overflow-y: hidden;
`.concat(We?"width: calc(100% - ".concat(He,"px);"):"",`
}`),Ee)}else lt(Ee);return function(){lt(Ee)}},[le,Ee])}var pt=!1;function It(ie){return typeof ie=="boolean"&&(pt=ie),pt}var kt=function(le){return le===!1?!1:!ke()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},Qt=te.forwardRef(function(ie,le){var se=ie.open,Se=ie.autoLock,Ee=ie.getContainer,He=ie.debug,We=ie.autoDestroy,ft=We===void 0?!0:We,Ft=ie.children,vt=te.useState(se),jt=(0,Ie.Z)(vt,2),yt=jt[0],Ht=jt[1],At=yt||se;te.useEffect(function(){(ft||se)&&Ht(se)},[se,ft]);var Jt=te.useState(function(){return kt(Ee)}),Fn=(0,Ie.Z)(Jt,2),mn=Fn[0],Gn=Fn[1];te.useEffect(function(){var ha=kt(Ee);Gn(ha!=null?ha:null)});var vn=qe(At&&!mn,He),an=(0,Ie.Z)(vn,2),Dt=an[0],ra=an[1],Jn=mn!=null?mn:Dt;nt(Se&&se&&ke()&&(Jn===Dt||Jn===document.body));var ia=null;if(Ft&&ce(Ft)&&le){var ya=Ft;ia=ya.ref}var ja=he(ia,le);if(!At||!ke()||mn===void 0)return null;var Wn=Jn===!1||It(),Mn=Ft;return le&&(Mn=te.cloneElement(Ft,{ref:ja})),te.createElement(Ne.Provider,{value:ra},Wn?Mn:(0,Ke.createPortal)(Mn,Jn))}),ln=Qt,sn=ln,rn=oe(48555);function jn(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Rn(ie){return jn(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function oa(ie){var le;return ie==null||(le=ie.getRootNode)===null||le===void 0?void 0:le.call(ie)}function In(ie){return oa(ie)instanceof ShadowRoot}function Hn(ie){return In(ie)?oa(ie):null}function ye(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var Se,Ee=arguments.length,He=new Array(Ee),We=0;We<Ee;We++)He[We]=arguments[We];return(Se=le.current)===null||Se===void 0?void 0:Se.call.apply(Se,[le].concat(He))},[]);return se}function Oe(){var ie=(0,xe.Z)({},pe);return ie.useId}var Ye=0;function ht(){}var Lt=Oe(),Kt=Lt?function(le){var se=Lt();return le||se}:function(le){var se=te.useState("ssr-id"),Se=(0,Ie.Z)(se,2),Ee=Se[0],He=Se[1];return te.useEffect(function(){var We=Ye;Ye+=1,He("rc_unique_".concat(We))},[]),le||Ee};function _t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Gt=_t()?te.useLayoutEffect:te.useEffect,Zt=function(le,se){var Se=te.useRef(!0);Gt(function(){return le(Se.current)},se),Gt(function(){return Se.current=!1,function(){Se.current=!0}},[])},Pn=function(le,se){Zt(function(Se){if(!Se)return le()},se)},qt=Zt,Dn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ie==null?void 0:ie.substr(0,4))},Kn=te.createContext(null),Xn=Kn;function la(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function Tn(ie,le,se,Se){return te.useMemo(function(){var Ee=la(se!=null?se:le),He=la(Se!=null?Se:le),We=new Set(Ee),ft=new Set(He);return ie&&(We.has("hover")&&(We.delete("hover"),We.add("click")),ft.has("hover")&&(ft.delete("hover"),ft.add("click"))),[We,ft]},[ie,le,se,Se])}var $n=function(ie){if(!ie)return!1;if(ie instanceof Element){if(ie.offsetParent)return!0;if(ie.getBBox){var le=ie.getBBox(),se=le.width,Se=le.height;if(se||Se)return!0}if(ie.getBoundingClientRect){var Ee=ie.getBoundingClientRect(),He=Ee.width,We=Ee.height;if(He||We)return!0}}return!1};function _n(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=arguments.length>2?arguments[2]:void 0;return se?ie[0]===le[0]:ie[0]===le[0]&&ie[1]===le[1]}function ua(ie,le,se,Se){for(var Ee=se.points,He=Object.keys(ie),We=0;We<He.length;We+=1){var ft,Ft=He[We];if(_n((ft=ie[Ft])===null||ft===void 0?void 0:ft.points,Ee,Se))return"".concat(le,"-placement-").concat(Ft)}return""}function ma(ie,le,se,Se){return le||(se?{motionName:"".concat(ie,"-").concat(se)}:Se?{motionName:Se}:null)}function zn(ie){return ie.ownerDocument.defaultView}function Pa(ie){for(var le=[],se=ie==null?void 0:ie.parentElement,Se=["hidden","scroll","clip","auto"];se;){var Ee=zn(se).getComputedStyle(se),He=Ee.overflowX,We=Ee.overflowY,ft=Ee.overflow;[He,We,ft].some(function(Ft){return Se.includes(Ft)})&&le.push(se),se=se.parentElement}return le}function Aa(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?le:ie}function ea(ie){return Aa(parseFloat(ie),0)}function Ua(ie,le){var se=(0,xe.Z)({},ie);return(le||[]).forEach(function(Se){if(!(Se instanceof HTMLBodyElement||Se instanceof HTMLHtmlElement)){var Ee=zn(Se).getComputedStyle(Se),He=Ee.overflow,We=Ee.overflowClipMargin,ft=Ee.borderTopWidth,Ft=Ee.borderBottomWidth,vt=Ee.borderLeftWidth,jt=Ee.borderRightWidth,yt=Se.getBoundingClientRect(),Ht=Se.offsetHeight,At=Se.clientHeight,Jt=Se.offsetWidth,Fn=Se.clientWidth,mn=ea(ft),Gn=ea(Ft),vn=ea(vt),an=ea(jt),Dt=Aa(Math.round(yt.width/Jt*1e3)/1e3),ra=Aa(Math.round(yt.height/Ht*1e3)/1e3),Jn=(Jt-Fn-vn-an)*Dt,ia=(Ht-At-mn-Gn)*ra,ya=mn*ra,ja=Gn*ra,Wn=vn*Dt,Mn=an*Dt,ha=0,Ca=0;if(He==="clip"){var ga=ea(We);ha=ga*Dt,Ca=ga*ra}var xn=yt.x+Wn-ha,Un=yt.y+ya-Ca,pn=xn+yt.width+2*ha-Wn-Mn-Jn,Ha=Un+yt.height+2*Ca-ya-ja-ia;se.left=Math.max(se.left,xn),se.top=Math.max(se.top,Un),se.right=Math.min(se.right,pn),se.bottom=Math.min(se.bottom,Ha)}}),se}function eo(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),Se=se.match(/^(.*)\%$/);return Se?ie*(parseFloat(Se[1])/100):parseFloat(se)}function Qa(ie,le){var se=le||[],Se=(0,Ie.Z)(se,2),Ee=Se[0],He=Se[1];return[eo(ie.width,Ee),eo(ie.height,He)]}function Le(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function we(ie,le){var se=le[0],Se=le[1],Ee,He;return se==="t"?He=ie.y:se==="b"?He=ie.y+ie.height:He=ie.y+ie.height/2,Se==="l"?Ee=ie.x:Se==="r"?Ee=ie.x+ie.width:Ee=ie.x+ie.width/2,{x:Ee,y:He}}function ve(ie,le){var se={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(Se,Ee){return Ee===le?se[Se]||"c":Se}).join("")}function mt(ie,le,se,Se,Ee,He,We){var ft=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ee[Se]||{}}),Ft=(0,Ie.Z)(ft,2),vt=Ft[0],jt=Ft[1],yt=te.useRef(0),Ht=te.useMemo(function(){return le?Pa(le):[]},[le]),At=te.useRef({}),Jt=function(){At.current={}};ie||Jt();var Fn=ye(function(){if(le&&se&&ie){let Eo=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Za,Tr=Vn.x+ti,br=Vn.y+ur,ni=Tr+aa,bi=br+Ea,Li=Math.max(Tr,Yo.left),wi=Math.max(br,Yo.top),Ci=Math.min(ni,Yo.right),Vt=Math.min(bi,Yo.bottom);return Math.max(0,(Ci-Li)*(Vt-wi))},Zo=function(){jo=Vn.y+qn,nr=jo+Ea,ar=Vn.x+Wa,or=ar+aa};var vn,an,Dt=le,ra=Dt.ownerDocument,Jn=zn(Dt),ia=Jn.getComputedStyle(Dt),ya=ia.width,ja=ia.height,Wn=ia.position,Mn=Dt.style.left,ha=Dt.style.top,Ca=Dt.style.right,ga=Dt.style.bottom,xn=(0,xe.Z)((0,xe.Z)({},Ee[Se]),He),Un=ra.createElement("div");(vn=Dt.parentElement)===null||vn===void 0||vn.appendChild(Un),Un.style.left="".concat(Dt.offsetLeft,"px"),Un.style.top="".concat(Dt.offsetTop,"px"),Un.style.position=Wn,Un.style.height="".concat(Dt.offsetHeight,"px"),Un.style.width="".concat(Dt.offsetWidth,"px"),Dt.style.left="0",Dt.style.top="0",Dt.style.right="auto",Dt.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=Dt.getBoundingClientRect(),Va=ra.documentElement,so=Va.clientWidth,_a=Va.clientHeight,uo=Va.scrollWidth,So=Va.scrollHeight,kn=Va.scrollTop,mo=Va.scrollLeft,Ea=Vn.height,aa=Vn.width,Ga=pn.height,wo=pn.width,Ro={left:0,top:0,right:so,bottom:_a},Uo={left:-mo,top:-kn,right:uo-mo,bottom:So-kn},qa=xn.htmlRegion,oo="visible",Oo="visibleFirst";qa!=="scroll"&&qa!==Oo&&(qa=oo);var ro=qa===Oo,da=Ua(Uo,Ht),on=Ua(Ro,Ht),Za=qa===oo?on:da,co=ro?on:Za;Dt.style.left="auto",Dt.style.top="auto",Dt.style.right="0",Dt.style.bottom="0";var Go=Dt.getBoundingClientRect();Dt.style.left=Mn,Dt.style.top=ha,Dt.style.right=Ca,Dt.style.bottom=ga,(an=Dt.parentElement)===null||an===void 0||an.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)&&!$n(se))return;var ii=xn.offset,Rr=xn.targetOffset,Bo=Qa(Vn,ii),kr=(0,Ie.Z)(Bo,2),$o=kr[0],No=kr[1],jr=Qa(pn,Rr),Mo=(0,Ie.Z)(jr,2),gi=Mo[0],di=Mo[1];pn.x-=gi,pn.y-=di;var Pr=xn.points||[],ho=(0,Ie.Z)(Pr,2),Vo=ho[0],li=ho[1],ko=Le(li),Po=Le(Vo),Hr=we(pn,ko),Er=we(Vn,Po),Ko=(0,xe.Z)({},xn),Wa=Hr.x-Er.x+$o,qn=Hr.y-Er.y+No,To=Eo(Wa,qn),zo=Eo(Wa,qn,on),Fr=we(pn,["t","l"]),xr=we(Vn,["t","l"]),Br=we(pn,["b","r"]),Co=we(Vn,["b","r"]),vr=xn.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||At.current.bt)){var Ao=qn;Ur?Ao-=Ea-Ga:Ao=Fr.y-Co.y-No;var Vr=Eo(Wa,Ao),vo=Eo(Wa,Ao,on);Vr>To||Vr===To&&(!ro||vo>=zo)?(At.current.bt=!0,qn=Ao,No=-No,Ko.points=[ve(Po,0),ve(ko,0)]):At.current.bt=!1}if(Or&&Po[0]==="b"&&(jo<co.top||At.current.tb)){var rr=qn;Ur?rr+=Ea-Ga:rr=Br.y-xr.y-No;var Kr=Eo(Wa,rr),si=Eo(Wa,rr,on);Kr>To||Kr===To&&(!ro||si>=zo)?(At.current.tb=!0,qn=rr,No=-No,Ko.points=[ve(Po,0),ve(ko,0)]):At.current.tb=!1}var Xr=Mr(Zr),_r=Po[1]===ko[1];if(Xr&&Po[1]==="l"&&(or>co.right||At.current.rl)){var ir=Wa;_r?ir-=aa-wo:ir=Fr.x-Co.x-$o;var Yr=Eo(ir,qn),ui=Eo(ir,qn,on);Yr>To||Yr===To&&(!ro||ui>=zo)?(At.current.rl=!0,Wa=ir,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):At.current.rl=!1}if(Xr&&Po[1]==="r"&&(ar<co.left||At.current.lr)){var gr=Wa;_r?gr+=aa-wo:gr=Br.x-xr.x-$o;var dr=Eo(gr,qn),Gr=Eo(gr,qn,on);dr>To||dr===To&&(!ro||Gr>=zo)?(At.current.lr=!0,Wa=gr,$o=-$o,Ko.points=[ve(Po,1),ve(ko,1)]):At.current.lr=!1}Zo();var lr=Nr===!0?0:Nr;typeof lr=="number"&&(ar<on.left&&(Wa-=ar-on.left-$o,pn.x+wo<on.left+lr&&(Wa+=pn.x-on.left+wo-lr)),or>on.right&&(Wa-=or-on.right-$o,pn.x>on.right-lr&&(Wa+=pn.x-on.right+lr)));var Xo=Wr===!0?0:Wr;typeof Xo=="number"&&(jo<on.top&&(qn-=jo-on.top-No,pn.y+Ga<on.top+Xo&&(qn+=pn.y-on.top+Ga-Xo)),nr>on.bottom&&(qn-=nr-on.bottom-No,pn.y>on.bottom-Xo&&(qn+=pn.y-on.bottom+Xo)));var _o=Vn.x+Wa,sr=_o+aa,pr=Vn.y+qn,yr=pr+Ea,Ho=pn.x,mi=Ho+wo,Qr=pn.y,ci=Qr+Ga,Jr=Math.max(_o,Ho),fi=Math.min(sr,mi),Si=(Jr+fi)/2,hi=Si-_o,qr=Math.max(pr,Qr),Pi=Math.min(yr,ci),vi=(qr+Pi)/2,ei=vi-pr;We==null||We(le,Ko);var pi=Go.right-Vn.x-(Wa+Vn.width),yi=Go.bottom-Vn.y-(qn+Vn.height);jt({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})}}),mn=function(){yt.current+=1;var an=yt.current;Promise.resolve().then(function(){yt.current===an&&Fn()})},Gn=function(){jt(function(an){return(0,xe.Z)((0,xe.Z)({},an),{},{ready:!1})})};return qt(Gn,[Se]),qt(function(){ie||Gn()},[ie]),[vt.ready,vt.offsetX,vt.offsetY,vt.offsetR,vt.offsetB,vt.arrowX,vt.arrowY,vt.scaleX,vt.scaleY,vt.align,mn]}function Ot(ie,le,se,Se,Ee){qt(function(){if(ie&&le&&se){let yt=function(){Se(),Ee()};var He=le,We=se,ft=Pa(He),Ft=Pa(We),vt=zn(We),jt=new Set([vt].concat((0,st.Z)(ft),(0,st.Z)(Ft)));return jt.forEach(function(Ht){Ht.addEventListener("scroll",yt,{passive:!0})}),vt.addEventListener("resize",yt,{passive:!0}),Se(),function(){jt.forEach(function(Ht){Ht.removeEventListener("scroll",yt),vt.removeEventListener("resize",yt)})}}},[ie,le,se])}function Tt(ie){var le=React.useRef(!1),se=React.useState(ie),Se=_slicedToArray(se,2),Ee=Se[0],He=Se[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function We(ft,Ft){Ft&&le.current||He(ft)}return[Ee,We]}function An(ie){return ie!==void 0}function un(ie,le){var se=le||{},Se=se.defaultValue,Ee=se.value,He=se.onChange,We=se.postState,ft=useState(function(){return An(Ee)?Ee:An(Se)?typeof Se=="function"?Se():Se:typeof ie=="function"?ie():ie}),Ft=_slicedToArray(ft,2),vt=Ft[0],jt=Ft[1],yt=Ee!==void 0?Ee:vt,Ht=We?We(yt):yt,At=useEvent(He),Jt=useState([yt]),Fn=_slicedToArray(Jt,2),mn=Fn[0],Gn=Fn[1];useLayoutUpdateEffect(function(){var an=mn[0];vt!==an&&At(vt,an)},[mn]),useLayoutUpdateEffect(function(){An(Ee)||jt(Ee)},[Ee]);var vn=useEvent(function(an,Dt){jt(an,Dt),Gn([yt],Dt)});return[Ht,vn]}var Cn=oe(95845);function ta(ie,le,se){var Se=te.useRef({});return(!("value"in Se.current)||se(Se.current.condition,le))&&(Se.current.value=ie(),Se.current.condition=le),Se.current.value}function Ia(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function ot(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=le.filter(function(Ee){return Ee});return Se.length<=1?Se[0]:function(Ee){le.forEach(function(He){Ia(He,Ee)})}}function Ln(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return ta(function(){return ot.apply(void 0,le)},le,function(Se,Ee){return Se.length!==Ee.length||Se.every(function(He,We){return He!==Ee[We]})})}function Pe(ie){var le,se,Se=(0,Cn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof Se=="function"&&!((le=Se.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}function Ae(ie){return!isValidElement(ie)||isFragment(ie)?!1:Pe(ie)}function $e(ie,le,se,Se){if(!le.length)return se;var Ee=_toArray(le),He=Ee[0],We=Ee.slice(1),ft;return!ie&&typeof He=="number"?ft=[]:Array.isArray(ie)?ft=_toConsumableArray(ie):ft=_objectSpread({},ie),Se&&se===void 0&&We.length===1?delete ft[He][We[0]]:ft[He]=$e(ft[He],We,se,Se),ft}function Ge(ie,le,se){var Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&Se&&se===void 0&&!get(ie,le.slice(0,-1))?ie:$e(ie,le,se,Se)}function gt(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function _e(ie){return Array.isArray(ie)?[]:{}}var tt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ve(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=_e(le[0]);return le.forEach(function(Ee){function He(We,ft){var Ft=new Set(ft),vt=get(Ee,We),jt=Array.isArray(vt);if(jt||gt(vt)){if(!Ft.has(vt)){Ft.add(vt);var yt=get(Se,We);jt?Se=Ge(Se,We,[]):(!yt||_typeof(yt)!=="object")&&(Se=Ge(Se,We,_e(vt))),tt(vt).forEach(function(Ht){He([].concat(_toConsumableArray(We),[Ht]),Ft)})}}else Se=Ge(Se,We,vt)}He([])}),Se}var Ut={},Nt=[],en=function(le){Nt.push(le)};function hn(ie,le){if(0)var se}function En(ie,le){if(0)var se}function Ze(){Ut={}}function $a(ie,le,se){!le&&!Ut[se]&&(ie(!1,se),Ut[se]=!0)}function ba(ie,le){$a(hn,ie,le)}function Da(ie,le){$a(En,ie,le)}ba.preMessage=en,ba.resetWarned=Ze,ba.noteOnce=Da;var na=null,et=function(le){return+setTimeout(le,16)},bt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(et=function(le){return window.requestAnimationFrame(le)},bt=function(le){return window.cancelAnimationFrame(le)});var Wt=0,it=new Map;function fn(ie){it.delete(ie)}var Sn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Wt+=1;var Se=Wt;function Ee(He){if(He===0)fn(Se),le();else{var We=et(function(){Ee(He-1)});it.set(Se,We)}}return Ee(se),Se};Sn.cancel=function(ie){var le=it.get(ie);return fn(le),bt(le)};var sa=Sn;function ca(ie,le,se,Se,Ee,He,We,ft){var Ft=te.useRef(ie),vt=te.useRef(!1);Ft.current!==ie&&(vt.current=!0,Ft.current=ie),te.useEffect(function(){var jt=sa(function(){vt.current=!1});return function(){sa.cancel(jt)}},[ie]),te.useEffect(function(){if(le&&Se&&(!Ee||He)){var jt=function(){var Wn=!1,Mn=function(ga){var xn=ga.target;Wn=We(xn)},ha=function(ga){var xn=ga.target;!vt.current&&Ft.current&&!Wn&&!We(xn)&&ft(!1)};return[Mn,ha]},yt=jt(),Ht=(0,Ie.Z)(yt,2),At=Ht[0],Jt=Ht[1],Fn=jt(),mn=(0,Ie.Z)(Fn,2),Gn=mn[0],vn=mn[1],an=zn(Se);an.addEventListener("mousedown",At,!0),an.addEventListener("click",Jt,!0),an.addEventListener("contextmenu",Jt,!0);var Dt=Hn(se);if(Dt&&(Dt.addEventListener("mousedown",Gn,!0),Dt.addEventListener("click",vn,!0),Dt.addEventListener("contextmenu",vn,!0)),0)var ra,Jn,ia,ya;return function(){an.removeEventListener("mousedown",At,!0),an.removeEventListener("click",Jt,!0),an.removeEventListener("contextmenu",Jt,!0),Dt&&(Dt.removeEventListener("mousedown",Gn,!0),Dt.removeEventListener("click",vn,!0),Dt.removeEventListener("contextmenu",vn,!0))}}},[le,se,Se,Ee,He])}function fa(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Fo(ie){return fa(ie)?ie:ie instanceof te.Component?Ke.findDOMNode(ie):null}function to(ie,le){var se={};return se[ie.toLowerCase()]=le.toLowerCase(),se["Webkit".concat(ie)]="webkit".concat(le),se["Moz".concat(ie)]="moz".concat(le),se["ms".concat(ie)]="MS".concat(le),se["O".concat(ie)]="o".concat(le.toLowerCase()),se}function Io(ie,le){var se={animationend:to("Animation","AnimationEnd"),transitionend:to("Transition","TransitionEnd")};return ie&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var xo=Io(ke(),typeof window!="undefined"?window:{}),Ka={};if(ke()){var va=document.createElement("div");Ka=va.style}var io={};function po(ie){if(io[ie])return io[ie];var le=xo[ie];if(le)for(var se=Object.keys(le),Se=se.length,Ee=0;Ee<Se;Ee+=1){var He=se[Ee];if(Object.prototype.hasOwnProperty.call(le,He)&&He in Ka)return io[ie]=le[He],io[ie]}return""}var yo=po("animationend"),Xa=po("transitionend"),Ra=!!(yo&&Xa),fo=yo||"animationend",nn=Xa||"transitionend";function pa(ie,le){if(!ie)return null;if((0,ee.Z)(ie)==="object"){var se=le.replace(/-\w/g,function(Se){return Se[1].toUpperCase()});return ie[se]}return"".concat(ie,"-").concat(le)}var Fa="none",Na="appear",Ja="enter",La="leave",Wo="none",wa="prepare",Yn="start",Qn="active",no="end";function Do(ie){var le=te.useRef(!1),se=te.useState(ie),Se=(0,Ie.Z)(se,2),Ee=Se[0],He=Se[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function We(ft,Ft){Ft&&le.current||He(ft)}return[Ee,We]}var Qo=function(le){return+setTimeout(le,16)},Lr=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Qo=function(le){return window.requestAnimationFrame(le)},Lr=function(le){return window.cancelAnimationFrame(le)});var wr=0,Jo=new Map;function mr(ie){Jo.delete(ie)}var zt=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wr+=1;var Se=wr;function Ee(He){if(He===0)mr(Se),le();else{var We=Qo(function(){Ee(He-1)});Jo.set(Se,We)}}return Ee(se),Se};zt.cancel=function(ie){var le=Jo.get(ie);return mr(le),Lr(le)};var Pt=zt,Et=function(){var ie=te.useRef(null);function le(){Pt.cancel(ie.current)}function se(Se){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var He=Pt(function(){Ee<=1?Se({isCanceled:function(){return He!==ie.current}}):se(Se,Ee-1)});ie.current=He}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Mt=ke()?te.useLayoutEffect:te.useEffect,On=Mt,Sa=[wa,Yn,Qn,no],ka=!1,Ma=!0;function xa(ie){return ie===Qn||ie===no}var Xt=function(ie,le){var se=Do(Wo),Se=(0,Ie.Z)(se,2),Ee=Se[0],He=Se[1],We=Et(),ft=(0,Ie.Z)(We,2),Ft=ft[0],vt=ft[1];function jt(){He(wa,!0)}return On(function(){if(Ee!==Wo&&Ee!==no){var yt=Sa.indexOf(Ee),Ht=Sa[yt+1],At=le(Ee);At===ka?He(Ht,!0):Ft(function(Jt){function Fn(){Jt.isCanceled()||He(Ht,!0)}At===!0?Fn():Promise.resolve(At).then(Fn)})}},[ie,Ee]),te.useEffect(function(){return function(){vt()}},[]),[jt,Ee]},wn=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var Se=te.useCallback(function(We){se.current(We)},[]);function Ee(We){We&&(We.removeEventListener(nn,Se),We.removeEventListener(fo,Se))}function He(We){le.current&&le.current!==We&&Ee(le.current),We&&We!==le.current&&(We.addEventListener(nn,Se),We.addEventListener(fo,Se),le.current=We)}return te.useEffect(function(){return function(){Ee(le.current)}},[]),[He,Ee]};function Nn(ie,le,se,Se){var Ee=Se.motionEnter,He=Ee===void 0?!0:Ee,We=Se.motionAppear,ft=We===void 0?!0:We,Ft=Se.motionLeave,vt=Ft===void 0?!0:Ft,jt=Se.motionDeadline,yt=Se.motionLeaveImmediately,Ht=Se.onAppearPrepare,At=Se.onEnterPrepare,Jt=Se.onLeavePrepare,Fn=Se.onAppearStart,mn=Se.onEnterStart,Gn=Se.onLeaveStart,vn=Se.onAppearActive,an=Se.onEnterActive,Dt=Se.onLeaveActive,ra=Se.onAppearEnd,Jn=Se.onEnterEnd,ia=Se.onLeaveEnd,ya=Se.onVisibleChanged,ja=Do(),Wn=(0,Ie.Z)(ja,2),Mn=Wn[0],ha=Wn[1],Ca=Do(Fa),ga=(0,Ie.Z)(Ca,2),xn=ga[0],Un=ga[1],pn=Do(null),Ha=(0,Ie.Z)(pn,2),Vn=Ha[0],Va=Ha[1],so=(0,te.useRef)(!1),_a=(0,te.useRef)(null);function uo(){return se()}var So=(0,te.useRef)(!1);function kn(da){var on=uo();if(!(da&&!da.deadline&&da.target!==on)){var Za=So.current,co;xn===Na&&Za?co=ra==null?void 0:ra(on,da):xn===Ja&&Za?co=Jn==null?void 0:Jn(on,da):xn===La&&Za&&(co=ia==null?void 0:ia(on,da)),xn!==Fa&&Za&&co!==!1&&(Un(Fa,!0),Va(null,!0))}}var mo=wn(kn),Ea=(0,Ie.Z)(mo,1),aa=Ea[0],Ga=te.useMemo(function(){var da,on,Za;switch(xn){case Na:return da={},(0,ue.Z)(da,wa,Ht),(0,ue.Z)(da,Yn,Fn),(0,ue.Z)(da,Qn,vn),da;case Ja:return on={},(0,ue.Z)(on,wa,At),(0,ue.Z)(on,Yn,mn),(0,ue.Z)(on,Qn,an),on;case La:return Za={},(0,ue.Z)(Za,wa,Jt),(0,ue.Z)(Za,Yn,Gn),(0,ue.Z)(Za,Qn,Dt),Za;default:return{}}},[xn]),wo=Xt(xn,function(da){if(da===wa){var on=Ga[wa];return on?on(uo()):ka}if(qa in Ga){var Za;Va(((Za=Ga[qa])===null||Za===void 0?void 0:Za.call(Ga,uo(),null))||null)}return qa===Qn&&(aa(uo()),jt>0&&(clearTimeout(_a.current),_a.current=setTimeout(function(){kn({deadline:!0})},jt))),Ma}),Ro=(0,Ie.Z)(wo,2),Uo=Ro[0],qa=Ro[1],oo=xa(qa);So.current=oo,On(function(){ha(le);var da=so.current;if(so.current=!0,!!ie){var on;!da&&le&&ft&&(on=Na),da&&le&&He&&(on=Ja),(da&&!le&&vt||!da&&yt&&!le&&vt)&&(on=La),on&&(Un(on),Uo())}},[le]),(0,te.useEffect)(function(){(xn===Na&&!ft||xn===Ja&&!He||xn===La&&!vt)&&Un(Fa)},[ft,He,vt]),(0,te.useEffect)(function(){return function(){so.current=!1,clearTimeout(_a.current)}},[]);var Oo=te.useRef(!1);(0,te.useEffect)(function(){Mn&&(Oo.current=!0),Mn!==void 0&&xn===Fa&&((Oo.current||Mn)&&(ya==null||ya(Mn)),Oo.current=!0)},[Mn,xn]);var ro=Vn;return Ga[wa]&&qa===Yn&&(ro=(0,xe.Z)({transition:"none"},ro)),[xn,qa,ro,Mn!=null?Mn:le]}var yn=oe(15671),Zn=oe(43144),Ba=oe(60136),bo=oe(51630),ao=function(ie){(0,Ba.Z)(se,ie);var le=(0,bo.Z)(se);function se(){return(0,yn.Z)(this,se),le.apply(this,arguments)}return(0,Zn.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),Lo=ao;function Oa(ie){var le=ie;(0,ee.Z)(ie)==="object"&&(le=ie.transitionSupport);function se(Ee){return!!(Ee.motionName&&le)}var Se=te.forwardRef(function(Ee,He){var We=Ee.visible,ft=We===void 0?!0:We,Ft=Ee.removeOnLeave,vt=Ft===void 0?!0:Ft,jt=Ee.forceRender,yt=Ee.children,Ht=Ee.motionName,At=Ee.leavedClassName,Jt=Ee.eventProps,Fn=se(Ee),mn=(0,te.useRef)(),Gn=(0,te.useRef)();function vn(){try{return mn.current instanceof HTMLElement?mn.current:Fo(Gn.current)}catch(pn){return null}}var an=Nn(Fn,ft,vn,Ee),Dt=(0,Ie.Z)(an,4),ra=Dt[0],Jn=Dt[1],ia=Dt[2],ya=Dt[3],ja=te.useRef(ya);ya&&(ja.current=!0);var Wn=te.useCallback(function(pn){mn.current=pn,ge(He,pn)},[He]),Mn,ha=(0,xe.Z)((0,xe.Z)({},Jt),{},{visible:ft});if(!yt)Mn=null;else if(ra===Fa||!se(Ee))ya?Mn=yt((0,xe.Z)({},ha),Wn):!vt&&ja.current&&At?Mn=yt((0,xe.Z)((0,xe.Z)({},ha),{},{className:At}),Wn):jt||!vt&&!At?Mn=yt((0,xe.Z)((0,xe.Z)({},ha),{},{style:{display:"none"}}),Wn):Mn=null;else{var Ca,ga;Jn===wa?ga="prepare":xa(Jn)?ga="active":Jn===Yn&&(ga="start"),Mn=yt((0,xe.Z)((0,xe.Z)({},ha),{},{className:fe()(pa(Ht,ra),(Ca={},(0,ue.Z)(Ca,pa(Ht,"".concat(ra,"-").concat(ga)),ga),(0,ue.Z)(Ca,Ht,typeof Ht=="string"),Ca)),style:ia}),Wn)}if(te.isValidElement(Mn)&&ce(Mn)){var xn=Mn,Un=xn.ref;Un||(Mn=te.cloneElement(Mn,{ref:Wn}))}return te.createElement(Lo,{ref:Gn},Mn)});return Se.displayName="CSSMotion",Se}var zr=Oa(Ra),Ar=oe(97326),cr="add",Cr="keep",qo="remove",lo="removed";function Ir(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,xe.Z)((0,xe.Z)({},le),{},{key:String(le.key)})}function fr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(Ir)}function Dr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],Se=0,Ee=le.length,He=fr(ie),We=fr(le);He.forEach(function(vt){for(var jt=!1,yt=Se;yt<Ee;yt+=1){var Ht=We[yt];if(Ht.key===vt.key){Se<yt&&(se=se.concat(We.slice(Se,yt).map(function(At){return(0,xe.Z)((0,xe.Z)({},At),{},{status:cr})})),Se=yt),se.push((0,xe.Z)((0,xe.Z)({},Ht),{},{status:Cr})),Se+=1,jt=!0;break}}jt||se.push((0,xe.Z)((0,xe.Z)({},vt),{},{status:qo}))}),Se<Ee&&(se=se.concat(We.slice(Se).map(function(vt){return(0,xe.Z)((0,xe.Z)({},vt),{},{status:cr})})));var ft={};se.forEach(function(vt){var jt=vt.key;ft[jt]=(ft[jt]||0)+1});var Ft=Object.keys(ft).filter(function(vt){return ft[vt]>1});return Ft.forEach(function(vt){se=se.filter(function(jt){var yt=jt.key,Ht=jt.status;return yt!==vt||Ht!==qo}),se.forEach(function(jt){jt.key===vt&&(jt.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(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zr,se=function(Se){(0,Ba.Z)(He,Se);var Ee=(0,bo.Z)(He);function He(){var We;(0,yn.Z)(this,He);for(var ft=arguments.length,Ft=new Array(ft),vt=0;vt<ft;vt++)Ft[vt]=arguments[vt];return We=Ee.call.apply(Ee,[this].concat(Ft)),(0,ue.Z)((0,Ar.Z)(We),"state",{keyEntities:[]}),(0,ue.Z)((0,Ar.Z)(We),"removeKey",function(jt){var yt=We.state.keyEntities,Ht=yt.map(function(At){return At.key!==jt?At:(0,xe.Z)((0,xe.Z)({},At),{},{status:lo})});return We.setState({keyEntities:Ht}),Ht.filter(function(At){var Jt=At.status;return Jt!==lo}).length}),We}return(0,Zn.Z)(He,[{key:"render",value:function(){var ft=this,Ft=this.state.keyEntities,vt=this.props,jt=vt.component,yt=vt.children,Ht=vt.onVisibleChanged,At=vt.onAllRemoved,Jt=(0,Te.Z)(vt,$i),Fn=jt||te.Fragment,mn={};return Mi.forEach(function(Gn){mn[Gn]=Jt[Gn],delete Jt[Gn]}),delete Jt.keys,te.createElement(Fn,Jt,Ft.map(function(Gn){var vn=Gn.status,an=(0,Te.Z)(Gn,Ni),Dt=vn===cr||vn===Cr;return te.createElement(le,(0,Fe.Z)({},mn,{key:an.key,visible:Dt,eventProps:an,onVisibleChanged:function(Jn){if(Ht==null||Ht(Jn,{key:an.key}),!Jn){var ia=ft.removeKey(an.key);ia===0&&At&&At()}}}),yt)}))}}],[{key:"getDerivedStateFromProps",value:function(ft,Ft){var vt=ft.keys,jt=Ft.keyEntities,yt=fr(vt),Ht=Dr(jt,yt);return{keyEntities:Ht.filter(function(At){var Jt=jt.find(function(Fn){var mn=Fn.key;return At.key===mn});return!(Jt&&Jt.status===lo&&At.status===qo)})}}}]),He}(te.Component);return(0,ue.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ra),Fi=zr;function Gi(ie){var le=ie.prefixCls,se=ie.align,Se=ie.arrow,Ee=ie.arrowPos,He=Se||{},We=He.className,ft=He.content,Ft=Ee.x,vt=Ft===void 0?0:Ft,jt=Ee.y,yt=jt===void 0?0:jt,Ht=te.useRef();if(!se||!se.points)return null;var At={position:"absolute"};if(se.autoArrow!==!1){var Jt=se.points[0],Fn=se.points[1],mn=Jt[0],Gn=Jt[1],vn=Fn[0],an=Fn[1];mn===vn||!["t","b"].includes(mn)?At.top=yt:mn==="t"?At.top=0:At.bottom=0,Gn===an||!["l","r"].includes(Gn)?At.left=vt:Gn==="l"?At.left=0:At.right=0}return te.createElement("div",{ref:Ht,className:fe()("".concat(le,"-arrow"),We),style:At},ft)}function Ti(ie){var le=ie.prefixCls,se=ie.open,Se=ie.zIndex,Ee=ie.mask,He=ie.motion;return Ee?te.createElement(Fi,(0,Fe.Z)({},He,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(We){var ft=We.className;return te.createElement("div",{style:{zIndex:Se},className:fe()("".concat(le,"-mask"),ft)})}):null}var zi=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Ai=zi,Ii=te.forwardRef(function(ie,le){var se=ie.popup,Se=ie.className,Ee=ie.prefixCls,He=ie.style,We=ie.target,ft=ie.onVisibleChanged,Ft=ie.open,vt=ie.keepDom,jt=ie.fresh,yt=ie.onClick,Ht=ie.mask,At=ie.arrow,Jt=ie.arrowPos,Fn=ie.align,mn=ie.motion,Gn=ie.maskMotion,vn=ie.forceRender,an=ie.getPopupContainer,Dt=ie.autoDestroy,ra=ie.portal,Jn=ie.zIndex,ia=ie.onMouseEnter,ya=ie.onMouseLeave,ja=ie.onPointerEnter,Wn=ie.ready,Mn=ie.offsetX,ha=ie.offsetY,Ca=ie.offsetR,ga=ie.offsetB,xn=ie.onAlign,Un=ie.onPrepare,pn=ie.stretch,Ha=ie.targetWidth,Vn=ie.targetHeight,Va=typeof se=="function"?se():se,so=Ft||vt,_a=(an==null?void 0:an.length)>0,uo=te.useState(!an||!_a),So=(0,Ie.Z)(uo,2),kn=So[0],mo=So[1];if(qt(function(){!kn&&_a&&We&&mo(!0)},[kn,_a,We]),!kn)return null;var Ea="auto",aa={left:"-1000vw",top:"-1000vh",right:Ea,bottom:Ea};if(Wn||!Ft){var Ga,wo=Fn.points,Ro=Fn.dynamicInset||((Ga=Fn._experimental)===null||Ga===void 0?void 0:Ga.dynamicInset),Uo=Ro&&wo[0][1]==="r",qa=Ro&&wo[0][0]==="b";Uo?(aa.right=Ca,aa.left=Ea):(aa.left=Mn,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)),Ft||(oo.pointerEvents="none"),te.createElement(ra,{open:vn||so,getContainer:an&&function(){return an(We)},autoDestroy:Dt},te.createElement(Ti,{prefixCls:Ee,open:Ft,zIndex:Jn,mask:Ht,motion:Gn}),te.createElement(rn.Z,{onResize:xn,disabled:!Ft},function(Oo){return te.createElement(Fi,(0,Fe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:vn,leavedClassName:"".concat(Ee,"-hidden")},mn,{onAppearPrepare:Un,onEnterPrepare:Un,visible:Ft,onVisibleChanged:function(da){var on;mn==null||(on=mn.onVisibleChanged)===null||on===void 0||on.call(mn,da),ft(da)}}),function(ro,da){var on=ro.className,Za=ro.style,co=fe()(Ee,on,Se);return te.createElement("div",{ref:ot(Oo,le,da),className:co,style:(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({"--arrow-x":"".concat(Jt.x||0,"px"),"--arrow-y":"".concat(Jt.y||0,"px")},aa),oo),Za),{},{boxSizing:"border-box",zIndex:Jn},He),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:yt},At&&te.createElement(Gi,{prefixCls:Ee,arrow:At,arrowPos:Jt,align:Fn}),te.createElement(Ai,{cache:!Ft&&!jt},Va))})}))}),Di=Ii,Ri=te.forwardRef(function(ie,le){var se=ie.children,Se=ie.getTriggerDOMNode,Ee=Pe(se),He=te.useCallback(function(ft){Ia(le,Se?Se(ft):ft)},[Se]),We=Ln(He,se.ref);return Ee?te.cloneElement(se,{ref:We}):se}),ki=Ri,ji=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Hi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sn,le=te.forwardRef(function(se,Se){var Ee=se.prefixCls,He=Ee===void 0?"rc-trigger-popup":Ee,We=se.children,ft=se.action,Ft=ft===void 0?"hover":ft,vt=se.showAction,jt=se.hideAction,yt=se.popupVisible,Ht=se.defaultPopupVisible,At=se.onPopupVisibleChange,Jt=se.afterPopupVisibleChange,Fn=se.mouseEnterDelay,mn=se.mouseLeaveDelay,Gn=mn===void 0?.1:mn,vn=se.focusDelay,an=se.blurDelay,Dt=se.mask,ra=se.maskClosable,Jn=ra===void 0?!0:ra,ia=se.getPopupContainer,ya=se.forceRender,ja=se.autoDestroy,Wn=se.destroyPopupOnHide,Mn=se.popup,ha=se.popupClassName,Ca=se.popupStyle,ga=se.popupPlacement,xn=se.builtinPlacements,Un=xn===void 0?{}:xn,pn=se.popupAlign,Ha=se.zIndex,Vn=se.stretch,Va=se.getPopupClassNameFromAlign,so=se.fresh,_a=se.alignPoint,uo=se.onPopupClick,So=se.onPopupAlign,kn=se.arrow,mo=se.popupMotion,Ea=se.maskMotion,aa=se.popupTransitionName,Ga=se.popupAnimation,wo=se.maskTransitionName,Ro=se.maskAnimation,Uo=se.className,qa=se.getTriggerDOMNode,oo=(0,Te.Z)(se,ji),Oo=ja||Wn||!1,ro=te.useState(!1),da=(0,Ie.Z)(ro,2),on=da[0],Za=da[1];qt(function(){Za(Dn())},[]);var co=te.useRef({}),Go=te.useContext(Xn),er=te.useMemo(function(){return{registerSubPopup:function(Bn,Ta){co.current[Bn]=Ta,Go==null||Go.registerSubPopup(Bn,Ta)}}},[Go]),tr=Kt(),ii=te.useState(null),Rr=(0,Ie.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=ye(function(Vt){jn(Vt)&&Bo!==Vt&&kr(Vt),Go==null||Go.registerSubPopup(tr,Vt)}),No=te.useState(null),jr=(0,Ie.Z)(No,2),Mo=jr[0],gi=jr[1],di=ye(function(Vt){jn(Vt)&&Mo!==Vt&&gi(Vt)}),Pr=te.Children.only(We),ho=(Pr==null?void 0:Pr.props)||{},Vo={},li=ye(function(Vt){var Bn,Ta,Ya=Mo;return(Ya==null?void 0:Ya.contains(Vt))||((Bn=Hn(Ya))===null||Bn===void 0?void 0:Bn.host)===Vt||Vt===Ya||(Bo==null?void 0:Bo.contains(Vt))||((Ta=Hn(Bo))===null||Ta===void 0?void 0:Ta.host)===Vt||Vt===Bo||Object.values(co.current).some(function(za){return(za==null?void 0:za.contains(Vt))||Vt===za})}),ko=ma(He,mo,Ga,aa),Po=ma(He,Ea,Ro,wo),Hr=te.useState(Ht||!1),Er=(0,Ie.Z)(Hr,2),Ko=Er[0],Wa=Er[1],qn=yt!=null?yt:Ko,To=ye(function(Vt){yt===void 0&&Wa(Vt)});qt(function(){Wa(yt||!1)},[yt]);var zo=te.useRef(qn);zo.current=qn;var Fr=ye(function(Vt){(0,Ke.flushSync)(function(){qn!==Vt&&(To(Vt),At==null||At(Vt))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Co=function(Bn){var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),Ta===0?Fr(Bn):xr.current=setTimeout(function(){Fr(Bn)},Ta*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Zr=(0,Ie.Z)(vr,2),$r=Zr[0],Nr=Zr[1];qt(function(Vt){(!Vt||qn)&&Nr(!0)},[qn]);var Wr=te.useState(null),Mr=(0,Ie.Z)(Wr,2),jo=Mr[0],nr=Mr[1],ar=te.useState([0,0]),or=(0,Ie.Z)(ar,2),Or=or[0],Ur=or[1],Ao=function(Bn){Ur([Bn.clientX,Bn.clientY])},Vr=mt(qn,Bo,_a?Or:Mo,ga,Un,pn,So),vo=(0,Ie.Z)(Vr,11),rr=vo[0],Kr=vo[1],si=vo[2],Xr=vo[3],_r=vo[4],ir=vo[5],Yr=vo[6],ui=vo[7],gr=vo[8],dr=vo[9],Gr=vo[10],lr=Tn(on,Ft,vt,jt),Xo=(0,Ie.Z)(lr,2),_o=Xo[0],sr=Xo[1],pr=_o.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Ho=ye(function(){$r||Gr()}),mi=function(){zo.current&&_a&&yr&&Co(!1)};Ot(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 Vt=ua(Un,He,dr,_a);return fe()(Vt,Va==null?void 0:Va(dr))},[dr,Va,Un,He,_a]);te.useImperativeHandle(Se,function(){return{forceAlign:Ho}});var ci=te.useState(0),Jr=(0,Ie.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Ie.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Vn&&Mo){var Bn=Mo.getBoundingClientRect();Si(Bn.width),vi(Bn.height)}},pi=function(){ei(),Ho()},yi=function(Bn){Nr(!1),Gr(),Jt==null||Jt(Bn)},Eo=function(){return new Promise(function(Bn){ei(),nr(function(){return Bn})})};qt(function(){jo&&(Gr(),jo(),nr(null))},[jo]);function Zo(Vt,Bn,Ta,Ya){Vo[Vt]=function(za){var ai;Ya==null||Ya(za),Co(Bn,Ta);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[Vt])===null||ai===void 0||ai.call.apply(ai,[ho,za].concat(Bi))}}(pr||yr)&&(Vo.onClick=function(Vt){var Bn;zo.current&&yr?Co(!1):!zo.current&&pr&&(Ao(Vt),Co(!0));for(var Ta=arguments.length,Ya=new Array(Ta>1?Ta-1:0),za=1;za<Ta;za++)Ya[za-1]=arguments[za];(Bn=ho.onClick)===null||Bn===void 0||Bn.call.apply(Bn,[ho,Vt].concat(Ya))}),ca(qn,yr,Mo,Bo,Dt,Jn,li,Co);var ti=_o.has("hover"),ur=sr.has("hover"),Yo,Tr;ti&&(Zo("onMouseEnter",!0,Fn,function(Vt){Ao(Vt)}),Zo("onPointerEnter",!0,Fn,function(Vt){Ao(Vt)}),Yo=function(){(qn||$r)&&Co(!0,Fn)},_a&&(Vo.onMouseMove=function(Vt){var Bn;(Bn=ho.onMouseMove)===null||Bn===void 0||Bn.call(ho,Vt)})),ur&&(Zo("onMouseLeave",!1,Gn),Zo("onPointerLeave",!1,Gn),Tr=function(){Co(!1,Gn)}),_o.has("focus")&&Zo("onFocus",!0,vn),sr.has("focus")&&Zo("onBlur",!1,an),_o.has("contextMenu")&&(Vo.onContextMenu=function(Vt){var Bn;zo.current&&sr.has("contextMenu")?Co(!1):(Ao(Vt),Co(!0)),Vt.preventDefault();for(var Ta=arguments.length,Ya=new Array(Ta>1?Ta-1:0),za=1;za<Ta;za++)Ya[za-1]=arguments[za];(Bn=ho.onContextMenu)===null||Bn===void 0||Bn.call.apply(Bn,[ho,Vt].concat(Ya))}),Uo&&(Vo.className=fe()(ho.className,Uo));var br=(0,xe.Z)((0,xe.Z)({},ho),Vo),ni={},bi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];bi.forEach(function(Vt){oo[Vt]&&(ni[Vt]=function(){for(var Bn,Ta=arguments.length,Ya=new Array(Ta),za=0;za<Ta;za++)Ya[za]=arguments[za];(Bn=br[Vt])===null||Bn===void 0||Bn.call.apply(Bn,[br].concat(Ya)),oo[Vt].apply(oo,Ya)})});var Li=te.cloneElement(Pr,(0,xe.Z)((0,xe.Z)({},br),ni)),wi={x:ir,y:Yr},Ci=kn?(0,xe.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},Li)),te.createElement(Xn.Provider,{value:er},te.createElement(Di,{portal:ie,ref:$o,prefixCls:He,popup:Mn,className:fe()(ha,Qr),style:Ca,target:Mo,onMouseEnter:Yo,onMouseLeave:Tr,onPointerEnter:Yo,zIndex:Ha,open:qn,keepDom:$r,fresh:so,onClick:uo,mask:Dt,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:Xr,offsetB:_r,onAlign:Ho,stretch:Vn,targetWidth:fi/ui,targetHeight:Pi/gr})))});return le}var Zi=Hi(sn),dn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var se=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||se>=dn.F1&&se<=dn.F12)return!1;switch(se){case dn.ALT:case dn.CAPS_LOCK:case dn.CONTEXT_MENU:case dn.CTRL:case dn.DOWN:case dn.END:case dn.ESC:case dn.HOME:case dn.INSERT:case dn.LEFT:case dn.MAC_FF_META:case dn.META:case dn.NUMLOCK:case dn.NUM_CENTER:case dn.PAGE_DOWN:case dn.PAGE_UP:case dn.PAUSE:case dn.PRINT_SCREEN:case dn.RIGHT:case dn.SHIFT:case dn.UP:case dn.WIN_KEY:case dn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=dn.ZERO&&le<=dn.NINE||le>=dn.NUM_ZERO&&le<=dn.NUM_MULTIPLY||le>=dn.A&&le<=dn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case dn.SPACE:case dn.QUESTION_MARK:case dn.NUM_PLUS:case dn.NUM_MINUS:case dn.NUM_PERIOD:case dn.NUM_DIVISION:case dn.SEMICOLON:case dn.DASH:case dn.EQUALS:case dn.COMMA:case dn.PERIOD:case dn.SLASH:case dn.APOSTROPHE:case dn.SINGLE_QUOTE:case dn.OPEN_SQUARE_BRACKET:case dn.BACKSLASH:case dn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=dn,Wi=xi.ESC,Ui=xi.TAB;function Vi(ie){var le=ie.visible,se=ie.triggerRef,Se=ie.onVisibleChange,Ee=ie.autoFocus,He=ie.overlayRef,We=te.useRef(!1),ft=function(){if(le){var yt,Ht;(yt=se.current)===null||yt===void 0||(Ht=yt.focus)===null||Ht===void 0||Ht.call(yt),Se==null||Se(!1)}},Ft=function(){var yt;return(yt=He.current)!==null&&yt!==void 0&&yt.focus?(He.current.focus(),We.current=!0,!0):!1},vt=function(yt){switch(yt.keyCode){case Wi:ft();break;case Ui:{var Ht=!1;We.current||(Ht=Ft()),Ht?yt.preventDefault():ft();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",vt),Ee&&Pt(Ft,3),function(){window.removeEventListener("keydown",vt),We.current=!1}):function(){We.current=!1}},[le])}var Ki=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,Se=ie.arrow,Ee=ie.prefixCls,He=(0,te.useMemo)(function(){var ft;return typeof se=="function"?ft=se():ft=se,ft},[se]),We=de(le,He==null?void 0:He.ref);return te.createElement(te.Fragment,null,Se&&te.createElement("div",{className:"".concat(Ee,"-arrow")}),te.cloneElement(He,{ref:ce(He)?We:void 0}))}),Xi=Ki,Sr={adjustX:1,adjustY:1},hr=[0,0],_i={topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-4],targetOffset:hr},top:{points:["bc","tc"],overflow:Sr,offset:[0,-4],targetOffset:hr},topRight:{points:["br","tr"],overflow:Sr,offset:[0,-4],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:Sr,offset:[0,4],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:Sr,offset:[0,4],targetOffset:hr}},Yi=_i,Qi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ji(ie,le){var se,Se=ie.arrow,Ee=Se===void 0?!1:Se,He=ie.prefixCls,We=He===void 0?"rc-dropdown":He,ft=ie.transitionName,Ft=ie.animation,vt=ie.align,jt=ie.placement,yt=jt===void 0?"bottomLeft":jt,Ht=ie.placements,At=Ht===void 0?Yi:Ht,Jt=ie.getPopupContainer,Fn=ie.showAction,mn=ie.hideAction,Gn=ie.overlayClassName,vn=ie.overlayStyle,an=ie.visible,Dt=ie.trigger,ra=Dt===void 0?["hover"]:Dt,Jn=ie.autoFocus,ia=ie.overlay,ya=ie.children,ja=ie.onVisibleChange,Wn=(0,Te.Z)(ie,Qi),Mn=te.useState(),ha=(0,Ie.Z)(Mn,2),Ca=ha[0],ga=ha[1],xn="visible"in ie?an: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:xn,triggerRef:Ha,onVisibleChange:Vn,autoFocus:Jn,overlayRef:pn});var Va=function(aa){var Ga=ie.onOverlayClick;ga(!1),Ga&&Ga(aa)},so=function(){return te.createElement(Xi,{ref:pn,overlay:ia,prefixCls:We,arrow:Ee})},_a=function(){return typeof ia=="function"?so:so()},uo=function(){var aa=ie.minOverlayWidthMatchTrigger,Ga=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?aa:!Ga},So=function(){var aa=ie.openClassName;return aa!==void 0?aa:"".concat(We,"-open")},kn=te.cloneElement(ya,{className:fe()((se=ya.props)===null||se===void 0?void 0:se.className,xn&&So()),ref:ce(ya)?de(Ha,ya.ref):void 0}),mo=mn;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Zi,(0,Fe.Z)({builtinPlacements:At},Wn,{prefixCls:We,ref:Un,popupClassName:fe()(Gn,(0,ue.Z)({},"".concat(We,"-show-arrow"),Ee)),popupStyle:vn,action:ra,showAction:Fn,hideAction:mo,popupPlacement:yt,popupAlign:vt,popupTransitionName:ft,popupAnimation:Ft,popupVisible:xn,stretch:uo()?"minWidth":"",popup:_a(),onPopupVisibleChange:Vn,onPopupClick:Va,getPopupContainer:Jt}),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=ie=>{const{menu:le,arrow:se,prefixCls:Se,children:Ee,trigger:He,disabled:We,dropdownRender:ft,getPopupContainer:Ft,overlayClassName:vt,rootClassName:jt,open:yt,onOpenChange:Ht,visible:At,onVisibleChange:Jt,mouseEnterDelay:Fn=.15,mouseLeaveDelay:mn=.1,autoAdjustOverflow:Gn=!0,placement:vn="",overlay:an,transitionName:Dt}=ie,{getPopupContainer:ra,getPrefixCls:Jn,direction:ia}=te.useContext(gg.E_),ya=te.useMemo(()=>{const kn=Jn();return Dt!==void 0?Dt:vn.includes("top")?`${kn}-slide-down`:`${kn}-slide-up`},[Jn,vn,Dt]),ja=te.useMemo(()=>vn?vn.includes("Center")?vn.slice(0,vn.indexOf("Center")):vn:ia==="rtl"?"bottomRight":"bottomLeft",[vn,ia]),Wn=Jn("dropdown",Se),[Mn,ha]=(0,ug.Z)(Wn),[,Ca]=(0,sg.Z)(),ga=te.Children.only(Ee),xn=(0,ig.Tm)(ga,{className:fe()(`${Wn}-trigger`,{[`${Wn}-rtl`]:ia==="rtl"},ga.props.className),disabled:We}),Un=We?[]:He;let pn;Un&&Un.includes("contextMenu")&&(pn=!0);const[Ha,Vn]=(0,ng.Z)(!1,{value:yt!=null?yt:At}),Va=(0,tg.useEvent)(kn=>{Ht==null||Ht(kn),Jt==null||Jt(kn),Vn(kn)}),so=fe()(vt,jt,ha,{[`${Wn}-rtl`]:ia==="rtl"}),_a=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Gn,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 an=="function"?kn=an():kn=an,ft&&(kn=ft(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 Mn(te.createElement(eg,Object.assign({alignPoint:pn},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:Fn,mouseLeaveDelay:mn,visible:Ha,builtinPlacements:_a,arrow:!!se,overlayClassName:so,prefixCls:Wn,getPopupContainer:Ft||ra,transitionName:ya,trigger:Un,overlay:So,placement:ja,onVisibleChange:Va}),xn))};function mg(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cg=(0,rg.Z)(ri,"dropdown",ie=>ie,mg),fg=ie=>te.createElement(cg,Object.assign({},ie),te.createElement("span",null));ri._InternalPanelDoNotUseOrYouWillBeFired=fg;var Sg=ri},66748:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Ke}});var te=oe(14747),pe=oe(67771),Je=oe(33297),je=oe(50438),fe=oe(97414),Fe=oe(67968),ue=oe(45503),Te=ke=>{const{componentCls:Re,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const xe=ke=>{const{componentCls:Re,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:he,colorBgElevated:ce}=ke;return[{[Re]:Object.assign(Object.assign({},(0,te.Wf)(ke)),{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}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-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${Re}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:pe.ly}})},(0,fe.ZP)(ke,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${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}},[`${Re}, ${Re}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,te.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${he}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${he}px`,color:ke.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,te.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:he+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Re}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,pe.oN)(ke,"slide-up"),(0,pe.oN)(ke,"slide-down"),(0,Je.Fm)(ke,"move-up"),(0,Je.Fm)(ke,"move-down"),(0,je._y)(ke,"zoom-big")]]};var Ke=(0,Fe.Z)("Dropdown",(ke,Re)=>{let{rootPrefixCls:ae}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,fe.fS)({contentRadius:ne}),de=(0,ue.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[xe(de),Te(de)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},71322:function(ze,ct,oe){"use strict";oe.d(ct,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),pe=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"},je=Je,fe=oe(74643),Fe=function(ge,de){return pe.createElement(fe.Z,(0,te.Z)({},ge,{ref:de,icon:je}))},ue=pe.forwardRef(Fe),Ie=oe(22751),Te=oe(91034),xe=oe(94184),Ke=oe.n(xe),ke=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ge){var de={};for(var he in re)Object.prototype.hasOwnProperty.call(re,he)&&ge.indexOf(he)<0&&(de[he]=re[he]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,he=Object.getOwnPropertySymbols(re);ce<he.length;ce++)ge.indexOf(he[ce])<0&&Object.prototype.propertyIsEnumerable.call(re,he[ce])&&(de[he[ce]]=re[he[ce]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=pe.createContext({}),z=(()=>{let re=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ge}${re}`}})();var ne=pe.forwardRef((re,ge)=>{const{prefixCls:de,className:he,trigger:ce,children:De,defaultCollapsed:Ne=!1,theme:st="dark",style:xt={},collapsible:gn=!1,reverseArrow:Me=!1,width:dt=200,collapsedWidth:qe=80,zeroWidthTriggerStyle:at,breakpoint:ut,onCollapse:Bt,onBreakpoint:Yt}=re,bn=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:cn}=(0,pe.useContext)(y.Gs),[Ce,Ue]=(0,pe.useState)("collapsed"in re?re.collapsed:Ne),[rt,Rt]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{"collapsed"in re&&Ue(re.collapsed)},[re.collapsed]);const lt=(wt,Xe)=>{"collapsed"in re||Ue(wt),Bt==null||Bt(wt,Xe)},Ct=(0,pe.useRef)();Ct.current=wt=>{Rt(wt.matches),Yt==null||Yt(wt.matches),Ce!==wt.matches&&lt(wt.matches,"responsive")},(0,pe.useEffect)(()=>{function wt(Be){return Ct.current(Be)}let Xe;if(typeof window!="undefined"){const{matchMedia:Be}=window;if(Be&&ut&&ut in b){Xe=Be(`(max-width: ${b[ut]})`);try{Xe.addEventListener("change",wt)}catch(be){Xe.addListener(wt)}wt(Xe)}}return()=>{try{Xe==null||Xe.removeEventListener("change",wt)}catch(Be){Xe==null||Xe.removeListener(wt)}}},[ut]),(0,pe.useEffect)(()=>{const wt=z("ant-sider-");return cn.addSider(wt),()=>cn.removeSider(wt)},[]);const me=()=>{lt(!Ce,"clickTrigger")},{getPrefixCls:St}=(0,pe.useContext)(a.E_),$t=()=>{const wt=St("layout-sider",de),Xe=(0,ke.Z)(bn,["collapsed"]),Be=Ce?qe:dt,be=ae(Be)?`${Be}px`:String(Be),Qe=parseFloat(String(qe||0))===0?pe.createElement("span",{onClick:me,className:Ke()(`${wt}-zero-width-trigger`,`${wt}-zero-width-trigger-${Me?"right":"left"}`),style:at},ce||pe.createElement(ue,null)):null,It={expanded:Me?pe.createElement(Te.Z,null):pe.createElement(Ie.Z,null),collapsed:Me?pe.createElement(Ie.Z,null):pe.createElement(Te.Z,null)}[Ce?"collapsed":"expanded"],kt=ce!==null?Qe||pe.createElement("div",{className:`${wt}-trigger`,onClick:me,style:{width:be}},ce||It):null,Qt=Object.assign(Object.assign({},xt),{flex:`0 0 ${be}`,maxWidth:be,minWidth:be,width:be}),ln=Ke()(wt,`${wt}-${st}`,{[`${wt}-collapsed`]:!!Ce,[`${wt}-has-trigger`]:gn&&ce!==null&&!Qe,[`${wt}-below`]:!!rt,[`${wt}-zero-width`]:parseFloat(be)===0},he);return pe.createElement("aside",Object.assign({className:ln},Xe,{style:Qt,ref:ge}),pe.createElement("div",{className:`${wt}-children`},De),gn||rt&&Qe?kt:null)},tn=pe.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return pe.createElement(x.Provider,{value:tn},$t())})},84321:function(ze,ct,oe){"use strict";oe.d(ct,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var te=oe(74902),pe=oe(94184),Je=oe.n(pe),je=oe(10366),fe=oe(67294),Fe=oe(53124),ue=oe(67968),Te=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:he,lightTriggerColor:ce}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:ce,background:he},[`${re}-sider-zero-width-trigger`]:{color:ce,background:he,border:`1px solid ${ge}`,borderInlineStart:0}}}};const xe=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:he,footerBg:ce,triggerBg:De,headerHeight:Ne,headerPadding:st,headerColor:xt,footerPadding:gn,triggerHeight:Me,zeroTriggerHeight:dt,zeroTriggerWidth:qe,motionDurationMid:at,motionDurationSlow:ut,fontSize:Bt,borderRadius:Yt,bodyBg:bn,headerBg:cn,siderBg:Ce}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{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:Ce,transition:`all ${at}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:he,lineHeight:`${Me}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${at}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-qe,zIndex:1,width:qe,height:dt,color:he,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ce,borderStartStartRadius:0,borderStartEndRadius:Yt,borderEndEndRadius:Yt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ut} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ut}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-qe,borderStartStartRadius:Yt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Yt}}}}},Te(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ne,padding:st,color:xt,lineHeight:`${Ne}px`,background:cn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:gn,color:de,fontSize:Bt,background:ce},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ke=(0,ue.Z)("Layout",ne=>[xe(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:he,controlHeightSM:ce,marginXXS:De,colorTextLightSolid:Ne,colorBgContainer:st}=ne,xt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${xt}px`,headerColor:he,footerPadding:`${ce}px ${xt}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+De*2,triggerBg:"#002140",triggerColor:Ne,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:st,lightTriggerBg:st,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(ne,re){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&re.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,de=Object.getOwnPropertySymbols(ne);he<de.length;he++)re.indexOf(de[he])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[he])&&(ge[de[he]]=ne[de[he]]);return ge};const Re=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return he=>fe.forwardRef((De,Ne)=>fe.createElement(he,Object.assign({ref:Ne,suffixCls:re,tagName:ge},De)))}const a=fe.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:he,tagName:ce}=ne,De=ke(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=fe.useContext(Fe.E_),st=Ne("layout",ge),[xt,gn]=Ke(st),Me=de?`${st}-${de}`:st;return xt(fe.createElement(ce,Object.assign({className:Je()(ge||Me,he,gn),ref:re},De)))}),y=fe.forwardRef((ne,re)=>{const{direction:ge}=fe.useContext(Fe.E_),[de,he]=fe.useState([]),{prefixCls:ce,className:De,rootClassName:Ne,children:st,hasSider:xt,tagName:gn,style:Me}=ne,dt=ke(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),qe=(0,je.Z)(dt,["suffixCls"]),{getPrefixCls:at,layout:ut}=fe.useContext(Fe.E_),Bt=at("layout",ce),[Yt,bn]=Ke(Bt),cn=Je()(Bt,{[`${Bt}-has-sider`]:typeof xt=="boolean"?xt:de.length>0,[`${Bt}-rtl`]:ge==="rtl"},ut==null?void 0:ut.className,De,Ne,bn),Ce=fe.useMemo(()=>({siderHook:{addSider:Ue=>{he(rt=>[].concat((0,te.Z)(rt),[Ue]))},removeSider:Ue=>{he(rt=>rt.filter(Rt=>Rt!==Ue))}}}),[]);return Yt(fe.createElement(Re.Provider,{value:Ce},fe.createElement(gn,Object.assign({ref:re,className:cn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Me)},qe),st)))}),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(ze,ct,oe){"use strict";oe.d(ct,{J:function(){return Fe}});var te=oe(67294),pe=oe(4173),Je=oe(60276),je=function(ue,Ie){var Te={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&Ie.indexOf(xe)<0&&(Te[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,xe=Object.getOwnPropertySymbols(ue);Ke<xe.length;Ke++)Ie.indexOf(xe[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ue,xe[Ke])&&(Te[xe[Ke]]=ue[xe[Ke]]);return Te};const fe=te.createContext(null),Fe=te.forwardRef((ue,Ie)=>{const{children:Te}=ue,xe=je(ue,["children"]),Ke=te.useContext(fe),ke=te.useMemo(()=>Object.assign(Object.assign({},Ke),xe),[Ke,xe.prefixCls,xe.mode,xe.selectable]);return te.createElement(fe.Provider,{value:ke},te.createElement(pe.BR,null,(0,Je.supportNodeRef)(Te)?te.cloneElement(Te,{ref:Ie}):Te))});ct.Z=fe},68508:function(ze,ct,oe){"use strict";oe.d(ct,{default:function(){return wt}});var te=oe(52073),pe=oe(67294),Je=oe(71322),je=oe(94184),fe=oe.n(je),Fe=oe(53124),ue=function(Xe,Be){var be={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&Be.indexOf(Qe)<0&&(be[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Qe=Object.getOwnPropertySymbols(Xe);nt<Qe.length;nt++)Be.indexOf(Qe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[nt])&&(be[Qe[nt]]=Xe[Qe[nt]]);return be},Te=Xe=>{const{prefixCls:Be,className:be,dashed:Qe}=Xe,nt=ue(Xe,["prefixCls","className","dashed"]),{getPrefixCls:pt}=pe.useContext(Fe.E_),It=pt("menu",Be),kt=fe()({[`${It}-item-divider-dashed`]:!!Qe},be);return pe.createElement(te.iz,Object.assign({className:kt},nt))},xe=oe(37419),Ke=oe(10366),ke=oe(83062),Re=oe(96159),a=(0,pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Xe=>{var Be;const{className:be,children:Qe,icon:nt,title:pt,danger:It}=Xe,{prefixCls:kt,firstLevel:Qt,direction:ln,disableMenuItemTitleTooltip:sn,inlineCollapsed:rn}=pe.useContext(a),jn=Oe=>{const Ye=pe.createElement("span",{className:`${kt}-title-content`},Qe);return(!nt||(0,Re.l$)(Qe)&&Qe.type==="span")&&Qe&&Oe&&Qt&&typeof Qe=="string"?pe.createElement("div",{className:`${kt}-inline-collapsed-noicon`},Qe.charAt(0)):Ye},{siderCollapsed:Rn}=pe.useContext(Je.D);let oa=pt;typeof pt=="undefined"?oa=Qt?Qe:"":pt===!1&&(oa="");const In={title:oa};!Rn&&!rn&&(In.title=null,In.open=!1);const Hn=(0,xe.Z)(Qe).length;let ye=pe.createElement(te.ck,Object.assign({},(0,Ke.Z)(Xe,["title","icon","danger"]),{className:fe()({[`${kt}-item-danger`]:It,[`${kt}-item-only-child`]:(nt?Hn+1:Hn)===1},be),title:typeof pt=="string"?pt:void 0}),(0,Re.Tm)(nt,{className:fe()((0,Re.l$)(nt)?(Be=nt.props)===null||Be===void 0?void 0:Be.className:"",`${kt}-item-icon`)}),jn(rn));return sn||(ye=pe.createElement(ke.Z,Object.assign({},In,{placement:ln==="rtl"?"left":"right",overlayClassName:`${kt}-inline-collapsed-tooltip`}),ye)),ye},x=Xe=>{var Be;const{popupClassName:be,icon:Qe,title:nt,theme:pt}=Xe,It=pe.useContext(a),{prefixCls:kt,inlineCollapsed:Qt,theme:ln}=It,sn=(0,te.Xl)();let rn;if(!Qe)rn=Qt&&!sn.length&&nt&&typeof nt=="string"?pe.createElement("div",{className:`${kt}-inline-collapsed-noicon`},nt.charAt(0)):pe.createElement("span",{className:`${kt}-title-content`},nt);else{const Rn=(0,Re.l$)(nt)&&nt.type==="span";rn=pe.createElement(pe.Fragment,null,(0,Re.Tm)(Qe,{className:fe()((0,Re.l$)(Qe)?(Be=Qe.props)===null||Be===void 0?void 0:Be.className:"",`${kt}-item-icon`)}),Rn?nt:pe.createElement("span",{className:`${kt}-title-content`},nt))}const jn=pe.useMemo(()=>Object.assign(Object.assign({},It),{firstLevel:!1}),[It]);return pe.createElement(a.Provider,{value:jn},pe.createElement(te.Wd,Object.assign({},(0,Ke.Z)(Xe,["icon"]),{title:rn,popupClassName:fe()(kt,be,`${kt}-${pt||ln}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Xe,Be){var be={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&Be.indexOf(Qe)<0&&(be[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Qe=Object.getOwnPropertySymbols(Xe);nt<Qe.length;nt++)Be.indexOf(Qe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[nt])&&(be[Qe[nt]]=Xe[Qe[nt]]);return be};function de(Xe){return(Xe||[]).map((Be,be)=>{if(Be&&typeof Be=="object"){const Qe=Be,{label:nt,children:pt,key:It,type:kt}=Qe,Qt=ge(Qe,["label","children","key","type"]),ln=It!=null?It:`tmp-${be}`;return pt||kt==="group"?kt==="group"?pe.createElement(te.BW,Object.assign({key:ln},Qt,{title:nt}),de(pt)):pe.createElement(x,Object.assign({key:ln},Qt,{title:nt}),de(pt)):kt==="divider"?pe.createElement(Te,Object.assign({key:ln},Qt)):pe.createElement(E,Object.assign({key:ln},Qt),nt)}return null}).filter(Be=>Be)}function he(Xe){return pe.useMemo(()=>Xe&&de(Xe),[Xe])}var ce=oe(84780),De=oe(14747),Ne=oe(33507),st=oe(67771),xt=oe(50438),gn=oe(67968),Me=oe(45503),qe=Xe=>{const{componentCls:Be,motionDurationSlow:be,horizontalLineHeight:Qe,colorSplit:nt,lineWidth:pt,lineType:It,itemPaddingInline:kt}=Xe;return{[`${Be}-horizontal`]:{lineHeight:Qe,border:0,borderBottom:`${pt}px ${It} ${nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:kt},[`> ${Be}-item:hover,
> ${Be}-item-active,
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},ut=Xe=>{let{componentCls:Be,menuArrowOffset:be}=Xe;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${be})`},"&::after":{transform:`rotate(45deg) translateY(${be})`}}}}};const Bt=Xe=>Object.assign({},(0,De.oN)(Xe));var bn=(Xe,Be)=>{const{componentCls:be,itemColor:Qe,itemSelectedColor:nt,groupTitleColor:pt,itemBg:It,subMenuItemBg:kt,itemSelectedBg:Qt,activeBarHeight:ln,activeBarWidth:sn,activeBarBorderWidth:rn,motionDurationSlow:jn,motionEaseInOut:Rn,motionEaseOut:oa,itemPaddingInline:In,motionDurationMid:Hn,itemHoverColor:ye,lineType:Oe,colorSplit:Ye,itemDisabledColor:ht,dangerItemColor:Lt,dangerItemHoverColor:Kt,dangerItemSelectedColor:_t,dangerItemActiveBg:Gt,dangerItemSelectedBg:Zt,itemHoverBg:Pn,itemActiveBg:qt,menuSubMenuBg:Dn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:Xn,horizontalItemBorderRadius:la,horizontalItemHoverBg:Tn,popupBg:$n}=Xe;return{[`${be}-${Be}, ${be}-${Be} > ${be}`]:{color:Qe,background:It,[`&${be}-root:focus-visible`]:Object.assign({},Bt(Xe)),[`${be}-item-group-title`]:{color:pt},[`${be}-submenu-selected`]:{[`> ${be}-submenu-title`]:{color:nt}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${ht} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:ye}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:Pn},"&:active":{backgroundColor:qt}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:Pn},"&:active":{backgroundColor:qt}}},[`${be}-item-danger`]:{color:Lt,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:Kt}},[`&${be}-item:active`]:{background:Gt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:nt,[`&${be}-item-danger`]:{color:_t},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Qt,[`&${be}-item-danger`]:{backgroundColor:Zt}},[`${be}-item, ${be}-submenu-title`]:{[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},Bt(Xe))},[`&${be}-submenu > ${be}`]:{backgroundColor:Dn},[`&${be}-popup > ${be}`]:{backgroundColor:$n},[`&${be}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:rn,marginTop:-rn,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:In,bottom:0,borderBottom:`${ln}px solid transparent`,transition:`border-color ${jn} ${Rn}`,content:'""'},"&:hover, &-active, &-open":{background:Tn,"&::after":{borderBottomWidth:ln,borderBottomColor:Kn}},"&-selected":{color:Kn,backgroundColor:Xn,"&:hover":{backgroundColor:Xn},"&::after":{borderBottomWidth:ln,borderBottomColor:Kn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${rn}px ${Oe} ${Ye}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:kt},[`${be}-item, ${be}-submenu-title`]:rn&&sn?{width:`calc(100% + ${rn}px)`}:{},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${sn}px solid ${nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Hn} ${oa}`,`opacity ${Hn} ${oa}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:_t}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Hn} ${Rn}`,`opacity ${Hn} ${Rn}`].join(",")}}}}}};const cn=Xe=>{const{componentCls:Be,itemHeight:be,itemMarginInline:Qe,padding:nt,menuArrowSize:pt,marginXS:It,itemMarginBlock:kt}=Xe,Qt=nt+pt+It;return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:be,lineHeight:`${be}px`,paddingInline:nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Qe,marginBlock:kt,width:`calc(100% - ${Qe*2}px)`},[`> ${Be}-item,
> ${Be}-submenu > ${Be}-submenu-title`]:{height:be,lineHeight:`${be}px`},[`${Be}-item-group-list ${Be}-submenu-title,
${Be}-submenu-title`]:{paddingInlineEnd:Qt}}};var Ue=Xe=>{const{componentCls:Be,iconCls:be,itemHeight:Qe,colorTextLightSolid:nt,dropdownWidth:pt,controlHeightLG:It,motionDurationMid:kt,motionEaseOut:Qt,paddingXL:ln,itemMarginInline:sn,fontSizeLG:rn,motionDurationSlow:jn,paddingXS:Rn,boxShadowSecondary:oa,collapsedWidth:In,collapsedIconSize:Hn}=Xe,ye={height:Qe,lineHeight:`${Qe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},cn(Xe))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},cn(Xe)),{boxShadow:oa})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:pt,maxHeight:`calc(100vh - ${It*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${jn}`,`background ${jn}`,`padding ${kt} ${Qt}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:ye,[`& ${Be}-item-group-title`]:{paddingInlineStart:ln}},[`${Be}-item`]:ye}},{[`${Be}-inline-collapsed`]:{width:In,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:rn,textAlign:"center"}}},[`> ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${rn/2}px - ${sn}px)`,textOverflow:"clip",[`
${Be}-submenu-arrow,
${Be}-submenu-expand-icon
`]:{opacity:0},[`${Be}-item-icon, ${be}`]:{margin:0,fontSize:Hn,lineHeight:`${Qe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:nt}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Rn})}}]};const rt=Xe=>{const{componentCls:Be,motionDurationSlow:be,motionDurationMid:Qe,motionEaseInOut:nt,motionEaseOut:pt,iconCls:It,iconSize:kt,iconMarginInlineEnd:Qt}=Xe;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding ${be} ${nt}`].join(","),[`${Be}-item-icon, ${It}`]:{minWidth:kt,fontSize:kt,transition:[`font-size ${Qe} ${pt}`,`margin ${be} ${nt}`,`color ${be}`].join(","),"+ span":{marginInlineStart:Qt,opacity:1,transition:[`opacity ${be} ${nt}`,`margin ${be}`,`color ${be}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${Be}-item-only-child`]:{[`> ${It}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Rt=Xe=>{const{componentCls:Be,motionDurationSlow:be,motionEaseInOut:Qe,borderRadius:nt,menuArrowSize:pt,menuArrowOffset:It}=Xe;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Xe.margin,width:pt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${Qe}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:pt*.6,height:pt*.15,backgroundColor:"currentcolor",borderRadius:nt,transition:[`background ${be} ${Qe}`,`transform ${be} ${Qe}`,`top ${be} ${Qe}`,`color ${be} ${Qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${It})`},"&::after":{transform:`rotate(-45deg) translateY(${It})`}}}}},lt=Xe=>{const{antCls:Be,componentCls:be,fontSize:Qe,motionDurationSlow:nt,motionDurationMid:pt,motionEaseInOut:It,paddingXS:kt,padding:Qt,colorSplit:ln,lineWidth:sn,zIndexPopup:rn,borderRadiusLG:jn,subMenuItemBorderRadius:Rn,menuArrowSize:oa,menuArrowOffset:In,lineType:Hn,menuPanelMaskInset:ye,groupTitleLineHeight:Oe,groupTitleFontSize:Ye}=Xe;return[{"":{[`${be}`]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(Xe)),(0,De.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",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:Xe.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${kt}px ${Qt}px`,fontSize:Ye,lineHeight:Oe,transition:`all ${nt}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${nt} ${It}`,`background ${nt} ${It}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${nt} ${It}`,`background ${nt} ${It}`,`padding ${pt} ${It}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${nt} ${It}`,`padding ${nt} ${It}`].join(",")},[`${be}-title-content`]:{transition:`color ${nt}`},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ln,borderStyle:Hn,borderWidth:0,borderTopWidth:sn,marginBlock:sn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Xe)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${Qe*2}px ${Qt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:rn,borderRadius:jn,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd: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},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:jn},rt(Xe)),Rt(Xe)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:Rn},[`${be}-submenu-title::after`]:{transition:`transform ${nt} ${It}`}})}}),Rt(Xe)),{[`&-inline-collapsed ${be}-submenu-arrow,
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${In})`},"&::after":{transform:`rotate(45deg) translateX(-${In})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(-${oa*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${In})`},"&::before":{transform:`rotate(45deg) translateX(${In})`}}})},{[`${Be}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]};var Ct=(Xe,Be)=>(0,gn.Z)("Menu",Qe=>{if(Be===!1)return[];const{colorBgElevated:nt,colorPrimary:pt,colorTextLightSolid:It,controlHeightLG:kt,fontSize:Qt,darkItemColor:ln,darkDangerItemColor:sn,darkItemBg:rn,darkSubMenuItemBg:jn,darkItemSelectedColor:Rn,darkItemSelectedBg:oa,darkDangerItemSelectedBg:In,darkItemHoverBg:Hn,darkGroupTitleColor:ye,darkItemHoverColor:Oe,darkItemDisabledColor:Ye,darkDangerItemHoverColor:ht,darkDangerItemSelectedColor:Lt,darkDangerItemActiveBg:Kt}=Qe,_t=Qt/7*5,Gt=(0,Me.TS)(Qe,{menuArrowSize:_t,menuHorizontalHeight:kt*1.15,menuArrowOffset:`${_t*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:nt}),Zt=(0,Me.TS)(Gt,{itemColor:ln,itemHoverColor:Oe,groupTitleColor:ye,itemSelectedColor:Rn,itemBg:rn,popupBg:rn,subMenuItemBg:jn,itemActiveBg:"transparent",itemSelectedBg:oa,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Hn,itemDisabledColor:Ye,dangerItemColor:sn,dangerItemHoverColor:ht,dangerItemSelectedColor:Lt,dangerItemActiveBg:Kt,dangerItemSelectedBg:In,menuSubMenuBg:jn,horizontalItemSelectedColor:It,horizontalItemSelectedBg:pt});return[lt(Gt),qe(Gt),Ue(Gt),bn(Gt,"light"),bn(Zt,"dark"),ut(Gt),(0,Ne.Z)(Gt),(0,st.oN)(Gt,"slide-up"),(0,st.oN)(Gt,"slide-down"),(0,xt._y)(Gt,"zoom-big")]},Qe=>{const{colorPrimary:nt,colorError:pt,colorTextDisabled:It,colorErrorBg:kt,colorText:Qt,colorTextDescription:ln,colorBgContainer:sn,colorFillAlter:rn,colorFillContent:jn,lineWidth:Rn,lineWidthBold:oa,controlItemBgActive:In,colorBgTextHover:Hn,controlHeightLG:ye,lineHeight:Oe,colorBgElevated:Ye,marginXXS:ht,padding:Lt,fontSize:Kt,controlHeightSM:_t,fontSizeLG:Gt,colorTextLightSolid:Zt,colorErrorHover:Pn}=Qe,qt=new ce.C(Zt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Qe.zIndexPopupBase+50,radiusItem:Qe.borderRadiusLG,itemBorderRadius:Qe.borderRadiusLG,radiusSubMenuItem:Qe.borderRadiusSM,subMenuItemBorderRadius:Qe.borderRadiusSM,colorItemText:Qt,itemColor:Qt,colorItemTextHover:Qt,itemHoverColor:Qt,colorItemTextHoverHorizontal:nt,horizontalItemHoverColor:nt,colorGroupTitle:ln,groupTitleColor:ln,colorItemTextSelected:nt,itemSelectedColor:nt,colorItemTextSelectedHorizontal:nt,horizontalItemSelectedColor:nt,colorItemBg:sn,itemBg:sn,colorItemBgHover:Hn,itemHoverBg:Hn,colorItemBgActive:jn,itemActiveBg:In,colorSubItemBg:rn,subMenuItemBg:rn,colorItemBgSelected:In,itemSelectedBg:In,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:oa,activeBarHeight:oa,colorActiveBarBorderSize:Rn,activeBarBorderWidth:Rn,colorItemTextDisabled:It,itemDisabledColor:It,colorDangerItemText:pt,dangerItemColor:pt,colorDangerItemTextHover:pt,dangerItemHoverColor:pt,colorDangerItemTextSelected:pt,dangerItemSelectedColor:pt,colorDangerItemBgActive:kt,dangerItemActiveBg:kt,colorDangerItemBgSelected:kt,dangerItemSelectedBg:kt,itemMarginInline:Qe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Oe,collapsedWidth:ye*2,popupBg:Ye,itemMarginBlock:ht,itemPaddingInline:Lt,horizontalLineHeight:`${ye*1.15}px`,iconSize:Kt,iconMarginInlineEnd:_t-Kt,collapsedIconSize:Gt,groupTitleFontSize:Kt,darkItemDisabledColor:new ce.C(Zt).setAlpha(.25).toRgbString(),darkItemColor:qt,darkDangerItemColor:pt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Zt,darkItemSelectedBg:nt,darkDangerItemSelectedBg:pt,darkItemHoverBg:"transparent",darkGroupTitleColor:qt,darkItemHoverColor:Zt,darkDangerItemHoverColor:Pn,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:pt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Xe),me=function(Xe,Be){var be={};for(var Qe in Xe)Object.prototype.hasOwnProperty.call(Xe,Qe)&&Be.indexOf(Qe)<0&&(be[Qe]=Xe[Qe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Qe=Object.getOwnPropertySymbols(Xe);nt<Qe.length;nt++)Be.indexOf(Qe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Qe[nt])&&(be[Qe[nt]]=Xe[Qe[nt]]);return be},$t=(0,pe.forwardRef)((Xe,Be)=>{var be,Qe;const nt=pe.useContext(re.Z),pt=nt||{},{getPrefixCls:It,getPopupContainer:kt,direction:Qt,menu:ln}=pe.useContext(Fe.E_),sn=It(),{prefixCls:rn,className:jn,style:Rn,theme:oa="light",expandIcon:In,_internalDisableMenuItemTitleTooltip:Hn,inlineCollapsed:ye,siderCollapsed:Oe,items:Ye,children:ht,rootClassName:Lt,mode:Kt,selectable:_t,onClick:Gt,overflowedIndicatorPopupClassName:Zt}=Xe,Pn=me(Xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),qt=(0,Ke.Z)(Pn,["collapsedWidth"]),Dn=he(Ye)||ht;(be=pt.validator)===null||be===void 0||be.call(pt,{mode:Kt});const Kn=(0,ee.useEvent)(function(){var ea;Gt==null||Gt.apply(void 0,arguments),(ea=pt.onClick)===null||ea===void 0||ea.call(pt)}),Xn=pt.mode||Kt,la=_t!=null?_t:pt.selectable,Tn=pe.useMemo(()=>Oe!==void 0?Oe:ye,[ye,Oe]),$n={horizontal:{motionName:`${sn}-slide-up`},inline:(0,ne.Z)(sn),other:{motionName:`${sn}-zoom-big`}},_n=It("menu",rn||pt.prefixCls),[ua,ma]=Ct(_n,!nt),zn=fe()(`${_n}-${oa}`,ln==null?void 0:ln.className,jn);let Pa;if(typeof In=="function")Pa=In;else if(In===null||In===!1)Pa=null;else if(pt.expandIcon===null||pt.expandIcon===!1)Pa=null;else{const ea=In!=null?In:pt.expandIcon;Pa=(0,Re.Tm)(ea,{className:fe()(`${_n}-submenu-expand-icon`,(0,Re.l$)(ea)?(Qe=ea.props)===null||Qe===void 0?void 0:Qe.className:"")})}const Aa=pe.useMemo(()=>({prefixCls:_n,inlineCollapsed:Tn||!1,direction:Qt,firstLevel:!0,theme:oa,mode:Xn,disableMenuItemTitleTooltip:Hn}),[_n,Tn,Qt,Hn,oa]);return ua(pe.createElement(re.Z.Provider,{value:null},pe.createElement(a.Provider,{value:Aa},pe.createElement(te.ZP,Object.assign({getPopupContainer:kt,overflowedIndicator:pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(_n,`${_n}-${oa}`,Zt),mode:Xn,selectable:la,onClick:Kn},qt,{inlineCollapsed:Tn,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Rn),className:zn,prefixCls:_n,direction:Qt,defaultMotions:$n,expandIcon:Pa,ref:Be,rootClassName:fe()(Lt,ma)}),Dn))))});const tn=(0,pe.forwardRef)((Xe,Be)=>{const be=(0,pe.useRef)(null),Qe=pe.useContext(Je.D);return(0,pe.useImperativeHandle)(Be,()=>({menu:be.current,focus:nt=>{var pt;(pt=be.current)===null||pt===void 0||pt.focus(nt)}})),pe.createElement($t,Object.assign({ref:be},Xe,Qe))});tn.Item=E,tn.SubMenu=x,tn.Divider=Te,tn.ItemGroup=te.BW;var wt=tn},38703:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Hn}});var te=oe(67294),pe=oe(87725),Je=oe(18299),je=oe(16646),fe=oe(73475),Fe=oe(94184),ue=oe.n(Fe),Ie=oe(10366),Te=oe(53124),xe=oe(87462),Ke=oe(1413),ke=oe(45987),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Oe=(0,te.useRef)([]),Ye=(0,te.useRef)(null);return(0,te.useEffect)(function(){var ht=Date.now(),Lt=!1;Oe.current.forEach(function(Kt){if(Kt){Lt=!0;var _t=Kt.style;_t.transitionDuration=".3s, .3s, .3s, .06s",Ye.current&&ht-Ye.current<100&&(_t.transitionDuration="0s, 0s")}}),Lt&&(Ye.current=Date.now())}),Oe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Oe){var Ye=(0,Ke.Z)((0,Ke.Z)({},Re),Oe),ht=Ye.className,Lt=Ye.percent,Kt=Ye.prefixCls,_t=Ye.strokeColor,Gt=Ye.strokeLinecap,Zt=Ye.strokeWidth,Pn=Ye.style,qt=Ye.trailColor,Dn=Ye.trailWidth,Kn=Ye.transition,Xn=(0,ke.Z)(Ye,a);delete Xn.gapPosition;var la=Array.isArray(Lt)?Lt:[Lt],Tn=Array.isArray(_t)?_t:[_t],$n=ae(),_n=Zt/2,ua=100-Zt/2,ma="M ".concat(Gt==="round"?_n:0,",").concat(_n,`
L `).concat(Gt==="round"?ua:100,",").concat(_n),zn="0 0 100 ".concat(Zt),Pa=0;return te.createElement("svg",(0,xe.Z)({className:ue()("".concat(Kt,"-line"),ht),viewBox:zn,preserveAspectRatio:"none",style:Pn},Xn),te.createElement("path",{className:"".concat(Kt,"-line-trail"),d:ma,strokeLinecap:Gt,stroke:qt,strokeWidth:Dn||Zt,fillOpacity:"0"}),la.map(function(Aa,ea){var Ua=1;switch(Gt){case"round":Ua=1-Zt/100;break;case"square":Ua=1-Zt/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=Tn[ea]||Tn[Tn.length-1];return Pa+=Aa,te.createElement("path",{key:ea,className:"".concat(Kt,"-line-path"),d:ma,strokeLinecap:Gt,stroke:Qa,strokeWidth:Zt,fillOpacity:"0",ref:function(we){$n[ea]=we},style:eo})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var ye;return ne?(ye=ee,ee+=1):ye="TEST_OR_SSR",ye}var ge=function(ye){var Oe=te.useState(),Ye=(0,x.Z)(Oe,2),ht=Ye[0],Lt=Ye[1];return te.useEffect(function(){Lt("rc_progress_".concat(re()))},[]),ye||ht},de=function(Oe){var Ye=Oe.bg,ht=Oe.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:Ye}},ht)};function he(ye,Oe){return Object.keys(ye).map(function(Ye){var ht=parseFloat(Ye),Lt="".concat(Math.floor(ht*Oe),"%");return"".concat(ye[Ye]," ").concat(Lt)})}var ce=te.forwardRef(function(ye,Oe){var Ye=ye.prefixCls,ht=ye.color,Lt=ye.gradientId,Kt=ye.radius,_t=ye.style,Gt=ye.ptg,Zt=ye.strokeLinecap,Pn=ye.strokeWidth,qt=ye.size,Dn=ye.gapDegree,Kn=ht&&(0,b.Z)(ht)==="object",Xn=Kn?"#FFF":void 0,la=qt/2,Tn=te.createElement("circle",{className:"".concat(Ye,"-circle-path"),r:Kt,cx:la,cy:la,stroke:Xn,strokeLinecap:Zt,strokeWidth:Pn,opacity:Gt===0?0:1,style:_t,ref:Oe});if(!Kn)return Tn;var $n="".concat(Lt,"-conic"),_n=Dn?"".concat(180+Dn/2,"deg"):"0deg",ua=he(ht,(360-Dn)/360),ma=he(ht,1),zn="conic-gradient(from ".concat(_n,", ").concat(ua.join(", "),")"),Pa="linear-gradient(to ".concat(Dn?"bottom":"top",", ").concat(ma.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:$n},Tn),te.createElement("foreignObject",{x:0,y:0,width:qt,height:qt,mask:"url(#".concat($n,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:zn}))))}),De=ce,Ne=100,st=function(Oe,Ye,ht,Lt,Kt,_t,Gt,Zt,Pn,qt){var Dn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Kn=ht/100*360*((360-_t)/360),Xn=_t===0?0:{bottom:0,top:180,left:90,right:-90}[Gt],la=(100-Lt)/100*Ye;Pn==="round"&&Lt!==100&&(la+=qt/2,la>=Ye&&(la=Ye-.01));var Tn=Ne/2;return{stroke:typeof Zt=="string"?Zt:void 0,strokeDasharray:"".concat(Ye,"px ").concat(Oe),strokeDashoffset:la+Dn,transform:"rotate(".concat(Kt+Kn+Xn,"deg)"),transformOrigin:"".concat(Tn,"px ").concat(Tn,"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}},xt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function gn(ye){var Oe=ye!=null?ye:[];return Array.isArray(Oe)?Oe:[Oe]}var Me=function(Oe){var Ye=(0,Ke.Z)((0,Ke.Z)({},Re),Oe),ht=Ye.id,Lt=Ye.prefixCls,Kt=Ye.steps,_t=Ye.strokeWidth,Gt=Ye.trailWidth,Zt=Ye.gapDegree,Pn=Zt===void 0?0:Zt,qt=Ye.gapPosition,Dn=Ye.trailColor,Kn=Ye.strokeLinecap,Xn=Ye.style,la=Ye.className,Tn=Ye.strokeColor,$n=Ye.percent,_n=(0,ke.Z)(Ye,xt),ua=Ne/2,ma=ge(ht),zn="".concat(ma,"-gradient"),Pa=ua-_t/2,Aa=Math.PI*2*Pa,ea=Pn>0?90+Pn/2:-90,Ua=Aa*((360-Pn)/360),eo=(0,b.Z)(Kt)==="object"?Kt:{count:Kt,space:2},Qa=eo.count,Le=eo.space,we=gn($n),ve=gn(Tn),mt=ve.find(function(Ia){return Ia&&(0,b.Z)(Ia)==="object"}),Ot=mt&&(0,b.Z)(mt)==="object",Tt=Ot?"butt":Kn,An=st(Aa,Ua,0,100,ea,Pn,qt,Dn,Tt,_t),un=ae(),Cn=function(){var ot=0;return we.map(function(Ln,Pe){var Ae=ve[Pe]||ve[ve.length-1],$e=st(Aa,Ua,ot,Ln,ea,Pn,qt,Ae,Tt,_t);return ot+=Ln,te.createElement(De,{key:Pe,color:Ae,ptg:Ln,radius:Pa,prefixCls:Lt,gradientId:zn,style:$e,strokeLinecap:Tt,strokeWidth:_t,gapDegree:Pn,ref:function(gt){un[Pe]=gt},size:Ne})}).reverse()},ta=function(){var ot=Math.round(Qa*(we[0]/100)),Ln=100/Qa,Pe=0;return new Array(Qa).fill(null).map(function(Ae,$e){var Ge=$e<=ot-1?ve[0]:Dn,gt=Ge&&(0,b.Z)(Ge)==="object"?"url(#".concat(zn,")"):void 0,_e=st(Aa,Ua,Pe,Ln,ea,Pn,qt,Ge,"butt",_t,Le);return Pe+=(Ua-_e.strokeDashoffset+Le)*100/Ua,te.createElement("circle",{key:$e,className:"".concat(Lt,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:gt,strokeWidth:_t,opacity:1,style:_e,ref:function(Ve){un[$e]=Ve}})})};return te.createElement("svg",(0,xe.Z)({className:ue()("".concat(Lt,"-circle"),la),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:Xn,id:ht,role:"presentation"},_n),!Qa&&te.createElement("circle",{className:"".concat(Lt,"-circle-trail"),r:Pa,cx:ua,cy:ua,stroke:Dn,strokeLinecap:Tt,strokeWidth:Gt||_t,style:An}),Qa?ta():Cn())},dt=Me,qe={Line:E,Circle:dt},at=oe(83062),ut=oe(47448);function Bt(ye){return!ye||ye<0?0:ye>100?100:ye}function Yt(ye){let{success:Oe,successPercent:Ye}=ye,ht=Ye;return Oe&&"progress"in Oe&&(ht=Oe.progress),Oe&&"percent"in Oe&&(ht=Oe.percent),ht}const bn=ye=>{let{percent:Oe,success:Ye,successPercent:ht}=ye;const Lt=Bt(Yt({success:Ye,successPercent:ht}));return[Lt,Bt(Bt(Oe)-Lt)]},cn=ye=>{let{success:Oe={},strokeColor:Ye}=ye;const{strokeColor:ht}=Oe;return[ht||ut.presetPrimaryColors.green,Ye||null]},Ce=(ye,Oe,Ye)=>{var ht,Lt,Kt,_t;let Gt=-1,Zt=-1;if(Oe==="step"){const Pn=Ye.steps,qt=Ye.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(Gt=ye==="small"?2:14,Zt=qt!=null?qt:8):typeof ye=="number"?[Gt,Zt]=[ye,ye]:[Gt=14,Zt=8]=ye,Gt*=Pn}else if(Oe==="line"){const Pn=Ye==null?void 0:Ye.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?Zt=Pn||(ye==="small"?6:8):typeof ye=="number"?[Gt,Zt]=[ye,ye]:[Gt=-1,Zt=8]=ye}else(Oe==="circle"||Oe==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[Gt,Zt]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[Gt,Zt]=[ye,ye]:(Gt=(Lt=(ht=ye[0])!==null&&ht!==void 0?ht:ye[1])!==null&&Lt!==void 0?Lt:120,Zt=(_t=(Kt=ye[0])!==null&&Kt!==void 0?Kt:ye[1])!==null&&_t!==void 0?_t:120));return[Gt,Zt]},Ue=3,rt=ye=>Ue/ye*100;var lt=ye=>{const{prefixCls:Oe,trailColor:Ye=null,strokeLinecap:ht="round",gapPosition:Lt,gapDegree:Kt,width:_t=120,type:Gt,children:Zt,success:Pn,size:qt=_t}=ye,[Dn,Kn]=Ce(qt,"circle");let{strokeWidth:Xn}=ye;Xn===void 0&&(Xn=Math.max(rt(Dn),6));const la={width:Dn,height:Kn,fontSize:Dn*.15+6},Tn=te.useMemo(()=>{if(Kt||Kt===0)return Kt;if(Gt==="dashboard")return 75},[Kt,Gt]),$n=Lt||Gt==="dashboard"&&"bottom"||void 0,_n=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",ua=cn({success:Pn,strokeColor:ye.strokeColor}),ma=ue()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:_n}),zn=te.createElement(dt,{percent:bn(ye),strokeWidth:Xn,trailWidth:Xn,strokeColor:ua,strokeLinecap:ht,trailColor:Ye,prefixCls:Oe,gapDegree:Tn,gapPosition:$n});return te.createElement("div",{className:ma,style:la},Dn<=20?te.createElement(at.Z,{title:Zt},te.createElement("span",null,zn)):te.createElement(te.Fragment,null,zn,Zt))},Ct=function(ye,Oe){var Ye={};for(var ht in ye)Object.prototype.hasOwnProperty.call(ye,ht)&&Oe.indexOf(ht)<0&&(Ye[ht]=ye[ht]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,ht=Object.getOwnPropertySymbols(ye);Lt<ht.length;Lt++)Oe.indexOf(ht[Lt])<0&&Object.prototype.propertyIsEnumerable.call(ye,ht[Lt])&&(Ye[ht[Lt]]=ye[ht[Lt]]);return Ye};const me=ye=>{let Oe=[];return Object.keys(ye).forEach(Ye=>{const ht=parseFloat(Ye.replace(/%/g,""));isNaN(ht)||Oe.push({key:ht,value:ye[Ye]})}),Oe=Oe.sort((Ye,ht)=>Ye.key-ht.key),Oe.map(Ye=>{let{key:ht,value:Lt}=Ye;return`${Lt} ${ht}%`}).join(", ")},St=(ye,Oe)=>{const{from:Ye=ut.presetPrimaryColors.blue,to:ht=ut.presetPrimaryColors.blue,direction:Lt=Oe==="rtl"?"to left":"to right"}=ye,Kt=Ct(ye,["from","to","direction"]);if(Object.keys(Kt).length!==0){const _t=me(Kt);return{backgroundImage:`linear-gradient(${Lt}, ${_t})`}}return{backgroundImage:`linear-gradient(${Lt}, ${Ye}, ${ht})`}};var tn=ye=>{const{prefixCls:Oe,direction:Ye,percent:ht,size:Lt,strokeWidth:Kt,strokeColor:_t,strokeLinecap:Gt="round",children:Zt,trailColor:Pn=null,success:qt}=ye,Dn=_t&&typeof _t!="string"?St(_t,Ye):{backgroundColor:_t},Kn=Gt==="square"||Gt==="butt"?0:void 0,Xn={backgroundColor:Pn||void 0,borderRadius:Kn},la=Lt!=null?Lt:[-1,Kt||(Lt==="small"?6:8)],[Tn,$n]=Ce(la,"line",{strokeWidth:Kt}),_n=Object.assign({width:`${Bt(ht)}%`,height:$n,borderRadius:Kn},Dn),ua=Yt(ye),ma={width:`${Bt(ua)}%`,height:$n,borderRadius:Kn,backgroundColor:qt==null?void 0:qt.strokeColor},zn={width:Tn<0?"100%":Tn,height:$n};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Oe}-outer`,style:zn},te.createElement("div",{className:`${Oe}-inner`,style:Xn},te.createElement("div",{className:`${Oe}-bg`,style:_n}),ua!==void 0?te.createElement("div",{className:`${Oe}-success-bg`,style:ma}):null)),Zt)},Xe=ye=>{const{size:Oe,steps:Ye,percent:ht=0,strokeWidth:Lt=8,strokeColor:Kt,trailColor:_t=null,prefixCls:Gt,children:Zt}=ye,Pn=Math.round(Ye*(ht/100)),qt=Oe==="small"?2:14,Dn=Oe!=null?Oe:[qt,Lt],[Kn,Xn]=Ce(Dn,"step",{steps:Ye,strokeWidth:Lt}),la=Kn/Ye,Tn=new Array(Ye);for(let $n=0;$n<Ye;$n++){const _n=Array.isArray(Kt)?Kt[$n]:Kt;Tn[$n]=te.createElement("div",{key:$n,className:ue()(`${Gt}-steps-item`,{[`${Gt}-steps-item-active`]:$n<=Pn-1}),style:{backgroundColor:$n<=Pn-1?_n:_t,width:la,height:Xn}})}return te.createElement("div",{className:`${Gt}-steps-outer`},Tn,Zt)},Be=oe(45930),be=oe(14747),Qe=oe(67968),nt=oe(45503);const pt=ye=>{const Oe=ye?"100%":"-100%";return new Be.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},It=ye=>{const{componentCls:Oe,iconCls:Ye}=ye;return{[Oe]:Object.assign(Object.assign({},(0,be.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ye.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ye]:{fontSize:ye.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:pt(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:pt(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:ye.colorError},[`${Oe}-text`]:{color:ye.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ye.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:ye.colorSuccess},[`${Oe}-text`]:{color:ye.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ye.colorSuccess}}})}},kt=ye=>{const{componentCls:Oe,iconCls:Ye}=ye;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:ye.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ye]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:ye.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:ye.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},Qt=ye=>{const{componentCls:Oe}=ye;return{[Oe]:{[`${Oe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},ln=ye=>{const{componentCls:Oe,iconCls:Ye}=ye;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${Ye}`]:{fontSize:ye.fontSizeSM}}}};var sn=(0,Qe.Z)("Progress",ye=>{const Oe=ye.marginXXS/2,Ye=(0,nt.TS)(ye,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[It(Ye),kt(Ye),Qt(Ye),ln(Ye)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),rn=function(ye,Oe){var Ye={};for(var ht in ye)Object.prototype.hasOwnProperty.call(ye,ht)&&Oe.indexOf(ht)<0&&(Ye[ht]=ye[ht]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,ht=Object.getOwnPropertySymbols(ye);Lt<ht.length;Lt++)Oe.indexOf(ht[Lt])<0&&Object.prototype.propertyIsEnumerable.call(ye,ht[Lt])&&(Ye[ht[Lt]]=ye[ht[Lt]]);return Ye};const jn=null,Rn=["normal","exception","active","success"];var In=te.forwardRef((ye,Oe)=>{const{prefixCls:Ye,className:ht,rootClassName:Lt,steps:Kt,strokeColor:_t,percent:Gt=0,size:Zt="default",showInfo:Pn=!0,type:qt="line",status:Dn,format:Kn,style:Xn}=ye,la=rn(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Tn=te.useMemo(()=>{var we,ve;const mt=Yt(ye);return parseInt(mt!==void 0?(we=mt!=null?mt:0)===null||we===void 0?void 0:we.toString():(ve=Gt!=null?Gt:0)===null||ve===void 0?void 0:ve.toString(),10)},[Gt,ye.success,ye.successPercent]),$n=te.useMemo(()=>!Rn.includes(Dn)&&Tn>=100?"success":Dn||"normal",[Dn,Tn]),{getPrefixCls:_n,direction:ua,progress:ma}=te.useContext(Te.E_),zn=_n("progress",Ye),[Pa,Aa]=sn(zn),ea=te.useMemo(()=>{if(!Pn)return null;const we=Yt(ye);let ve;const mt=Kn||(Tt=>`${Tt}%`),Ot=qt==="line";return Kn||$n!=="exception"&&$n!=="success"?ve=mt(Bt(Gt),Bt(we)):$n==="exception"?ve=Ot?te.createElement(je.Z,null):te.createElement(fe.Z,null):$n==="success"&&(ve=Ot?te.createElement(pe.Z,null):te.createElement(Je.Z,null)),te.createElement("span",{className:`${zn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[Pn,Gt,Tn,$n,qt,zn,Kn]),Ua=Array.isArray(_t)?_t[0]:_t,eo=typeof _t=="string"||Array.isArray(_t)?_t:void 0;let Qa;qt==="line"?Qa=Kt?te.createElement(Xe,Object.assign({},ye,{strokeColor:eo,prefixCls:zn,steps:Kt}),ea):te.createElement(tn,Object.assign({},ye,{strokeColor:Ua,prefixCls:zn,direction:ua}),ea):(qt==="circle"||qt==="dashboard")&&(Qa=te.createElement(lt,Object.assign({},ye,{strokeColor:Ua,prefixCls:zn,progressStatus:$n}),ea));const Le=ue()(zn,`${zn}-status-${$n}`,`${zn}-${qt==="dashboard"&&"circle"||Kt&&"steps"||qt}`,{[`${zn}-inline-circle`]:qt==="circle"&&Ce(Zt,"circle")[0]<=20,[`${zn}-show-info`]:Pn,[`${zn}-${Zt}`]:typeof Zt=="string",[`${zn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,ht,Lt,Aa);return Pa(te.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),Xn),className:Le,role:"progressbar","aria-valuenow":Tn},(0,Ie.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),Hn=In},59810:function(ze,ct,oe){"use strict";oe.d(ct,{default:function(){return Ln}});var te=oe(67294),pe=oe(74902),Je=oe(94184),je=oe.n(Je),fe=oe(87462),Fe=oe(15671),ue=oe(43144),Ie=oe(60136),Te=oe(51630),xe=oe(4942),Ke=oe(45987),ke=oe(74165),Re=oe(71002),ae=oe(15861),a=oe(64217);function y(Pe,Ae){var $e="cannot ".concat(Pe.method," ").concat(Pe.action," ").concat(Ae.status,"'"),Ge=new Error($e);return Ge.status=Ae.status,Ge.method=Pe.method,Ge.url=Pe.action,Ge}function E(Pe){var Ae=Pe.responseText||Pe.response;if(!Ae)return Ae;try{return JSON.parse(Ae)}catch($e){return Ae}}function b(Pe){var Ae=new XMLHttpRequest;Pe.onProgress&&Ae.upload&&(Ae.upload.onprogress=function(_e){_e.total>0&&(_e.percent=_e.loaded/_e.total*100),Pe.onProgress(_e)});var $e=new FormData;Pe.data&&Object.keys(Pe.data).forEach(function(gt){var _e=Pe.data[gt];if(Array.isArray(_e)){_e.forEach(function(tt){$e.append("".concat(gt,"[]"),tt)});return}$e.append(gt,_e)}),Pe.file instanceof Blob?$e.append(Pe.filename,Pe.file,Pe.file.name):$e.append(Pe.filename,Pe.file),Ae.onerror=function(_e){Pe.onError(_e)},Ae.onload=function(){return Ae.status<200||Ae.status>=300?Pe.onError(y(Pe,Ae),E(Ae)):Pe.onSuccess(E(Ae),Ae)},Ae.open(Pe.method,Pe.action,!0),Pe.withCredentials&&"withCredentials"in Ae&&(Ae.withCredentials=!0);var Ge=Pe.headers||{};return Ge["X-Requested-With"]!==null&&Ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ge).forEach(function(gt){Ge[gt]!==null&&Ae.setRequestHeader(gt,Ge[gt])}),Ae.send($e),{abort:function(){Ae.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(Pe,Ae){if(Pe&&Ae){var $e=Array.isArray(Ae)?Ae:Ae.split(","),Ge=Pe.name||"",gt=Pe.type||"",_e=gt.replace(/\/.*$/,"");return $e.some(function(tt){var Ve=tt.trim();if(/^\*(\/\*)?$/.test(tt))return!0;if(Ve.charAt(0)==="."){var Ut=Ge.toLowerCase(),Nt=Ve.toLowerCase(),en=[Nt];return(Nt===".jpg"||Nt===".jpeg")&&(en=[".jpg",".jpeg"]),en.some(function(hn){return Ut.endsWith(hn)})}return/\/\*$/.test(Ve)?_e===Ve.replace(/\/.*$/,""):gt===Ve?!0:/^\w+$/.test(Ve)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ve,"'.Skip for check.")),!0):!1})}return!0};function ge(Pe,Ae){var $e=Pe.createReader(),Ge=[];function gt(){$e.readEntries(function(_e){var tt=Array.prototype.slice.apply(_e);Ge=Ge.concat(tt);var Ve=!tt.length;Ve?Ae(Ge):gt()})}gt()}var de=function(Ae,$e,Ge){var gt=function _e(tt,Ve){tt&&(tt.path=Ve||"",tt.isFile?tt.file(function(Ut){Ge(Ut)&&(tt.fullPath&&!Ut.webkitRelativePath&&(Object.defineProperties(Ut,{webkitRelativePath:{writable:!0}}),Ut.webkitRelativePath=tt.fullPath.replace(/^\//,""),Object.defineProperties(Ut,{webkitRelativePath:{writable:!1}})),$e([Ut]))}):tt.isDirectory&&ge(tt,function(Ut){Ut.forEach(function(Nt){_e(Nt,"".concat(Ve).concat(tt.name,"/"))})}))};Ae.forEach(function(_e){gt(_e.webkitGetAsEntry())})},he=de,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],De=function(Pe){(0,Ie.Z)($e,Pe);var Ae=(0,Te.Z)($e);function $e(){var Ge;(0,Fe.Z)(this,$e);for(var gt=arguments.length,_e=new Array(gt),tt=0;tt<gt;tt++)_e[tt]=arguments[tt];return Ge=Ae.call.apply(Ae,[this].concat(_e)),Ge.state={uid:ee()},Ge.reqs={},Ge.fileInput=void 0,Ge._isMounted=void 0,Ge.onChange=function(Ve){var Ut=Ge.props,Nt=Ut.accept,en=Ut.directory,hn=Ve.target.files,En=(0,pe.Z)(hn).filter(function(Ze){return!en||re(Ze,Nt)});Ge.uploadFiles(En),Ge.reset()},Ge.onClick=function(Ve){var Ut=Ge.fileInput;if(Ut){var Nt=Ge.props,en=Nt.children,hn=Nt.onClick;if(en&&en.type==="button"){var En=Ut.parentNode;En.focus(),En.querySelector("button").blur()}Ut.click(),hn&&hn(Ve)}},Ge.onKeyDown=function(Ve){Ve.key==="Enter"&&Ge.onClick(Ve)},Ge.onFileDrop=function(Ve){var Ut=Ge.props.multiple;if(Ve.preventDefault(),Ve.type!=="dragover")if(Ge.props.directory)he(Array.prototype.slice.call(Ve.dataTransfer.items),Ge.uploadFiles,function(en){return re(en,Ge.props.accept)});else{var Nt=(0,pe.Z)(Ve.dataTransfer.files).filter(function(en){return re(en,Ge.props.accept)});Ut===!1&&(Nt=Nt.slice(0,1)),Ge.uploadFiles(Nt)}},Ge.uploadFiles=function(Ve){var Ut=(0,pe.Z)(Ve),Nt=Ut.map(function(en){return en.uid=ee(),Ge.processFile(en,Ut)});Promise.all(Nt).then(function(en){var hn=Ge.props.onBatchStart;hn==null||hn(en.map(function(En){var Ze=En.origin,$a=En.parsedFile;return{file:Ze,parsedFile:$a}})),en.filter(function(En){return En.parsedFile!==null}).forEach(function(En){Ge.post(En)})})},Ge.processFile=function(){var Ve=(0,ae.Z)((0,ke.Z)().mark(function Ut(Nt,en){var hn,En,Ze,$a,ba,Da,na,et,bt;return(0,ke.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(hn=Ge.props.beforeUpload,En=Nt,!hn){it.next=14;break}return it.prev=3,it.next=6,hn(Nt,en);case 6:En=it.sent,it.next=12;break;case 9:it.prev=9,it.t0=it.catch(3),En=!1;case 12:if(En!==!1){it.next=14;break}return it.abrupt("return",{origin:Nt,parsedFile:null,action:null,data:null});case 14:if(Ze=Ge.props.action,typeof Ze!="function"){it.next=21;break}return it.next=18,Ze(Nt);case 18:$a=it.sent,it.next=22;break;case 21:$a=Ze;case 22:if(ba=Ge.props.data,typeof ba!="function"){it.next=29;break}return it.next=26,ba(Nt);case 26:Da=it.sent,it.next=30;break;case 29:Da=ba;case 30:return na=((0,Re.Z)(En)==="object"||typeof En=="string")&&En?En:Nt,na instanceof File?et=na:et=new File([na],Nt.name,{type:Nt.type}),bt=et,bt.uid=Nt.uid,it.abrupt("return",{origin:Nt,data:Da,parsedFile:bt,action:$a});case 35:case"end":return it.stop()}},Ut,null,[[3,9]])}));return function(Ut,Nt){return Ve.apply(this,arguments)}}(),Ge.saveFileInput=function(Ve){Ge.fileInput=Ve},Ge}return(0,ue.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(gt){var _e=this,tt=gt.data,Ve=gt.origin,Ut=gt.action,Nt=gt.parsedFile;if(this._isMounted){var en=this.props,hn=en.onStart,En=en.customRequest,Ze=en.name,$a=en.headers,ba=en.withCredentials,Da=en.method,na=Ve.uid,et=En||b,bt={action:Ut,filename:Ze,data:tt,file:Nt,headers:$a,withCredentials:ba,method:Da||"post",onProgress:function(it){var fn=_e.props.onProgress;fn==null||fn(it,Nt)},onSuccess:function(it,fn){var Sn=_e.props.onSuccess;Sn==null||Sn(it,Nt,fn),delete _e.reqs[na]},onError:function(it,fn){var Sn=_e.props.onError;Sn==null||Sn(it,fn,Nt),delete _e.reqs[na]}};hn(Ve),this.reqs[na]=et(bt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(gt){var _e=this.reqs;if(gt){var tt=gt.uid?gt.uid:gt;_e[tt]&&_e[tt].abort&&_e[tt].abort(),delete _e[tt]}else Object.keys(_e).forEach(function(Ve){_e[Ve]&&_e[Ve].abort&&_e[Ve].abort(),delete _e[Ve]})}},{key:"render",value:function(){var gt,_e=this.props,tt=_e.component,Ve=_e.prefixCls,Ut=_e.className,Nt=_e.disabled,en=_e.id,hn=_e.style,En=_e.multiple,Ze=_e.accept,$a=_e.capture,ba=_e.children,Da=_e.directory,na=_e.openFileDialogOnClick,et=_e.onMouseEnter,bt=_e.onMouseLeave,Wt=(0,Ke.Z)(_e,ce),it=je()((gt={},(0,xe.Z)(gt,Ve,!0),(0,xe.Z)(gt,"".concat(Ve,"-disabled"),Nt),(0,xe.Z)(gt,Ut,Ut),gt)),fn=Da?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=Nt?{}:{onClick:na?this.onClick:function(){},onKeyDown:na?this.onKeyDown:function(){},onMouseEnter:et,onMouseLeave:bt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(tt,(0,fe.Z)({},Sn,{className:it,role:"button",style:hn}),te.createElement("input",(0,fe.Z)({},(0,a.Z)(Wt,{aria:!0,data:!0}),{id:en,disabled:Nt,type:"file",ref:this.saveFileInput,onClick:function(ca){return ca.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ze},fn,{multiple:En,onChange:this.onChange},$a!=null?{capture:$a}:{})),ba)}}]),$e}(te.Component),Ne=De;function st(){}var xt=function(Pe){(0,Ie.Z)($e,Pe);var Ae=(0,Te.Z)($e);function $e(){var Ge;(0,Fe.Z)(this,$e);for(var gt=arguments.length,_e=new Array(gt),tt=0;tt<gt;tt++)_e[tt]=arguments[tt];return Ge=Ae.call.apply(Ae,[this].concat(_e)),Ge.uploader=void 0,Ge.saveUploader=function(Ve){Ge.uploader=Ve},Ge}return(0,ue.Z)($e,[{key:"abort",value:function(gt){this.uploader.abort(gt)}},{key:"render",value:function(){return te.createElement(Ne,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(te.Component);xt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:st,onError:st,onSuccess:st,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var gn=xt,Me=gn,dt=oe(5663),qe=oe(73935),at=oe(53124),ut=oe(98866),Bt=oe(10110),Yt=oe(24457),bn={icon:function(Ae,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ae}}]}},name:"file",theme:"twotone"},cn=bn,Ce=oe(74643),Ue=function(Ae,$e){return te.createElement(Ce.Z,(0,fe.Z)({},Ae,{ref:$e,icon:cn}))},rt=te.forwardRef(Ue),Rt=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"},Ct=lt,me=function(Ae,$e){return te.createElement(Ce.Z,(0,fe.Z)({},Ae,{ref:$e,icon:Ct}))},St=te.forwardRef(me),$t={icon:function(Ae,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ae}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ae}}]}},name:"picture",theme:"twotone"},tn=$t,wt=function(Ae,$e){return te.createElement(Ce.Z,(0,fe.Z)({},Ae,{ref:$e,icon:tn}))},Xe=te.forwardRef(wt),Be=oe(38379),be=oe(57838),Qe=oe(33603),nt=oe(96159),pt=oe(71577);function It(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,Ae){const $e=(0,pe.Z)(Ae),Ge=$e.findIndex(gt=>{let{uid:_e}=gt;return _e===Pe.uid});return Ge===-1?$e.push(Pe):$e[Ge]=Pe,$e}function Qt(Pe,Ae){const $e=Pe.uid!==void 0?"uid":"name";return Ae.filter(Ge=>Ge[$e]===Pe[$e])[0]}function ln(Pe,Ae){const $e=Pe.uid!==void 0?"uid":"name",Ge=Ae.filter(gt=>gt[$e]!==Pe[$e]);return Ge.length===Ae.length?null:Ge}const sn=function(){const Ae=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ge=Ae[Ae.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ge)||[""])[0]},rn=Pe=>Pe.indexOf("image/")===0,jn=Pe=>{if(Pe.type&&!Pe.thumbUrl)return rn(Pe.type);const Ae=Pe.thumbUrl||Pe.url||"",$e=sn(Ae);return/^data:image\//.test(Ae)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(Ae)||$e)},Rn=200;function oa(Pe){return new Promise(Ae=>{if(!Pe.type||!rn(Pe.type)){Ae("");return}const $e=document.createElement("canvas");$e.width=Rn,$e.height=Rn,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${Rn}px; height: ${Rn}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Ge=$e.getContext("2d"),gt=new Image;if(gt.onload=()=>{const{width:_e,height:tt}=gt;let Ve=Rn,Ut=Rn,Nt=0,en=0;_e>tt?(Ut=tt*(Rn/_e),en=-(Ut-Ve)/2):(Ve=_e*(Rn/tt),Nt=-(Ve-Ut)/2),Ge.drawImage(gt,Nt,en,Ve,Ut);const hn=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(gt.src),Ae(hn)},gt.crossOrigin="anonymous",Pe.type.startsWith("image/svg+xml")){const _e=new FileReader;_e.onload=()=>{_e.result&&(gt.src=_e.result)},_e.readAsDataURL(Pe)}else if(Pe.type.startsWith("image/gif")){const _e=new FileReader;_e.onload=()=>{_e.result&&Ae(_e.result)},_e.readAsDataURL(Pe)}else gt.src=window.URL.createObjectURL(Pe)})}var In=oe(84249),Hn=oe(90674),ye=oe(99569),Oe=oe(38703),Ye=oe(83062),Lt=te.forwardRef((Pe,Ae)=>{let{prefixCls:$e,className:Ge,style:gt,locale:_e,listType:tt,file:Ve,items:Ut,progress:Nt,iconRender:en,actionIconRender:hn,itemRender:En,isImgUrl:Ze,showPreviewIcon:$a,showRemoveIcon:ba,showDownloadIcon:Da,previewIcon:na,removeIcon:et,downloadIcon:bt,onPreview:Wt,onDownload:it,onClose:fn}=Pe;var Sn,sa;const{status:ca}=Ve,[fa,Fo]=te.useState(ca);te.useEffect(()=>{ca!=="removed"&&Fo(ca)},[ca]);const[to,Io]=te.useState(!1);te.useEffect(()=>{const Yn=setTimeout(()=>{Io(!0)},300);return()=>{clearTimeout(Yn)}},[]);const xo=en(Ve);let Ka=te.createElement("div",{className:`${$e}-icon`},xo);if(tt==="picture"||tt==="picture-card"||tt==="picture-circle")if(fa==="uploading"||!Ve.thumbUrl&&!Ve.url){const Yn=je()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fa!=="uploading"});Ka=te.createElement("div",{className:Yn},xo)}else{const Yn=Ze!=null&&Ze(Ve)?te.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${$e}-list-item-image`,crossOrigin:Ve.crossOrigin}):xo,Qn=je()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Ze&&!Ze(Ve)});Ka=te.createElement("a",{className:Qn,onClick:no=>Wt(Ve,no),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Yn)}const va=je()(`${$e}-list-item`,`${$e}-list-item-${fa}`),io=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,po=ba?hn((typeof et=="function"?et(Ve):et)||te.createElement(In.Z,null),()=>fn(Ve),$e,_e.removeFile):null,yo=Da&&fa==="done"?hn((typeof bt=="function"?bt(Ve):bt)||te.createElement(Hn.Z,null),()=>it(Ve),$e,_e.downloadFile):null,Xa=tt!=="picture-card"&&tt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:je()(`${$e}-list-item-actions`,{picture:tt==="picture"})},yo,po),Ra=je()(`${$e}-list-item-name`),fo=Ve.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ra,title:Ve.name},io,{href:Ve.url,onClick:Yn=>Wt(Ve,Yn)}),Ve.name),Xa]:[te.createElement("span",{key:"view",className:Ra,onClick:Yn=>Wt(Ve,Yn),title:Ve.name},Ve.name),Xa],nn={pointerEvents:"none",opacity:.5},pa=$a?te.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ve.url||Ve.thumbUrl?void 0:nn,onClick:Yn=>Wt(Ve,Yn),title:_e.previewFile},typeof na=="function"?na(Ve):na||te.createElement(ye.Z,null)):null,Fa=(tt==="picture-card"||tt==="picture-circle")&&fa!=="uploading"&&te.createElement("span",{className:`${$e}-list-item-actions`},pa,fa==="done"&&yo,po),{getPrefixCls:Na}=te.useContext(at.E_),Ja=Na(),La=te.createElement("div",{className:va},Ka,fo,Fa,to&&te.createElement(Be.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Yn=>{let{className:Qn}=Yn;const no="percent"in Ve?te.createElement(Oe.Z,Object.assign({},Nt,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return te.createElement("div",{className:je()(`${$e}-list-item-progress`,Qn)},no)})),Wo=Ve.response&&typeof Ve.response=="string"?Ve.response:((Sn=Ve.error)===null||Sn===void 0?void 0:Sn.statusText)||((sa=Ve.error)===null||sa===void 0?void 0:sa.message)||_e.uploadError,wa=fa==="error"?te.createElement(Ye.Z,{title:Wo,getPopupContainer:Yn=>Yn.parentNode},La):La;return te.createElement("div",{className:je()(`${$e}-list-item-container`,Ge),style:gt,ref:Ae},En?En(wa,Ve,Ut,{download:it.bind(null,Ve),preview:Wt.bind(null,Ve),remove:fn.bind(null,Ve)}):wa)});const Kt=(Pe,Ae)=>{const{listType:$e="text",previewFile:Ge=oa,onPreview:gt,onDownload:_e,onRemove:tt,locale:Ve,iconRender:Ut,isImageUrl:Nt=jn,prefixCls:en,items:hn=[],showPreviewIcon:En=!0,showRemoveIcon:Ze=!0,showDownloadIcon:$a=!1,removeIcon:ba,previewIcon:Da,downloadIcon:na,progress:et={size:[-1,2],showInfo:!1},appendAction:bt,appendActionVisible:Wt=!0,itemRender:it,disabled:fn}=Pe,Sn=(0,be.Z)(),[sa,ca]=te.useState(!1);te.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(hn||[]).forEach(nn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(nn.originFileObj instanceof File||nn.originFileObj instanceof Blob)||nn.thumbUrl!==void 0||(nn.thumbUrl="",Ge&&Ge(nn.originFileObj).then(pa=>{nn.thumbUrl=pa||"",Sn()}))})},[$e,hn,Ge]),te.useEffect(()=>{ca(!0)},[]);const fa=(nn,pa)=>{if(gt)return pa==null||pa.preventDefault(),gt(nn)},Fo=nn=>{typeof _e=="function"?_e(nn):nn.url&&window.open(nn.url)},to=nn=>{tt==null||tt(nn)},Io=nn=>{if(Ut)return Ut(nn,$e);const pa=nn.status==="uploading",Fa=Nt&&Nt(nn)?te.createElement(Xe,null):te.createElement(rt,null);let Na=pa?te.createElement(Rt.Z,null):te.createElement(St,null);return $e==="picture"?Na=pa?te.createElement(Rt.Z,null):Fa:($e==="picture-card"||$e==="picture-circle")&&(Na=pa?Ve.uploading:Fa),Na},xo=(nn,pa,Fa,Na)=>{const Ja={type:"text",size:"small",title:Na,onClick:La=>{pa(),(0,nt.l$)(nn)&&nn.props.onClick&&nn.props.onClick(La)},className:`${Fa}-list-item-action`,disabled:fn};if((0,nt.l$)(nn)){const La=(0,nt.Tm)(nn,Object.assign(Object.assign({},nn.props),{onClick:()=>{}}));return te.createElement(pt.ZP,Object.assign({},Ja,{icon:La}))}return te.createElement(pt.ZP,Object.assign({},Ja),te.createElement("span",null,nn))};te.useImperativeHandle(Ae,()=>({handlePreview:fa,handleDownload:Fo}));const{getPrefixCls:Ka}=te.useContext(at.E_),va=Ka("upload",en),io=Ka(),po=je()(`${va}-list`,`${va}-list-${$e}`),yo=(0,pe.Z)(hn.map(nn=>({key:nn.uid,file:nn})));let Ra={motionDeadline:2e3,motionName:`${va}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:yo,motionAppear:sa};const fo=te.useMemo(()=>{const nn=Object.assign({},(0,Qe.Z)(io));return delete nn.onAppearEnd,delete nn.onEnterEnd,delete nn.onLeaveEnd,nn},[io]);return $e!=="picture-card"&&$e!=="picture-circle"&&(Ra=Object.assign(Object.assign({},fo),Ra)),te.createElement("div",{className:po},te.createElement(Be.CSSMotionList,Object.assign({},Ra,{component:!1}),nn=>{let{key:pa,file:Fa,className:Na,style:Ja}=nn;return te.createElement(Lt,{key:pa,locale:Ve,prefixCls:va,className:Na,style:Ja,file:Fa,items:hn,progress:et,listType:$e,isImgUrl:Nt,showPreviewIcon:En,showRemoveIcon:Ze,showDownloadIcon:$a,removeIcon:ba,previewIcon:Da,downloadIcon:na,iconRender:Io,actionIconRender:xo,itemRender:it,onPreview:fa,onDownload:Fo,onClose:to})}),bt&&te.createElement(Be.default,Object.assign({},Ra,{visible:Wt,forceRender:!0}),nn=>{let{className:pa,style:Fa}=nn;return(0,nt.Tm)(bt,Na=>({className:je()(Na.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Na.style)}))}))};var Gt=te.forwardRef(Kt),Zt=oe(14747),Pn=oe(33507),qt=oe(67968),Dn=oe(45503),Xn=Pe=>{const{componentCls:Ae,iconCls:$e}=Pe;return{[`${Ae}-wrapper`]:{[`${Ae}-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}`,[Ae]:{padding:`${Pe.padding}px 0`},[`${Ae}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ae}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ae}-disabled):hover`]:{borderColor:Pe.colorPrimaryHover},[`p${Ae}-drag-icon`]:{marginBottom:Pe.margin,[$e]:{color:Pe.colorPrimary,fontSize:Pe.uploadThumbnailSize}},[`p${Ae}-text`]:{margin:`0 0 ${Pe.marginXXS}px`,color:Pe.colorTextHeading,fontSize:Pe.fontSizeLG},[`p${Ae}-hint`]:{color:Pe.colorTextDescription,fontSize:Pe.fontSize},[`&${Ae}-disabled`]:{cursor:"not-allowed",[`p${Ae}-drag-icon ${$e},
p${Ae}-text,
p${Ae}-hint
`]:{color:Pe.colorTextDisabled}}}}}},Tn=Pe=>{const{componentCls:Ae,antCls:$e,iconCls:Ge,fontSize:gt,lineHeight:_e}=Pe,tt=`${Ae}-list-item`,Ve=`${tt}-actions`,Ut=`${tt}-action`,Nt=Math.round(gt*_e);return{[`${Ae}-wrapper`]:{[`${Ae}-list`]:Object.assign(Object.assign({},(0,Zt.dF)()),{lineHeight:Pe.lineHeight,[tt]:{position:"relative",height:Pe.lineHeight*gt,marginTop:Pe.marginXS,fontSize:gt,display:"flex",alignItems:"center",transition:`background-color ${Pe.motionDurationSlow}`,"&:hover":{backgroundColor:Pe.controlItemBgHover},[`${tt}-name`]:Object.assign(Object.assign({},Zt.vS),{padding:`0 ${Pe.paddingXS}px`,lineHeight:_e,flex:"auto",transition:`all ${Pe.motionDurationSlow}`}),[Ve]:{[Ut]:{opacity:0},[`${Ut}${$e}-btn-sm`]:{height:Nt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Ut}:focus-visible,
&.picture ${Ut}
`]:{opacity:1},[Ge]:{color:Pe.actionsColor,transition:`all ${Pe.motionDurationSlow}`},[`&:hover ${Ge}`]:{color:Pe.colorText}},[`${Ae}-icon ${Ge}`]:{color:Pe.colorTextDescription,fontSize:gt},[`${tt}-progress`]:{position:"absolute",bottom:-Pe.uploadProgressOffset,width:"100%",paddingInlineStart:gt+Pe.paddingXS,fontSize:gt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${tt}:hover ${Ut}`]:{opacity:1,color:Pe.colorText},[`${tt}-error`]:{color:Pe.colorError,[`${tt}-name, ${Ae}-icon ${Ge}`]:{color:Pe.colorError},[Ve]:{[`${Ge}, ${Ge}:hover`]:{color:Pe.colorError},[Ut]:{opacity:1}}},[`${Ae}-list-item-container`]:{transition:`opacity ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=oe(45930),_n=oe(16932);const ua=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ma=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pa=Pe=>{const{componentCls:Ae}=Pe,$e=`${Ae}-animate-inline`;return[{[`${Ae}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:ua},[`${$e}-leave`]:{animationName:ma}}},{[`${Ae}-wrapper`]:(0,_n.J$)(Pe)},ua,ma]},Aa=oe(47448),ea=oe(84780);const Ua=Pe=>{const{componentCls:Ae,iconCls:$e,uploadThumbnailSize:Ge,uploadProgressOffset:gt}=Pe,_e=`${Ae}-list`,tt=`${_e}-item`;return{[`${Ae}-wrapper`]:{[`
${_e}${_e}-picture,
${_e}${_e}-picture-card,
${_e}${_e}-picture-circle
`]:{[tt]:{position:"relative",height:Ge+Pe.lineWidth*2+Pe.paddingXS*2,padding:Pe.paddingXS,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${tt}-thumbnail`]:Object.assign(Object.assign({},Zt.vS),{width:Ge,height:Ge,lineHeight:`${Ge+Pe.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:Pe.fontSizeHeading2,color:Pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${tt}-progress`]:{bottom:gt,width:`calc(100% - ${Pe.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ge+Pe.paddingXS}},[`${tt}-error`]:{borderColor:Pe.colorError,[`${tt}-thumbnail ${$e}`]:{[`svg path[fill='${Aa.blue[0]}']`]:{fill:Pe.colorErrorBg},[`svg path[fill='${Aa.blue.primary}']`]:{fill:Pe.colorError}}},[`${tt}-uploading`]:{borderStyle:"dashed",[`${tt}-name`]:{marginBottom:gt}}},[`${_e}${_e}-picture-circle ${tt}`]:{[`&, &::before, ${tt}-thumbnail`]:{borderRadius:"50%"}}}}},eo=Pe=>{const{componentCls:Ae,iconCls:$e,fontSizeLG:Ge,colorTextLightSolid:gt}=Pe,_e=`${Ae}-list`,tt=`${_e}-item`,Ve=Pe.uploadPicCardSize;return{[`
${Ae}-wrapper${Ae}-picture-card-wrapper,
${Ae}-wrapper${Ae}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Zt.dF)()),{display:"inline-block",width:"100%",[`${Ae}${Ae}-select`]:{width:Ve,height:Ve,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Pe.colorFillAlter,border:`${Pe.lineWidth}px dashed ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pe.motionDurationSlow}`,[`> ${Ae}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ae}-disabled):hover`]:{borderColor:Pe.colorPrimary}},[`${_e}${_e}-picture-card, ${_e}${_e}-picture-circle`]:{[`${_e}-item-container`]:{display:"inline-block",width:Ve,height:Ve,marginBlock:`0 ${Pe.marginXS}px`,marginInline:`0 ${Pe.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[tt]:{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:'" "'}},[`${tt}:hover`]:{[`&::before, ${tt}-actions`]:{opacity:1}},[`${tt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Pe.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Ge,margin:`0 ${Pe.marginXXS}px`,fontSize:Ge,cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${tt}-actions, ${tt}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new ea.C(gt).setAlpha(.65).toRgbString(),"&:hover":{color:gt}}},[`${tt}-thumbnail, ${tt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${tt}-name`]:{display:"none",textAlign:"center"},[`${tt}-file + ${tt}-name`]:{position:"absolute",bottom:Pe.margin,display:"block",width:`calc(100% - ${Pe.paddingXS*2}px)`},[`${tt}-uploading`]:{[`&${tt}`]:{backgroundColor:Pe.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${tt}-progress`]:{bottom:Pe.marginXL,width:`calc(100% - ${Pe.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ae}-wrapper${Ae}-picture-circle-wrapper`]:{[`${Ae}${Ae}-select`]:{borderRadius:"50%"}}}};var Le=Pe=>{const{componentCls:Ae}=Pe;return{[`${Ae}-rtl`]:{direction:"rtl"}}};const we=Pe=>{const{componentCls:Ae,colorTextDisabled:$e}=Pe;return{[`${Ae}-wrapper`]:Object.assign(Object.assign({},(0,Zt.Wf)(Pe)),{[Ae]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ae}-select`]:{display:"inline-block"},[`${Ae}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var ve=(0,qt.Z)("Upload",Pe=>{const{fontSizeHeading3:Ae,fontSize:$e,lineHeight:Ge,lineWidth:gt,controlHeightLG:_e}=Pe,tt=Math.round($e*Ge),Ve=(0,Dn.TS)(Pe,{uploadThumbnailSize:Ae*2,uploadProgressOffset:tt/2+gt,uploadPicCardSize:_e*2.55});return[we(Ve),Xn(Ve),Ua(Ve),eo(Ve),Tn(Ve),Pa(Ve),Le(Ve),(0,Pn.Z)(Ve)]},Pe=>({actionsColor:Pe.colorTextDescription})),mt=function(Pe,Ae,$e,Ge){function gt(_e){return _e instanceof $e?_e:new $e(function(tt){tt(_e)})}return new($e||($e=Promise))(function(_e,tt){function Ve(en){try{Nt(Ge.next(en))}catch(hn){tt(hn)}}function Ut(en){try{Nt(Ge.throw(en))}catch(hn){tt(hn)}}function Nt(en){en.done?_e(en.value):gt(en.value).then(Ve,Ut)}Nt((Ge=Ge.apply(Pe,Ae||[])).next())})};const Ot=`__LIST_IGNORE_${Date.now()}__`,Tt=(Pe,Ae)=>{const{fileList:$e,defaultFileList:Ge,onRemove:gt,showUploadList:_e=!0,listType:tt="text",onPreview:Ve,onDownload:Ut,onChange:Nt,onDrop:en,previewFile:hn,disabled:En,locale:Ze,iconRender:$a,isImageUrl:ba,progress:Da,prefixCls:na,className:et,type:bt="select",children:Wt,style:it,itemRender:fn,maxCount:Sn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Io}=Pe,xo=te.useContext(ut.Z),Ka=En!=null?En:xo,[va,io]=(0,dt.Z)(Ge||[],{value:$e,postState:Xt=>Xt!=null?Xt:[]}),[po,yo]=te.useState("drop"),Xa=te.useRef(null);te.useMemo(()=>{const Xt=Date.now();($e||[]).forEach((wn,Nn)=>{!wn.uid&&!Object.isFrozen(wn)&&(wn.uid=`__AUTO__${Xt}_${Nn}__`)})},[$e]);const Ra=(Xt,wn,Nn)=>{let yn=(0,pe.Z)(wn),Zn=!1;Sn===1?yn=yn.slice(-1):Sn&&(Zn=yn.length>Sn,yn=yn.slice(0,Sn)),(0,qe.flushSync)(()=>{io(yn)});const Ba={file:Xt,fileList:yn};Nn&&(Ba.event=Nn),(!Zn||yn.some(bo=>bo.uid===Xt.uid))&&(0,qe.flushSync)(()=>{Nt==null||Nt(Ba)})},fo=(Xt,wn)=>mt(void 0,void 0,void 0,function*(){const{beforeUpload:Nn,transformFile:yn}=Pe;let Zn=Xt;if(Nn){const Ba=yield Nn(Xt,wn);if(Ba===!1)return!1;if(delete Xt[Ot],Ba===Ot)return Object.defineProperty(Xt,Ot,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Zn=Ba)}return yn&&(Zn=yield yn(Zn)),Zn}),nn=Xt=>{const wn=Xt.filter(Zn=>!Zn.file[Ot]);if(!wn.length)return;const Nn=wn.map(Zn=>It(Zn.file));let yn=(0,pe.Z)(va);Nn.forEach(Zn=>{yn=kt(Zn,yn)}),Nn.forEach((Zn,Ba)=>{let bo=Zn;if(wn[Ba].parsedFile)Zn.status="uploading";else{const{originFileObj:ao}=Zn;let Lo;try{Lo=new File([ao],ao.name,{type:ao.type})}catch(Oa){Lo=new Blob([ao],{type:ao.type}),Lo.name=ao.name,Lo.lastModifiedDate=new Date,Lo.lastModified=new Date().getTime()}Lo.uid=Zn.uid,bo=Lo}Ra(bo,yn)})},pa=(Xt,wn,Nn)=>{try{typeof Xt=="string"&&(Xt=JSON.parse(Xt))}catch(Ba){}if(!Qt(wn,va))return;const yn=It(wn);yn.status="done",yn.percent=100,yn.response=Xt,yn.xhr=Nn;const Zn=kt(yn,va);Ra(yn,Zn)},Fa=(Xt,wn)=>{if(!Qt(wn,va))return;const Nn=It(wn);Nn.status="uploading",Nn.percent=Xt.percent;const yn=kt(Nn,va);Ra(Nn,yn,Xt)},Na=(Xt,wn,Nn)=>{if(!Qt(Nn,va))return;const yn=It(Nn);yn.error=Xt,yn.response=wn,yn.status="error";const Zn=kt(yn,va);Ra(yn,Zn)},Ja=Xt=>{let wn;Promise.resolve(typeof gt=="function"?gt(Xt):gt).then(Nn=>{var yn;if(Nn===!1)return;const Zn=ln(Xt,va);Zn&&(wn=Object.assign(Object.assign({},Xt),{status:"removed"}),va==null||va.forEach(Ba=>{const bo=wn.uid!==void 0?"uid":"name";Ba[bo]===wn[bo]&&!Object.isFrozen(Ba)&&(Ba.status="removed")}),(yn=Xa.current)===null||yn===void 0||yn.abort(wn),Ra(wn,Zn))})},La=Xt=>{yo(Xt.type),Xt.type==="drop"&&(en==null||en(Xt))};te.useImperativeHandle(Ae,()=>({onBatchStart:nn,onSuccess:pa,onProgress:Fa,onError:Na,fileList:va,upload:Xa.current}));const{getPrefixCls:Wo,direction:wa,upload:Yn}=te.useContext(at.E_),Qn=Wo("upload",na),no=Object.assign(Object.assign({onBatchStart:nn,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,(!Wt||Ka)&&delete no.id;const[Do,Qo]=ve(Qn),[Lr]=(0,Bt.Z)("Upload",Yt.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:zt,previewIcon:Pt,downloadIcon:Et}=typeof _e=="boolean"?{}:_e,Mt=(Xt,wn)=>_e?te.createElement(Gt,{prefixCls:Qn,listType:tt,items:va,previewFile:hn,onPreview:Ve,onDownload:Ut,onRemove:Ja,showRemoveIcon:!Ka&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:zt,previewIcon:Pt,downloadIcon:Et,iconRender:$a,locale:Object.assign(Object.assign({},Lr),Ze),isImageUrl:ba,progress:Da,appendAction:Xt,appendActionVisible:wn,itemRender:fn,disabled:Ka}):Xt,On=je()(`${Qn}-wrapper`,et,Io,Qo,Yn==null?void 0:Yn.className,{[`${Qn}-rtl`]:wa==="rtl",[`${Qn}-picture-card-wrapper`]:tt==="picture-card",[`${Qn}-picture-circle-wrapper`]:tt==="picture-circle"}),Sa=Object.assign(Object.assign({},Yn==null?void 0:Yn.style),it);if(bt==="drag"){const Xt=je()(Qo,Qn,`${Qn}-drag`,{[`${Qn}-drag-uploading`]:va.some(wn=>wn.status==="uploading"),[`${Qn}-drag-hover`]:po==="dragover",[`${Qn}-disabled`]:Ka,[`${Qn}-rtl`]:wa==="rtl"});return Do(te.createElement("span",{className:On},te.createElement("div",{className:Xt,style:Sa,onDrop:La,onDragOver:La,onDragLeave:La},te.createElement(Me,Object.assign({},no,{ref:Xa,className:`${Qn}-btn`}),te.createElement("div",{className:`${Qn}-drag-container`},Wt))),Mt()))}const ka=je()(Qn,`${Qn}-select`,{[`${Qn}-disabled`]:Ka}),xa=(Xt=>te.createElement("div",{className:ka,style:Xt},te.createElement(Me,Object.assign({},no,{ref:Xa}))))(Wt?void 0:{display:"none"});return Do(tt==="picture-card"||tt==="picture-circle"?te.createElement("span",{className:On},Mt(xa,!!Wt)):te.createElement("span",{className:On},xa,Mt()))};var un=te.forwardRef(Tt),Cn=function(Pe,Ae){var $e={};for(var Ge in Pe)Object.prototype.hasOwnProperty.call(Pe,Ge)&&Ae.indexOf(Ge)<0&&($e[Ge]=Pe[Ge]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ge=Object.getOwnPropertySymbols(Pe);gt<Ge.length;gt++)Ae.indexOf(Ge[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ge[gt])&&($e[Ge[gt]]=Pe[Ge[gt]]);return $e},Ia=te.forwardRef((Pe,Ae)=>{var{style:$e,height:Ge}=Pe,gt=Cn(Pe,["style","height"]);return te.createElement(un,Object.assign({ref:Ae},gt,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Ge})}))});const ot=un;ot.Dragger=Ia,ot.LIST_IGNORE=Ot;var Ln=ot},62661:function(ze,ct){"use strict";var oe;var te=Symbol.for("react.element"),pe=Symbol.for("react.portal"),Je=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ie=Symbol.for("react.server_context"),Te=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Ke=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Re=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 fe:case je:case xe:case Ke:return E;default:switch(E=E&&E.$$typeof,E){case Ie:case ue:case Te:case Re:case ke:case Fe:return E;default:return b}}case pe:return b}}}oe=ue,oe=Fe,oe=te,oe=Te,oe=Je,oe=Re,oe=ke,oe=pe,oe=fe,oe=je,oe=xe,oe=Ke,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ue},oe=function(E){return y(E)===Fe},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return y(E)===Te},oe=function(E){return y(E)===Je},oe=function(E){return y(E)===Re},ct.isMemo=function(E){return y(E)===ke},oe=function(E){return y(E)===pe},oe=function(E){return y(E)===fe},oe=function(E){return y(E)===je},oe=function(E){return y(E)===xe},oe=function(E){return y(E)===Ke},oe=function(E){return typeof E=="string"||typeof E=="function"||E===Je||E===fe||E===je||E===xe||E===Ke||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Re||E.$$typeof===ke||E.$$typeof===Fe||E.$$typeof===ue||E.$$typeof===Te||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(ze,ct,oe){"use strict";ze.exports=oe(62661)},72665:function(ze,ct){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,pe=te?Symbol.for("react.element"):60103,Je=te?Symbol.for("react.portal"):60106,je=te?Symbol.for("react.fragment"):60107,fe=te?Symbol.for("react.strict_mode"):60108,Fe=te?Symbol.for("react.profiler"):60114,ue=te?Symbol.for("react.provider"):60109,Ie=te?Symbol.for("react.context"):60110,Te=te?Symbol.for("react.async_mode"):60111,xe=te?Symbol.for("react.concurrent_mode"):60111,Ke=te?Symbol.for("react.forward_ref"):60112,ke=te?Symbol.for("react.suspense"):60113,Re=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case pe:switch(ne=ne.type,ne){case Te:case xe:case je:case Fe:case fe:case ke:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ie:case Ke:case a:case ae:case ue:return ne;default:return re}}case Je:return re}}}function ee(ne){return z(ne)===xe}oe=Te,oe=xe,oe=Ie,oe=ue,oe=pe,oe=Ke,oe=je,oe=a,oe=ae,oe=Je,oe=Fe,oe=fe,oe=ke,oe=function(ne){return ee(ne)||z(ne)===Te},oe=ee,oe=function(ne){return z(ne)===Ie},oe=function(ne){return z(ne)===ue},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===pe},oe=function(ne){return z(ne)===Ke},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===a},ct.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===Je},oe=function(ne){return z(ne)===Fe},oe=function(ne){return z(ne)===fe},oe=function(ne){return z(ne)===ke},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===je||ne===xe||ne===Fe||ne===fe||ne===ke||ne===Re||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ue||ne.$$typeof===Ie||ne.$$typeof===Ke||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(ze,ct,oe){"use strict";ze.exports=oe(72665)},64217:function(ze,ct,oe){"use strict";oe.d(ct,{Z:function(){return Ie}});var te=oe(1413),pe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,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`,je="".concat(pe," ").concat(Je).split(/[\s\n]+/),fe="aria-",Fe="data-";function ue(Te,xe){return Te.indexOf(xe)===0}function Ie(Te){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke;xe===!1?Ke={aria:!0,data:!0,attr:!0}:xe===!0?Ke={aria:!0}:Ke=(0,te.Z)({},xe);var ke={};return Object.keys(Te).forEach(function(Re){(Ke.aria&&(Re==="role"||ue(Re,fe))||Ke.data&&ue(Re,Fe)||Ke.attr&&je.includes(Re))&&(ke[Re]=Te[Re])}),ke}}}]);