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

147 lines
410 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[508],{84249:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return se}});var te=re(87462),Le=re(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,ce=re(74643),Oe=function(be,Te){return Le.createElement(ce.Z,(0,te.Z)({},be,{ref:Te,icon:je}))},se=Le.forwardRef(Oe)},55304:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return se}});var te=re(87462),Le=re(67294),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},je=Je,ce=re(74643),Oe=function(be,Te){return Le.createElement(ce.Z,(0,te.Z)({},be,{ref:Te,icon:je}))},se=Le.forwardRef(Oe)},22751:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return se}});var te=re(87462),Le=re(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,ce=re(74643),Oe=function(be,Te){return Le.createElement(ce.Z,(0,te.Z)({},be,{ref:Te,icon:je}))},se=Le.forwardRef(Oe)},91034:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return se}});var te=re(87462),Le=re(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,ce=re(74643),Oe=function(be,Te){return Le.createElement(ce.Z,(0,te.Z)({},be,{ref:Te,icon:je}))},se=Le.forwardRef(Oe)},71736:function(Be,dt){"use strict";dt.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 Be(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(Be.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(Be.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(Be.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(Be.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 Be))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 dt=[];function re(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Le(ae){dt.push(ae)}function Je(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,ge=b-z,de=NaN,Pe=NaN;if(oe===0)if(ge===0)ae===y&&(de=ae,Pe=a);else{var fe=(x-ee)/ge,Re=x-fe*b;de=ae,Pe=fe*de+Re}else if(ge===0){var De=(a-E)/oe,vt=a-De*ae;de=b,Pe=De*de+vt}else{var De=(a-E)/oe,fe=(x-ee)/ge,vt=a-De*ae,Re=x-fe*b;de=(Re-vt)/(De-fe),Pe=De*de+vt}return ne.x=de,ne.y=Pe,ne}function je(ae,a,y,E,b,x,z,ee,ne,oe,ge,de,Pe,fe){var Re=1-ne,De=ne,vt=ae*Re+y*De,Nt=a*Re+E*De,Dt=y*Re+b*De,Fe=E*Re+x*De,qe=b*Re+z*De,at=x*Re+ee*De,nt=vt*Re+Dt*De,lt=Nt*Re+Fe*De,$t=Dt*Re+qe*De,Ht=Fe*Re+at*De,Jt=nt*Re+$t*De,cn=lt*Re+Ht*De;oe.x=vt,oe.y=Nt,ge.x=nt,ge.y=lt,de.x=Jt,de.y=cn,Pe.x=$t,Pe.y=Ht,fe.x=qe,fe.y=at}var ce=new go.Spot(.156,.156),Oe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("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*se,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=ce,b.spot2=Oe,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,se*a,0,a,(1-se)*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,se*y,(1-se)*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,se*y,se*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-se)*a,0,0,(1-se)*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 Be("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 Be("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 Be("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 Be("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 Be("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 Ue=[];function be(){var ae=Ue.pop();return ae===void 0?[]:ae}function Te(ae){ae.length=0,Ue.push(ae)}function _e(ae){for(var a=be(),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 Me(ae){var a=Ie(ae),y=be();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 Te(a),y}function Ie(ae){for(var a=_e(ae),y=be(),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],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Te(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=_e(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Te(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=_e(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Te(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=_e(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Te(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=_e(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Te(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=_e(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Te(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=_e(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Te(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=_e(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()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Ie(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Ie(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Ie(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Ie(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Ie(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Ie(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(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=Me(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(),Te(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=Me(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(),Te(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=Me(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(),Te(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=Me(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(),Te(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=Me(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(),Te(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=Me(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(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Be("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 Be("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=ce,x.spot2=Oe,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 Be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Be("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=se/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 Be("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 Be("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 Be("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),oe=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,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),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-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Be("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 Be("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 Be("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,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*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*se;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*se,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*se,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=se*.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=se*.4;var oe=te(),ge=te(),de=te(),Pe=te();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,de,Pe,Pe);var fe=te(),Re=te(),De=te();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Pe,Pe,De,fe,Re);var vt=te(),Nt=te(),Dt=te();je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,vt,Nt,Dt,Pe,Pe);var Fe=te(),qe=te(),at=te();return je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Pe,Pe,at,Fe,qe),ne.add(new go.PathSegment(go.PathSegment.Move,at.x*a,at.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Fe.x*a,Fe.y*y,qe.x*a,qe.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,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,at.x*a,at.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Dt.x*a,Dt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,fe.x*a,fe.y*y,Re.x*a,Re.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,Dt.x*a,Dt.y*y,vt.x*a,vt.y*y,Nt.x*a,Nt.y*y).close()),Le(oe),Le(ge),Le(de),Le(Pe),Le(fe),Le(Re),Le(De),Le(vt),Le(Nt),Le(Dt),Le(Fe),Le(qe),Le(at),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 Be("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=se*.4,x=.4,z=.5,ee=.5,ne=te(),oe=te(),ge=te(),de=te(),Pe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,oe,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var fe=re(oe.x,oe.y);je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,ge,de);var Re=re(oe.x,oe.y);Pe.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.95*.9)*a,fe.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,fe.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,(Re.y*.1+.05*.9)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=se*.35;var De=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),De.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 vt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(vt),Le(ne),Le(oe),Le(ge),Le(de),Le(fe),Le(Re),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*se,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*se;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 Be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Be("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,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.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),Le(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("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,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.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),Le(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 Be("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),Le(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("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 oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.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 oe.spot1=new go.Spot(de.x,de.y),de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,de),oe.spot2=new go.Spot(de.x,de.y),Le(de),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Be("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),Le(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("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 oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.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()),oe.spot1=new go.Spot(0,x/y);var de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(de.x,de.y),Le(de),oe}),go.Shape.setFigureParameter("Pointer",0,new Be("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),Le(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Be("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),Le(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Be("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),Le(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("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),Le(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("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=se*.5,x=se*.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=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*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-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*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-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*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=se*.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,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*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-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*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-se*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-se*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=se*.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-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*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=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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-se*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-se*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=se*b,ee=se*x,ne=.5,oe=.1,ge=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var de=.05,Pe=se*de;ne=.05,oe=.25;var fe=new go.PathFigure(.5*a,.2*y,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,oe*y,(ne+Pe)*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,Pe=se*de,ne=.825,oe=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y,(ne+Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,oe*y,(ne-Pe)*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,Pe=se*de,ne=.5,oe=.7,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y,(ne+Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,oe*y,(ne-Pe)*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,Pe=se*de,ne=.175,oe=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y,(ne+Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,oe*y,(ne-Pe)*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,Pe=se*de,ne=.05,oe=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y,(ne-Pe)*a,(oe-de)*y)),fe.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 Be("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=se*.5,x=se*.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=se*.5,x=se*.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=se*.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=se*.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 oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.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=se*.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=se*.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=se*.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=se*.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=se*.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 oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.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=se*.5,x=se*.4,z=se*.1,ee=.1,ne=.9,oe=.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,oe*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-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=se*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=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.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=se*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=se*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 oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.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=se*.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=se*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 oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.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=se*.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=se*.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=se*.8,ee=.8,ne=0,oe=.5,ge=(b-a)/2,de=(x-y)/2,Pe=new go.PathFigure(ne*a+ge,(oe+ee)*y+de,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+de,(ne-z)*a+ge,(oe+ee)*y+de,(ne-ee)*a+ge,(oe+z)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne-ee)*a+ge,(oe-z)*y+de,(ne-z)*a+ge,(oe-ee)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+de,ne*a+ge,(oe-ee)*y+de,(ne-ee+z*.5)*a+ge,(oe-z)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne-ee+z*.5)*a+ge,(oe+z)*y+de,ne*a+ge,(oe+ee)*y+de).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var fe=new go.PathFigure(ne*a+ge,(oe+ee)*y+de,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+de,(ne-z)*a+ge,(oe+ee)*y+de,(ne-ee)*a+ge,(oe+z)*y+de)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne-ee)*a+ge,(oe-z)*y+de,(ne-z)*a+ge,(oe-ee)*y+de)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+de,ne*a+ge,(oe-ee)*y+de,(ne-ee+z*.5)*a+ge,(oe-z)*y+de)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne-ee+z*.5)*a+ge,(oe+z)*y+de,ne*a+ge,(oe+ee)*y+de).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var Re=new go.PathFigure((ne-ee)*a+ge,oe*y+de,!0);E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne-ee)*a+ge,(oe-z)*y+de,(ne-z)*a+ge,(oe-ee)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+de,(ne+z)*a+ge,(oe-ee)*y+de,(ne+ee)*a+ge,(oe-z)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne+ee)*a+ge,(oe+z)*y+de,(ne+z)*a+ge,(oe+ee)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+de,(ne-z)*a+ge,(oe+ee)*y+de,(ne-ee)*a+ge,(oe+z)*y+de)),z=se*.4,ee=.4,ne=.8,oe=.5;var De=new go.PathFigure(ne*a+ge,(oe-ee)*y+de,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+de,(ne+z)*a+ge,(oe-ee)*y+de,(ne+ee)*a+ge,(oe-z)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne+ee)*a+ge,(oe+z)*y+de,(ne+z)*a+ge,(oe+ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+de,ne*a+ge,(oe+ee)*y+de,(ne+ee-z*.5)*a+ge,(oe+z)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne+ee-z*.5)*a+ge,(oe-z)*y+de,ne*a+ge,(oe-ee)*y+de).close()),z=se*.8,ee=.8,ne=1,oe=.5;var vt=new go.PathFigure(ne*a+ge,(oe-ee)*y+de,!0);return E.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+de,(ne+z)*a+ge,(oe-ee)*y+de,(ne+ee)*a+ge,(oe-z)*y+de)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne+ee)*a+ge,(oe+z)*y+de,(ne+z)*a+ge,(oe+ee)*y+de)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+de,ne*a+ge,(oe+ee)*y+de,(ne+ee-z*.5)*a+ge,(oe+z)*y+de)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne+ee-z*.5)*a+ge,(oe-z)*y+de,ne*a+ge,(oe-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=se*.4,x=.4,z=.5,ee=.5,ne=te(),oe=te(),ge=te(),de=te();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,de);var Pe=re(oe.x,oe.y),fe=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,oe,ne,ne),fe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=se*.3,x=.3,je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,oe,ne,ne),fe.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,de),fe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var fe=new go.PathFigure(.45*a,0,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Le(ne),Le(oe),Le(ge),Le(de),Le(Pe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,de=.5,Pe=.5,fe=0,Re=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+x)*a,(fe+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Re.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)),Re.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)),Re.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Re.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,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),de=ge*.5,Pe=z,fe=z,Re=ge*Pe,De=ge*fe;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Pe)*a,ne*y,(ee-(Re+Pe)/2)*a,(ne+(fe+De)/2)*y,(ee-Pe)*a,(ne+De)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-fe)*y,(ee-Pe)*a,(ne-De)*y,(ee-Re)*a,(ne-fe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Pe)*a,ne*y,(ee+Re)*a,(ne-fe)*y,(ee+Pe)*a,(ne-De)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Pe)*a,(ne+De)*y,(ee+(Re+Pe)/2)*a,(ne+(fe+De)/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 vt=new go.PathFigure(.2*a,y,!1);E.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return E.add(Nt),Nt.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=se*.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=se*.1,ne=.2,oe=.9,ge=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ne=.8,oe=.9;var de=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+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,oe=se*.1,ge=.1,de=.9,Pe=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-oe)*y,(ge-oe)*a,(de-ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+oe)*a,(de-ne)*y,(ge+ne)*a,(de-oe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+oe)*y,(ge+oe)*a,(de+ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-oe)*a,(de+ne)*y,(ge-ne)*a,(de+oe)*y)),ne=.1,oe=se*.1,ge=.4,de=.9;var fe=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-oe)*y,(ge-oe)*a,(de-ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+oe)*a,(de-ne)*y,(ge+ne)*a,(de-oe)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+oe)*y,(ge+oe)*a,(de+ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-oe)*a,(de+ne)*y,(ge-ne)*a,(de+oe)*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=se*.05,Pe=.175,fe=.95,ee=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y));var ge=.05,de=se*.05,Pe=.375,fe=.95,ne=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y));var ge=.05,de=se*.05,Pe=.625,fe=.95,oe=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y));var ge=.05,de=se*.05,Pe=.825,fe=.95,Re=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y).close());var De=new go.PathFigure(0,y,!1);return E.add(De),De.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=se*.05,oe=.35,ge=.775,de=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-ne)*y,(oe-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+ne)*a,(ge-ee)*y,(oe+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+ne)*y,(oe+ne)*a,(ge+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-ne)*a,(ge+ee)*y,(oe-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=se*.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 oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.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=se*.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 oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.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=se*.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=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.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()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.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*se,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 oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.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*se,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*se,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 Be={},dt="5.0",re={},te=null,Le=!1,Je=!1,je=null,ce=!1,Oe=null,se=null,Ue=0;Ue<arguments.length;Ue++){var be=arguments[Ue];if(be!==null)switch(typeof be){case"number":dt=be.toFixed(1);break;case"string":be.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=be:je=be;break;case"object":typeof be.is3D!="undefined"?te=be:re=be;break;case"boolean":Le=be,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},re.material_id!==void 0&&!Je&&(Le=!0)),je!==null&&re.id===void 0&&(re.id=je);var Te="",_e="",Me=!1,Ie=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var ne=function(xe){return parseFloat(xe)>4?parseFloat(xe):5};Be.setHTML5Codebase=function(xe,Ae){se=xe,Ht(xe,Ae)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(xe,Ae){var Qe=parseFloat(xe);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}Oe=xe,$t(xe,Ae)},Be.getHTML5CodebaseVersion=function(){return ae},Be.getParameters=function(){return re},Be.setFontsCSSURL=function(xe){z=xe},Be.setGiacJSURL=function(xe){},Be.setJNLPFile=function(xe){Te=xe},Be.setJNLPBaseDir=function(xe){},Be.inject=function(){function xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",Qe=re.id,Ot,ot=!1,We=0;We<arguments.length;We++){var me=arguments[We];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=me:Qe=arguments[We]):typeof me=="boolean"?ot=me:me instanceof HTMLElement&&(Ot=me)}it();function it(){if(!ce){setTimeout(it,200);return}Ae=nt(Ae);var zt=Ot||document.getElementById(Qe);if(!zt){console.log("possibly bug on ajax loading? ");return}if(Be.removeExistingApplet(zt,!1),re.width===void 0&&zt.clientWidth&&(re.width=zt.clientWidth),re.height===void 0&&zt.clientHeight&&(re.height=zt.clientHeight),!(re.width&&re.height)&&Ae==="html5"&&(delete re.width,delete re.height),Ie=Ae,Ae==="screenshot")Nt(zt,re);else{var Xt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Xt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Xt=(!oe()||xe())&&ge()),Xt?(Ie="screenshot",Fe(zt,re,ot,Ae)):vt(zt,re,ot)}}};function oe(){try{return window.self!==window.top}catch(xe){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Be.getViews=function(){return te},Be.isJavaInstalled=function(){return!1};var de=function(xe){var Ae=function(We){var me=JSON.parse(We),it=function(Pt){return Pt.type=="G"||Pt.type=="E"},zt=me.elements?me.elements.filter(it)[0]:me;if(!zt||!zt.url){Qe();return}re.fileName=zt.url,Pe(zt.settings||{}),te.is3D=!0;var Xt="https://www.geogebra.org/images/";Be.setPreviewImage(E||zt.previewUrl,Xt+"GeoGebra_loading.png",Xt+"applet_play.png"),xe()},Qe=function(){re.onError&&re.onError(),Jt("Error: Fetching material (id "+re.material_id+") failed.",re)},Ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ot="/materials/"+re.material_id+"?scope=basic";fe("https://"+Ot+"/api/proxy.php?path="+encodeURIComponent(ot),Ae,Qe)};function Pe(xe){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){xe[Qe]=!!xe[Qe]}),Ae.forEach(function(Qe){re[Qe]===void 0&&xe[Qe]!==void 0&&(re[Qe]=xe[Qe])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function fe(xe,Ae,Qe){var Ot=new XMLHttpRequest;Ot.open("GET",xe),Ot.onload=function(){Ae(Ot.responseText)},Ot.onerror=Qe,Ot.send()}Be.isHTML5Installed=function(){return!0},Be.getLoadedAppletType=function(){return Ie},Be.setPreviewImage=function(xe,Ae,Qe){E=xe,b=Ae,x=Qe},Be.removeExistingApplet=function(xe,Ae){var Qe;typeof xe=="string"&&(xe=document.getElementById(xe)),Ie=null;var Ot=null;for(Qe=0;Qe<xe.childNodes.length;Qe++){var ot=xe.childNodes[Qe],We=ot.className;We==="applet_screenshot"?Ae?(ot.style.display="block",Ie="screenshot"):ot.style.display="none":We!=="applet_scaler prerender"&&(xe.removeChild(ot),Ot=We&&We.indexOf("appletParameters")!=-1?ot.id:null,Qe--)}var me=re.id!==void 0?re.id:Ot,it=window[me];it&&typeof it.getBase64=="function"&&(it.remove(),window[me]=null)},Be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xe=Be.getAppletObject();return xe&&typeof xe.recalculateEnvironments=="function"?(xe.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var xe=Be.getAppletObject();return xe&&typeof xe.startAnimation=="function"?(xe.startAnimation(),!0):!1},Be.stopAnimation=function(){var xe=Be.getAppletObject();return xe&&typeof xe.stopAnimation=="function"?(xe.stopAnimation(),!0):!1},Be.getAppletObject=function(){var xe=re.id!==void 0?re.id:"ggbApplet";return window[xe]},Be.resize=function(){};var Re=function(xe,Ae,Qe){var Ot=document.createElement("param");Ot.setAttribute("name",Ae),Ot.setAttribute("value",Qe),xe.appendChild(Ot)},De=function(xe){return xe&&xe!=="false"},vt=function(xe,Ae,Qe){ne(ae)<=4.2&&(Qe=!0);var Ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ot=document.createElement("div");ot.classList.add("appletParameters","notranslate");var We=Ae.width,me=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(ne(ae)<=4.4)De(Ae.showToolBar)&&(Ae.height-=7),De(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&De(Ae.showToolBar)&&(Ae.width=605,We=605);else{var it=100;(De(Ae.showToolBar)||De(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),it=De(Ae.showMenuBar)?245:155),We<it&&(Ae.width=it,We=it)}ot.style.border="none",ot.style.display="inline-block";for(var zt in Ae)Ae.hasOwnProperty(zt)&&zt!=="appletOnLoad"&&ot.setAttribute("data-param-"+zt,Ae[zt]);z&&ot.setAttribute("data-param-fontscssurl",z),Be.resize=function(){GGBAppletUtils.responsiveResize(xe,Ae)},window.addEventListener("resize",function(Mt){Be.resize()});var Xt=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!Qe&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||ot.setAttribute("data-param-showSplash","false");var Pt=xe.querySelector(".applet_scaler.prerender"),Ze=Pt!==null;if(Ze)var Ee=Pt.querySelector(".ggb_preview");else{var Ee=at(We,me,Ae.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=We+"px",Pt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),ne(ae)>=5?(Ae.appletOnLoad=function(Mt){var It=xe.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Xt(Mt)},Ze||Pt.appendChild(Ee)):ot.appendChild(Ee),Pt.appendChild(ot),Ze||xe.appendChild(Pt),setTimeout(function(){Be.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(ot),xe.appendChild(ye),Ae.appletOnLoad=function(Mt){Be.resize(),Xt(Mt)}}function pe(Mt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Mt,It.appletOnLoad):renderGGBElement(Mt),Jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function we(Mt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Mt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(rn){pe(rn.article,rn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(Mt.className+=" geogebraweb")):pe(Mt,It)}if(Ot){scriptLoadStarted=!0;for(var $e=0;$e<ot.childNodes.length;$e++){var et=ot.childNodes[$e].tagName;et==="TABLE"&&(ot.removeChild(ot.childNodes[$e]),$e--)}if(ggbHTML5LoadedScript!==null){var St=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');St!=null&&St.parentNode.removeChild(St)}var ct=document.createElement("script"),wt=function(){we(ot,Ae)};ct.src=_e+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=ct.src,Jt("GeoGebra HTML5 codebase loaded: '"+_e+"'.",Ae),!se&&(!Oe||Oe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),wt()):_e.requirejs?__webpack_require__.e(12).then(function(){var Mt=[__webpack_require__(12)];wt.apply(null,Mt)}.bind(this)).catch(__webpack_require__.oe):(ct.onload=wt,xe.appendChild(ct))}else we(ot,Ae);Ae.height=me,Ae.width=We},Nt=function(xe,Ae,Qe){var Ot=at(Ae.width,Ae.height,Ae.borderColor,Qe),ot=document.createElement("div");ot.style.position="relative",ot.style.display="block",ot.style.width=Ae.width+"px",ot.style.height=Ae.height+"px",ot.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),ot.appendChild(Ot);var We=GGBAppletUtils.getScale(Ae,xe,Qe);Qe?(xe.appendChild(qe()),window.GGBT_wsf_view||(xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ot,"66%"),xe.appendChild(ot),We!==1&&!isNaN(We)&&(GGBAppletUtils.scaleElement(ot,We),ot.style.width=Ae.width+"px",ot.style.height=Ae.height+"px",ot.parentNode.style.width=Ae.width*We+"px",ot.parentNode.style.height=Ae.height*We+"px"),Be.resize=function(){Dt(xe,Ot,ot,Qe)},window.addEventListener("resize",function(me){Be.resize()}),Be.resize()};function Dt(xe,Ae,Qe,Ot){if(xe.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}var ot=GGBAppletUtils.getScale(re,xe,Ot);Qe.parentNode!==null&&(!isNaN(ot)&&ot!==1?(GGBAppletUtils.scaleElement(Qe,ot),Qe.parentNode.style.width=re.width*ot+"px",Qe.parentNode.style.height=re.height*ot+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=re.width+"px",Qe.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Be.onExitFullscreen=function(xe,Ae){Ae.appendChild(xe)};var Fe=function(xe,Ae,Qe,Ot){Nt(xe,Ae,!0);for(var ot=function(){var it=[];for(me=0;me<xe.childNodes.length;me++)it.push(xe.childNodes[me]);if(window.GGBT_wsf_view){var zt=window.GGBT_wsf_view.renderFullScreen(xe,Ae.id),Xt=document.getElementById("fullscreencontainer"),Pt=jQuery(xe).find(".fullscreencontent");Pt.length>0?(zt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Xt).append(Pt),window.dispatchEvent(new Event("resize"))):vt(zt,Ae,!1),window.GGBT_wsf_view.launchFullScreen(Xt)}else Ie=Ot,vt(xe,Ae,!1);if(!window.GGBT_wsf_view)for(me=0;me<it.length;me++)xe.removeChild(it[me])},We=xe.getElementsByClassName("ggb_preview_play"),me=0;me<We.length;me++)We[me].addEventListener("click",ot,!1),We[me].addEventListener("ontouchstart",ot,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qe=function(){var xe=document.createElement("div");if(xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Qe=document.createElement("style");Qe.styleSheet?Qe.styleSheet.cssText=Ae:Qe.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(Qe)}return xe},at=function(xe,Ae,Qe,Ot){var ot=document.createElement("div");ot.className="ggb_preview",ot.style.position="absolute",ot.style.zIndex="90",ot.style.width=xe-2+"px",ot.style.height=Ae-2+"px",ot.style.top="0px",ot.style.left="0px",ot.style.overflow="hidden",ot.style.backgroundColor="white";var We="lightgrey";Qe!==void 0&&(Qe==="none"?We="transparent":We=Qe),ot.style.border="1px solid "+We;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 it,zt,Xt;if(!Ot){it=document.createElement("img"),it.style.position="absolute",it.style.zIndex="1001",it.style.opacity=1,me.style.opacity=.3,zt=360,zt>xe/4*3&&(zt=xe/4*3),Xt=zt/5.8,it.setAttribute("src",b),it.setAttribute("width",zt),it.setAttribute("height",Xt);var Pt=(xe-zt)/2,Ze=(Ae-Xt)/2;it.style.left=Pt+"px",it.style.top=Ze+"px",ot.appendChild(it)}}return ot.appendChild(me),ot},nt=function(xe){return xe=xe.toLowerCase(),xe==="html5"||xe==="screenshot"?xe:"html5"},lt=["web","webSimple","web3d","tablet","tablet3d","phone"],$t=function(xe,Ae){if(ae=xe,Ae){Ht(ae,!0);return}var Qe=!Le;if(Qe){var Ot=ne(ae);!isNaN(Ot)&&Ot<4.4&&(Qe=!1)}var ot,We;window.location.protocol.substr(0,4)==="http"?ot=window.location.protocol:ot="http:";var me=ae.indexOf("//");me>0?We=ae:me===0?We=ot+ae:We="https://www.geogebra.org/apps/5.2.814.0/";for(var it in lt)if(ae.slice(lt[it].length*-1)===lt[it]||ae.slice((lt[it].length+1)*-1)===lt[it]+"/"){Ht(We,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!De(re.showToolBar)&&!De(re.showMenuBar)&&!De(re.showAlgebraInput)&&!De(re.enableRightClick)&&(!re.appName||re.appName=="classic")?We+="webSimple/":We+="web3d/",Ht(We,!1)},Ht=function(xe,Ae){if(xe.requirejs){_e=xe;return}xe.slice(-1)!=="/"&&(xe+="/"),_e=xe,Ae===null&&(Ae=xe.indexOf("http")===-1),Me=Ae,a="web.nocache.js",y=!1;var Qe=_e.split("/");Qe.length>1&&(!Ae&&Qe[Qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):lt.indexOf(Qe[Qe.length-2])>=0&&(a=Qe[Qe.length-2]+".nocache.js")),Qe=xe.split("/"),ae=Qe[Qe.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 Ot=parseFloat(ae);Ot!==NaN&&Ot<5&&xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ot+" is deprecated. Using version latest instead."),$t("5.0",Ae))},Jt=function(xe,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(xe)};re.material_id!==void 0?de(cn):cn();function cn(){var xe=dt;Oe!==null?xe=Oe:parseFloat(xe)<5&&(xe="5.0"),$t(xe,!1),se!==null&&Ht(se,Me),ce=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function dt(ce,Oe){Oe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Oe+","+Oe+")",ce.style.webkitTransform="scale("+Oe+","+Oe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,Oe,se,Ue,be,Te){var _e=null;if(Te!=null&&Te!="")for(var Me=ce.parentNode;Me!=null;)if((" "+Me.className+" ").indexOf(" "+Te+" ")>-1){_e=Me;break}else Me=Me.parentNode;var Ie=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(_e)Ie=_e.offsetWidth,ae=Math.max(Ue?_e.offsetWidth:0,_e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ie&&(be===void 0||!be)&&(document.dir==="rtl"?(E=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((se===void 0||!se)&&Oe>0&&Oe+y<Ie?Ie=Oe:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=x)),{width:Ie,height:ae}}function te(ce,Oe,se,Ue,be){if(ce.isScreenshoGenerator)return 1;var Te=Ue!==void 0&&Ue,_e=ce.noScaleMargin!=null&&ce.noScaleMargin,Me=function(ee){return ee&&ee!=="false"},Ie=Me(ce.autoHeight),ae=re(Oe,ce.width,se,Ie,Te&&window.GGBT_wsf_view||_e,be),a=parseInt(ae.width),y=ce.width,E=ce.height;if(y===void 0){var b=Oe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Te?1:ae.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Le(ce,Oe,se){var Ue=1,be,Te=!1;if(ce.hasOwnProperty("allowUpscale")&&(Te=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ue=parseFloat(ce.scale),(isNaN(Ue)||Ue===null||Ue===0)&&(Ue=1),Ue>1&&(Te=!0)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))be=te(ce,Oe,Te,se,ce.scaleContainerClass);else return Ue;return Te&&(!ce.hasOwnProperty("scale")||Ue===1)?be:Math.min(Ue,be)}function Je(ce){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ue=ce.getBoundingClientRect(),be=(Oe-Ue.width)/2,Te=(se-Ue.height)/2;Te<0&&(Te=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(be<40?ce.style.left="40px":ce.style.left=be+"px",ce.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ce.style.top="40px":ce.style.top=Te+"px",ce.style.left=be+"px")}function je(ce,Oe){var se=ce.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Ue=Le(Oe,ce);Be()&&se.setAttribute("data-param-scale",Ue);for(var be=null,Te=0;Te<ce.childNodes.length;Te++)if(ce.childNodes[Te].className!==void 0&&ce.childNodes[Te].className.match(/^applet_scaler/)){be=ce.childNodes[Te];break}if(be!==null&&be.querySelector(".noscale")!==null)return;var _e=Oe.id!==void 0?Oe.id:"ggbApplet",Me=window[_e];(Me==null||!Me.recalculateEnvironments)&&be!==null&&!be.className.match(/fullscreen/)&&(be.parentNode.style.transform="",!isNaN(Ue)&&Ue!==1?(be.parentNode.style.width=Oe.width*Ue+"px",be.parentNode.style.height=Oe.height*Ue+"px",dt(be,Ue)):(dt(be,1),be.parentNode.style.width=Oe.width+"px",be.parentNode.style.height=Oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:Be,positionCenter:Je,getScale:Le,scaleElement:dt}}();__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 Be=n.location.search;return Be.indexOf(J)!=-1||Be.indexOf(K)!=-1}function q(Be,dt){}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(Be){var dt=s[L].bindings;s[L].bindings=function(){for(var re=dt?dt():{},te=Be[webModule.__softPermutationId],Le=O;Le<te.length;Le++){var Je=te[Le];re[Je[O]]=Je[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Be=o.createElement(Q);if(Be.id=L,Be.style.cssText=R+S,Be.tabIndex=-1,o.body.appendChild(Be),t=Be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Be){function dt(te){function Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=Le();if(Je){te();return}function je(){if(!Je){if(!Le())return;Je=!0,te(),o.removeEventListener&&o.removeEventListener(Z,je,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,je,!1);var ce=setInterval(function(){je()},$)}function re(te){var Le=u(),Je=Le.body,je=Le.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)}dt(function(){re(Be)})}webModule.__startLoadingFragment=function(Be){return C(Be)},webModule.__installRunAsyncCode=function(Be){var dt=u(),re=dt.body,te=dt.createElement(_);te.language=ab,te.text=Be,re.appendChild(te),re.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(Be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Be){var dt=c[Be];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Be(ce){var Oe=ce.lastIndexOf(rb);Oe==-1&&(Oe=ce.length);var se=ce.indexOf(sb);se==-1&&(se=ce.length);var Ue=ce.lastIndexOf(tb,Math.min(se,Oe));return Ue>=O?ce.substring(O,Ue+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=ce+vb,ce=Be(Oe.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function te(){for(var ce=o.getElementsByTagName(_),Oe=O;Oe<ce.length;++Oe)if(ce[Oe].src.indexOf(xb)!=-1)return Be(ce[Oe].src);return W}function Le(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Je(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var je=re();return je==W&&(je=te()),je==W&&(je=Le()),je==W&&Je()&&(je=Be(o.location.href)),je=dt(je),je}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],dt=O,re=[],te=[];function Le(ce){var Oe=te[ce](),se=re[ce];if(Oe in se)return Oe;var Ue=[];for(var be in se)Ue[se[be]]=be;throw r&&r(ce,Ue,Oe),null}if(__gwt_isKnownPropertyValue=function(ce,Oe){return Oe in re[ce]},webModule.__getPropMap=function(){var ce={};for(var Oe in re)re.hasOwnProperty(Oe)&&(ce[Oe]=Le(Oe));return ce},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var je=Je.indexOf(Db);je!=-1&&(dt=parseInt(Je.substring(je+P),$),Je=Je.substring(O,je))}catch(ce){}return webModule.__softPermutationId=dt,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(Be,dt,re){"use strict";re.d(dt,{Ax:function(){return je},Ds:function(){return ce},KI:function(){return se},SI:function(){return Je},f1:function(){return Le}});var te=re(11320);function Le(Ue){let be=!0;if(Ue.length>0){for(let Te=0;Te<Ue.length;Te++)if(Ue[Te].compile_success==0||!Ue[Te].compile_success){be=!1;break}}else be=!1;return be}function Je(Ue,be=""){let Te=[];for(let _e=0;_e<Ue.length;_e++){let Me=Ue[_e],Ie=be?`${be}/${Me.name}`:`${Me.name}`;Te.push({title:Me.name,type:Me.type,isLeaf:Me.type!=="tree",key:Ie})}return Te}function je(Ue,be,Te){for(let _e=0;_e<Ue.length;_e++){let Me=Ue[_e];if(Me.key===be){Me.children=Te;break}Me.children&&je(Me.children,be,Te)}return Ue}function ce(Ue,be,Te){let _e;return function(){let Me=this,Ie=arguments,ae=function(){_e=null,Te||Ue.apply(Me,Ie)},a=Te&&!_e;clearTimeout(_e),_e=setTimeout(ae,be),a&&Ue.apply(Me,Ie)}}const Oe=!0,se=te.Z.API_SERVER},63205:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return _e}});var te=re(67294),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=re(94184),je=re.n(Je),ce=re(57953),Oe=re(15979),se=re(33170),Ue=re(28706),be=(Me,Ie,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Me,Ie)).next())}),_e=({data:Me,className:Ie,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),oe=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[Pe,fe]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Me!=null&&Me.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Me!=null&&Me.src&&Re()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Me==null?void 0:Me.visible]);const Re=()=>be(void 0,null,function*(){de(!0),fe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,Ue.ZJ)(Me==null?void 0:Me.src);z.current.src="",z.current.src=Fe,z.current.onload=function(){Dt()},de(!1),fe("")}),De=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},vt=Fe=>be(void 0,null,function*(){de(!0),fe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Me.title,file:Fe.dataUrl}});qe!=null&&qe.id&&!x?(yield(0,se.ZP)(`/api/attachments/${Me.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(Fe.state)}})).status===0&&E():qe!=null&&qe.id&&E(qe),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),fe("")}),Nt=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.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(at=>{const nt=document.querySelector(at.name);nt&&nt.setAttribute("title",at.title)})},Dt=()=>{ee.current=new Oe.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",vt),ee.current.addEventListener("beforeclose",De),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(),Me!=null&&Me.snapshotData&&ee.current.restoreState(Me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return te.createElement(te.Fragment,null,(Me==null?void 0:Me.visible)&&te.createElement(ce.Z,{spinning:ge,tip:Pe,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:je()(Le.imageDimensions,Ie,ae?Le.fullWidth:""),style:a},te.createElement("img",{className:Le.img,ref:z}))))}},36527:function(Be,dt,re){"use strict";var te=re(67294),Le=re(71230),Je=re(15746),je=re(66368),ce=re(71577),Oe=re(85725),se=re(71736),Ue=re(84279),be=re(67294);const Te=(0,te.forwardRef)(({callback:_e,showSaveButton:Me,value:Ie=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:be.createElement(Le.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,ne)=>be.createElement(Je.Z,{flex:"110px",className:se.Z.item},be.createElement("div",null,be.createElement(Oe.Z,{value:`$$${ee.value}$$`}),ee.name),be.createElement("div",{className:se.Z.children},ee.children.map((oe,ge)=>be.createElement("div",{key:ge},be.createElement("h1",null,oe.name),be.createElement(Le.Z,{gutter:[10,10]},oe.data.map((de,Pe)=>be.createElement(Je.Z,{key:Pe,onClick:()=>b(de),className:se.Z.diamond},be.createElement(Oe.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:be.createElement(Le.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,ne)=>be.createElement(Je.Z,{flex:"110px",className:se.Z.item},be.createElement("div",null,be.createElement(Oe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),be.createElement("div",{className:se.Z.children},ee.children.map((oe,ge)=>be.createElement("div",{key:ge},oe.name&&be.createElement("h1",null,oe.name),be.createElement(Le.Z,{gutter:[10,10]},oe.data.map((de,Pe)=>be.createElement(Je.Z,{key:Pe,onClick:()=>b(de),className:se.Z.diamond},be.createElement(Oe.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return _e&&_e(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),be.createElement("div",{className:se.Z.mathWrap},be.createElement(je.default,{defaultActiveKey:"1",items:x}),be.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),Me&&be.createElement("div",{className:se.Z.button},be.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=Te},71865:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return je}});var te=re(67294),Le=re(33054),Je=re(99398),je=()=>{const[ce,Oe]=(0,te.useState)(""),[se,Ue]=(0,te.useState)(0);let[be,Te]=(0,te.useState)(),[_e,Me]=(0,te.useState)();const[Ie,ae]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>Le.Z.subscribe("preview-image",Pe=>{Oe(Pe),console.log(oe.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=ce},[ce]);function y(de){de.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",Te(void 0),Me(void 0),Ue(0),Oe("")}function b(){Ue(se+90)}function x(){be=oe.current.width*1.1,_e=oe.current.height*1.1,Me(_e),Te(be)}function z(){be=oe.current.width/1.1,_e=oe.current.height/1.1,Me(_e),Te(be)}const ee=(0,te.useRef)(),ne=(0,te.useRef)(),oe=(0,te.useRef)(),ge=de=>{(de.nativeEvent.target===ee.current||de.nativeEvent.target===ne.current)&&E()};return te.createElement(te.Fragment,null,ce?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ne},te.createElement(Je.Z,{className:"image-preview",src:ce,style:{display:"none"},preview:{visible:!0,src:ce,movable:!1,onVisibleChange:de=>{Oe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(Be,dt,re){"use strict";re.d(dt,{h:function(){return ee}});var te=re(67294),Le=re(11713),Je=re(22150),je=re(71577),ce=re(4631),Oe=re.n(ce),se=re(71749),Ue=re(30483),be=Object.defineProperty,Te=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,oe,ge)=>oe in ne?be(ne,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[oe]=ge,y=(ne,oe)=>{for(var ge in oe||(oe={}))Ie.call(oe,ge)&&a(ne,ge,oe[ge]);if(Me)for(var ge of Me(oe))ae.call(oe,ge)&&a(ne,ge,oe[ge]);return ne},E=(ne,oe)=>Te(ne,_e(oe));const b=Le.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"]};dt.Z=({callback:ne,onCancel:oe})=>{const[ge,de]=(0,te.useState)("python");function Pe(Re){de(z[Re][1])}function fe(Re){ne(Re)}return te.createElement(Je.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:fe,style:{width:500}}),te.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Le.default,{getPopupContainer:Re=>Re.parentNode,onChange:Pe},Object.keys(z).map(Re=>te.createElement(b,{key:Re,value:Re},z[Re][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:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:ge,options:de={}}){const Pe=(0,te.useRef)(),[fe,Re]=(0,te.useState)();return(0,te.useEffect)(()=>{if(fe){let De=function(vt){const Nt=vt.getValue();oe&&oe(Nt)};return fe.on("change",De),()=>{fe.off("change",De)}}},[fe,oe]),(0,te.useEffect)(()=>{fe&&fe.setOption("mode",ge)},[fe,ge]),(0,te.useEffect)(()=>{fe&&(ne!==fe.getValue()||ne==="")&&setTimeout(()=>{fe.setValue(ne||"")},300)},[fe,ne]),(0,te.useEffect)(()=>{if(Pe.current&&!fe){const De=Oe().fromTextArea(Pe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));Re(De)}},[Pe.current,fe]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Pe}))}},35567:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return xt}});var te=re(67294),Le=re(4631),Je=re.n(Le),je=re(91033),ce=re(71749),Oe=re(57341),se=re(82801),Ue=re(88386),be=re(49047),Te=re(80785),_e=re(85725),Me=({value:ue="",className:ve,showTextOnly:he,showLines:Ge,style:ze={}})=>{const ft=(0,te.useMemo)(()=>"",[ue]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},Ie=re(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,ve,he)=>ve in ue?ae(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:he}):ue[ve]=he,ee=(ue,ve)=>{for(var he in ve||(ve={}))b.call(ve,he)&&z(ue,he,ve[he]);if(E)for(var he of E(ve))x.call(ve,he)&&z(ue,he,ve[he]);return ue},ne=(ue,ve)=>a(ue,y(ve));let oe=[{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:ue,title:ve,icon:he,actionName:Ge,className:ze="",children:ft}){function Wt(){ue(Ge)}return Ie.createElement("a",{title:ve,className:ze,onClick:Wt},Ie.createElement("i",{className:`${he}`}),ft)}var de=({watch:ue,showNullButton:ve,showNullProgramButton:he,onActionCallback:Ge,fullScreen:ze,insertTemp:ft,hidetoolBar:Wt,extraUse:Bt})=>{const Kt=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!Wt&&Kt.map((en,na)=>Ie.createElement("li",{key:na},en.actionName?Ie.createElement(ge,ne(ee({},en),{onActionCallback:Ge})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ge},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ge},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ge},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ft&&Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ft}`,onActionCallback:Ge},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bt&&Ie.createElement("li",null,Bt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(ge,{icon:`${ze?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ze?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ge})))},Pe=re(76621),fe=re(22150),Re=re(69677),De=re(71577),vt=Object.defineProperty,Nt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,nt=(ue,ve,he)=>ve in ue?vt(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:he}):ue[ve]=he,lt=(ue,ve)=>{for(var he in ve||(ve={}))qe.call(ve,he)&&nt(ue,he,ve[he]);if(Fe)for(var he of Fe(ve))at.call(ve,he)&&nt(ue,he,ve[he]);return ue},$t=(ue,ve)=>Nt(ue,Dt(ve));const Ht={labelCol:{span:4},wrapperCol:{span:20}};var Jt=({callback:ue,onCancel:ve})=>{function he(Ge){ue(Ge)}return te.createElement(fe.default,$t(lt({},Ht),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),te.createElement(fe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Re.default,null)),te.createElement(fe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Re.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(De.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},cn=re(57444),xe=re(70859),Ae=re(14446),Qe=re(71230),Ot=re(63205),ot=re(67294),We=({callback:ue,onCancel:ve})=>{const he=document.createElement("canvas"),Ge=he.getContext("2d");he.width=1e3,he.height=800,Ge.fillStyle="#ffffff",Ge.fillRect(0,0,he.width,he.height);const ze=he.toDataURL("image/png");return ot.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement(Qe.Z,{style:{height:"100vh"}},ot.createElement(Ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ze,visible:!0,title:String(Date.now())},onOk:ft=>{ue({src:ft.url})},onClose:ve})))},me=re(23495);function it(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(it,go.CommandHandler),it.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},it.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var ve=1/0;ue.selection.each(function(he){he instanceof go.Link||(ve=Math.min(he.position.x,ve))}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(ve,he.position.y))}),ue.commitTransaction("aligning left")},it.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var ve=-1/0;ue.selection.each(function(he){if(!(he instanceof go.Link)){var Ge=he.actualBounds.x+he.actualBounds.width;ve=Math.max(Ge,ve)}}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(ve-he.actualBounds.width,he.position.y))}),ue.commitTransaction("aligning right")},it.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var ve=1/0;ue.selection.each(function(he){he instanceof go.Link||(ve=Math.min(he.position.y,ve))}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,ve))}),ue.commitTransaction("alignTop")},it.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var ve=-1/0;ue.selection.each(function(he){if(!(he instanceof go.Link)){var Ge=he.actualBounds.y+he.actualBounds.height;ve=Math.max(Ge,ve)}}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,ve-he.actualBounds.height))}),ue.commitTransaction("aligning bottom")},it.prototype.alignCenterX=function(){var ue=this.diagram,ve=ue.selection.first();if(ve){ue.startTransaction("aligning Center X");var he=ve.actualBounds.x+ve.actualBounds.width/2;ue.selection.each(function(Ge){Ge instanceof go.Link||Ge.move(new go.Point(he-Ge.actualBounds.width/2,Ge.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},it.prototype.alignCenterY=function(){var ue=this.diagram,ve=ue.selection.first();if(ve){ue.startTransaction("aligning Center Y");var he=ve.actualBounds.y+ve.actualBounds.height/2;ue.selection.each(function(Ge){Ge instanceof go.Link||Ge.move(new go.Point(Ge.actualBounds.x,he-Ge.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},it.prototype.alignColumn=function(ue){var ve=this.diagram;ve.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var he=new Array;ve.selection.each(function(Bt){Bt instanceof go.Link||he.push(Bt)});for(var Ge=0;Ge<he.length-1;Ge++){var ze=he[Ge],ft=ze.actualBounds.y+ze.actualBounds.height+ue,Wt=he[Ge+1];Wt.move(new go.Point(ze.actualBounds.x,ft))}ve.commitTransaction("align Column")},it.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var ve=this.diagram;ve.startTransaction("align Row");var he=new Array;ve.selection.each(function(Bt){Bt instanceof go.Link||he.push(Bt)});for(var Ge=0;Ge<he.length-1;Ge++){var ze=he[Ge],ft=ze.actualBounds.x+ze.actualBounds.width+ue,Wt=he[Ge+1];Wt.move(new go.Point(ft,ze.actualBounds.y))}ve.commitTransaction("align Row")},it.prototype.canRotate=function(ue){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},it.prototype.rotate=function(ue){ue===void 0&&(ue=90);var ve=this.diagram;ve.startTransaction("rotate "+ue.toString());var ve=this.diagram;ve.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=ue)}),ve.commitTransaction("rotate "+ue.toString())},it.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var ve=new go.Map;ue.selection.each(function(he){ve.set(he.layer,0)}),ve.iteratorKeys.each(function(he){var Ge=0;he.parts.each(function(ze){if(!ze.isSelected){var ft=ze.zOrder;isNaN(ft)?ze.zOrder=0:Ge=Math.max(Ge,ft)}}),ve.set(he,Ge)}),ue.selection.each(function(he){it._assignZOrder(he,ve.get(he.layer)+1)}),ue.commitTransaction("pullToFront")},it.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var ve=new go.Map;ue.selection.each(function(he){ve.set(he.layer,0)}),ve.iteratorKeys.each(function(he){var Ge=0;he.parts.each(function(ze){if(!ze.isSelected){var ft=ze.zOrder;isNaN(ft)?ze.zOrder=0:Ge=Math.min(Ge,ft)}}),ve.set(he,Ge)}),ue.selection.each(function(he){it._assignZOrder(he,ve.get(he.layer)-1-it._findGroupDepth(he))}),ue.commitTransaction("pushToBack")},it._assignZOrder=function(ue,ve,he){he===void 0&&(he=ue),ue.layer===he.layer&&(ue.zOrder=ve),ue instanceof go.Group&&ue.memberParts.each(function(Ge){it._assignZOrder(Ge,ve+1,he)})},it._findGroupDepth=function(ue){if(ue instanceof go.Group){var ve=0;return ue.memberParts.each(function(he){ve=Math.max(ve,it._findGroupDepth(he))}),ve+1}else return 0},it.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var ve=ue.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},it.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(ve){ue.push(ve)}),this.diagram.parts.each(function(ve){ue.push(ve)}),ue},it.prototype._arrowKeyMove=function(){var ue=this.diagram,ve=ue.lastInput,he=0,Ge=0;if(ve.control||ve.meta)he=1,Ge=1;else if(ue.grid!==null){var ze=ue.grid.gridCellSize;Ge=ze.width,he=ze.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(ft){ve.key==="Up"?ft.move(new go.Point(ft.actualBounds.x,ft.actualBounds.y-he)):ve.key==="Down"?ft.move(new go.Point(ft.actualBounds.x,ft.actualBounds.y+he)):ve.key==="Left"?ft.move(new go.Point(ft.actualBounds.x-Ge,ft.actualBounds.y)):ve.key==="Right"&&ft.move(new go.Point(ft.actualBounds.x+Ge,ft.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},it.prototype._arrowKeySelect=function(){var ue=this.diagram,ve=ue.lastInput,he=null;ve.key==="Up"?he=this._findNearestPartTowards(270):ve.key==="Down"?he=this._findNearestPartTowards(90):ve.key==="Left"?he=this._findNearestPartTowards(180):ve.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(ve.shift?he.isSelected=!0:ve.control||ve.meta?he.isSelected=!he.isSelected:ue.select(he))},it.prototype._findNearestPartTowards=function(ue){var ve=this.diagram.selection.first();if(ve===null)return null;for(var he=ve.actualBounds.center,Ge=this._getAllParts(),ze=1/0,ft=ve,Wt=0;Wt<Ge.length;Wt++){var Bt=Ge[Wt];if(Bt!==ve&&Bt.canSelect()){var Kt=Bt.actualBounds.center,en=he.directionPoint(Kt),na=this._angleCloseness(en,ue);if(na<=45){var Ye=he.distanceSquaredPoint(Kt);Ye*=1+Math.sin(na*Math.PI/180),Ye<ze&&(ze=Ye,ft=Bt)}}}return ft},it.prototype._angleCloseness=function(ue,ve){return Math.min(Math.abs(ve-ue),Math.min(Math.abs(ve+360-ue),Math.abs(ve-360-ue)))},it.prototype._arrowKeyTree=function(){var ue=this.diagram,ve=ue.selection.first();if(ve instanceof go.Node){var he=ue.lastInput;if(he.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)ue.commandHandler.canExpandTree(ve)&&ue.commandHandler.expandTree(ve);else{var Ge=this._sortTreeChildrenByY(ve).first();Ge!==null&&ue.select(Ge)}}else if(he.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)ue.commandHandler.canCollapseTree(ve)&&ue.commandHandler.collapseTree(ve);else{var ze=ve.findTreeParentNode();ze!==null&&ue.select(ze)}else if(he.key==="Up"){var ze=ve.findTreeParentNode();if(ze!==null){var ft=this._sortTreeChildrenByY(ze),Wt=ft.indexOf(ve);if(Wt>0){for(var Bt=ft.elt(Wt-1);Bt!==null&&Bt.isTreeExpanded&&!Bt.isTreeLeaf;){var Kt=this._sortTreeChildrenByY(Bt);Bt=Kt.last()}Bt!==null&&ue.select(Bt)}else ue.select(ze)}}else if(he.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var Ge=this._sortTreeChildrenByY(ve).first();Ge!==null&&ue.select(Ge)}else for(;ve!==null;){var ze=ve.findTreeParentNode();if(ze===null)break;var ft=this._sortTreeChildrenByY(ze),Wt=ft.indexOf(ve);if(Wt<ft.length-1){ue.select(ft.elt(Wt+1));break}else ve=ze}var en=ue.selection.first();en!==null&&ue.scrollToRect(en.actualBounds)}},it.prototype._sortTreeChildrenByY=function(ue){var ve=new go.List().addAll(ue.findTreeChildrenNodes());return ve.sort(function(he,Ge){var ze=he.location,ft=Ge.location;return ze.y<ft.y?-1:ze.y>ft.y?1:ze.x<ft.x?-1:ze.x>ft.x?1:0}),ve},it.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},it.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(it.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(it.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var zt=it,Xt=re(18023),Pt=re(15746),Ze=re(33170),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ye=re(67294),pe=(ue,ve,he)=>new Promise((Ge,ze)=>{var ft=Kt=>{try{Bt(he.next(Kt))}catch(en){ze(en)}},Wt=Kt=>{try{Bt(he.throw(Kt))}catch(en){ze(en)}},Bt=Kt=>Kt.done?Ge(Kt.value):Promise.resolve(Kt.value).then(ft,Wt);Bt((he=he.apply(ue,ve)).next())});function we({onCancel:ue,callback:ve}){let he=(0,te.useRef)(),Ge=(0,te.useRef)(),ze=(0,te.useRef)(),ft=(0,te.useRef)(!1);const Wt=(0,te.useRef)(!1),[Bt,Kt]=(0,te.useState)(0);function en(){const Ye=me.bx.make,tn={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"};he.current=new me.S0(Ge.current,{padding:20,grid:Ye(me.s_,"Grid",Ye(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tt=>{var Et=tt.diagram.commandHandler.addTopLevelParts(tt.diagram.selection,!0);Et||tt.diagram.currentTool.doCancel()},commandHandler:Ye(zt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tt=>{var Et=tt.subject;Et.location=Et.location.copy().snapToGridPoint(tt.diagram.grid.gridOrigin,tt.diagram.grid.gridCellSize),setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tt=>{var Et=tt.subject;setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()})},LinkRelinked:tt=>{var Et=tt.parameter.part;Et.invalidateConnectedLinks();var Ut=tt.subject;tt.diagram.toolManager.linkingTool.isForwards?Ut.toNode.invalidateConnectedLinks():Ut.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=Ye(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),Ye(me.bn,{name:"SHAPE",fill:tn.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")),Ye(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),he.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},Ye(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),Ye(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function jn(tt,Et){var Ut=(Ct,vn)=>{Ct.handled=!0,Ct.diagram.model.commit(Tn=>{var Jn=vn.part.adornedPart,la=new me.E9().setRectSpot(Jn.actualBounds,tt);la.subtract(Jn.location),la.scale(2,2),la.x+=Math.sign(la.x)*130,la.y+=Math.sign(la.y)*130,la.add(Jn.location),la.snapToGridPoint(Ct.diagram.grid.gridOrigin,Ct.diagram.grid.gridCellSize);var wa=Tn.copyNodeData(Jn.data);Tn.setGroupKeyForNodeData(wa,Tn.getGroupKeyForNodeData(Jn.data)),Tn.addNodeData(wa);var lo={from:Jn.key,to:Tn.getKeyForNodeData(wa)};Tn.addLinkData(lo);var $a=Ct.diagram.findNodeForData(wa);$a.location=la,Ct.diagram.select($a),setTimeout(()=>{Ct.diagram.commandHandler.editTextBlock()},20)})};return Ye(me.bn,{figure:Et,alignment:tt,alignmentFocus:tt.opposite(),width:tt.equals(me.z6.Top)||tt.equals(me.z6.Bottom)?25:18,height:tt.equals(me.z6.Top)||tt.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(Ct,vn)=>vn.fill="dodgerblue",mouseLeave:(Ct,vn)=>vn.fill="orange",isActionable:!0,click:Ut,contextClick:Ut})}function ia(tt){return Ye(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:(Et,Ut)=>Ut.fill="dodgerblue",mouseLeave:(Et,Ut)=>Ut.fill="orange",click:(Et,Ut)=>{Et.diagram.commandHandler.showContextMenu(Ut.part.adornedPart)}},tt||{})}he.current.nodeTemplate.selectionAdornmentTemplate=Ye(me.uz,"Spot",Ye(me.Vm,{padding:10}),jn(me.z6.Top,"TriangleUp"),jn(me.z6.Left,"TriangleLeft"),jn(me.z6.Right,"TriangleRight"),jn(me.z6.Bottom,"TriangleDown"),ia({alignment:new me.z6(.75,0)}));function Gt(tt,Et){return(Ut,Ct)=>{Ut.handled=!0,Ut.diagram.model.commit(vn=>{vn.set(Ct.part.adornedPart.data,tt,Et)})}}function bn(tt,Et){return Et||(Et="color"),Ye(me.bn,{width:16,height:16,stroke:"lightgray",fill:tt,margin:1,background:"transparent",mouseEnter:(Ut,Ct)=>Ct.stroke="dodgerblue",mouseLeave:(Ut,Ct)=>Ct.stroke="lightgray",click:Gt(Et,tt),contextClick:Gt(Et,tt)})}function va(){return[Ye("ContextMenuButton",Ye(me.s_,"Horizontal",bn(tn.white,"fill"),bn(tn.beige,"fill"),bn(tn.extralightblue,"fill"),bn(tn.extralightred,"fill"))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",bn(tn.lightgray,"fill"),bn(tn.lightgreen,"fill"),bn(tn.lightblue,"fill"),bn(tn.lightred,"fill")))]}function Oa(){return[Ye("ContextMenuButton",Ye(me.s_,"Horizontal",bn(tn.black),bn(tn.green),bn(tn.blue),bn(tn.red))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",bn(tn.white),bn(tn.magenta),bn(tn.purple),bn(tn.orange)))]}function jt(tt,Et){return Et||(Et="thickness"),Ye(me.bn,"LineH",{width:16,height:16,strokeWidth:tt,margin:1,background:"transparent",mouseEnter:(Ut,Ct)=>Ct.background="dodgerblue",mouseLeave:(Ut,Ct)=>Ct.background="transparent",click:Gt(Et,tt),contextClick:Gt(Et,tt)})}function aa(tt,Et){return Et||(Et="dash"),Ye(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tt,margin:1,background:"transparent",mouseEnter:(Ut,Ct)=>Ct.background="dodgerblue",mouseLeave:(Ut,Ct)=>Ct.background="transparent",click:Gt(Et,tt),contextClick:Gt(Et,tt)})}function Un(){return[Ye("ContextMenuButton",Ye(me.s_,"Horizontal",jt(1),jt(2),jt(3),jt(4))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",aa(null),aa([2,4]),aa([4,4])))]}function Ln(tt,Et){return Et||(Et="figure"),Ye(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tt,margin:1,background:"transparent",mouseEnter:(Ut,Ct)=>Ct.fill="dodgerblue",mouseLeave:(Ut,Ct)=>Ct.fill="lightgray",click:Gt(Et,tt),contextClick:Gt(Et,tt)})}he.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Ln("Rectangle"),Ln("RoundedRectangle"),Ln("Ellipse"),Ln("Diamond"))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Ln("Parallelogram2"),Ln("ManualOperation"),Ln("Procedure"),Ln("Cylinder1"))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Ln("Terminator"),Ln("CreateRequest"),Ln("Document"),Ln("TriangleDown"))),va(),Oa(),Un()),he.current.groupTemplate=Ye(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tt,Et)=>{var Ut=Et.addMembers(Et.diagram.selection,!0);Ut||Et.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),Ye(me.s_,"Auto",{name:"BODY"},Ye(me.bn,{parameter1:10,fill:tn.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")),Ye(me.Vm,{background:"transparent",margin:20})),Ye(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"))),he.current.groupTemplate.selectionAdornmentTemplate=Ye(me.uz,"Spot",Ye(me.s_,"Auto",Ye(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(me.Vm,{margin:1.5})),ia({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),he.current.groupTemplate.contextMenu=Ye("ContextMenu",va(),Oa(),Un()),he.current.linkTemplate=Ye(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",tt=>tt>=1?10:0),new me.KX("toShortLength","dir",tt=>tt>=1?10:0),new me.KX("points").makeTwoWay(),Ye(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),Ye(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",tt=>tt===1)),Ye(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",tt=>tt>=1),new me.KX("width","thickness",tt=>7+3*tt),new me.KX("height","thickness",tt=>7+3*tt),new me.KX("segmentOffset","thickness",tt=>new me.E9(-15,4+1.5*tt))),Ye(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",tt=>tt===2),new me.KX("width","thickness",tt=>7+3*tt),new me.KX("height","thickness",tt=>7+3*tt),new me.KX("segmentOffset","thickness",tt=>new me.E9(-15,4+1.5*tt))),Ye(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=Ye(me.uz,Ye(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:da(2)},new me.KX("pathPattern","thickness",da)),ia({alignmentFocus:new me.z6(0,0,-6,-4)}));function da(tt){return Ye(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tt+4).toString()+" H3"})}function Ca(tt){var Et="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tt===0?Et="M0 0 M16 16 M0 8 L16 8":tt===2&&(Et="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(me.bn,{geometryString:Et,margin:2,background:"transparent",mouseEnter:(Ut,Ct)=>Ct.background="dodgerblue",mouseLeave:(Ut,Ct)=>Ct.background="transparent",click:Gt("dir",tt),contextClick:Gt("dir",tt)})}function Ua(tt){var Et=(Ut,Ct)=>{Ut.handled=!0,Ut.diagram.model.commit(vn=>{var Tn=Ct.part.adornedPart;vn.set(Tn.data,tt?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(tt?Tn.toNode:Tn.fromNode).invalidateConnectedLinks()})};return Ye(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ut,Ct)=>Ct.background="dodgerblue",mouseLeave:(Ut,Ct)=>Ct.background="transparent",click:Et,contextClick:Et})}function Ke(tt,Et){var Ut=0,Ct=me.z6.RightSide;tt.equals(me.z6.Top)?(Ut=270,Ct=me.z6.TopSide):tt.equals(me.z6.Left)?(Ut=180,Ct=me.z6.LeftSide):tt.equals(me.z6.Bottom)&&(Ut=90,Ct=me.z6.BottomSide),Et||(Ut-=180);var vn=(Tn,Jn)=>{Tn.handled=!0,Tn.diagram.model.commit(la=>{var wa=Jn.part.adornedPart;la.set(wa.data,Et?"toSpot":"fromSpot",me.z6.stringify(Ct)),(Et?wa.toNode:wa.fromNode).invalidateConnectedLinks()})};return Ye(me.bn,{alignment:tt,alignmentFocus:tt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ut,background:"transparent",mouseEnter:(Tn,Jn)=>Jn.background="dodgerblue",mouseLeave:(Tn,Jn)=>Jn.background="transparent",click:vn,contextClick:vn})}he.current.linkTemplate.contextMenu=Ye("ContextMenu",Oa(),Un(),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Ca(0),Ca(1),Ca(2))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Ye(me.s_,"Spot",Ua(!1),Ke(me.z6.Top,!1),Ke(me.z6.Left,!1),Ke(me.z6.Right,!1),Ke(me.z6.Bottom,!1)),Ye(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},Ua(!0),Ke(me.z6.Top,!0),Ke(me.z6.Left,!0),Ke(me.z6.Right,!0),Ke(me.z6.Bottom,!0)))));const Ha=`{ "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 Ga=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Da(tt){return console.log("shapeName:",tt),Ga.indexOf(tt)>=0}var Fa=new me.YI(ze.current,{maxSelectionCount:1,linkTemplate:Ye(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:Ye(me.uz,"Link",{locationSpot:me.z6.Center},Ye(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),Ye(me.bn,{isPanelMain:!0,strokeWidth:2}),Ye(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(tt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return he.current.addDiagramListener("TextEdited",function(tt){var Et;const Ut=tt.subject.part;var Ct=(Et=document.activeElement)==null?void 0:Et.value;typeof Ct=="string"&&Ct.trim()===""&&he.current.model.commit(function(vn){vn.set(Ut.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),Fa.nodeTemplate=Ye(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),Ye(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")),Ye(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(()=>{he.current.grid=Ye(me.s_,"Grid",Ye(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const na=()=>pe(this,null,function*(){var Ye=he.current.makeImage();const tn=yield(0,Ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:tn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{en()},500),Kt(Bt+1),()=>{he.current=null}),[]),ye.createElement("div",{ref:Wt,className:ft.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},ye.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ye.createElement(Qe.Z,null,ye.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ye.createElement(Pt.Z,{onClick:()=>{var Ye,tn,jn=he.current.selection.first();if(ft.current=!ft.current,document.activeElement&&jn){let ia=(tn=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:tn.trim();typeof ia=="string"&&he.current.model.commit(function(Gt){Gt.set(jn.data,"text",ia||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}Kt(Bt+1)}},ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},ye.createElement("div",{style:{display:"flex",height:"100%"}},ye.createElement("div",{style:{width:"300px",height:"100%"}},ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:ze})),ye.createElement("div",{style:{flex:1,position:"relative"}},ye.createElement("div",{ref:Ge,style:{height:"80vh"}}))),ye.createElement("div",{className:"tr"},ye.createElement(De.ZP,{size:"large",onClick:na,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $e=we,et=re(78045),St=re(31795);const ct=et.ZP.Group,wt={margin:"0 8px"};var Mt=({callback:ue,onCancel:ve})=>{function he(Ge){ue(Ge)}return te.createElement(fe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:wt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:wt},"\u884C\u6570"),te.createElement(fe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(St.Z,null)),te.createElement("span",{style:wt},"\u5217\u6570"),te.createElement(fe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(St.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:wt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(fe.default.Item,{name:"align"},te.createElement(ct,null,te.createElement(et.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(et.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(et.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(et.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(De.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},It=re(47897),rn=re(61016),gn=re.n(rn),Rt=(0,te.forwardRef)(({use3d:ue,width:ve,height:he,callback:Ge,showSaveButton:ze},ft)=>{const Wt=(0,te.useRef)(),Bt=(0,te.useRef)(),[Kt,en]=(0,te.useState)(!1),na=(0,te.useRef)({id:Wt,appName:"graphing",width:ve||1e3,height:he||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)(()=>{Bt.current=new(gn())(na.current,!0),window.onload=function(){Bt.current.inject("applet_container")}},[]);const Ye=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return Ge&&Ge(tn),tn};return(0,te.useEffect)(()=>{na.current.appName=Kt?"3D":"graphing",Bt.current.inject("applet_container")},[Kt]),(0,te.useEffect)(()=>{en(ue)},[ue]),(0,te.useImperativeHandle)(ft,()=>({getImgData:Ye})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Wt}),te.createElement(Qe.Z,{align:"middle"},te.createElement(Pt.Z,{flex:1},te.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Kt,onChange:tn=>en(tn)})),te.createElement(Pt.Z,null,te.createElement(De.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),dn=re(36527),qt=re(25934),wn=re(2453);const fn="link",yn="upload-image",Sn="add-flowchart",Pn="draw-image",Gn="add-flowchart",ln="code-block",hn="add-table",pt="------------",An={default:pt,left:`:${pt}`,center:`:${pt}:`,right:`${pt}:`};var Yn=re(99914),zn=(ue,ve,he)=>new Promise((Ge,ze)=>{var ft=Kt=>{try{Bt(he.next(Kt))}catch(en){ze(en)}},Wt=Kt=>{try{Bt(he.throw(Kt))}catch(en){ze(en)}},Bt=Kt=>Kt.done?Ge(Kt.value):Promise.resolve(Kt.value).then(ft,Wt);Bt((he=he.apply(ue,ve)).next())});function Pa(){}let ha=0;const Qn=1e4,sa="\u2581",Rn="@\u2581\u2581@",He="@\u2581@",Ve=`
**\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`,ke=["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 rt(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const on=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cn={[on+"-B"]:"bold",[on+"-I"]:"italic"},At={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[ln]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yn]:"\u6DFB\u52A0\u56FE\u7247",[Pn]:"\u6DFB\u52A0\u753B\u56FE",[Sn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[hn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var xt=({defaultValue:ue="",onChange:ve,width:he="100%",height:Ge=400,miniToolbar:ze=!1,isFocus:ft=!1,watch:Wt,insertTemp:Bt,mode:Kt="markdown",id:en="markdown-editor-id",showResizeBar:na=!1,noStorage:Ye=!1,showNullButton:tn=!1,showNullProgramButton:jn=!1,hidetoolBar:ia=!1,fullScreen:Gt=!1,onBlur:bn,onCMBeforeChange:va,onFullScreen:Oa,className:jt="",disablePaste:aa=!1,disabled:Un=!1,disabledFill:Ln=!1,placeholder:da="",values:Ca="",extraUse:Ua})=>{const[Ke,Ha]=(0,te.useState)(null),[Ga,Da]=(0,te.useState)(ue),[Fa,tt]=(0,te.useState)(Wt),[Et,Ut]=(0,te.useState)(Gt),[Ct,vn]=(0,te.useState)(""),[Tn,Jn]=(0,te.useState)(0),[la,wa]=(0,te.useState)(Ge),[lo,$a]=(0,te.useState)(!1),ho=(0,te.useRef)((0,qt.Z)()),vo=(0,te.useRef)(!1),mo=(0,te.useRef)(),[to,so]=(0,te.useState)(0),[uo,co]=(0,te.useState)(0),Ta=(0,te.useRef)(),Wa=(0,te.useRef)(),Ka=(0,te.useRef)(),Xa=(0,te.useRef)(),po=()=>zn(void 0,null,function*(){var bt;const mt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ho.current}});(bt=mt==null?void 0:mt.attachments)!=null&&bt.length&&(console.log("cm:",Ke,Ta),mt.attachments.map(ht=>{ht.content_type.indexOf("image")>-1?Ke.replaceSelection(`![,](/api/attachments/${ht.id}?type=${ht.content_type})`):ht.content_type.indexOf("video")>-1?Ke.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ht.content_type.indexOf("pdf")>-1?Ke.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type}&disposition=inline" target="_blank">${ht.name}</a>`):Ke.replaceSelection(`[${ht.name}](${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type})`)}))});(0,te.useEffect)(()=>{const bt=window.scrollY||window.pageYOffset;Da(Ca),Ke==null||Ke.setValue(Ca),window.scrollTo(0,bt)},[Ca]),(0,te.useEffect)(()=>{Oa==null||Oa(Et)},[Et]),(0,te.useEffect)(()=>{if(Ta.current){let bt=function(ht,Lt){var mn;if(aa){Lt.preventDefault();return}const On=Lt.clipboardData;if(On){const qn=On.types.toString(),le=On.items;if(qn==="Files"||On.types.indexOf("Files")>-1){if(Lt.preventDefault(),Kt=="stex")return;try{let ie=le[1];((mn=le[0])==null?void 0:mn.kind)==="file"&&(ie=le[0]);const Se=ie.getAsFile(),Ce=Se.name.split(".").pop();(0,xe.I)(Se,Ne=>{var Xe,gt,ut;Ne.id?((Xe=Se==null?void 0:Se.type)==null?void 0:Xe.indexOf("image"))>-1?mt.replaceSelection(`<img width="100%" src="/api/attachments/${Ne.id}?type=${Ne.content_type})" alt="" />`):((gt=Se==null?void 0:Se.type)==null?void 0:gt.indexOf("video"))>-1?mt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ne.id}"></video>`):((ut=Se==null?void 0:Se.type)==null?void 0:ut.indexOf("pdf"))>-1?mt.replaceSelection(`<a href="/api/attachments/${Ne.id}?type=${Se.type}&disposition=inline" target="_blank">${Se.name}</a>`):ke.includes(Ce)?mt.replaceSelection(`<a href="/api/attachments/${Ne.id}?type=office&disposition=inline" target="_blank">${Se.name}</a>`):mt.replaceSelection(`[${Se.name}](/api/attachments/${Ne.id}?type=${Ne.content_type})`):(Ne==null?void 0:Ne.status)===401&&(wn.ZP.warning((Ne==null?void 0:Ne.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ie){wn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mt=Je().fromTextArea(Ta.current,{mode:Kt,lineNumbers:!ze,lineWrapping:!0,value:ue,autoCloseTags:!jn,autoCloseBrackets:!0});return mt.on("keyup",function(ht,Lt){Lt.keyCode===8&&(ht.getValue()==""?mt.setOption("placeholder",da):mt.setOption("placeholder",null))}),mt.on("keydown",function(ht,Lt){if(Lt.keyCode===8){var mn=yo(ht);mn&&Lt.preventDefault()}}),ft&&mt.focus(),mt.on("paste",bt),mt.on("dragleave",function(ht,Lt){Wa.current.classList.remove("mouse-hover-md")}),Un&&mt.on("beforeChange",function(ht,Lt){(Lt.origin==="paste"||Lt.origin==="+input")&&Lt.cancel()}),Ha(mt),()=>{mt.off("paste",bt)}}},[]);const Ma=(0,te.useCallback)(()=>{if(Wa.current)try{}catch(bt){console.log(bt,"---- to set md editor body height")}},[la,Wa,Et]);(0,te.useEffect)(()=>{function bt(){let mt=new je.Z(ht=>{for(let Lt of ht)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&(Ma(),Ke.setSize("100%","100%"),Ke.refresh())});return mt.observe(Ta.current.parentElement),mt}if(Ke){const mt=bt();return()=>{var ht,Lt;(ht=Ta.current)!=null&&ht.parentElement&&mt.unobserve((Lt=Ta.current)==null?void 0:Lt.parentElement)}}},[Ke,Ma]),(0,te.useEffect)(()=>{if(Ke){let bt=[];for(const[mt,ht]of Object.entries(Cn)){let Lt={[mt]:()=>{So(ht)}};bt.push(Lt),Ke.addKeyMap(Lt)}return mo.current=setInterval(()=>{vo.current&&po()},4e3),()=>{clearInterval(mo.current);for(let mt of bt)Ke.removeKeyMap(mt)}}},[Ke]),(0,te.useEffect)(()=>{Gt!==Et&&Ut(Gt)},[Gt]),(0,Yn.Z)(()=>{if(!Ye&&Tn>0){let bt=new Date().getTime(),mt=window.sessionStorage.getItem(en);bt>=Tn+Qn&&(!mt||mt!==Ga)&&(window.sessionStorage.setItem(en,Ga),$a(!0))}},Qn),(0,te.useEffect)(()=>{tt(Wt)},[Ke,Wt]),(0,te.useEffect)(()=>{Ke&&ft&&Ke.focus()},[Ke,ft]),(0,te.useEffect)(()=>{if(Fa&&Ke){let bt=function(ht){let Lt=ht.target;if(Xa.current){let mn=Lt.scrollTop/Lt.scrollHeight;Xa.current.scrollTop=Xa.current.scrollHeight*mn}};const mt=Ke.getScrollerElement();return mt.addEventListener("scroll",bt),()=>{mt.removeEventListener("scroll",bt)}}},[Ke,Fa]),(0,te.useEffect)(()=>{if(Ke&&va){let bt=function(mt,ht){va(mt,ht)};return Ke.on("beforeChange",bt),()=>{Ke.off("beforeChange",bt)}}},[Ke,va]),(0,te.useEffect)(()=>{if(Ke&&bn){let bt=function(){bn(Ke.getValue())};return Ke.on("blur",bt),()=>{Ke.off("blur",bt)}}},[Ke,bn]);function yo(bt,mt){var ht=bt.getDoc(),Lt=ht.getCursor(),mn=ht.getLine(Lt.line),On=mn.charAt(Lt.ch-1),qn=mn.lastIndexOf("@\u2581@",Lt.ch),le=mn.lastIndexOf("@\u2581\u2581@",Lt.ch),ie=qn>le?qn:le,Se=qn>le?3:4;if(Rn.indexOf(On)===-1)return null;if(console.log("change1:",mt,bt,mn,Lt,ie,qn,le,On),ie>=0&&Lt.ch-ie<5){var Ce=ie+Se;return ht.replaceRange("",{line:Lt.line,ch:ie},{line:Lt.line,ch:Ce}),{line:Lt.line,ch:Ce}}return null}(0,te.useEffect)(()=>{if(Ke){let bt=function(mt,ht){const Lt=mt.getValue();Da(Lt),Jn(new Date().getTime()),mt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(jn?ve(Lt,bo(Lt)):ve(Lt))};return Ke.on("change",bt),()=>{Ke.off("change",bt)}}},[Ke,ve]),(0,te.useEffect)(()=>{if(Ke)if(ue==null)Ke.setValue(""),Da("");else{const bt=window.scrollY||window.pageYOffset;ue!==Ke.getValue()&&(Ke.setValue(ue),Da(ue),Ke.setCursor(Un?1:Ke.lineCount(),0),window.scrollTo(0,bt))}},[Ke,ue]);const So=(0,te.useCallback)(bt=>{const mt=Ke.getCursor(),ht=Ke.getSelection();let Lt=ht.split(`
`);switch(bt){case"bold":return Ke.replaceSelection("**"+ht+"**"),ht===""&&Ke.setCursor(mt.line,mt.ch+2),Ke.focus();case"italic":return Ke.replaceSelection("*"+ht+"*"),ht===""&&Ke.setCursor(mt.line,mt.ch+1),Ke.focus();case"code":return Ke.replaceSelection("`"+ht+"`"),ht===""&&Ke.setCursor(mt.line,mt.ch+1),Ke.focus();case"inline-latex":return vn("inline-latex"),Ke.focus();case"latex":return Ke.replaceSelection("```latex\n"+ht+"\n```"),Ke.setCursor(mt.line+1,ht.length+1),Ke.focus();case"line-break":return Ke.replaceSelection(`<br/>
`),Ke.focus();case"list-ul":return ht===""?Ke.replaceSelection("- "+ht):Ke.replaceSelection(Lt.map(mn=>mn===""?"":`- ${mn}`).join(`
`)),Ke.focus();case"list-ol":return ht===""?Ke.replaceSelection("1. "+ht):Ke.replaceSelection(Lt.map((mn,On)=>mn===""?"":`${On+1}. ${mn}`).join(`
`)),Ke.focus();case"add-null-ch":return ht===""&&Ke.setCursor(mt.line,mt.ch),Ke.replaceSelection(sa),Ke.focus();case"add-signal":return ht===""&&Ke.setCursor(mt.line,mt.ch),Ke.replaceSelection(He),Ke.focus();case"add-multiple":return ht===""&&Ke.setCursor(mt.line,mt.ch),Ke.replaceSelection(Rn),Ke.focus();case"inster-template-1":return ht===""&&Ke.setCursor(mt.line,mt.ch),Ke.replaceSelection(Ve),Ke.focus();case"eraser":return Ke.setValue(""),Ke.focus();case"trigger-watch":return tt(!Fa),Ke.focus();case"trigger-full-screen":return Ut(!Et),Ke.focus();case fn:vn(fn);return;case ln:vn(ln);return;case yn:vn(yn);return;case Pn:vn(Pn);return;case"maths-latex":vn("maths-latex");return;case Sn:vn(Sn);return;case hn:vn(hn);return;default:throw new Error}},[Ke,Fa,Et]),xa=(0,te.useCallback)((bt,mt)=>{var ht,Lt,mn,On,qn,le;switch(vn(""),Ct){case fn:const{title:Xe,link:gt}=bt;return Ke.replaceSelection(`[${Xe}](${gt})`),Ke.focus();case ln:const{language:ut,content:Ft}=bt;return Ke.replaceSelection(["```"+ut,Ft,"```"].join(`
`)),Ke.focus();case"maths-latex":for(var ie=atob(bt),Se=new Uint8Array(ie.length),Ce=0;Ce<ie.length;Ce++)Se[Ce]=ie.charCodeAt(Ce);var Ne=new Blob([Se],{type:"image/png"});(0,xe.I)(Ne,Vt=>{Vt.id?Ke.replaceSelection(`![,](/api/attachments/${Vt.id}?type=${Vt.content_type})`):(Vt==null?void 0:Vt.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ke.replaceSelection("`$$"+bt+"$$`");break;case yn:case Pn:case Gn:const{src:yt,alt:Tt}=bt,st=mt,Zt=(mn=(Lt=(ht=st==null?void 0:st.name)==null?void 0:ht.split("."))==null?void 0:Lt.pop)==null?void 0:mn.call(Lt);return((On=st==null?void 0:st.type)==null?void 0:On.indexOf("image"))>-1||!(st!=null&&st.type)?st.align||st.width?Ke.replaceSelection(`<p style="text-align:${st.align||"initial"}"><img width="${st.width?st.width+"%":"initial"}" src="${yt}" alt="${Tt||""}" /></p>`):Ke.replaceSelection(`<img width="100%" src="${yt}" alt="${Tt||""}" />`):((qn=st==null?void 0:st.type)==null?void 0:qn.indexOf("video"))>-1?Ke.replaceSelection(`<video width="100%" controls src="${yt}"></video>`):((le=st==null?void 0:st.type)==null?void 0:le.indexOf("pdf"))>-1?Ke.replaceSelection(`<a href="${yt}?type=${st.type}&disposition=inline" target="_blank">${st.name}</a>`):ke.includes(Zt)?Ke.replaceSelection(`<a href="${yt}?type=office&disposition=inline" target="_blank">${st.name}</a>`):Ke.replaceSelection(`[${st.name}](${yt})`),Ke.focus();case hn:const{row:kt,col:Yt,align:pn}=bt;let nn=`
`;for(let Vt=0;Vt<kt;Vt++){let sn=[],Bn=[];for(let un=0;un<Yt;un++)Vt===1&&Bn.push(An[pn]),sn.push(" ");Vt===1&&(nn+=`| ${Bn.join(" | ")} |
`),nn+=`| ${sn.join(Yt===1?"":" | ")} |
`}return Ke.replaceSelection(nn+`
`),Ke.focus();default:throw new Error}},[Ke,Ct]),Lo=(0,te.useMemo)(()=>{switch(Ct){case fn:return te.createElement(Jt,{callback:xa,onCancel:Ia});case ln:return te.createElement(cn.Z,{callback:xa,onCancel:Ia});case yn:return te.createElement(xe.Z,{callback:xa,onCancel:Ia});case Sn:return te.createElement($e,{callback:xa,onCancel:Ia});case hn:return te.createElement(Mt,{callback:xa,onCancel:Ia});case"maths-latex":return te.createElement(Rt,{showSaveButton:!0,callback:xa});case"inline-latex":return te.createElement(dn.Z,{showSaveButton:!0,callback:xa});default:return null}},[Ct]);function Ia(){vn("")}(0,te.useEffect)(()=>{if(Ka.current){let bt=function(qn){mn=!0,On=qn.pageY},mt=function(){mn=!1},ht=function(qn){if(mn){let le=qn.pageY-On;le<0&&(le=0),le>300&&(le=300);let ie=Ge+le+"px";wa(ie)}},Lt=Ka.current,mn=!1,On=0;return Lt.addEventListener("mousedown",bt),document.addEventListener("mousemove",ht),document.addEventListener("mouseup",mt),()=>{Lt.removeEventListener("mousedown",bt),document.removeEventListener("mousemove",ht),document.removeEventListener("mouseup",mt)}}},[Ke,Ka]),(0,te.useEffect)(()=>{wa(Ge)},[Ge]);const fo=rt(he),no=rt(la),wo={width:fo,height:no},Oo=(0,te.useMemo)(()=>{if(Tn){let bt=new Date(Tn),mt=bt.getHours(),ht=bt.getMinutes(),Lt=bt.getSeconds();return mt=mt<10?"0"+mt:mt,ht=ht<10?"0"+ht:ht,Lt=Lt<10?"0"+Lt:Lt,`${mt}:${ht}:${Lt}`}return 0},[Tn]),bo=bt=>{const mt=[];if(jn){let ht=-1;bt=bt.replace(/(@▁▁@|@▁@)/g,function(Lt,mn,On){mt.push({multiLine:Lt!==He})})}return mt};function Mo(){window.sessionStorage.removeItem(en),$a(!1),Jn(0)}function Io(){$a(!1),Jn(0),Ke.setValue(window.sessionStorage.getItem(en))}(0,te.useEffect)(()=>{At[Ct]&&Ct!==Pn&&Ct!==Sn&&setTimeout(()=>{const bt=document.getElementsByClassName("markdown-popup-form")[0],mt=window.innerWidth/2-bt.offsetWidth/2,ht=window.innerHeight/2-bt.offsetHeight/2;so(mt),co(ht)},0)},[Ct]);const Eo=bt=>{bt.preventDefault();const mt=bt.clientX-to,ht=bt.clientY-uo;document.body.onmousemove=Lt=>{let mn=Lt.clientX-mt,On=Lt.clientY-ht;const qn=document.getElementsByClassName("markdown-popup-form")[0],le=window.innerWidth-qn.offsetWidth,ie=window.innerHeight-qn.offsetHeight;mn=Math.max(0,Math.min(mn,le)),On=Math.max(0,Math.min(On,ie)),Po(Lt.clientX,Lt.clientY,mt,ht)&&(so(mn),co(On))},document.body.onmouseup=function(){document.body.onmousemove=null}},Po=(bt,mt,ht,Lt)=>{const mn=document.body.clientHeight,On=document.body.clientWidth;return bt<20&&ht>bt||bt>On-20&&ht<bt||mt<20&&Lt>mt||mt>mn-20&&Lt<mt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Wa},te.createElement("div",{className:`markdown-editor-container ${jt} ${Fa?"on-preview":""} ${ze?"mini":""} ${Et?"full-screen":""}`,style:wo},te.createElement(de,{insertTemp:Bt,watch:Fa,fullScreen:Et,showNullButton:tn,showNullProgramButton:jn,onActionCallback:So,hidetoolBar:ia,extraUse:Ua}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ta,placeholder:da})),Fa?te.createElement("div",{ref:Xa,className:"preview-container"},Kt==="stex"&&te.createElement(Me,{value:Ga}),Kt!=="stex"&&te.createElement(_e.Z,{disabledFill:Ln,showProgramFill:jn,value:Ga})):null))),na?te.createElement("a",{ref:Ka,className:"editor-resize"}):null,Ct===Pn&&te.createElement(We,{callback:xa,onCancel:Ia}),Ct===Sn&&te.createElement($e,{callback:xa,onCancel:Ia}),te.createElement(Pe.Z,null,At[Ct]&&Ct!==Pn&&Ct!==Sn?te.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:to,top:uo},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Eo},At[Ct]),open:!0,onCancel:Ia,footer:null,destroyOnClose:!0,width:Ct===Sn?"1200px":null,height:Ct===Sn?"80vh":null,className:"markdown-popup-form"},Lo):null))}},70859:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return ge},I:function(){return Pe}});var te=re(22150),Le=re(2453),Je=re(69677),je=re(93421),ce=re(31795),Oe=re(78045),se=re(71577),Ue=re(15476),be=re(67294),Te=re(52262),_e=re(67294),Me=Object.defineProperty,Ie=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(fe,Re,De)=>Re in fe?Me(fe,Re,{enumerable:!0,configurable:!0,writable:!0,value:De}):fe[Re]=De,x=(fe,Re)=>{for(var De in Re||(Re={}))y.call(Re,De)&&b(fe,De,Re[De]);if(a)for(var De of a(Re))E.call(Re,De)&&b(fe,De,Re[De]);return fe},z=(fe,Re)=>Ie(fe,ae(Re));const{useForm:ee}=te.default,ne={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:fe,onCancel:Re})=>{const[De]=ee();let vt=(0,be.useRef)();function Nt(qe){vt.current.width=De.getFieldValue("width"),vt.current.align=De.getFieldValue("align"),fe(qe,vt.current)}function Dt(qe,at){if(qe.status===-1){Le.ZP.error(qe.message);return}De.setFieldsValue({src:`/api/attachments/${qe.id}`,type:at.type})}function Fe(qe){let at=qe.target.files[0];vt.current=at,Pe(at,Dt)}return _e.createElement(te.default,z(x({form:De},oe),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),_e.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},_e.createElement("div",{className:"flex-container"},_e.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},_e.createElement(Je.default,{style:ne})),_e.createElement(de,{onFileChange:Fe}))),_e.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},_e.createElement(Je.default,{style:{width:264}})),_e.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},_e.createElement(je.Z,null,_e.createElement(te.default.Item,{name:"width",style:{margin:0}},_e.createElement(ce.Z,{style:{width:264}})),_e.createElement("span",{className:"ml8"},"%"))),_e.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},_e.createElement(Oe.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"}]})),_e.createElement("aside",null,_e.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},_e.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),_e.createElement(se.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function de({onFileChange:fe}){return _e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",_e.createElement("input",{type:"file",onChange:fe}))}function Pe(fe,Re){if(!fe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw Le.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let De=new FormData;De.append("editormd-image-file",fe),De.append("file_param_name","editormd-image-file"),De.append("byxhr","true");var vt=new window.XMLHttpRequest;vt.withCredentials=!0,vt.addEventListener("load",function(Nt){Re(JSON.parse(Nt.target.responseText),fe)},!1),vt.addEventListener("error",function(Nt){console.error(Nt)},!1),vt.open("POST",`${Ue.KI}/api/attachments.json`),vt.send(De)}},76621:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return Je}});var te=re(67294),Le=re(73935);class Je extends te.Component{constructor(ce){super(ce);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Le.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return Le}});var te=re(67294);function Le(Je,je){const ce=(0,te.useRef)();(0,te.useEffect)(()=>{ce.current=Je}),(0,te.useEffect)(()=>{function Oe(){ce.current()}if(je!==null){let se=setInterval(Oe,je);return()=>clearInterval(se)}},[je])}},44081:function(Be,dt,re){"use strict";re.r(dt),re.d(dt,{default:function(){return Rn}});var te=re(67294),Le=re(35973),Je=re(11320),je=re(71230),ce=re(15746),Oe=re(71577),se={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},Ue=re(13703),be=Object.defineProperty,Te=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(He,Ve,ke)=>Ve in He?be(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ke}):He[Ve]=ke,y=(He,Ve)=>{for(var ke in Ve||(Ve={}))Ie.call(Ve,ke)&&a(He,ke,Ve[ke]);if(Me)for(var ke of Me(Ve))ae.call(Ve,ke)&&a(He,ke,Ve[ke]);return He},E=(He,Ve)=>Te(He,_e(Ve)),b=(He,Ve)=>{var ke={};for(var rt in He)Ie.call(He,rt)&&Ve.indexOf(rt)<0&&(ke[rt]=He[rt]);if(He!=null&&Me)for(var rt of Me(He))Ve.indexOf(rt)<0&&ae.call(He,rt)&&(ke[rt]=He[rt]);return ke},x=(He,Ve,ke)=>new Promise((rt,an)=>{var on=xt=>{try{At(ke.next(xt))}catch(ue){an(ue)}},Cn=xt=>{try{At(ke.throw(xt))}catch(ue){an(ue)}},At=xt=>xt.done?rt(xt.value):Promise.resolve(xt.value).then(on,Cn);At((ke=ke.apply(He,Ve)).next())});const z=He=>{var Ve=He,{user:ke,forumsDetail:rt,globalSetting:an,loading:on,dispatch:Cn}=Ve,At=b(Ve,["user","forumsDetail","globalSetting","loading","dispatch"]),xt,ue,ve,he;const{author_info:Ge,memo:ze,recommend_shixuns:ft}=rt.forumsDetailData||{},Wt=()=>x(void 0,null,function*(){(Ge!=null&&Ge.watched?yield(0,Ue.Sr)({user_id:Ge.login}):yield(0,Ue.YP)({user_id:Ge.login}))&&Cn({type:"forumsDetail/setForumsDetailData",payload:E(y({},rt.forumsDetailData),{author_info:E(y({},Ge),{watched:!(Ge!=null&&Ge.watched)})})})});return te.createElement("section",{className:se.wrap},te.createElement("aside",{className:"ml20"},te.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${se.head}`},te.createElement("a",{href:`/users/${Ge==null?void 0:Ge.login}`,target:"_blank"},(Ge==null?void 0:Ge.image_url)&&te.createElement("img",{src:`${Je.Z.API_SERVER}/images/${Ge==null?void 0:Ge.image_url}`})),te.createElement("div",{className:"tc font20"},Ge==null?void 0:Ge.username),te.createElement("div",{className:"tc c-grey-999"},Ge==null?void 0:Ge.identity),((xt=ke.userInfo)==null?void 0:xt.user_id)!==(Ge==null?void 0:Ge.user_id)&&te.createElement(je.Z,{justify:"center",className:`mt30 ${se.buttonWrap}`},te.createElement(ce.Z,null,te.createElement(Oe.ZP,{type:"primary",className:"mr10",onClick:Wt},Ge!=null&&Ge.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(ce.Z,null,te.createElement(Oe.ZP,{className:se.privateMessage,href:`/messages/${(ue=ke.userInfo)==null?void 0:ue.login}/message_detail?target_ids=${Ge==null?void 0:Ge.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((ve=ze==null?void 0:ze.tag)!=null&&ve.length)&&te.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},te.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),te.createElement("div",{className:`mt10 ${se.tag}`},(he=ze==null?void 0:ze.tag)==null?void 0:he.map((Bt,Kt)=>te.createElement("span",{key:Kt,className:"c-light-primary mr10"},Bt)))),te.createElement("div",{className:"pt10 pb10 pl10 pr10"},te.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),te.createElement("div",{className:se.recommend},ft==null?void 0:ft.map(Bt=>te.createElement("div",{className:se.recommendItem},te.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:Bt.id,src:`${Bt.image_url}`})),te.createElement("div",{className:`${se.flex1} ml10`},te.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank",title:Bt.name,className:`${se.mWidth147} multi-llipsis1e c-grey-666 mb10`},Bt.name),te.createElement("div",{className:"c-grey-999"},Bt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,Le.connect)(({user:He,forumsDetail:Ve,loading:ke,globalSetting:rt})=>({user:He,forumsDetail:Ve,globalSetting:rt,loading:ke.models.forumsDetail}))(z),ne=re(27484),oe=re.n(ne),ge=re(85725),de=re(2453),Pe=re(14446),fe=re(69677),Re=re(68508),De=re(85673),vt=re(85418),Nt=re(83062),Dt=re(35567),Fe=re(84249),qe={flex_box_center:"flex_box_center___nMc3G",flex_space_between:"flex_space_between___gTlaF",flex_box_vertical_center:"flex_box_vertical_center___GQv6O",flex_box_center_end:"flex_box_center_end___nrFEP",flex_box_column:"flex_box_column___Ls1oQ",reply:"reply___jb23w",replyList:"replyList___ryiUt",comment:"comment___QJ1eT",content:"content___X2UnY",commentItem:"commentItem___h_wnY"},at=Object.defineProperty,nt=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,cn=(He,Ve,ke)=>Ve in He?at(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ke}):He[Ve]=ke,xe=(He,Ve)=>{for(var ke in Ve||(Ve={}))Ht.call(Ve,ke)&&cn(He,ke,Ve[ke]);if($t)for(var ke of $t(Ve))Jt.call(Ve,ke)&&cn(He,ke,Ve[ke]);return He},Ae=(He,Ve)=>nt(He,lt(Ve)),Qe=(He,Ve,ke)=>new Promise((rt,an)=>{var on=xt=>{try{At(ke.next(xt))}catch(ue){an(ue)}},Cn=xt=>{try{At(ke.throw(xt))}catch(ue){an(ue)}},At=xt=>xt.done?rt(xt.value):Promise.resolve(xt.value).then(on,Cn);At((ke=ke.apply(He,Ve)).next())});oe().locale("ZH-cn");function Ot({user:He,vlist:Ve=[],dispatch:ke,params:rt,id:an,memo_replies:on,forumsDetail:Cn}){return te.createElement("aside",{className:qe.comment},Ve.map(function(At,xt){var ue,ve;return te.createElement(je.Z,{key:xt,className:qe.commentItem},te.createElement(ce.Z,{span:24},te.createElement(je.Z,null,te.createElement(ce.Z,{flex:"1"},te.createElement("a",{href:`/users/${At.user_login}`,target:"_blank",className:"c-light-black"},At==null?void 0:At.username),te.createElement("span",{className:"c-light-black ml10"},At.time)),(At.can_delete||At.user_id===((ue=He.userInfo)==null?void 0:ue.user_id)||At.user_login===((ve=He.userInfo)==null?void 0:ve.login))&&te.createElement(ce.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Nt.Z,{title:"\u5220\u9664"},te.createElement(Fe.Z,{className:"current",onClick:()=>{Pe.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Qe(this,null,function*(){const he=yield(0,Ue.sW)({id:At.id}),Ge=on.find(ze=>ze.id===an).children.filter(ze=>ze.id!==At.id);on.find(ze=>ze.id===an).children=Ge,ke({type:"forumsDetail/setForumsDetailData",payload:Ae(xe({},Cn.forumsDetailData),{memo_replies:[...on]})})})})}}))))),te.createElement(ce.Z,null,te.createElement(ge.Z,{value:At.content})))}))}var ot=Ot,We=re(28706),me=Object.defineProperty,it=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ee=(He,Ve,ke)=>Ve in He?me(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ke}):He[Ve]=ke,ye=(He,Ve)=>{for(var ke in Ve||(Ve={}))Pt.call(Ve,ke)&&Ee(He,ke,Ve[ke]);if(Xt)for(var ke of Xt(Ve))Ze.call(Ve,ke)&&Ee(He,ke,Ve[ke]);return He},pe=(He,Ve)=>it(He,zt(Ve)),we=(He,Ve)=>{var ke={};for(var rt in He)Pt.call(He,rt)&&Ve.indexOf(rt)<0&&(ke[rt]=He[rt]);if(He!=null&&Xt)for(var rt of Xt(He))Ve.indexOf(rt)<0&&Ze.call(He,rt)&&(ke[rt]=He[rt]);return ke},$e=(He,Ve,ke)=>new Promise((rt,an)=>{var on=xt=>{try{At(ke.next(xt))}catch(ue){an(ue)}},Cn=xt=>{try{At(ke.throw(xt))}catch(ue){an(ue)}},At=xt=>xt.done?rt(xt.value):Promise.resolve(xt.value).then(on,Cn);At((ke=ke.apply(He,Ve)).next())});oe().locale("ZH-cn");const et=(He,Ve)=>{var ke=He,{user:rt,forumsDetail:an,globalSetting:on,loading:Cn,dispatch:At,handleClick:xt}=ke,ue=we(ke,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:ve,memo_replies:he}=an.forumsDetailData||{},Ge=(0,Le.useParams)(),[ze,ft]=(0,te.useState)(""),[Wt,Bt]=(0,te.useState)(""),[Kt,en]=(0,te.useState)(-1),[na,Ye]=(0,te.useState)(!1),[tn,jn]=(0,te.useState)(1),[ia,Gt]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Ve,()=>({onMdFouch:Oa})),(0,te.useEffect)(()=>{Ye((ve==null?void 0:ve.replies_count)>10)},[ve==null?void 0:ve.replies_count]);const bn=()=>$e(void 0,null,function*(){var jt;const aa=tn+1;jn(aa);const Un=yield(0,Ue.z5)({id:Ge.memoId,page:aa});Un!=null&&Un.memo_replies&&(At({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},an.forumsDetailData),{memo_replies:[...he,...Un.memo_replies]})}),Ye(((jt=Un.memo_replies)==null?void 0:jt.length)===10))}),va=jt=>{var aa,Un,Ln,da;return pe(ye({},jt),{image_url:(aa=rt.userInfo)==null?void 0:aa.image_url,children:[],user_id:(Un=rt.userInfo)==null?void 0:Un.user_id,user_login:(Ln=rt.userInfo)==null?void 0:Ln.login,username:(da=rt.userInfo)==null?void 0:da.username,time:`${(0,We.li)((new Date().getTime()-new Date(jt.created_at).getTime())/1e3)}\u524D`})},Oa=()=>{Gt(!0)};return te.createElement("section",{className:qe.wrap},!!(he!=null&&he.length)&&te.createElement("aside",{className:qe.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",ve.replies_count,"\uFF09")),te.createElement("aside",{className:qe.replyList},he==null?void 0:he.map(function(jt,aa){var Un;return te.createElement(je.Z,{gutter:[12,12],key:aa},te.createElement(ce.Z,{flex:"40px"},te.createElement("a",{href:`/users/${jt.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${Je.Z.IMG_SERVER}/images/${jt==null?void 0:jt.image_url}`}))),te.createElement(ce.Z,{flex:"1"},te.createElement(je.Z,{align:"middle"},te.createElement(ce.Z,{span:24},te.createElement("a",{href:`/users/${jt.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},jt==null?void 0:jt.username)),te.createElement("span",{className:"c-light-black ml10"},jt.time)),te.createElement(ce.Z,{span:24},te.createElement("div",{onClick:xt},te.createElement(ge.Z,{value:jt.content}))),!!((Un=jt==null?void 0:jt.children)!=null&&Un.length)&&te.createElement(ot,{user:rt,id:jt==null?void 0:jt.id,vlist:jt==null?void 0:jt.children,dispatch:At,params:Ge,memo_replies:he,forumsDetail:an}),te.createElement(ce.Z,{span:24,className:"mt5 c-light-black"},Kt===aa?te.createElement("aside",null,te.createElement(Dt.Z,{onChange:Ln=>{Bt(Ln)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(je.Z,null,te.createElement(ce.Z,{span:24,className:"tr"},te.createElement(Oe.ZP,{type:"primary",size:"middle",onClick:()=>$e(this,null,function*(){if(Wt==="")de.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Ln=yield(0,Ue.ts)({parent_id:jt.id,content:Wt});Bt(null),Ln&&(en(-1),he.find(da=>da.id===Ln.parent_id).children.push(va(Ln)),At({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},an.forumsDetailData),{memo:pe(ye({},ve),{replies_count:ve.replies_count+1}),memo_replies:[...he]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>en(aa)}),te.createElement(Nt.Z,{title:jt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:jt.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>$e(this,null,function*(){const Ln=yield(0,Ue.vL)({id:jt.id,container_type:"Memo",type:jt.user_praise?0:1});(Ln==null?void 0:Ln.praise_count)>=0&&(he.find(da=>da.id===jt.id).user_praise=!jt.user_praise,he.find(da=>da.id===jt.id).praise_count=Ln==null?void 0:Ln.praise_count,At({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},an.forumsDetailData),{memo_replies:[...he]})}))})}),jt.praise_count>0?jt.praise_count:"")))))))}))),na&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(je.Z,{justify:"space-between"},te.createElement(ce.Z,null),te.createElement(ce.Z,null,na&&te.createElement("a",{className:"c-black",onClick:bn},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:qe.reply},te.createElement(Dt.Z,{onBlur:()=>Gt(!1),isFocus:ia,defaultValue:ze,id:"writeForumsReviewId",onChange:jt=>{ft(jt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(je.Z,null,te.createElement(ce.Z,{flex:"1"}),te.createElement(ce.Z,null,te.createElement(Oe.ZP,{type:"primary",size:"middle",onClick:()=>$e(void 0,null,function*(){if(ze==="")de.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const jt=yield(0,Ue.ts)({parent_id:ve.id,content:ze});ft(null),jt&&At({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},an.forumsDetailData),{memo:pe(ye({},ve),{replies_count:ve.replies_count+1}),memo_replies:[va(jt),...he]})})}})},"\u53D1\u9001")))))};var St=(0,Le.connect)(({user:He,forumsDetail:Ve,loading:ke,globalSetting:rt})=>({user:He,forumsDetail:Ve,globalSetting:rt,loading:ke.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(et)),ct={wrap:"wrap___Soi3l",header:"header___vk3EC",title:"title___WJAyR",menu:"menu___yMPKF",top:"top___ZqzEM",line:"line___EQKlG",flexCenter:"flexCenter___Rcnhr",like:"like___uNtmq",canLike:"canLike___Lu04z",attachmentName:"attachmentName___nwdzp"},wt=re(55304),Mt=re(71865),It=re(33054),rn=Object.defineProperty,gn=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,wn=(He,Ve,ke)=>Ve in He?rn(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ke}):He[Ve]=ke,fn=(He,Ve)=>{for(var ke in Ve||(Ve={}))dn.call(Ve,ke)&&wn(He,ke,Ve[ke]);if(Rt)for(var ke of Rt(Ve))qt.call(Ve,ke)&&wn(He,ke,Ve[ke]);return He},yn=(He,Ve)=>gn(He,_t(Ve)),Sn=(He,Ve)=>{var ke={};for(var rt in He)dn.call(He,rt)&&Ve.indexOf(rt)<0&&(ke[rt]=He[rt]);if(He!=null&&Rt)for(var rt of Rt(He))Ve.indexOf(rt)<0&&qt.call(He,rt)&&(ke[rt]=He[rt]);return ke},Pn=(He,Ve,ke)=>new Promise((rt,an)=>{var on=xt=>{try{At(ke.next(xt))}catch(ue){an(ue)}},Cn=xt=>{try{At(ke.throw(xt))}catch(ue){an(ue)}},At=xt=>xt.done?rt(xt.value):Promise.resolve(xt.value).then(on,Cn);At((ke=ke.apply(He,Ve)).next())});const Gn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},ln=He=>{var Ve=He,{user:ke,forumsDetail:rt,globalSetting:an,loading:on,dispatch:Cn}=Ve,At=Sn(Ve,["user","forumsDetail","globalSetting","loading","dispatch"]),xt,ue,ve,he;const{author_info:Ge,memo:ze,attachments_list:ft}=rt.forumsDetailData||{},Wt=(0,te.useRef)(),Bt=(0,te.useRef)(),Kt=()=>Pn(void 0,null,function*(){const Gt={id:ze.id,sticky:ze.sticky?0:1},bn=yield(0,Ue.B0)(Gt);(bn==null?void 0:bn.status)===0&&Cn({type:"forumsDetail/setForumsDetailData",payload:yn(fn({},rt.forumsDetailData),{memo:yn(fn({},ze),{sticky:!(ze!=null&&ze.sticky)})})})}),en=()=>Pn(void 0,null,function*(){const Gt=yield(0,Ue.sW)({id:ze==null?void 0:ze.id});(Gt==null?void 0:Gt.status)===0&&(de.ZP.success("\u5220\u9664\u6210\u529F"),Le.history.push("/forums")),(Gt==null?void 0:Gt.status)===-1&&Le.history.push("/forums")}),na=()=>Pn(void 0,null,function*(){Pe.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:te.createElement("div",{className:"font14 tc"},te.createElement(fe.default,{defaultValue:Wt.current,onChange:Gt=>Wt.current=Gt.target.value})),onOk:()=>Pn(void 0,null,function*(){const Gt=yield(0,Ue.eh)({id:ze==null?void 0:ze.id,container_type:"Memo",score:Wt.current?Number(Wt.current):0,user_id:Ge==null?void 0:Ge.user_id});if(Wt.current=null,(Gt==null?void 0:Gt.code)>0){Cn({type:"forumsDetail/setForumsDetailData",payload:yn(fn({},rt.forumsDetailData),{memo:yn(fn({},ze),{reward:Gt==null?void 0:Gt.code})})}),de.ZP.success("\u5956\u52B1\u6210\u529F");return}de.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),Ye=()=>{Bt.current.onMdFouch&&Bt.current.onMdFouch()},tn=()=>Pn(void 0,null,function*(){const Gt=yield(0,Ue.vL)({id:ze.id,container_type:"Memo",type:1});(Gt==null?void 0:Gt.praise_count)>=0&&Cn({type:"forumsDetail/setForumsDetailData",payload:yn(fn({},rt.forumsDetailData),{memo:yn(fn({},ze),{user_praise:!(ze!=null&&ze.user_praise),memo_praise_count:Gt==null?void 0:Gt.praise_count})})})}),jn=te.createElement(Re.default,{className:ct.menu},((xt=ke.userInfo)==null?void 0:xt.admin)&&(ze==null?void 0:ze.sticky)&&te.createElement(Re.default.Item,null,te.createElement("a",{onClick:()=>Kt()},"\u53D6\u6D88\u7F6E\u9876")),((ue=ke.userInfo)==null?void 0:ue.admin)&&!(ze!=null&&ze.sticky)&&te.createElement(Re.default.Item,null,te.createElement("a",{onClick:()=>Kt()},"\u7F6E\xA0\xA0\u9876")),te.createElement(Re.default.Item,null,te.createElement(Le.Link,{to:`/forums/${ze==null?void 0:ze.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(Re.default.Item,null,te.createElement("a",{onClick:()=>{Pe.default.confirm({title:"\u63D0\u793A",icon:te.createElement(wt.Z,null),content:"\u5E16\u5B50\u5C06\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u6062\u590D\u3002\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",onOk:()=>{en()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),ia=Gt=>{let{nodeName:bn,src:va}=Gt.target;bn==="IMG"&&(It.Z.publish("preview-image",va),console.log("src:",va))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:ct.wrap},te.createElement(De.Z,{separator:"/",className:"mb5"},te.createElement(De.Z.Item,null,te.createElement(Le.Link,{to:`/forums/categories/${ze==null?void 0:ze.forum_id}`},Gn[ze==null?void 0:ze.forum_id])),te.createElement(De.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${ct.header}`},te.createElement(je.Z,{align:"middle"},te.createElement(ce.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:ct.title},ze==null?void 0:ze.subject),(ze==null?void 0:ze.sticky)&&te.createElement("span",{className:ct.top},"\u7F6E\u9876")),te.createElement(ce.Z,null,(((ve=ke.userInfo)==null?void 0:ve.admin)||((he=ke.userInfo)==null?void 0:he.user_id)===(Ge==null?void 0:Ge.user_id))&&te.createElement(vt.Z,{dropdownRender:()=>jn},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(je.Z,{align:"middle",className:"font14"},te.createElement(ce.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,oe()(ze==null?void 0:ze.time).fromNow()," \u66F4\u65B0")),te.createElement(ce.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${ze!=null&&ze.replies_count?ct.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),ze==null?void 0:ze.viewed_count),!!(ze!=null&&ze.replies_count)&&te.createElement(Nt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:Ye},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),ze==null?void 0:ze.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:ia},te.createElement(ge.Z,{value:ze==null?void 0:ze.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${ct.flexCenter}`},te.createElement("div",{className:`${ct.like} ${ze!=null&&ze.user_praise?"":ct.canLike}`,onClick:tn},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,ze==null?void 0:ze.memo_praise_count)))),!!(ft!=null&&ft.length)&&te.createElement("div",{className:"mt40"},ft==null?void 0:ft.map(Gt=>te.createElement("div",{className:`c-grey-888 ${ct.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:Gt==null?void 0:Gt.url,title:Gt==null?void 0:Gt.title,className:`${ct.attachmentName} mr10`},Gt==null?void 0:Gt.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},Gt==null?void 0:Gt.filesize))))),te.createElement(St,{ref:Bt,handleClick:ia}),te.createElement(Mt.Z,null))};var hn=(0,Le.connect)(({user:He,forumsDetail:Ve,loading:ke,globalSetting:rt})=>({user:He,forumsDetail:Ve,globalSetting:rt,loading:ke.effects}))(ln),pt={flex:"flex___fgmSn"},An=re(57953),Yn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable,ha=(He,Ve)=>{var ke={};for(var rt in He)zn.call(He,rt)&&Ve.indexOf(rt)<0&&(ke[rt]=He[rt]);if(He!=null&&Yn)for(var rt of Yn(He))Ve.indexOf(rt)<0&&Pa.call(He,rt)&&(ke[rt]=He[rt]);return ke},Qn=(He,Ve,ke)=>new Promise((rt,an)=>{var on=xt=>{try{At(ke.next(xt))}catch(ue){an(ue)}},Cn=xt=>{try{At(ke.throw(xt))}catch(ue){an(ue)}},At=xt=>xt.done?rt(xt.value):Promise.resolve(xt.value).then(on,Cn);At((ke=ke.apply(He,Ve)).next())});const sa=He=>{var Ve=He,{forumsDetail:ke,globalSetting:rt,loading:an,dispatch:on}=Ve,Cn=ha(Ve,["forumsDetail","globalSetting","loading","dispatch"]);const At=(0,Le.useParams)(),[xt,ue]=(0,te.useState)(!1);(0,te.useEffect)(()=>{ve()},[At.memoId]);const ve=()=>Qn(void 0,null,function*(){ue(!0);let he=yield on({type:"forumsDetail/getForumsDetailData",payload:{id:At.memoId}});ue(!1)});return te.createElement(An.Z,{spinning:xt},te.createElement("section",{className:`edu-container mb20 mt30 ${pt.flex}`},te.createElement(hn,null),te.createElement(ee,null)))};var Rn=(0,Le.connect)(({forumsDetail:He,loading:Ve,globalSetting:ke})=>({forumsDetail:He,globalSetting:ke,loading:Ve.models.forumsDetail}))(sa)},85673:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return Dt}});var te=re(94184),Le=re.n(te),Je=re(37419),je=re(1337),ce=re(67294),Oe=re(96159),se=re(53124),Ue=re(42922),be=re(35874);const Te=Fe=>{let{children:qe}=Fe;const{getPrefixCls:at}=ce.useContext(se.E_),nt=at("breadcrumb");return ce.createElement("li",{className:`${nt}-separator`,"aria-hidden":"true"},qe===""?qe:qe||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var _e=Te,Me=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,nt=Object.getOwnPropertySymbols(Fe);lt<nt.length;lt++)qe.indexOf(nt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[lt])&&(at[nt[lt]]=Fe[nt[lt]]);return at};function Ie(Fe,qe){if(Fe.title===void 0||Fe.title===null)return null;const at=Object.keys(qe).join("|");return typeof Fe.title=="object"?Fe.title:String(Fe.title).replace(new RegExp(`:(${at})`,"g"),(nt,lt)=>qe[lt]||nt)}function ae(Fe,qe,at,nt){if(at==null)return null;const{className:lt,onClick:$t}=qe,Ht=Me(qe,["className","onClick"]),Jt=Object.assign(Object.assign({},(0,je.Z)(Ht,{data:!0,aria:!0})),{onClick:$t});return nt!==void 0?ce.createElement("a",Object.assign({},Jt,{className:Le()(`${Fe}-link`,lt),href:nt}),at):ce.createElement("span",Object.assign({},Jt,{className:Le()(`${Fe}-link`,lt)}),at)}function a(Fe,qe){return(nt,lt,$t,Ht,Jt)=>{if(qe)return qe(nt,lt,$t,Ht);const cn=Ie(nt,lt);return ae(Fe,nt,cn,Jt)}}var y=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,nt=Object.getOwnPropertySymbols(Fe);lt<nt.length;lt++)qe.indexOf(nt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[lt])&&(at[nt[lt]]=Fe[nt[lt]]);return at};const E=Fe=>{const{prefixCls:qe,separator:at="/",children:nt,menu:lt,overlay:$t,dropdownProps:Ht,href:Jt}=Fe,xe=(Ae=>{if(lt||$t){const Qe=Object.assign({},Ht);if(lt){const Ot=lt||{},{items:ot}=Ot,We=y(Ot,["items"]);Qe.menu=Object.assign(Object.assign({},We),{items:ot==null?void 0:ot.map((me,it)=>{var{key:zt,title:Xt,label:Pt,path:Ze}=me,Ee=y(me,["key","title","label","path"]);let ye=Pt!=null?Pt:Xt;return Ze&&(ye=ce.createElement("a",{href:`${Jt}${Ze}`},ye)),Object.assign(Object.assign({},Ee),{key:zt!=null?zt:it,label:ye})})})}else $t&&(Qe.overlay=$t);return ce.createElement(be.Z,Object.assign({placement:"bottom"},Qe),ce.createElement("span",{className:`${qe}-overlay-link`},Ae,ce.createElement(Ue.Z,null)))}return Ae})(nt);return xe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,xe),at&&ce.createElement(_e,null,at)):null},b=Fe=>{const{prefixCls:qe,children:at,href:nt}=Fe,lt=y(Fe,["prefixCls","children","href"]),{getPrefixCls:$t}=ce.useContext(se.E_),Ht=$t("breadcrumb",qe);return ce.createElement(E,Object.assign({},lt,{prefixCls:Ht}),ae(Ht,lt,at,nt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),ne=re(45503);const oe=Fe=>{const{componentCls:qe,iconCls:at}=Fe;return{[qe]:Object.assign(Object.assign({},(0,z.Wf)(Fe)),{color:Fe.itemColor,fontSize:Fe.fontSize,[at]:{fontSize:Fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Fe.linkColor,transition:`color ${Fe.motionDurationMid}`,padding:`0 ${Fe.paddingXXS}px`,borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",marginInline:-Fe.marginXXS,"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover}},(0,z.Qy)(Fe)),"li:last-child":{color:Fe.lastItemColor},[`${qe}-separator`]:{marginInline:Fe.separatorMargin,color:Fe.separatorColor},[`${qe}-link`]:{[`
> ${at} + span,
> ${at} + a
`]:{marginInlineStart:Fe.marginXXS}},[`${qe}-overlay-link`]:{borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",padding:`0 ${Fe.paddingXXS}px`,marginInline:-Fe.marginXXS,[`> ${at}`]:{marginInlineStart:Fe.marginXXS,fontSize:Fe.fontSizeIcon},"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover,a:{color:Fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Fe=>{const qe=(0,ne.TS)(Fe,{});return[oe(qe)]},Fe=>({itemColor:Fe.colorTextDescription,lastItemColor:Fe.colorText,iconFontSize:Fe.fontSize,linkColor:Fe.colorTextDescription,linkHoverColor:Fe.colorText,separatorColor:Fe.colorTextDescription,separatorMargin:Fe.marginXS})),de=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,nt=Object.getOwnPropertySymbols(Fe);lt<nt.length;lt++)qe.indexOf(nt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[lt])&&(at[nt[lt]]=Fe[nt[lt]]);return at};function Pe(Fe){const{breadcrumbName:qe,children:at}=Fe,nt=de(Fe,["breadcrumbName","children"]),lt=Object.assign({title:qe},nt);return at&&(lt.menu={items:at.map($t=>{var{breadcrumbName:Ht}=$t,Jt=de($t,["breadcrumbName"]);return Object.assign(Object.assign({},Jt),{title:Ht})})}),lt}function fe(Fe,qe){return(0,ce.useMemo)(()=>Fe||(qe?qe.map(Pe):null),[Fe,qe])}var Re=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,nt=Object.getOwnPropertySymbols(Fe);lt<nt.length;lt++)qe.indexOf(nt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[lt])&&(at[nt[lt]]=Fe[nt[lt]]);return at};const De=(Fe,qe)=>{if(qe===void 0)return qe;let at=(qe||"").replace(/^\//,"");return Object.keys(Fe).forEach(nt=>{at=at.replace(`:${nt}`,Fe[nt])}),at},vt=Fe=>{const{prefixCls:qe,separator:at="/",style:nt,className:lt,rootClassName:$t,routes:Ht,items:Jt,children:cn,itemRender:xe,params:Ae={}}=Fe,Qe=Re(Fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ot,direction:ot,breadcrumb:We}=ce.useContext(se.E_);let me;const it=Ot("breadcrumb",qe),[zt,Xt]=ge(it),Pt=fe(Jt,Ht),Ze=a(it,xe);if(Pt&&Pt.length>0){const pe=[],we=Jt||Ht;me=Pt.map(($e,et)=>{const{path:St,key:ct,type:wt,menu:Mt,overlay:It,onClick:rn,className:gn,separator:_t,dropdownProps:Rt}=$e,dn=De(Ae,St);dn!==void 0&&pe.push(dn);const qt=ct!=null?ct:et;if(wt==="separator")return ce.createElement(_e,{key:qt},_t);const wn={},fn=et===Pt.length-1;Mt?wn.menu=Mt:It&&(wn.overlay=It);let{href:yn}=$e;return pe.length&&dn!==void 0&&(yn=`#/${pe.join("/")}`),ce.createElement(E,Object.assign({key:qt},wn,(0,je.Z)($e,{data:!0,aria:!0}),{className:gn,dropdownProps:Rt,href:yn,separator:fn?"":at,onClick:rn,prefixCls:it}),Ze($e,Ae,we,pe,yn))})}else if(cn){const pe=(0,Je.Z)(cn).length;me=(0,Je.Z)(cn).map((we,$e)=>{if(!we)return we;const et=$e===pe-1;return(0,Oe.Tm)(we,{separator:et?"":at,key:$e})})}const Ee=Le()(it,We==null?void 0:We.className,{[`${it}-rtl`]:ot==="rtl"},lt,$t,Xt),ye=Object.assign(Object.assign({},We==null?void 0:We.style),nt);return zt(ce.createElement("nav",Object.assign({className:Ee,style:ye},Qe),ce.createElement("ol",null,me)))};vt.Item=x,vt.Separator=_e;var Nt=vt,Dt=Nt},35874:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return ye}});var te=re(67294),Le=re(91034),Je=re(94184),je=re.n(Je),ce=re(87462),Oe=re(4942),se=re(97685),Ue=re(45987),be=re(62709),Te=re(71002),_e=re(12060);function Me(pe,we,$e){var et=React.useRef({});return(!("value"in et.current)||$e(et.current.condition,we))&&(et.current.value=pe(),et.current.condition=we),et.current.value}function Ie(pe,we){typeof pe=="function"?pe(we):(0,Te.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=we)}function ae(){for(var pe=arguments.length,we=new Array(pe),$e=0;$e<pe;$e++)we[$e]=arguments[$e];var et=we.filter(function(St){return St});return et.length<=1?et[0]:function(St){we.forEach(function(ct){Ie(ct,St)})}}function a(){for(var pe=arguments.length,we=new Array(pe),$e=0;$e<pe;$e++)we[$e]=arguments[$e];return useMemo(function(){return ae.apply(void 0,we)},we,function(et,St){return et.length===St.length&&et.every(function(ct,wt){return ct===St[wt]})})}function y(pe){var we,$e,et=(0,_e.isMemo)(pe)?pe.type.type:pe.type;return!(typeof et=="function"&&!((we=et.prototype)!==null&&we!==void 0&&we.render)||typeof pe=="function"&&!(($e=pe.prototype)!==null&&$e!==void 0&&$e.render))}var E={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(we){var $e=we.keyCode;if(we.altKey&&!we.ctrlKey||we.metaKey||$e>=E.F1&&$e<=E.F12)return!1;switch($e){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(we){if(we>=E.ZERO&&we<=E.NINE||we>=E.NUM_ZERO&&we<=E.NUM_MULTIPLY||we>=E.A&&we<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&we===0)return!0;switch(we){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(we){return+setTimeout(we,16)},z=function(we){return clearTimeout(we)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(we){return window.requestAnimationFrame(we)},z=function(we){return window.cancelAnimationFrame(we)});var ee=0,ne=new Map;function oe(pe){ne.delete(pe)}var ge=function(we){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var et=ee;function St(ct){if(ct===0)oe(et),we();else{var wt=x(function(){St(ct-1)});ne.set(et,wt)}}return St($e),et};ge.cancel=function(pe){var we=ne.get(pe);return oe(we),z(we)};var de=ge,Pe=b.ESC,fe=b.TAB;function Re(pe){var we=pe.visible,$e=pe.triggerRef,et=pe.onVisibleChange,St=pe.autoFocus,ct=pe.overlayRef,wt=te.useRef(!1),Mt=function(){if(we){var _t,Rt;(_t=$e.current)===null||_t===void 0||(Rt=_t.focus)===null||Rt===void 0||Rt.call(_t),et==null||et(!1)}},It=function(){var _t;return(_t=ct.current)!==null&&_t!==void 0&&_t.focus?(ct.current.focus(),wt.current=!0,!0):!1},rn=function(_t){switch(_t.keyCode){case Pe:Mt();break;case fe:{var Rt=!1;wt.current||(Rt=It()),Rt?_t.preventDefault():Mt();break}}};te.useEffect(function(){return we?(window.addEventListener("keydown",rn),St&&de(It,3),function(){window.removeEventListener("keydown",rn),wt.current=!1}):function(){wt.current=!1}},[we])}var De=(0,te.forwardRef)(function(pe,we){var $e=pe.overlay,et=pe.arrow,St=pe.prefixCls,ct=(0,te.useMemo)(function(){var Mt;return typeof $e=="function"?Mt=$e():Mt=$e,Mt},[$e]),wt=ae(we,ct==null?void 0:ct.ref);return te.createElement(te.Fragment,null,et&&te.createElement("div",{className:"".concat(St,"-arrow")}),te.cloneElement(ct,{ref:y(ct)?wt:void 0}))}),vt=De,Nt={adjustX:1,adjustY:1},Dt=[0,0],Fe={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-4],targetOffset:Dt},top:{points:["bc","tc"],overflow:Nt,offset:[0,-4],targetOffset:Dt},topRight:{points:["br","tr"],overflow:Nt,offset:[0,-4],targetOffset:Dt},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,4],targetOffset:Dt},bottom:{points:["tc","bc"],overflow:Nt,offset:[0,4],targetOffset:Dt},bottomRight:{points:["tr","br"],overflow:Nt,offset:[0,4],targetOffset:Dt}},qe=Fe,at=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nt(pe,we){var $e,et=pe.arrow,St=et===void 0?!1:et,ct=pe.prefixCls,wt=ct===void 0?"rc-dropdown":ct,Mt=pe.transitionName,It=pe.animation,rn=pe.align,gn=pe.placement,_t=gn===void 0?"bottomLeft":gn,Rt=pe.placements,dn=Rt===void 0?qe:Rt,qt=pe.getPopupContainer,wn=pe.showAction,fn=pe.hideAction,yn=pe.overlayClassName,Sn=pe.overlayStyle,Pn=pe.visible,Gn=pe.trigger,ln=Gn===void 0?["hover"]:Gn,hn=pe.autoFocus,pt=pe.overlay,An=pe.children,Yn=pe.onVisibleChange,zn=(0,Ue.Z)(pe,at),Pa=te.useState(),ha=(0,se.Z)(Pa,2),Qn=ha[0],sa=ha[1],Rn="visible"in pe?Pn:Qn,He=te.useRef(null),Ve=te.useRef(null),ke=te.useRef(null);te.useImperativeHandle(we,function(){return He.current});var rt=function(Ge){sa(Ge),Yn==null||Yn(Ge)};Re({visible:Rn,triggerRef:ke,onVisibleChange:rt,autoFocus:hn,overlayRef:Ve});var an=function(Ge){var ze=pe.onOverlayClick;sa(!1),ze&&ze(Ge)},on=function(){return te.createElement(vt,{ref:Ve,overlay:pt,prefixCls:wt,arrow:St})},Cn=function(){return typeof pt=="function"?on:on()},At=function(){var Ge=pe.minOverlayWidthMatchTrigger,ze=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?Ge:!ze},xt=function(){var Ge=pe.openClassName;return Ge!==void 0?Ge:"".concat(wt,"-open")},ue=te.cloneElement(An,{className:je()(($e=An.props)===null||$e===void 0?void 0:$e.className,Rn&&xt()),ref:y(An)?ae(ke,An.ref):void 0}),ve=fn;return!ve&&ln.indexOf("contextMenu")!==-1&&(ve=["click"]),te.createElement(be.Z,(0,ce.Z)({builtinPlacements:dn},zn,{prefixCls:wt,ref:He,popupClassName:je()(yn,(0,Oe.Z)({},"".concat(wt,"-show-arrow"),St)),popupStyle:Sn,action:ln,showAction:wn,hideAction:ve,popupPlacement:_t,popupAlign:rn,popupTransitionName:Mt,popupAnimation:It,popupVisible:Rn,stretch:At()?"minWidth":"",popup:Cn(),onPopupVisibleChange:rt,onPopupClick:an,getPopupContainer:qt}),ue)}var lt=te.forwardRef(nt),$t=lt,Ht=re(60276),Jt=re(5663),cn=re(10366),xe=re(80636),Ae=re(8745),Qe=re(96159),Ot=re(53124),ot=re(68508),We=re(76529),me=re(46605),it=re(66748);const zt=null,Xt=pe=>{const{menu:we,arrow:$e,prefixCls:et,children:St,trigger:ct,disabled:wt,dropdownRender:Mt,getPopupContainer:It,overlayClassName:rn,rootClassName:gn,open:_t,onOpenChange:Rt,visible:dn,onVisibleChange:qt,mouseEnterDelay:wn=.15,mouseLeaveDelay:fn=.1,autoAdjustOverflow:yn=!0,placement:Sn="",overlay:Pn,transitionName:Gn}=pe,{getPopupContainer:ln,getPrefixCls:hn,direction:pt}=te.useContext(Ot.E_),An=te.useMemo(()=>{const ue=hn();return Gn!==void 0?Gn:Sn.includes("top")?`${ue}-slide-down`:`${ue}-slide-up`},[hn,Sn,Gn]),Yn=te.useMemo(()=>Sn?Sn.includes("Center")?Sn.slice(0,Sn.indexOf("Center")):Sn:pt==="rtl"?"bottomRight":"bottomLeft",[Sn,pt]),zn=hn("dropdown",et),[Pa,ha]=(0,it.Z)(zn),[,Qn]=(0,me.Z)(),sa=te.Children.only(St),Rn=(0,Qe.Tm)(sa,{className:je()(`${zn}-trigger`,{[`${zn}-rtl`]:pt==="rtl"},sa.props.className),disabled:wt}),He=wt?[]:ct;let Ve;He&&He.includes("contextMenu")&&(Ve=!0);const[ke,rt]=(0,Jt.Z)(!1,{value:_t!=null?_t:dn}),an=(0,Ht.useEvent)(ue=>{Rt==null||Rt(ue),qt==null||qt(ue),rt(ue)}),on=je()(rn,gn,ha,{[`${zn}-rtl`]:pt==="rtl"}),Cn=(0,xe.Z)({arrowPointAtCenter:typeof $e=="object"&&$e.pointAtCenter,autoAdjustOverflow:yn,offset:Qn.marginXXS,arrowWidth:$e?Qn.sizePopupArrow:0,borderRadius:Qn.borderRadius}),At=te.useCallback(()=>{rt(!1)},[]),xt=()=>{let ue;return we!=null&&we.items?ue=te.createElement(ot.default,Object.assign({},we)):typeof Pn=="function"?ue=Pn():ue=Pn,Mt&&(ue=Mt(ue)),ue=te.Children.only(typeof ue=="string"?te.createElement("span",null,ue):ue),te.createElement(We.J,{prefixCls:`${zn}-menu`,expandIcon:te.createElement("span",{className:`${zn}-menu-submenu-arrow`},te.createElement(Le.Z,{className:`${zn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:At,validator:ve=>{let{mode:he}=ve}},ue)};return Pa(te.createElement($t,Object.assign({alignPoint:Ve},(0,cn.Z)(pe,["rootClassName"]),{mouseEnterDelay:wn,mouseLeaveDelay:fn,visible:ke,builtinPlacements:Cn,arrow:!!$e,overlayClassName:on,prefixCls:zn,getPopupContainer:It||ln,transitionName:An,trigger:He,overlay:xt,placement:Yn,onVisibleChange:an}),Rn))};function Pt(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ze=(0,Ae.Z)(Xt,"dropdown",pe=>pe,Pt),Ee=pe=>te.createElement(Ze,Object.assign({},pe),te.createElement("span",null));Xt._InternalPanelDoNotUseOrYouWillBeFired=Ee;var ye=Xt},85418:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return a}});var te=re(35874),Le=re(94184),Je=re.n(Le),je=re(67294),ce=re(25877),Oe=re(71577),se=re(53124),Ue=re(93421),be=re(4173),Te=re(66748),_e=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(y);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[z])&&(b[x[z]]=y[x[z]]);return b};const Me=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=je.useContext(se.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:ge,onClick:de,htmlType:Pe,children:fe,className:Re,menu:De,arrow:vt,autoFocus:Nt,overlay:Dt,trigger:Fe,align:qe,open:at,onOpenChange:nt,placement:lt,getPopupContainer:$t,href:Ht,icon:Jt=je.createElement(ce.Z,null),title:cn,buttonsRender:xe=wt=>wt,mouseEnterDelay:Ae,mouseLeaveDelay:Qe,overlayClassName:Ot,overlayStyle:ot,destroyPopupOnHide:We,dropdownRender:me}=y,it=_e(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),zt=b("dropdown",z),Xt=`${zt}-button`,[Pt,Ze]=(0,Te.Z)(zt),Ee={menu:De,arrow:vt,autoFocus:Nt,align:qe,disabled:oe,trigger:oe?[]:Fe,onOpenChange:nt,getPopupContainer:$t||E,mouseEnterDelay:Ae,mouseLeaveDelay:Qe,overlayClassName:Ot,overlayStyle:ot,destroyPopupOnHide:We,dropdownRender:me},{compactSize:ye,compactItemClassnames:pe}=(0,be.ri)(zt,x),we=Je()(Xt,pe,Re,Ze);"overlay"in y&&(Ee.overlay=Dt),"open"in y&&(Ee.open=at),"placement"in y?Ee.placement=lt:Ee.placement=x==="rtl"?"bottomLeft":"bottomRight";const $e=je.createElement(Oe.ZP,{type:ee,danger:ne,disabled:oe,loading:ge,onClick:de,htmlType:Pe,href:Ht,title:cn},fe),et=je.createElement(Oe.ZP,{type:ee,danger:ne,icon:Jt}),[St,ct]=xe([$e,et]);return Pt(je.createElement(Ue.Z.Compact,Object.assign({className:we,size:ye,block:!0},it),St,je.createElement(te.Z,Object.assign({},Ee),ct)))};Me.__ANT_BUTTON=!0;var Ie=Me;const ae=te.Z;ae.Button=Ie;var a=ae},66748:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return _e}});var te=re(14747),Le=re(67771),Je=re(33297),je=re(50438),ce=re(97414),Oe=re(67968),se=re(45503),be=Me=>{const{componentCls:Ie,menuCls:ae,colorError:a,colorTextLightSolid:y}=Me,E=`${ae}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=Me=>{const{componentCls:Ie,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:Pe,colorBgElevated:fe}=Me;return[{[Ie]:Object.assign(Object.assign({},(0,te.Wf)(Me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:Le.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:Le.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:Le.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:Le.ly}})},(0,ce.ZP)(Me,{colorBg:fe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:fe,backgroundClip:"padding-box",borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary},(0,te.Qy)(Me)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Pe}px`,color:Me.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Me.marginXS,fontSize:Me.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Pe}px`,color:Me.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Me.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Me.borderRadiusSM,"&:hover, &-active":{backgroundColor:Me.controlItemBgHover}},(0,te.Qy)(Me)),{"&-selected":{color:Me.colorPrimary,backgroundColor:Me.controlItemBgActive,"&:hover, &-active":{backgroundColor:Me.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:fe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Me.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Me.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Me.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Pe+Me.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:fe,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ie}-menu-submenu-title`]:{color:Me.colorPrimary}})}},[(0,Le.oN)(Me,"slide-up"),(0,Le.oN)(Me,"slide-down"),(0,Je.Fm)(Me,"move-up"),(0,Je.Fm)(Me,"move-down"),(0,je._y)(Me,"zoom-big")]]};var _e=(0,Oe.Z)("Dropdown",(Me,Ie)=>{let{rootPrefixCls:ae}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Me,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:ne}),de=(0,se.TS)(Me,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Te(de),be(de)]},Me=>({zIndexPopup:Me.zIndexPopupBase+50}))},99398:function(Be,dt,re){"use strict";re.d(dt,{Z:function(){return qn}});var te=re(67294),Le=re.t(te,2),Je=re(99569),je=re(94184),ce=re.n(je),Oe=re(87462),se=re(1413),Ue=re(4942),be=re(97685),Te=re(71002),_e=re(45987),Me=/margin|padding|width|height|max|min|offset/,Ie={left:!0,top:!0},ae={cssFloat:1,styleFloat:1,float:1};function a(le){return le.nodeType===1?le.ownerDocument.defaultView.getComputedStyle(le,null):{}}function y(le,ie,Se){if(ie=ie.toLowerCase(),Se==="auto"){if(ie==="height")return le.offsetHeight;if(ie==="width")return le.offsetWidth}return ie in Ie||(Ie[ie]=Me.test(ie)),Ie[ie]?parseFloat(Se)||0:Se}function E(le,ie){var Se=arguments.length,Ce=a(le);return ie=ae[ie]?"cssFloat"in le.style?"cssFloat":"styleFloat":ie,Se===1?Ce:y(le,ie,Ce[ie]||le.style[ie])}function b(le,ie,Se){var Ce=arguments.length;if(ie=ae[ie]?"cssFloat"in le.style?"cssFloat":"styleFloat":ie,Ce===3)return typeof Se=="number"&&Me.test(ie)&&(Se="".concat(Se,"px")),le.style[ie]=Se,Se;for(var Ne in ie)ie.hasOwnProperty(Ne)&&b(le,Ne,ie[Ne]);return a(le)}function x(le){return le===document.body?document.documentElement.clientWidth:le.offsetWidth}function z(le){return le===document.body?window.innerHeight||document.documentElement.clientHeight:le.offsetHeight}function ee(){var le=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:le,height:ie}}function ne(){var le=document.documentElement.clientWidth,ie=window.innerHeight||document.documentElement.clientHeight;return{width:le,height:ie}}function oe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ge(le){var ie=le.getBoundingClientRect(),Se=document.documentElement;return{left:ie.left+(window.pageXOffset||Se.scrollLeft)-(Se.clientLeft||document.body.clientLeft||0),top:ie.top+(window.pageYOffset||Se.scrollTop)-(Se.clientTop||document.body.clientTop||0)}}function de(le){var ie=te.useRef();ie.current=le;var Se=te.useCallback(function(){for(var Ce,Ne=arguments.length,Xe=new Array(Ne),gt=0;gt<Ne;gt++)Xe[gt]=arguments[gt];return(Ce=ie.current)===null||Ce===void 0?void 0:Ce.call.apply(Ce,[ie].concat(Xe))},[]);return Se}function Pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var fe=Pe()?te.useLayoutEffect:te.useEffect,Re=function(ie,Se){var Ce=te.useRef(!0);fe(function(){return ie(Ce.current)},Se),fe(function(){return Ce.current=!1,function(){Ce.current=!0}},[])},De=function(ie,Se){Re(function(Ce){if(!Ce)return ie()},Se)},vt=null;function Nt(le){var ie=te.useRef(!1),Se=te.useState(le),Ce=(0,be.Z)(Se,2),Ne=Ce[0],Xe=Ce[1];te.useEffect(function(){return ie.current=!1,function(){ie.current=!0}},[]);function gt(ut,Ft){Ft&&ie.current||Xe(ut)}return[Ne,gt]}function Dt(le){return le!==void 0}function Fe(le,ie){var Se=ie||{},Ce=Se.defaultValue,Ne=Se.value,Xe=Se.onChange,gt=Se.postState,ut=Nt(function(){return Dt(Ne)?Ne:Dt(Ce)?typeof Ce=="function"?Ce():Ce:typeof le=="function"?le():le}),Ft=(0,be.Z)(ut,2),yt=Ft[0],Tt=Ft[1],st=Ne!==void 0?Ne:yt,Zt=gt?gt(st):st,kt=de(Xe),Yt=Nt([st]),pn=(0,be.Z)(Yt,2),nn=pn[0],Vt=pn[1];De(function(){var Bn=nn[0];yt!==Bn&&kt(yt,Bn)},[nn]),De(function(){Dt(Ne)||Tt(Ne)},[Ne]);var sn=de(function(Bn,un){Tt(Bn,un),Vt([st],un)});return[Zt,sn]}var qe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],at=te.createContext(null),nt=0;function lt(le,ie){var Se=te.useState(function(){return nt+=1,String(nt)}),Ce=(0,be.Z)(Se,1),Ne=Ce[0],Xe=te.useContext(at),gt={data:ie,canPreview:le};return te.useEffect(function(){if(Xe)return Xe.register(Ne,gt)},[]),te.useEffect(function(){Xe&&Xe.register(Ne,gt)},[le,ie]),Ne}function $t(le){return new Promise(function(ie){var Se=document.createElement("img");Se.onerror=function(){return ie(!1)},Se.onload=function(){return ie(!0)},Se.src=le})}function Ht(le){var ie=le.src,Se=le.isCustomPlaceholder,Ce=le.fallback,Ne=(0,te.useState)(Se?"loading":"normal"),Xe=(0,be.Z)(Ne,2),gt=Xe[0],ut=Xe[1],Ft=(0,te.useRef)(!1),yt=gt==="error";(0,te.useEffect)(function(){$t(ie).then(function(kt){kt||ut("error")})},[ie]),(0,te.useEffect)(function(){Se&&!Ft.current?ut("loading"):yt&&ut("normal")},[ie]);var Tt=function(){ut("normal")},st=function(Yt){Ft.current=!1,gt==="loading"&&Yt!=null&&Yt.complete&&(Yt.naturalWidth||Yt.naturalHeight)&&(Ft.current=!0,Tt())},Zt=yt&&Ce?{src:Ce}:{onLoad:Tt,src:ie};return[st,Zt,gt]}var Jt=re(2788),cn=te.createContext({});function xe(le,ie){if(!le)return!1;if(le.contains)return le.contains(ie);for(var Se=ie;Se;){if(Se===le)return!0;Se=Se.parentNode}return!1}function Ae(){var le=(0,se.Z)({},Le);return le.useId}var Qe=0;function Ot(){}function ot(le){var ie=te.useState("ssr-id"),Se=(0,be.Z)(ie,2),Ce=Se[0],Ne=Se[1],Xe=Ae(),gt=Xe==null?void 0:Xe();return te.useEffect(function(){if(!Xe){var ut=Qe;Qe+=1,Ne("rc_unique_".concat(ut))}},[]),le||gt||Ce}var We={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(ie){var Se=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||Se>=We.F1&&Se<=We.F12)return!1;switch(Se){case We.ALT:case We.CAPS_LOCK:case We.CONTEXT_MENU:case We.CTRL:case We.DOWN:case We.END:case We.ESC:case We.HOME:case We.INSERT:case We.LEFT:case We.MAC_FF_META:case We.META:case We.NUMLOCK:case We.NUM_CENTER:case We.PAGE_DOWN:case We.PAGE_UP:case We.PAUSE:case We.PRINT_SCREEN:case We.RIGHT:case We.SHIFT:case We.UP:case We.WIN_KEY:case We.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=We.ZERO&&ie<=We.NINE||ie>=We.NUM_ZERO&&ie<=We.NUM_MULTIPLY||ie>=We.A&&ie<=We.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case We.SPACE:case We.QUESTION_MARK:case We.NUM_PLUS:case We.NUM_MINUS:case We.NUM_PERIOD:case We.NUM_DIVISION:case We.SEMICOLON:case We.DASH:case We.EQUALS:case We.COMMA:case We.PERIOD:case We.SLASH:case We.APOSTROPHE:case We.SINGLE_QUOTE:case We.OPEN_SQUARE_BRACKET:case We.BACKSLASH:case We.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},me=We,it=`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`,zt=`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`,Xt="".concat(it," ").concat(zt).split(/[\s\n]+/),Pt="aria-",Ze="data-";function Ee(le,ie){return le.indexOf(ie)===0}function ye(le){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se;ie===!1?Se={aria:!0,data:!0,attr:!0}:ie===!0?Se={aria:!0}:Se=(0,se.Z)({},ie);var Ce={};return Object.keys(le).forEach(function(Ne){(Se.aria&&(Ne==="role"||Ee(Ne,Pt))||Se.data&&Ee(Ne,Ze)||Se.attr&&Xt.includes(Ne))&&(Ce[Ne]=le[Ne])}),Ce}function pe(le,ie,Se){var Ce=ie;return!Ce&&Se&&(Ce="".concat(le,"-").concat(Se)),Ce}function we(le,ie){var Se=le["page".concat(ie?"Y":"X","Offset")],Ce="scroll".concat(ie?"Top":"Left");if(typeof Se!="number"){var Ne=le.document;Se=Ne.documentElement[Ce],typeof Se!="number"&&(Se=Ne.body[Ce])}return Se}function $e(le){var ie=le.getBoundingClientRect(),Se={left:ie.left,top:ie.top},Ce=le.ownerDocument,Ne=Ce.defaultView||Ce.parentWindow;return Se.left+=we(Ne),Se.top+=we(Ne,!0),Se}var et=re(62874),St=re(59864);function ct(le,ie,Se){var Ce=te.useRef({});return(!("value"in Ce.current)||Se(Ce.current.condition,ie))&&(Ce.current.value=le(),Ce.current.condition=ie),Ce.current.value}function wt(le,ie){typeof le=="function"?le(ie):(0,Te.Z)(le)==="object"&&le&&"current"in le&&(le.current=ie)}function Mt(){for(var le=arguments.length,ie=new Array(le),Se=0;Se<le;Se++)ie[Se]=arguments[Se];var Ce=ie.filter(function(Ne){return Ne});return Ce.length<=1?Ce[0]:function(Ne){ie.forEach(function(Xe){wt(Xe,Ne)})}}function It(){for(var le=arguments.length,ie=new Array(le),Se=0;Se<le;Se++)ie[Se]=arguments[Se];return ct(function(){return Mt.apply(void 0,ie)},ie,function(Ce,Ne){return Ce.length===Ne.length&&Ce.every(function(Xe,gt){return Xe===Ne[gt]})})}function rn(le){var ie,Se,Ce=isMemo(le)?le.type.type:le.type;return!(typeof Ce=="function"&&!((ie=Ce.prototype)!==null&&ie!==void 0&&ie.render)||typeof le=="function"&&!((Se=le.prototype)!==null&&Se!==void 0&&Se.render))}var gn=te.memo(function(le){var ie=le.children;return ie},function(le,ie){var Se=ie.shouldUpdate;return!Se}),_t={width:0,height:0,overflow:"hidden",outline:"none"},Rt=te.forwardRef(function(le,ie){var Se=le.prefixCls,Ce=le.className,Ne=le.style,Xe=le.title,gt=le.ariaId,ut=le.footer,Ft=le.closable,yt=le.closeIcon,Tt=le.onClose,st=le.children,Zt=le.bodyStyle,kt=le.bodyProps,Yt=le.modalRender,pn=le.onMouseDown,nn=le.onMouseUp,Vt=le.holderRef,sn=le.visible,Bn=le.forceRender,un=le.width,Nn=le.height,Wn=te.useContext(cn),oa=Wn.panel,En=It(Vt,oa),Dn=(0,te.useRef)(),Mn=(0,te.useRef)();te.useImperativeHandle(ie,function(){return{focus:function(){var kn;(kn=Dn.current)===null||kn===void 0||kn.focus()},changeActive:function(kn){var Hn=document,ga=Hn.activeElement;kn&&ga===Mn.current?Dn.current.focus():!kn&&ga===Dn.current&&Mn.current.focus()}}});var ea={};un!==void 0&&(ea.width=un),Nn!==void 0&&(ea.height=Nn);var Kn;ut&&(Kn=te.createElement("div",{className:"".concat(Se,"-footer")},ut));var $n;Xe&&($n=te.createElement("div",{className:"".concat(Se,"-header")},te.createElement("div",{className:"".concat(Se,"-title"),id:gt},Xe)));var Xn;Ft&&(Xn=te.createElement("button",{type:"button",onClick:Tt,"aria-label":"Close",className:"".concat(Se,"-close")},yt||te.createElement("span",{className:"".concat(Se,"-close-x")})));var ra=te.createElement("div",{className:"".concat(Se,"-content")},Xn,$n,te.createElement("div",(0,Oe.Z)({className:"".concat(Se,"-body"),style:Zt},kt),st),Kn);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Xe?gt:null,"aria-modal":"true",ref:En,style:(0,se.Z)((0,se.Z)({},Ne),ea),className:ce()(Se,Ce),onMouseDown:pn,onMouseUp:nn},te.createElement("div",{tabIndex:0,ref:Dn,style:_t,"aria-hidden":"true"}),te.createElement(gn,{shouldUpdate:sn||Bn},Yt?Yt(ra):ra),te.createElement("div",{tabIndex:0,ref:Mn,style:_t,"aria-hidden":"true"}))}),dn=Rt,qt=te.forwardRef(function(le,ie){var Se=le.prefixCls,Ce=le.title,Ne=le.style,Xe=le.className,gt=le.visible,ut=le.forceRender,Ft=le.destroyOnClose,yt=le.motionName,Tt=le.ariaId,st=le.onVisibleChanged,Zt=le.mousePosition,kt=(0,te.useRef)(),Yt=te.useState(),pn=(0,be.Z)(Yt,2),nn=pn[0],Vt=pn[1],sn={};nn&&(sn.transformOrigin=nn);function Bn(){var un=$e(kt.current);Vt(Zt?"".concat(Zt.x-un.left,"px ").concat(Zt.y-un.top,"px"):"")}return te.createElement(et.Z,{visible:gt,onVisibleChanged:st,onAppearPrepare:Bn,onEnterPrepare:Bn,forceRender:ut,motionName:yt,removeOnLeave:Ft,ref:kt},function(un,Nn){var Wn=un.className,oa=un.style;return te.createElement(dn,(0,Oe.Z)({},le,{ref:ie,title:Ce,ariaId:Tt,prefixCls:Se,holderRef:Nn,style:(0,se.Z)((0,se.Z)((0,se.Z)({},oa),Ne),sn),className:ce()(Xe,Wn)}))})});qt.displayName="Content";var wn=qt;function fn(le){var ie=le.prefixCls,Se=le.style,Ce=le.visible,Ne=le.maskProps,Xe=le.motionName;return te.createElement(et.Z,{key:"mask",visible:Ce,motionName:Xe,leavedClassName:"".concat(ie,"-mask-hidden")},function(gt,ut){var Ft=gt.className,yt=gt.style;return te.createElement("div",(0,Oe.Z)({ref:ut,style:(0,se.Z)((0,se.Z)({},yt),Se),className:ce()("".concat(ie,"-mask"),Ft)},Ne))})}function yn(le){var ie=le.prefixCls,Se=ie===void 0?"rc-dialog":ie,Ce=le.zIndex,Ne=le.visible,Xe=Ne===void 0?!1:Ne,gt=le.keyboard,ut=gt===void 0?!0:gt,Ft=le.focusTriggerAfterClose,yt=Ft===void 0?!0:Ft,Tt=le.wrapStyle,st=le.wrapClassName,Zt=le.wrapProps,kt=le.onClose,Yt=le.afterOpenChange,pn=le.afterClose,nn=le.transitionName,Vt=le.animation,sn=le.closable,Bn=sn===void 0?!0:sn,un=le.mask,Nn=un===void 0?!0:un,Wn=le.maskTransitionName,oa=le.maskAnimation,En=le.maskClosable,Dn=En===void 0?!0:En,Mn=le.maskStyle,ea=le.maskProps,Kn=le.rootClassName,$n=(0,te.useRef)(),Xn=(0,te.useRef)(),ra=(0,te.useRef)(),ma=te.useState(Xe),kn=(0,be.Z)(ma,2),Hn=kn[0],ga=kn[1],ua=ot();function ca(){xe(Xn.current,document.activeElement)||($n.current=document.activeElement)}function ba(){if(!xe(Xn.current,document.activeElement)){var xn;(xn=ra.current)===null||xn===void 0||xn.focus()}}function Ea(xn){if(xn)ba();else{if(ga(!1),Nn&&$n.current&&yt){try{$n.current.focus({preventScroll:!0})}catch(ta){}$n.current=null}Hn&&(pn==null||pn())}Yt==null||Yt(xn)}function _n(xn){kt==null||kt(xn)}var pa=(0,te.useRef)(!1),In=(0,te.useRef)(),Zn=function(){clearTimeout(In.current),pa.current=!0},Sa=function(){In.current=setTimeout(function(){pa.current=!1})},ya=null;Dn&&(ya=function(ta){pa.current?pa.current=!1:Xn.current===ta.target&&_n(ta)});function Fn(xn){if(ut&&xn.keyCode===me.ESC){xn.stopPropagation(),_n(xn);return}Xe&&xn.keyCode===me.TAB&&ra.current.changeActive(!xn.shiftKey)}return(0,te.useEffect)(function(){Xe&&(ga(!0),ca())},[Xe]),(0,te.useEffect)(function(){return function(){clearTimeout(In.current)}},[]),te.createElement("div",(0,Oe.Z)({className:ce()("".concat(Se,"-root"),Kn)},ye(le,{data:!0})),te.createElement(fn,{prefixCls:Se,visible:Nn&&Xe,motionName:pe(Se,Wn,oa),style:(0,se.Z)({zIndex:Ce},Mn),maskProps:ea}),te.createElement("div",(0,Oe.Z)({tabIndex:-1,onKeyDown:Fn,className:ce()("".concat(Se,"-wrap"),st),ref:Xn,onClick:ya,style:(0,se.Z)((0,se.Z)({zIndex:Ce},Tt),{},{display:Hn?null:"none"})},Zt),te.createElement(wn,(0,Oe.Z)({},le,{onMouseDown:Zn,onMouseUp:Sa,ref:ra,closable:Bn,ariaId:ua,prefixCls:Se,visible:Xe&&Hn,onClose:_n,onVisibleChanged:Ea,motionName:pe(Se,nn,Vt)}))))}var Sn=function(ie){var Se=ie.visible,Ce=ie.getContainer,Ne=ie.forceRender,Xe=ie.destroyOnClose,gt=Xe===void 0?!1:Xe,ut=ie.afterClose,Ft=ie.panelRef,yt=te.useState(Se),Tt=(0,be.Z)(yt,2),st=Tt[0],Zt=Tt[1],kt=te.useMemo(function(){return{panel:Ft}},[Ft]);return te.useEffect(function(){Se&&Zt(!0)},[Se]),!Ne&&gt&&!st?null:te.createElement(cn.Provider,{value:kt},te.createElement(Jt.Z,{open:Se||Ne||st,autoDestroy:!1,getContainer:Ce,autoLock:Se||st},te.createElement(yn,(0,Oe.Z)({},ie,{destroyOnClose:gt,afterClose:function(){ut==null||ut(),Zt(!1)}}))))};Sn.displayName="Dialog";var Pn=Sn,Gn=Pn,ln=re(73935);function hn(le,ie,Se,Ce){var Ne=ln.unstable_batchedUpdates?function(gt){ln.unstable_batchedUpdates(Se,gt)}:Se;return le!=null&&le.addEventListener&&le.addEventListener(ie,Ne,Ce),{remove:function(){le!=null&&le.removeEventListener&&le.removeEventListener(ie,Ne,Ce)}}}var pt={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(ie){var Se=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||Se>=pt.F1&&Se<=pt.F12)return!1;switch(Se){case pt.ALT:case pt.CAPS_LOCK:case pt.CONTEXT_MENU:case pt.CTRL:case pt.DOWN:case pt.END:case pt.ESC:case pt.HOME:case pt.INSERT:case pt.LEFT:case pt.MAC_FF_META:case pt.META:case pt.NUMLOCK:case pt.NUM_CENTER:case pt.PAGE_DOWN:case pt.PAGE_UP:case pt.PAUSE:case pt.PRINT_SCREEN:case pt.RIGHT:case pt.SHIFT:case pt.UP:case pt.WIN_KEY:case pt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=pt.ZERO&&ie<=pt.NINE||ie>=pt.NUM_ZERO&&ie<=pt.NUM_MULTIPLY||ie>=pt.A&&ie<=pt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case pt.SPACE:case pt.QUESTION_MARK:case pt.NUM_PLUS:case pt.NUM_MINUS:case pt.NUM_PERIOD:case pt.NUM_DIVISION:case pt.SEMICOLON:case pt.DASH:case pt.EQUALS:case pt.COMMA:case pt.PERIOD:case pt.SLASH:case pt.APOSTROPHE:case pt.SINGLE_QUOTE:case pt.OPEN_SQUARE_BRACKET:case pt.BACKSLASH:case pt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},An=pt,Yn={},zn=[],Pa=function(ie){zn.push(ie)};function ha(le,ie){if(0)var Se}function Qn(le,ie){if(0)var Se}function sa(){Yn={}}function Rn(le,ie,Se){!ie&&!Yn[Se]&&(le(!1,Se),Yn[Se]=!0)}function He(le,ie){Rn(ha,le,ie)}function Ve(le,ie){Rn(Qn,le,ie)}He.preMessage=Pa,He.resetWarned=sa,He.noteOnce=Ve;var ke=He;function rt(le,ie,Se,Ce){var Ne=ie+Se,Xe=(Se-Ce)/2;if(Se>Ce){if(ie>0)return(0,Ue.Z)({},le,Xe);if(ie<0&&Ne<Ce)return(0,Ue.Z)({},le,-Xe)}else if(ie<0||Ne>Ce)return(0,Ue.Z)({},le,ie<0?Xe:-Xe);return{}}function an(le,ie,Se,Ce){var Ne=ne(),Xe=Ne.width,gt=Ne.height,ut=null;return le<=Xe&&ie<=gt?ut={x:0,y:0}:(le>Xe||ie>gt)&&(ut=(0,se.Z)((0,se.Z)({},rt("x",Se,le,Xe)),rt("y",Ce,ie,gt))),ut}function on(le,ie){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=new Set;function Ne(Xe,gt){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ft=Ce.has(Xe);if(ke(!Ft,"Warning: There may be circular references"),Ft)return!1;if(Xe===gt)return!0;if(Se&&ut>1)return!1;Ce.add(Xe);var yt=ut+1;if(Array.isArray(Xe)){if(!Array.isArray(gt)||Xe.length!==gt.length)return!1;for(var Tt=0;Tt<Xe.length;Tt++)if(!Ne(Xe[Tt],gt[Tt],yt))return!1;return!0}if(Xe&&gt&&(0,Te.Z)(Xe)==="object"&&(0,Te.Z)(gt)==="object"){var st=Object.keys(Xe);return st.length!==Object.keys(gt).length?!1:st.every(function(Zt){return Ne(Xe[Zt],gt[Zt],yt)})}return!1}return Ne(le,ie)}var Cn=on,At=function(ie){return+setTimeout(ie,16)},xt=function(ie){return clearTimeout(ie)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(At=function(ie){return window.requestAnimationFrame(ie)},xt=function(ie){return window.cancelAnimationFrame(ie)});var ue=0,ve=new Map;function he(le){ve.delete(le)}var Ge=function(ie){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ue+=1;var Ce=ue;function Ne(Xe){if(Xe===0)he(Ce),ie();else{var gt=At(function(){Ne(Xe-1)});ve.set(Ce,gt)}}return Ne(Se),Ce};Ge.cancel=function(le){var ie=ve.get(le);return he(ie),xt(ie)};var ze=Ge,ft={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Wt(le,ie,Se,Ce){var Ne=(0,te.useRef)(null),Xe=(0,te.useRef)([]),gt=(0,te.useState)(ft),ut=(0,be.Z)(gt,2),Ft=ut[0],yt=ut[1],Tt=function(Yt){yt(ft),Ce&&!Cn(ft,Ft)&&Ce({transform:ft,action:Yt})},st=function(Yt,pn){Ne.current===null&&(Xe.current=[],Ne.current=ze(function(){yt(function(nn){var Vt=nn;return Xe.current.forEach(function(sn){Vt=(0,se.Z)((0,se.Z)({},Vt),sn)}),Ne.current=null,Ce==null||Ce({transform:Vt,action:pn}),Vt})})),Xe.current.push((0,se.Z)((0,se.Z)({},Ft),Yt))},Zt=function(Yt,pn,nn,Vt){var sn=le.current,Bn=sn.width,un=sn.height,Nn=sn.offsetWidth,Wn=sn.offsetHeight,oa=sn.offsetLeft,En=sn.offsetTop,Dn=Yt,Mn=Ft.scale*Yt;Mn>Se?(Dn=Se/Ft.scale,Mn=Se):Mn<ie&&(Dn=ie/Ft.scale,Mn=ie);var ea=nn!=null?nn:innerWidth/2,Kn=Vt!=null?Vt:innerHeight/2,$n=Dn-1,Xn=$n*Bn*.5,ra=$n*un*.5,ma=$n*(ea-Ft.x-oa),kn=$n*(Kn-Ft.y-En),Hn=Ft.x-(ma-Xn),ga=Ft.y-(kn-ra);if(Yt<1&&Mn===1){var ua=Nn*Mn,ca=Wn*Mn,ba=ne(),Ea=ba.width,_n=ba.height;ua<=Ea&&ca<=_n&&(Hn=0,ga=0)}st({x:Hn,y:ga,scale:Mn},pn)};return{transform:Ft,resetTransform:Tt,updateTransform:st,dispatchZoomChange:Zt}}var Bt=function(ie){var Se=ie.visible,Ce=ie.maskTransitionName,Ne=ie.getContainer,Xe=ie.prefixCls,gt=ie.rootClassName,ut=ie.icons,Ft=ie.countRender,yt=ie.showSwitch,Tt=ie.showProgress,st=ie.current,Zt=ie.transform,kt=ie.count,Yt=ie.scale,pn=ie.minScale,nn=ie.maxScale,Vt=ie.closeIcon,sn=ie.onSwitchLeft,Bn=ie.onSwitchRight,un=ie.onClose,Nn=ie.onZoomIn,Wn=ie.onZoomOut,oa=ie.onRotateRight,En=ie.onRotateLeft,Dn=ie.onFlipX,Mn=ie.onFlipY,ea=ie.toolbarRender,Kn=(0,te.useContext)(at),$n=ut.rotateLeft,Xn=ut.rotateRight,ra=ut.zoomIn,ma=ut.zoomOut,kn=ut.close,Hn=ut.left,ga=ut.right,ua=ut.flipX,ca=ut.flipY,ba="".concat(Xe,"-operations-operation");te.useEffect(function(){var In=function(Sa){Sa.keyCode===An.ESC&&un()};return Se&&window.addEventListener("keydown",In),function(){window.removeEventListener("keydown",In)}},[Se]);var Ea=[{icon:ca,onClick:Mn,type:"flipY"},{icon:ua,onClick:Dn,type:"flipX"},{icon:$n,onClick:En,type:"rotateLeft"},{icon:Xn,onClick:oa,type:"rotateRight"},{icon:ma,onClick:Wn,type:"zoomOut",disabled:Yt===pn},{icon:ra,onClick:Nn,type:"zoomIn",disabled:Yt===nn}],_n=Ea.map(function(In){var Zn,Sa=In.icon,ya=In.onClick,Fn=In.type,xn=In.disabled;return te.createElement("div",{className:ce()(ba,(Zn={},(0,Ue.Z)(Zn,"".concat(Xe,"-operations-operation-").concat(Fn),!0),(0,Ue.Z)(Zn,"".concat(Xe,"-operations-operation-disabled"),!!xn),Zn)),onClick:ya,key:Fn},Sa)}),pa=te.createElement("div",{className:"".concat(Xe,"-operations")},_n);return te.createElement(et.Z,{visible:Se,motionName:Ce},function(In){var Zn=In.className,Sa=In.style;return te.createElement(Jt.Z,{open:!0,getContainer:Ne!=null?Ne:document.body},te.createElement("div",{className:ce()("".concat(Xe,"-operations-wrapper"),Zn,gt),style:Sa},Vt===null?null:te.createElement("button",{className:"".concat(Xe,"-close"),onClick:un},Vt||kn),yt&&te.createElement(te.Fragment,null,te.createElement("div",{className:ce()("".concat(Xe,"-switch-left"),(0,Ue.Z)({},"".concat(Xe,"-switch-left-disabled"),st===0)),onClick:sn},Hn),te.createElement("div",{className:ce()("".concat(Xe,"-switch-right"),(0,Ue.Z)({},"".concat(Xe,"-switch-right-disabled"),st===kt-1)),onClick:Bn},ga)),te.createElement("div",{className:"".concat(Xe,"-footer")},Tt&&te.createElement("div",{className:"".concat(Xe,"-progress")},Ft?Ft(st+1,kt):"".concat(st+1," / ").concat(kt)),ea?ea(pa,(0,se.Z)({icons:{flipYIcon:_n[0],flipXIcon:_n[1],rotateLeftIcon:_n[2],rotateRightIcon:_n[3],zoomOutIcon:_n[4],zoomInIcon:_n[5]},actions:{onFlipY:Mn,onFlipX:Dn,onRotateLeft:En,onRotateRight:oa,onZoomOut:Wn,onZoomIn:Nn},transform:Zt},Kn?{current:st,total:kt}:{})):pa)))})},Kt=Bt,en=1,na=1,Ye=["fallback","src","imgRef"],tn=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],jn=function(ie){var Se=ie.fallback,Ce=ie.src,Ne=ie.imgRef,Xe=(0,_e.Z)(ie,Ye),gt=Ht({src:Ce,fallback:Se}),ut=(0,be.Z)(gt,2),Ft=ut[0],yt=ut[1];return te.createElement("img",(0,Oe.Z)({ref:function(st){Ne.current=st,Ft(st)}},Xe,yt))},ia=function(ie){var Se=ie.prefixCls,Ce=ie.src,Ne=ie.alt,Xe=ie.fallback,gt=ie.movable,ut=gt===void 0?!0:gt,Ft=ie.onClose,yt=ie.visible,Tt=ie.icons,st=Tt===void 0?{}:Tt,Zt=ie.rootClassName,kt=ie.closeIcon,Yt=ie.getContainer,pn=ie.current,nn=pn===void 0?0:pn,Vt=ie.count,sn=Vt===void 0?1:Vt,Bn=ie.countRender,un=ie.scaleStep,Nn=un===void 0?.5:un,Wn=ie.minScale,oa=Wn===void 0?1:Wn,En=ie.maxScale,Dn=En===void 0?50:En,Mn=ie.transitionName,ea=Mn===void 0?"zoom":Mn,Kn=ie.maskTransitionName,$n=Kn===void 0?"fade":Kn,Xn=ie.imageRender,ra=ie.imgCommonProps,ma=ie.toolbarRender,kn=ie.onTransform,Hn=ie.onChange,ga=(0,_e.Z)(ie,tn),ua=(0,te.useRef)(),ca=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),ba=(0,te.useState)(!1),Ea=(0,be.Z)(ba,2),_n=Ea[0],pa=Ea[1],In=(0,te.useContext)(at),Zn=In&&sn>1,Sa=In&&sn>=1,ya=Wt(ua,oa,Dn,kn),Fn=ya.transform,xn=ya.resetTransform,ta=ya.updateTransform,Aa=ya.dispatchZoomChange,ao=(0,te.useState)(!0),Za=(0,be.Z)(ao,2),ja=Za[0],Ba=Za[1],La=Fn.rotate,fa=Fn.scale,za=Fn.x,Ra=Fn.y,Co=ce()((0,Ue.Z)({},"".concat(Se,"-moving"),_n));(0,te.useEffect)(function(){ja||Ba(!0)},[ja]);var Fo=function(){xn("close")},Va=function(){Aa(en+Nn,"zoomIn")},xo=function(){Aa(en/(en+Nn),"zoomOut")},Bo=function(){ta({rotate:La+90},"rotateRight")},No=function(){ta({rotate:La-90},"rotateLeft")},_a=function(){ta({flipX:!Fn.flipX},"flipX")},ka=function(){ta({flipY:!Fn.flipY},"flipY")},oo=function(Qt){Qt==null||Qt.preventDefault(),Qt==null||Qt.stopPropagation(),nn>0&&(Ba(!1),xn("prev"),Hn==null||Hn(nn-1,nn))},ro=function(Qt){Qt==null||Qt.preventDefault(),Qt==null||Qt.stopPropagation(),nn<sn-1&&(Ba(!1),xn("next"),Hn==null||Hn(nn+1,nn))},io=function(){if(yt&&_n){pa(!1);var Qt=ca.current,Ya=Qt.transformX,Qa=Qt.transformY,Na=za!==Ya&&Ra!==Qa;if(!Na)return;var Ja=ua.current.offsetWidth*fa,qa=ua.current.offsetHeight*fa,eo=ua.current.getBoundingClientRect(),ko=eo.left,Ho=eo.top,Ao=La%180!==0,zo=an(Ao?qa:Ja,Ao?Ja:qa,ko,Ho);zo&&ta((0,se.Z)({},zo),"dragRebound")}},Ro=function(Qt){!ut||Qt.button!==0||(Qt.preventDefault(),Qt.stopPropagation(),ca.current={deltaX:Qt.pageX-Fn.x,deltaY:Qt.pageY-Fn.y,transformX:Fn.x,transformY:Fn.y},pa(!0))},Go=function(Qt){yt&&_n&&ta({x:Qt.pageX-ca.current.deltaX,y:Qt.pageY-ca.current.deltaY},"move")},Do=function(Qt){if(!(!yt||Qt.deltaY==0)){var Ya=Math.abs(Qt.deltaY/100),Qa=Math.min(Ya,na),Na=en+Qa*Nn;Qt.deltaY>0&&(Na=en/Na),Aa(Na,"wheel",Qt.clientX,Qt.clientY)}},$o=function(Qt){!yt||!Zn||(Qt.keyCode===An.LEFT?oo():Qt.keyCode===An.RIGHT&&ro())},_o=function(Qt){yt&&(fa!==1?ta({x:0,y:0,scale:1},"doubleClick"):Aa(en+Nn,"doubleClick",Qt.clientX,Qt.clientY))};(0,te.useEffect)(function(){var Vn,Qt,Ya,Qa;if(ut){Ya=hn(window,"mouseup",io,!1),Qa=hn(window,"mousemove",Go,!1);try{window.top!==window.self&&(Vn=hn(window.top,"mouseup",io,!1),Qt=hn(window.top,"mousemove",Go,!1))}catch(Na){ha(!1,"[rc-image] ".concat(Na))}}return function(){var Na,Ja,qa,eo;(Na=Ya)===null||Na===void 0||Na.remove(),(Ja=Qa)===null||Ja===void 0||Ja.remove(),(qa=Vn)===null||qa===void 0||qa.remove(),(eo=Qt)===null||eo===void 0||eo.remove()}},[yt,_n,za,Ra,La,ut]),(0,te.useEffect)(function(){var Vn=hn(window,"keydown",$o,!1);return function(){Vn.remove()}},[yt,Zn,nn]);var To=te.createElement(jn,(0,Oe.Z)({},ra,{width:ie.width,height:ie.height,imgRef:ua,className:"".concat(Se,"-img"),alt:Ne,style:{transform:"translate3d(".concat(Fn.x,"px, ").concat(Fn.y,"px, 0) scale3d(").concat(Fn.flipX?"-":"").concat(fa,", ").concat(Fn.flipY?"-":"").concat(fa,", 1) rotate(").concat(La,"deg)"),transitionDuration:!ja&&"0s"},fallback:Xe,src:Ce,onWheel:Do,onMouseDown:Ro,onDoubleClick:_o}));return te.createElement(te.Fragment,null,te.createElement(Gn,(0,Oe.Z)({transitionName:ea,maskTransitionName:$n,closable:!1,keyboard:!0,prefixCls:Se,onClose:Ft,visible:yt,wrapClassName:Co,rootClassName:Zt,getContainer:Yt},ga,{afterClose:Fo}),te.createElement("div",{className:"".concat(Se,"-img-wrapper")},Xn?Xn(To,(0,se.Z)({transform:Fn},In?{current:nn}:{})):To)),te.createElement(Kt,{visible:yt,transform:Fn,maskTransitionName:$n,closeIcon:kt,getContainer:Yt,prefixCls:Se,rootClassName:Zt,icons:st,countRender:Bn,showSwitch:Zn,showProgress:Sa,current:nn,count:sn,scale:fa,minScale:oa,maxScale:Dn,toolbarRender:ma,onSwitchLeft:oo,onSwitchRight:ro,onZoomIn:Va,onZoomOut:xo,onRotateRight:Bo,onRotateLeft:No,onFlipX:_a,onFlipY:ka,onClose:Ft}))},Gt=ia,bn=re(74902);function va(le){var ie=te.useState({}),Se=(0,be.Z)(ie,2),Ce=Se[0],Ne=Se[1],Xe=te.useCallback(function(ut,Ft){return Ne(function(yt){return(0,se.Z)((0,se.Z)({},yt),{},(0,Ue.Z)({},ut,Ft))}),function(){Ne(function(yt){var Tt=(0,se.Z)({},yt);return delete Tt[ut],Tt})}},[]),gt=te.useMemo(function(){return le?le.map(function(ut){if(typeof ut=="string")return{data:{src:ut}};var Ft={};return Object.keys(ut).forEach(function(yt){["src"].concat((0,bn.Z)(qe)).includes(yt)&&(Ft[yt]=ut[yt])}),{data:Ft}}):Object.keys(Ce).reduce(function(ut,Ft){var yt=Ce[Ft],Tt=yt.canPreview,st=yt.data;return Tt&&ut.push({data:st,id:Ft}),ut},[])},[le,Ce]);return[gt,Xe]}var Oa=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],jt=["src"],aa=function(ie){var Se,Ce=ie.previewPrefixCls,Ne=Ce===void 0?"rc-image-preview":Ce,Xe=ie.children,gt=ie.icons,ut=gt===void 0?{}:gt,Ft=ie.items,yt=ie.preview,Tt=ie.fallback,st=(0,Te.Z)(yt)==="object"?yt:{},Zt=st.visible,kt=st.onVisibleChange,Yt=st.getContainer,pn=st.current,nn=st.movable,Vt=st.minScale,sn=st.maxScale,Bn=st.countRender,un=st.closeIcon,Nn=st.onChange,Wn=st.onTransform,oa=st.toolbarRender,En=st.imageRender,Dn=(0,_e.Z)(st,Oa),Mn=va(Ft),ea=(0,be.Z)(Mn,2),Kn=ea[0],$n=ea[1],Xn=Fe(0,{value:pn}),ra=(0,be.Z)(Xn,2),ma=ra[0],kn=ra[1],Hn=(0,te.useState)(!1),ga=(0,be.Z)(Hn,2),ua=ga[0],ca=ga[1],ba=((Se=Kn[ma])===null||Se===void 0?void 0:Se.data)||{},Ea=ba.src,_n=(0,_e.Z)(ba,jt),pa=Fe(!!Zt,{value:Zt,onChange:function(La,fa){kt==null||kt(La,fa,ma)}}),In=(0,be.Z)(pa,2),Zn=In[0],Sa=In[1],ya=(0,te.useState)(null),Fn=(0,be.Z)(ya,2),xn=Fn[0],ta=Fn[1],Aa=te.useCallback(function(Ba,La,fa){var za=Kn.findIndex(function(Ra){return Ra.id===Ba});Sa(!0),ta({x:La,y:fa}),kn(za<0?0:za),ca(!0)},[Kn]);te.useEffect(function(){Zn?ua||kn(0):ca(!1)},[Zn]);var ao=function(La,fa){kn(La),Nn==null||Nn(La,fa)},Za=function(){Sa(!1),ta(null)},ja=te.useMemo(function(){return{register:$n,onPreview:Aa}},[$n,Aa]);return te.createElement(at.Provider,{value:ja},Xe,te.createElement(Gt,(0,Oe.Z)({"aria-hidden":!Zn,movable:nn,visible:Zn,prefixCls:Ne,closeIcon:un,onClose:Za,mousePosition:xn,imgCommonProps:_n,src:Ea,fallback:Tt,icons:ut,minScale:Vt,maxScale:sn,getContainer:Yt,current:ma,count:Kn.length,countRender:Bn,onTransform:Wn,toolbarRender:oa,imageRender:En,onChange:ao},Dn)))},Un=aa,Ln=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],da=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ca=function(ie){var Se=ie.src,Ce=ie.alt,Ne=ie.onPreviewClose,Xe=ie.prefixCls,gt=Xe===void 0?"rc-image":Xe,ut=ie.previewPrefixCls,Ft=ut===void 0?"".concat(gt,"-preview"):ut,yt=ie.placeholder,Tt=ie.fallback,st=ie.width,Zt=ie.height,kt=ie.style,Yt=ie.preview,pn=Yt===void 0?!0:Yt,nn=ie.className,Vt=ie.onClick,sn=ie.onError,Bn=ie.wrapperClassName,un=ie.wrapperStyle,Nn=ie.rootClassName,Wn=(0,_e.Z)(ie,Ln),oa=yt&&yt!==!0,En=(0,Te.Z)(pn)==="object"?pn:{},Dn=En.src,Mn=En.visible,ea=Mn===void 0?void 0:Mn,Kn=En.onVisibleChange,$n=Kn===void 0?Ne:Kn,Xn=En.getContainer,ra=Xn===void 0?void 0:Xn,ma=En.mask,kn=En.maskClassName,Hn=En.movable,ga=En.icons,ua=En.scaleStep,ca=En.minScale,ba=En.maxScale,Ea=En.imageRender,_n=En.toolbarRender,pa=(0,_e.Z)(En,da),In=Dn!=null?Dn:Se,Zn=Fe(!!ea,{value:ea,onChange:$n}),Sa=(0,be.Z)(Zn,2),ya=Sa[0],Fn=Sa[1],xn=Ht({src:Se,isCustomPlaceholder:oa,fallback:Tt}),ta=(0,be.Z)(xn,3),Aa=ta[0],ao=ta[1],Za=ta[2],ja=(0,te.useState)(null),Ba=(0,be.Z)(ja,2),La=Ba[0],fa=Ba[1],za=(0,te.useContext)(at),Ra=!!pn,Co=function(){Fn(!1),fa(null)},Fo=ce()(gt,Bn,Nn,(0,Ue.Z)({},"".concat(gt,"-error"),Za==="error")),Va=(0,te.useMemo)(function(){var _a={};return qe.forEach(function(ka){ie[ka]!==void 0&&(_a[ka]=ie[ka])}),_a},qe.map(function(_a){return ie[_a]})),xo=(0,te.useMemo)(function(){return(0,se.Z)((0,se.Z)({},Va),{},{src:In})},[In,Va]),Bo=lt(Ra,xo),No=function(ka){var oo=ge(ka.target),ro=oo.left,io=oo.top;za?za.onPreview(Bo,ro,io):(fa({x:ro,y:io}),Fn(!0)),Vt==null||Vt(ka)};return te.createElement(te.Fragment,null,te.createElement("div",(0,Oe.Z)({},Wn,{className:Fo,onClick:Ra?No:Vt,style:(0,se.Z)({width:st,height:Zt},un)}),te.createElement("img",(0,Oe.Z)({},Va,{className:ce()("".concat(gt,"-img"),(0,Ue.Z)({},"".concat(gt,"-img-placeholder"),yt===!0),nn),style:(0,se.Z)({height:Zt},kt),ref:Aa},ao,{width:st,height:Zt,onError:sn})),Za==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(gt,"-placeholder")},yt),ma&&Ra&&te.createElement("div",{className:ce()("".concat(gt,"-mask"),kn),style:{display:(kt==null?void 0:kt.display)==="none"?"none":void 0}},ma)),!za&&Ra&&te.createElement(Gt,(0,Oe.Z)({"aria-hidden":!ya,visible:ya,prefixCls:Ft,onClose:Co,mousePosition:La,src:In,alt:Ce,fallback:Tt,getContainer:ra,icons:ga,movable:Hn,scaleStep:ua,minScale:ca,maxScale:ba,rootClassName:Nn,imageRender:Ea,imgCommonProps:Va,toolbarRender:_n},pa)))};Ca.PreviewGroup=Un,Ca.displayName="Image";var Ua=Ca,Ke=Ua,Ha=re(33603),Ga=re(53124),Da=re(24457),Fa=re(73475),tt=re(22751),Et=re(91034),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Ct=Ut,vn=re(74643),Tn=function(ie,Se){return te.createElement(vn.Z,(0,Oe.Z)({},ie,{ref:Se,icon:Ct}))},Jn=te.forwardRef(Tn),la={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},wa=la,lo=function(ie,Se){return te.createElement(vn.Z,(0,Oe.Z)({},ie,{ref:Se,icon:wa}))},$a=te.forwardRef(lo),ho={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},vo=ho,mo=function(ie,Se){return te.createElement(vn.Z,(0,Oe.Z)({},ie,{ref:Se,icon:vo}))},to=te.forwardRef(mo),so={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},uo=so,co=function(ie,Se){return te.createElement(vn.Z,(0,Oe.Z)({},ie,{ref:Se,icon:uo}))},Ta=te.forwardRef(co),Wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Ka=Wa,Xa=function(ie,Se){return te.createElement(vn.Z,(0,Oe.Z)({},ie,{ref:Se,icon:Ka}))},po=te.forwardRef(Xa),Ma=re(84780),yo=re(71194),So=re(14747),xa=re(50438),Lo=re(16932),Ia=re(67968),fo=re(45503);const no=le=>({position:le||"absolute",inset:0}),wo=le=>{const{iconCls:ie,motionDurationSlow:Se,paddingXXS:Ce,marginXXS:Ne,prefixCls:Xe,colorTextLightSolid:gt}=le;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:gt,background:new Ma.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Se}`,[`.${Xe}-mask-info`]:Object.assign(Object.assign({},So.vS),{padding:`0 ${Ce}px`,[ie]:{marginInlineEnd:Ne,svg:{verticalAlign:"baseline"}}})}},Oo=le=>{const{previewCls:ie,modalMaskBg:Se,paddingSM:Ce,marginXL:Ne,margin:Xe,paddingLG:gt,previewOperationColorDisabled:ut,previewOperationHoverColor:Ft,motionDurationSlow:yt,iconCls:Tt,colorTextLightSolid:st}=le,Zt=new Ma.C(Se).setAlpha(.1),kt=Zt.clone().setAlpha(.2);return{[`${ie}-footer`]:{position:"fixed",bottom:Ne,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:le.previewOperationColor},[`${ie}-progress`]:{marginBottom:Xe},[`${ie}-close`]:{position:"fixed",top:Ne,right:{_skip_check_:!0,value:Ne},display:"flex",color:st,backgroundColor:Zt.toRgbString(),borderRadius:"50%",padding:Ce,outline:0,border:0,cursor:"pointer",transition:`all ${yt}`,"&:hover":{backgroundColor:kt.toRgbString()},[`& > ${Tt}`]:{fontSize:le.previewOperationSize}},[`${ie}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${gt}px`,backgroundColor:Zt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ce,padding:Ce,cursor:"pointer",transition:`all ${yt}`,userSelect:"none",[`&:not(${ie}-operations-operation-disabled):hover > ${Tt}`]:{color:Ft},"&-disabled":{color:ut,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Tt}`]:{fontSize:le.previewOperationSize}}}}},bo=le=>{const{modalMaskBg:ie,iconCls:Se,previewOperationColorDisabled:Ce,previewCls:Ne,zIndexPopup:Xe,motionDurationSlow:gt}=le,ut=new Ma.C(ie).setAlpha(.1),Ft=ut.clone().setAlpha(.2);return{[`${Ne}-switch-left, ${Ne}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Xe+1,display:"flex",alignItems:"center",justifyContent:"center",width:le.imagePreviewSwitchSize,height:le.imagePreviewSwitchSize,marginTop:-le.imagePreviewSwitchSize/2,color:le.previewOperationColor,background:ut.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${gt}`,userSelect:"none","&:hover":{background:Ft.toRgbString()},"&-disabled":{"&, &:hover":{color:Ce,background:"transparent",cursor:"not-allowed",[`> ${Se}`]:{cursor:"not-allowed"}}},[`> ${Se}`]:{fontSize:le.previewOperationSize}},[`${Ne}-switch-left`]:{insetInlineStart:le.marginSM},[`${Ne}-switch-right`]:{insetInlineEnd:le.marginSM}}},Mo=le=>{const{motionEaseOut:ie,previewCls:Se,motionDurationSlow:Ce,componentCls:Ne}=le;return[{[`${Ne}-preview-root`]:{[Se]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Se}-body`]:Object.assign(Object.assign({},no()),{overflow:"hidden"}),[`${Se}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ce} ${ie} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},no()),{transition:`transform ${Ce} ${ie} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Se}-moving`]:{[`${Se}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ne}-preview-root`]:{[`${Se}-wrap`]:{zIndex:le.zIndexPopup}}},{[`${Ne}-preview-operations-wrapper`]:{position:"fixed",zIndex:le.zIndexPopup+1},"&":[Oo(le),bo(le)]}]},Io=le=>{const{componentCls:ie}=le;return{[ie]:{position:"relative",display:"inline-block",[`${ie}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ie}-img-placeholder`]:{backgroundColor:le.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ie}-mask`]:Object.assign({},wo(le)),[`${ie}-mask:hover`]:{opacity:1},[`${ie}-placeholder`]:Object.assign({},no())}}},Eo=le=>{const{previewCls:ie}=le;return{[`${ie}-root`]:(0,xa._y)(le,"zoom"),"&":(0,Lo.J$)(le,!0)}};var Po=(0,Ia.Z)("Image",le=>{const ie=`${le.componentCls}-preview`,Se=(0,fo.TS)(le,{previewCls:ie,modalMaskBg:new Ma.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:le.controlHeightLG});return[Io(Se),Mo(Se),(0,yo.QA)((0,fo.TS)(Se,{componentCls:ie})),Eo(Se)]},le=>({zIndexPopup:le.zIndexPopupBase+80,previewOperationColor:new Ma.C(le.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Ma.C(le.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Ma.C(le.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:le.fontSizeIcon*1.5})),bt=function(le,ie){var Se={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&ie.indexOf(Ce)<0&&(Se[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ce=Object.getOwnPropertySymbols(le);Ne<Ce.length;Ne++)ie.indexOf(Ce[Ne])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Ne])&&(Se[Ce[Ne]]=le[Ce[Ne]]);return Se};const mt={rotateLeft:te.createElement(Jn,null),rotateRight:te.createElement($a,null),zoomIn:te.createElement(Ta,null),zoomOut:te.createElement(po,null),close:te.createElement(Fa.Z,null),left:te.createElement(tt.Z,null),right:te.createElement(Et.Z,null),flipX:te.createElement(to,null),flipY:te.createElement(to,{rotate:90})};var Lt=le=>{var{previewPrefixCls:ie,preview:Se}=le,Ce=bt(le,["previewPrefixCls","preview"]);const{getPrefixCls:Ne}=te.useContext(Ga.E_),Xe=Ne("image",ie),gt=`${Xe}-preview`,ut=Ne(),[Ft,yt]=Po(Xe),Tt=te.useMemo(()=>{var st;if(Se===!1)return Se;const Zt=typeof Se=="object"?Se:{},kt=ce()(yt,(st=Zt.rootClassName)!==null&&st!==void 0?st:"");return Object.assign(Object.assign({},Zt),{transitionName:(0,Ha.m)(ut,"zoom",Zt.transitionName),maskTransitionName:(0,Ha.m)(ut,"fade",Zt.maskTransitionName),rootClassName:kt})},[Se]);return Ft(te.createElement(Ke.PreviewGroup,Object.assign({preview:Tt,previewPrefixCls:gt,icons:mt},Ce)))},mn=function(le,ie){var Se={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&ie.indexOf(Ce)<0&&(Se[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ce=Object.getOwnPropertySymbols(le);Ne<Ce.length;Ne++)ie.indexOf(Ce[Ne])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Ne])&&(Se[Ce[Ne]]=le[Ce[Ne]]);return Se};const On=le=>{const{prefixCls:ie,preview:Se,className:Ce,rootClassName:Ne,style:Xe}=le,gt=mn(le,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:ut,locale:Ft=Da.Z,getPopupContainer:yt,image:Tt}=te.useContext(Ga.E_),st=ut("image",ie),Zt=ut(),kt=Ft.Image||Da.Z.Image,[Yt,pn]=Po(st),nn=ce()(Ne,pn),Vt=ce()(Ce,pn,Tt==null?void 0:Tt.className),sn=te.useMemo(()=>{if(Se===!1)return Se;const un=typeof Se=="object"?Se:{},{getContainer:Nn}=un,Wn=mn(un,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${st}-mask-info`},te.createElement(Je.Z,null),kt==null?void 0:kt.preview),icons:mt},Wn),{getContainer:Nn||yt,transitionName:(0,Ha.m)(Zt,"zoom",un.transitionName),maskTransitionName:(0,Ha.m)(Zt,"fade",un.maskTransitionName)})},[Se,kt]),Bn=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),Xe);return Yt(te.createElement(Ke,Object.assign({prefixCls:st,preview:sn,rootClassName:nn,className:Vt,style:Bn},gt)))};On.PreviewGroup=Lt;var qn=On},71322:function(Be,dt,re){"use strict";re.d(dt,{D:function(){return x},Z:function(){return ne}});var te=re(87462),Le=re(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,ce=re(74643),Oe=function(ge,de){return Le.createElement(ce.Z,(0,te.Z)({},ge,{ref:de,icon:je}))},se=Le.forwardRef(Oe),Ue=re(22751),be=re(91034),Te=re(94184),_e=re.n(Te),Me=re(10366),ae=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var de={};for(var Pe in oe)Object.prototype.hasOwnProperty.call(oe,Pe)&&ge.indexOf(Pe)<0&&(de[Pe]=oe[Pe]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Pe=Object.getOwnPropertySymbols(oe);fe<Pe.length;fe++)ge.indexOf(Pe[fe])<0&&Object.prototype.propertyIsEnumerable.call(oe,Pe[fe])&&(de[Pe[fe]]=oe[Pe[fe]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Le.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var ne=Le.forwardRef((oe,ge)=>{const{prefixCls:de,className:Pe,trigger:fe,children:Re,defaultCollapsed:De=!1,theme:vt="dark",style:Nt={},collapsible:Dt=!1,reverseArrow:Fe=!1,width:qe=200,collapsedWidth:at=80,zeroWidthTriggerStyle:nt,breakpoint:lt,onCollapse:$t,onBreakpoint:Ht}=oe,Jt=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:cn}=(0,Le.useContext)(y.Gs),[xe,Ae]=(0,Le.useState)("collapsed"in oe?oe.collapsed:De),[Qe,Ot]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{"collapsed"in oe&&Ae(oe.collapsed)},[oe.collapsed]);const ot=(Pt,Ze)=>{"collapsed"in oe||Ae(Pt),$t==null||$t(Pt,Ze)},We=(0,Le.useRef)();We.current=Pt=>{Ot(Pt.matches),Ht==null||Ht(Pt.matches),xe!==Pt.matches&&ot(Pt.matches,"responsive")},(0,Le.useEffect)(()=>{function Pt(Ee){return We.current(Ee)}let Ze;if(typeof window!="undefined"){const{matchMedia:Ee}=window;if(Ee&&lt&&lt in b){Ze=Ee(`(max-width: ${b[lt]})`);try{Ze.addEventListener("change",Pt)}catch(ye){Ze.addListener(Pt)}Pt(Ze)}}return()=>{try{Ze==null||Ze.removeEventListener("change",Pt)}catch(Ee){Ze==null||Ze.removeListener(Pt)}}},[lt]),(0,Le.useEffect)(()=>{const Pt=z("ant-sider-");return cn.addSider(Pt),()=>cn.removeSider(Pt)},[]);const me=()=>{ot(!xe,"clickTrigger")},{getPrefixCls:it}=(0,Le.useContext)(a.E_),zt=()=>{const Pt=it("layout-sider",de),Ze=(0,Me.Z)(Jt,["collapsed"]),Ee=xe?at:qe,ye=ae(Ee)?`${Ee}px`:String(Ee),pe=parseFloat(String(at||0))===0?Le.createElement("span",{onClick:me,className:_e()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${Fe?"right":"left"}`),style:nt},fe||Le.createElement(se,null)):null,et={expanded:Fe?Le.createElement(be.Z,null):Le.createElement(Ue.Z,null),collapsed:Fe?Le.createElement(Ue.Z,null):Le.createElement(be.Z,null)}[xe?"collapsed":"expanded"],St=fe!==null?pe||Le.createElement("div",{className:`${Pt}-trigger`,onClick:me,style:{width:ye}},fe||et):null,ct=Object.assign(Object.assign({},Nt),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),wt=_e()(Pt,`${Pt}-${vt}`,{[`${Pt}-collapsed`]:!!xe,[`${Pt}-has-trigger`]:Dt&&fe!==null&&!pe,[`${Pt}-below`]:!!Qe,[`${Pt}-zero-width`]:parseFloat(ye)===0},Pe);return Le.createElement("aside",Object.assign({className:wt},Ze,{style:ct,ref:ge}),Le.createElement("div",{className:`${Pt}-children`},Re),Dt||Qe&&pe?St:null)},Xt=Le.useMemo(()=>({siderCollapsed:xe}),[xe]);return Le.createElement(x.Provider,{value:Xt},zt())})},84321:function(Be,dt,re){"use strict";re.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var te=re(74902),Le=re(94184),Je=re.n(Le),je=re(10366),ce=re(67294),Oe=re(53124),se=re(67968),be=ne=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Pe,lightTriggerColor:fe}=ne;return{[`${oe}-sider-light`]:{background:de,[`${oe}-sider-trigger`]:{color:fe,background:Pe},[`${oe}-sider-zero-width-trigger`]:{color:fe,background:Pe,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Te=ne=>{const{antCls:oe,componentCls:ge,colorText:de,triggerColor:Pe,footerBg:fe,triggerBg:Re,headerHeight:De,headerPadding:vt,headerColor:Nt,footerPadding:Dt,triggerHeight:Fe,zeroTriggerHeight:qe,zeroTriggerWidth:at,motionDurationMid:nt,motionDurationSlow:lt,fontSize:$t,borderRadius:Ht,bodyBg:Jt,headerBg:cn,siderBg:xe}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Jt,"&, *":{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:xe,transition:`all ${nt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Fe,color:Pe,lineHeight:`${Fe}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-at,zIndex:1,width:at,height:qe,color:Pe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xe,borderStartStartRadius:0,borderStartEndRadius:Ht,borderEndEndRadius:Ht,borderEndStartRadius:0,cursor:"pointer",transition:`background ${lt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${lt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-at,borderStartStartRadius:Ht,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ht}}}}},be(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:De,padding:vt,color:Nt,lineHeight:`${De}px`,background:cn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Dt,color:de,fontSize:$t,background:fe},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var _e=(0,se.Z)("Layout",ne=>[Te(ne)],ne=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:de,colorText:Pe,controlHeightSM:fe,marginXXS:Re,colorTextLightSolid:De,colorBgContainer:vt}=ne,Nt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Nt}px`,headerColor:Pe,footerPadding:`${fe}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:de+Re*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:vt,lightTriggerBg:vt,lightTriggerColor:Pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Me=function(ne,oe){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&oe.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,de=Object.getOwnPropertySymbols(ne);Pe<de.length;Pe++)oe.indexOf(de[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Pe])&&(ge[de[Pe]]=ne[de[Pe]]);return ge};const Ie=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:ge,displayName:de}=ne;return Pe=>ce.forwardRef((Re,De)=>ce.createElement(Pe,Object.assign({ref:De,suffixCls:oe,tagName:ge},Re)))}const a=ce.forwardRef((ne,oe)=>{const{prefixCls:ge,suffixCls:de,className:Pe,tagName:fe}=ne,Re=Me(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=ce.useContext(Oe.E_),vt=De("layout",ge),[Nt,Dt]=_e(vt),Fe=de?`${vt}-${de}`:vt;return Nt(ce.createElement(fe,Object.assign({className:Je()(ge||Fe,Pe,Dt),ref:oe},Re)))}),y=ce.forwardRef((ne,oe)=>{const{direction:ge}=ce.useContext(Oe.E_),[de,Pe]=ce.useState([]),{prefixCls:fe,className:Re,rootClassName:De,children:vt,hasSider:Nt,tagName:Dt,style:Fe}=ne,qe=Me(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),at=(0,je.Z)(qe,["suffixCls"]),{getPrefixCls:nt,layout:lt}=ce.useContext(Oe.E_),$t=nt("layout",fe),[Ht,Jt]=_e($t),cn=Je()($t,{[`${$t}-has-sider`]:typeof Nt=="boolean"?Nt:de.length>0,[`${$t}-rtl`]:ge==="rtl"},lt==null?void 0:lt.className,Re,De,Jt),xe=ce.useMemo(()=>({siderHook:{addSider:Ae=>{Pe(Qe=>[].concat((0,te.Z)(Qe),[Ae]))},removeSider:Ae=>{Pe(Qe=>Qe.filter(Ot=>Ot!==Ae))}}}),[]);return Ht(ce.createElement(Ie.Provider,{value:xe},ce.createElement(Dt,Object.assign({ref:oe,className:cn,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Fe)},at),vt)))}),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(Be,dt,re){"use strict";re.d(dt,{J:function(){return Oe}});var te=re(67294),Le=re(4173),Je=re(60276),je=function(se,Ue){var be={};for(var Te in se)Object.prototype.hasOwnProperty.call(se,Te)&&Ue.indexOf(Te)<0&&(be[Te]=se[Te]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Te=Object.getOwnPropertySymbols(se);_e<Te.length;_e++)Ue.indexOf(Te[_e])<0&&Object.prototype.propertyIsEnumerable.call(se,Te[_e])&&(be[Te[_e]]=se[Te[_e]]);return be};const ce=te.createContext(null),Oe=te.forwardRef((se,Ue)=>{const{children:be}=se,Te=je(se,["children"]),_e=te.useContext(ce),Me=te.useMemo(()=>Object.assign(Object.assign({},_e),Te),[_e,Te.prefixCls,Te.mode,Te.selectable]);return te.createElement(ce.Provider,{value:Me},te.createElement(Le.BR,null,(0,Je.supportNodeRef)(be)?te.cloneElement(be,{ref:Ue}):be))});dt.Z=ce},68508:function(Be,dt,re){"use strict";re.d(dt,{default:function(){return Pt}});var te=re(78595),Le=re(67294),Je=re(71322),je=re(94184),ce=re.n(je),Oe=re(53124),se=function(Ze,Ee){var ye={};for(var pe in Ze)Object.prototype.hasOwnProperty.call(Ze,pe)&&Ee.indexOf(pe)<0&&(ye[pe]=Ze[pe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pe=Object.getOwnPropertySymbols(Ze);we<pe.length;we++)Ee.indexOf(pe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ze,pe[we])&&(ye[pe[we]]=Ze[pe[we]]);return ye},be=Ze=>{const{prefixCls:Ee,className:ye,dashed:pe}=Ze,we=se(Ze,["prefixCls","className","dashed"]),{getPrefixCls:$e}=Le.useContext(Oe.E_),et=$e("menu",Ee),St=ce()({[`${et}-item-divider-dashed`]:!!pe},ye);return Le.createElement(te.iz,Object.assign({className:St},we))},Te=re(37419),_e=re(10366),Me=re(83062),Ie=re(96159),a=(0,Le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ze=>{var Ee;const{className:ye,children:pe,icon:we,title:$e,danger:et}=Ze,{prefixCls:St,firstLevel:ct,direction:wt,disableMenuItemTitleTooltip:Mt,inlineCollapsed:It}=Le.useContext(a),rn=wn=>{const fn=Le.createElement("span",{className:`${St}-title-content`},pe);return(!we||(0,Ie.l$)(pe)&&pe.type==="span")&&pe&&wn&&ct&&typeof pe=="string"?Le.createElement("div",{className:`${St}-inline-collapsed-noicon`},pe.charAt(0)):fn},{siderCollapsed:gn}=Le.useContext(Je.D);let _t=$e;typeof $e=="undefined"?_t=ct?pe:"":$e===!1&&(_t="");const Rt={title:_t};!gn&&!It&&(Rt.title=null,Rt.open=!1);const dn=(0,Te.Z)(pe).length;let qt=Le.createElement(te.ck,Object.assign({},(0,_e.Z)(Ze,["title","icon","danger"]),{className:ce()({[`${St}-item-danger`]:et,[`${St}-item-only-child`]:(we?dn+1:dn)===1},ye),title:typeof $e=="string"?$e:void 0}),(0,Ie.Tm)(we,{className:ce()((0,Ie.l$)(we)?(Ee=we.props)===null||Ee===void 0?void 0:Ee.className:"",`${St}-item-icon`)}),rn(It));return Mt||(qt=Le.createElement(Me.Z,Object.assign({},Rt,{placement:wt==="rtl"?"left":"right",overlayClassName:`${St}-inline-collapsed-tooltip`}),qt)),qt},x=Ze=>{var Ee;const{popupClassName:ye,icon:pe,title:we,theme:$e}=Ze,et=Le.useContext(a),{prefixCls:St,inlineCollapsed:ct,theme:wt}=et,Mt=(0,te.Xl)();let It;if(!pe)It=ct&&!Mt.length&&we&&typeof we=="string"?Le.createElement("div",{className:`${St}-inline-collapsed-noicon`},we.charAt(0)):Le.createElement("span",{className:`${St}-title-content`},we);else{const gn=(0,Ie.l$)(we)&&we.type==="span";It=Le.createElement(Le.Fragment,null,(0,Ie.Tm)(pe,{className:ce()((0,Ie.l$)(pe)?(Ee=pe.props)===null||Ee===void 0?void 0:Ee.className:"",`${St}-item-icon`)}),gn?we:Le.createElement("span",{className:`${St}-title-content`},we))}const rn=Le.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]);return Le.createElement(a.Provider,{value:rn},Le.createElement(te.Wd,Object.assign({},(0,_e.Z)(Ze,["icon"]),{title:It,popupClassName:ce()(St,ye,`${St}-${$e||wt}`)})))},z=re(25877),ee=re(60276),ne=re(33603),oe=re(76529),ge=function(Ze,Ee){var ye={};for(var pe in Ze)Object.prototype.hasOwnProperty.call(Ze,pe)&&Ee.indexOf(pe)<0&&(ye[pe]=Ze[pe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pe=Object.getOwnPropertySymbols(Ze);we<pe.length;we++)Ee.indexOf(pe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ze,pe[we])&&(ye[pe[we]]=Ze[pe[we]]);return ye};function de(Ze){return(Ze||[]).map((Ee,ye)=>{if(Ee&&typeof Ee=="object"){const pe=Ee,{label:we,children:$e,key:et,type:St}=pe,ct=ge(pe,["label","children","key","type"]),wt=et!=null?et:`tmp-${ye}`;return $e||St==="group"?St==="group"?Le.createElement(te.BW,Object.assign({key:wt},ct,{title:we}),de($e)):Le.createElement(x,Object.assign({key:wt},ct,{title:we}),de($e)):St==="divider"?Le.createElement(be,Object.assign({key:wt},ct)):Le.createElement(E,Object.assign({key:wt},ct),we)}return null}).filter(Ee=>Ee)}function Pe(Ze){return Le.useMemo(()=>Ze&&de(Ze),[Ze])}var fe=re(84780),Re=re(14747),De=re(33507),vt=re(67771),Nt=re(50438),Dt=re(67968),Fe=re(45503),at=Ze=>{const{componentCls:Ee,motionDurationSlow:ye,horizontalLineHeight:pe,colorSplit:we,lineWidth:$e,lineType:et,itemPaddingInline:St}=Ze;return{[`${Ee}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${$e}px ${et} ${we}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:St},[`> ${Ee}-item:hover,
> ${Ee}-item-active,
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},lt=Ze=>{let{componentCls:Ee,menuArrowOffset:ye}=Ze;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ye})`},"&::after":{transform:`rotate(45deg) translateY(${ye})`}}}}};const $t=Ze=>Object.assign({},(0,Re.oN)(Ze));var Jt=(Ze,Ee)=>{const{componentCls:ye,itemColor:pe,itemSelectedColor:we,groupTitleColor:$e,itemBg:et,subMenuItemBg:St,itemSelectedBg:ct,activeBarHeight:wt,activeBarWidth:Mt,activeBarBorderWidth:It,motionDurationSlow:rn,motionEaseInOut:gn,motionEaseOut:_t,itemPaddingInline:Rt,motionDurationMid:dn,itemHoverColor:qt,lineType:wn,colorSplit:fn,itemDisabledColor:yn,dangerItemColor:Sn,dangerItemHoverColor:Pn,dangerItemSelectedColor:Gn,dangerItemActiveBg:ln,dangerItemSelectedBg:hn,itemHoverBg:pt,itemActiveBg:An,menuSubMenuBg:Yn,horizontalItemSelectedColor:zn,horizontalItemSelectedBg:Pa,horizontalItemBorderRadius:ha,horizontalItemHoverBg:Qn,popupBg:sa}=Ze;return{[`${ye}-${Ee}, ${ye}-${Ee} > ${ye}`]:{color:pe,background:et,[`&${ye}-root:focus-visible`]:Object.assign({},$t(Ze)),[`${ye}-item-group-title`]:{color:$e},[`${ye}-submenu-selected`]:{[`> ${ye}-submenu-title`]:{color:we}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${yn} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:qt}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:pt},"&:active":{backgroundColor:An}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:pt},"&:active":{backgroundColor:An}}},[`${ye}-item-danger`]:{color:Sn,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:Pn}},[`&${ye}-item:active`]:{background:ln}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:we,[`&${ye}-item-danger`]:{color:Gn},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:ct,[`&${ye}-item-danger`]:{backgroundColor:hn}},[`${ye}-item, ${ye}-submenu-title`]:{[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},$t(Ze))},[`&${ye}-submenu > ${ye}`]:{backgroundColor:Yn},[`&${ye}-popup > ${ye}`]:{backgroundColor:sa},[`&${ye}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:ha,"&::after":{position:"absolute",insetInline:Rt,bottom:0,borderBottom:`${wt}px solid transparent`,transition:`border-color ${rn} ${gn}`,content:'""'},"&:hover, &-active, &-open":{background:Qn,"&::after":{borderBottomWidth:wt,borderBottomColor:zn}},"&-selected":{color:zn,backgroundColor:Pa,"&:hover":{backgroundColor:Pa},"&::after":{borderBottomWidth:wt,borderBottomColor:zn}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${It}px ${wn} ${fn}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:St},[`${ye}-item, ${ye}-submenu-title`]:It&&Mt?{width:`calc(100% + ${It}px)`}:{},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Mt}px solid ${we}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${dn} ${_t}`,`opacity ${dn} ${_t}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:Gn}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${dn} ${gn}`,`opacity ${dn} ${gn}`].join(",")}}}}}};const cn=Ze=>{const{componentCls:Ee,itemHeight:ye,itemMarginInline:pe,padding:we,menuArrowSize:$e,marginXS:et,itemMarginBlock:St}=Ze,ct=we+$e+et;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:ye,lineHeight:`${ye}px`,paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:St,width:`calc(100% - ${pe*2}px)`},[`> ${Ee}-item,
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:ye,lineHeight:`${ye}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
${Ee}-submenu-title`]:{paddingInlineEnd:ct}}};var Ae=Ze=>{const{componentCls:Ee,iconCls:ye,itemHeight:pe,colorTextLightSolid:we,dropdownWidth:$e,controlHeightLG:et,motionDurationMid:St,motionEaseOut:ct,paddingXL:wt,itemMarginInline:Mt,fontSizeLG:It,motionDurationSlow:rn,paddingXS:gn,boxShadowSecondary:_t,collapsedWidth:Rt,collapsedIconSize:dn}=Ze,qt={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},cn(Ze))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},cn(Ze)),{boxShadow:_t})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:$e,maxHeight:`calc(100vh - ${et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${rn}`,`background ${rn}`,`padding ${St} ${ct}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:qt,[`& ${Ee}-item-group-title`]:{paddingInlineStart:wt}},[`${Ee}-item`]:qt}},{[`${Ee}-inline-collapsed`]:{width:Rt,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:It,textAlign:"center"}}},[`> ${Ee}-item,
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It/2}px - ${Mt}px)`,textOverflow:"clip",[`
${Ee}-submenu-arrow,
${Ee}-submenu-expand-icon
`]:{opacity:0},[`${Ee}-item-icon, ${ye}`]:{margin:0,fontSize:dn,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:we}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:gn})}}]};const Qe=Ze=>{const{componentCls:Ee,motionDurationSlow:ye,motionDurationMid:pe,motionEaseInOut:we,motionEaseOut:$e,iconCls:et,iconSize:St,iconMarginInlineEnd:ct}=Ze;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding ${ye} ${we}`].join(","),[`${Ee}-item-icon, ${et}`]:{minWidth:St,fontSize:St,transition:[`font-size ${pe} ${$e}`,`margin ${ye} ${we}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:ct,opacity:1,transition:[`opacity ${ye} ${we}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${et}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ot=Ze=>{const{componentCls:Ee,motionDurationSlow:ye,motionEaseInOut:pe,borderRadius:we,menuArrowSize:$e,menuArrowOffset:et}=Ze;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ze.margin,width:$e,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${pe}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$e*.6,height:$e*.15,backgroundColor:"currentcolor",borderRadius:we,transition:[`background ${ye} ${pe}`,`transform ${ye} ${pe}`,`top ${ye} ${pe}`,`color ${ye} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${et})`},"&::after":{transform:`rotate(-45deg) translateY(${et})`}}}}},ot=Ze=>{const{antCls:Ee,componentCls:ye,fontSize:pe,motionDurationSlow:we,motionDurationMid:$e,motionEaseInOut:et,paddingXS:St,padding:ct,colorSplit:wt,lineWidth:Mt,zIndexPopup:It,borderRadiusLG:rn,subMenuItemBorderRadius:gn,menuArrowSize:_t,menuArrowOffset:Rt,lineType:dn,menuPanelMaskInset:qt,groupTitleLineHeight:wn,groupTitleFontSize:fn}=Ze;return[{"":{[`${ye}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(Ze)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${we} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:Ze.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${St}px ${ct}px`,fontSize:fn,lineHeight:wn,transition:`all ${we}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${we} ${et}`,`background ${we} ${et}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${we} ${et}`,`background ${we} ${et}`,`padding ${$e} ${et}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${we} ${et}`,`padding ${we} ${et}`].join(",")},[`${ye}-title-content`]:{transition:`color ${we}`},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:wt,borderStyle:dn,borderWidth:0,borderTopWidth:Mt,marginBlock:Mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qe(Ze)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${pe*2}px ${ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:rn,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${qt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:qt},"\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:Ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ze.paddingXS},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:rn},Qe(Ze)),Ot(Ze)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:gn},[`${ye}-submenu-title::after`]:{transition:`transform ${we} ${et}`}})}}),Ot(Ze)),{[`&-inline-collapsed ${ye}-submenu-arrow,
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Rt})`},"&::after":{transform:`rotate(45deg) translateX(-${Rt})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(-${_t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Rt})`},"&::before":{transform:`rotate(45deg) translateX(${Rt})`}}})},{[`${Ee}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]};var We=(Ze,Ee)=>(0,Dt.Z)("Menu",pe=>{if(Ee===!1)return[];const{colorBgElevated:we,colorPrimary:$e,colorTextLightSolid:et,controlHeightLG:St,fontSize:ct,darkItemColor:wt,darkDangerItemColor:Mt,darkItemBg:It,darkSubMenuItemBg:rn,darkItemSelectedColor:gn,darkItemSelectedBg:_t,darkDangerItemSelectedBg:Rt,darkItemHoverBg:dn,darkGroupTitleColor:qt,darkItemHoverColor:wn,darkItemDisabledColor:fn,darkDangerItemHoverColor:yn,darkDangerItemSelectedColor:Sn,darkDangerItemActiveBg:Pn}=pe,Gn=ct/7*5,ln=(0,Fe.TS)(pe,{menuArrowSize:Gn,menuHorizontalHeight:St*1.15,menuArrowOffset:`${Gn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:we}),hn=(0,Fe.TS)(ln,{itemColor:wt,itemHoverColor:wn,groupTitleColor:qt,itemSelectedColor:gn,itemBg:It,popupBg:It,subMenuItemBg:rn,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:dn,itemDisabledColor:fn,dangerItemColor:Mt,dangerItemHoverColor:yn,dangerItemSelectedColor:Sn,dangerItemActiveBg:Pn,dangerItemSelectedBg:Rt,menuSubMenuBg:rn,horizontalItemSelectedColor:et,horizontalItemSelectedBg:$e});return[ot(ln),at(ln),Ae(ln),Jt(ln,"light"),Jt(hn,"dark"),lt(ln),(0,De.Z)(ln),(0,vt.oN)(ln,"slide-up"),(0,vt.oN)(ln,"slide-down"),(0,Nt._y)(ln,"zoom-big")]},pe=>{const{colorPrimary:we,colorError:$e,colorTextDisabled:et,colorErrorBg:St,colorText:ct,colorTextDescription:wt,colorBgContainer:Mt,colorFillAlter:It,colorFillContent:rn,lineWidth:gn,lineWidthBold:_t,controlItemBgActive:Rt,colorBgTextHover:dn,controlHeightLG:qt,lineHeight:wn,colorBgElevated:fn,marginXXS:yn,padding:Sn,fontSize:Pn,controlHeightSM:Gn,fontSizeLG:ln,colorTextLightSolid:hn,colorErrorHover:pt}=pe,An=new fe.C(hn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:ct,itemColor:ct,colorItemTextHover:ct,itemHoverColor:ct,colorItemTextHoverHorizontal:we,horizontalItemHoverColor:we,colorGroupTitle:wt,groupTitleColor:wt,colorItemTextSelected:we,itemSelectedColor:we,colorItemTextSelectedHorizontal:we,horizontalItemSelectedColor:we,colorItemBg:Mt,itemBg:Mt,colorItemBgHover:dn,itemHoverBg:dn,colorItemBgActive:rn,itemActiveBg:Rt,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:Rt,itemSelectedBg:Rt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:_t,activeBarHeight:_t,colorActiveBarBorderSize:gn,activeBarBorderWidth:gn,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:$e,dangerItemColor:$e,colorDangerItemTextHover:$e,dangerItemHoverColor:$e,colorDangerItemTextSelected:$e,dangerItemSelectedColor:$e,colorDangerItemBgActive:St,dangerItemActiveBg:St,colorDangerItemBgSelected:St,dangerItemSelectedBg:St,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:qt,groupTitleLineHeight:wn,collapsedWidth:qt*2,popupBg:fn,itemMarginBlock:yn,itemPaddingInline:Sn,horizontalLineHeight:`${qt*1.15}px`,iconSize:Pn,iconMarginInlineEnd:Gn-Pn,collapsedIconSize:ln,groupTitleFontSize:Pn,darkItemDisabledColor:new fe.C(hn).setAlpha(.25).toRgbString(),darkItemColor:An,darkDangerItemColor:$e,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:hn,darkItemSelectedBg:we,darkDangerItemSelectedBg:$e,darkItemHoverBg:"transparent",darkGroupTitleColor:An,darkItemHoverColor:hn,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:hn,darkDangerItemActiveBg:$e}},{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"]]})(Ze),me=function(Ze,Ee){var ye={};for(var pe in Ze)Object.prototype.hasOwnProperty.call(Ze,pe)&&Ee.indexOf(pe)<0&&(ye[pe]=Ze[pe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pe=Object.getOwnPropertySymbols(Ze);we<pe.length;we++)Ee.indexOf(pe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ze,pe[we])&&(ye[pe[we]]=Ze[pe[we]]);return ye},zt=(0,Le.forwardRef)((Ze,Ee)=>{var ye,pe;const we=Le.useContext(oe.Z),$e=we||{},{getPrefixCls:et,getPopupContainer:St,direction:ct,menu:wt}=Le.useContext(Oe.E_),Mt=et(),{prefixCls:It,className:rn,style:gn,theme:_t="light",expandIcon:Rt,_internalDisableMenuItemTitleTooltip:dn,inlineCollapsed:qt,siderCollapsed:wn,items:fn,children:yn,rootClassName:Sn,mode:Pn,selectable:Gn,onClick:ln,overflowedIndicatorPopupClassName:hn}=Ze,pt=me(Ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),An=(0,_e.Z)(pt,["collapsedWidth"]),Yn=Pe(fn)||yn;(ye=$e.validator)===null||ye===void 0||ye.call($e,{mode:Pn});const zn=(0,ee.useEvent)(function(){var on;ln==null||ln.apply(void 0,arguments),(on=$e.onClick)===null||on===void 0||on.call($e)}),Pa=$e.mode||Pn,ha=Gn!=null?Gn:$e.selectable,Qn=Le.useMemo(()=>wn!==void 0?wn:qt,[qt,wn]),sa={horizontal:{motionName:`${Mt}-slide-up`},inline:(0,ne.Z)(Mt),other:{motionName:`${Mt}-zoom-big`}},Rn=et("menu",It||$e.prefixCls),[He,Ve]=We(Rn,!we),ke=ce()(`${Rn}-${_t}`,wt==null?void 0:wt.className,rn);let rt;if(typeof Rt=="function")rt=Rt;else if(Rt===null||Rt===!1)rt=null;else if($e.expandIcon===null||$e.expandIcon===!1)rt=null;else{const on=Rt!=null?Rt:$e.expandIcon;rt=(0,Ie.Tm)(on,{className:ce()(`${Rn}-submenu-expand-icon`,(0,Ie.l$)(on)?(pe=on.props)===null||pe===void 0?void 0:pe.className:"")})}const an=Le.useMemo(()=>({prefixCls:Rn,inlineCollapsed:Qn||!1,direction:ct,firstLevel:!0,theme:_t,mode:Pa,disableMenuItemTitleTooltip:dn}),[Rn,Qn,ct,dn,_t]);return He(Le.createElement(oe.Z.Provider,{value:null},Le.createElement(a.Provider,{value:an},Le.createElement(te.ZP,Object.assign({getPopupContainer:St,overflowedIndicator:Le.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(Rn,`${Rn}-${_t}`,hn),mode:Pa,selectable:ha,onClick:zn},An,{inlineCollapsed:Qn,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),gn),className:ke,prefixCls:Rn,direction:ct,defaultMotions:sa,expandIcon:rt,ref:Ee,rootClassName:ce()(Sn,Ve)}),Yn))))});const Xt=(0,Le.forwardRef)((Ze,Ee)=>{const ye=(0,Le.useRef)(null),pe=Le.useContext(Je.D);return(0,Le.useImperativeHandle)(Ee,()=>({menu:ye.current,focus:we=>{var $e;($e=ye.current)===null||$e===void 0||$e.focus(we)}})),Le.createElement(zt,Object.assign({ref:ye},Ze,pe))});Xt.Item=E,Xt.SubMenu=x,Xt.Divider=be,Xt.ItemGroup=te.BW;var Pt=Xt},72665:function(Be,dt){"use strict";var re;var te=typeof Symbol=="function"&&Symbol.for,Le=te?Symbol.for("react.element"):60103,Je=te?Symbol.for("react.portal"):60106,je=te?Symbol.for("react.fragment"):60107,ce=te?Symbol.for("react.strict_mode"):60108,Oe=te?Symbol.for("react.profiler"):60114,se=te?Symbol.for("react.provider"):60109,Ue=te?Symbol.for("react.context"):60110,be=te?Symbol.for("react.async_mode"):60111,Te=te?Symbol.for("react.concurrent_mode"):60111,_e=te?Symbol.for("react.forward_ref"):60112,Me=te?Symbol.for("react.suspense"):60113,Ie=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var oe=ne.$$typeof;switch(oe){case Le:switch(ne=ne.type,ne){case be:case Te:case je:case Oe:case ce:case Me:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ue:case _e:case a:case ae:case se:return ne;default:return oe}}case Je:return oe}}}function ee(ne){return z(ne)===Te}re=be,re=Te,re=Ue,re=se,re=Le,re=_e,re=je,re=a,re=ae,re=Je,re=Oe,re=ce,re=Me,re=function(ne){return ee(ne)||z(ne)===be},re=ee,re=function(ne){return z(ne)===Ue},re=function(ne){return z(ne)===se},re=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===Le},re=function(ne){return z(ne)===_e},re=function(ne){return z(ne)===je},re=function(ne){return z(ne)===a},dt.isMemo=function(ne){return z(ne)===ae},re=function(ne){return z(ne)===Je},re=function(ne){return z(ne)===Oe},re=function(ne){return z(ne)===ce},re=function(ne){return z(ne)===Me},re=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===je||ne===Te||ne===Oe||ne===ce||ne===Me||ne===Ie||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===se||ne.$$typeof===Ue||ne.$$typeof===_e||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},re=z},12060:function(Be,dt,re){"use strict";Be.exports=re(72665)}}]);