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

193 lines
521 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[7043],{81893:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return fe}});var ee=ae(87462),me=ae(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Ke=Xe,se=ae(74643),we=function(je,Ae){return me.createElement(se.Z,(0,ee.Z)({},je,{ref:Ae,icon:Ke}))},fe=me.forwardRef(we)},22751:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return fe}});var ee=ae(87462),me=ae(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ke=Xe,se=ae(74643),we=function(je,Ae){return me.createElement(se.Z,(0,ee.Z)({},je,{ref:Ae,icon:Ke}))},fe=me.forwardRef(we)},40043:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return fe}});var ee=ae(87462),me=ae(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},Ke=Xe,se=ae(74643),we=function(je,Ae){return me.createElement(se.Z,(0,ee.Z)({},je,{ref:Ae,icon:Ke}))},fe=me.forwardRef(we)},91034:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return fe}});var ee=ae(87462),me=ae(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ke=Xe,se=ae(74643),we=function(je,Ae){return me.createElement(se.Z,(0,ee.Z)({},je,{ref:Ae,icon:Ke}))},fe=me.forwardRef(we)},71736:function(Ue,st){"use strict";st.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ue(oe,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=oe,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(Ue.prototype,"name",{get:function(){return this._name},set:function(oe){if(typeof oe!="string"||oe==="")throw new Error("Shape name must be a valid string.");this._name=oe}}),Object.defineProperty(Ue.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("The default value must be a real number, not: "+oe);this._defaultValue=oe}}),Object.defineProperty(Ue.prototype,"minimum",{get:function(){return this._minimum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Minimum must be a real number, not: "+oe);this._minimum=oe}}),Object.defineProperty(Ue.prototype,"maximum",{get:function(){return this._maximum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Maximum must be a real number, not: "+oe);this._maximum=oe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(oe,y){var a=go.Shape._FigureParameters[oe];return a?a[y]:null},go.Shape.setFigureParameter=function(oe,y,a){if(!(a instanceof Ue))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[oe];E||(E=[],go.Shape._FigureParameters[oe]=E),E[y]=a};var st=[];function ae(oe,y){var a=st.pop();return a===void 0?new go.Point(oe,y):(a.x=oe,a.y=y,a)}function ee(){var oe=st.pop();return oe===void 0?new go.Point:oe}function me(oe){st.push(oe)}function Xe(oe,y,a,E,b,x,z,te,ne){ne||(ne=new go.Point);var re=oe-a,ge=b-z,de=NaN,Ee=NaN;if(re===0)if(ge===0)oe===a&&(de=oe,Ee=y);else{var pe=(x-te)/ge,We=x-pe*b;de=oe,Ee=pe*de+We}else if(ge===0){var Le=(y-E)/re,lt=y-Le*oe;de=b,Ee=Le*de+lt}else{var Le=(y-E)/re,pe=(x-te)/ge,lt=y-Le*oe,We=x-pe*b;de=(We-lt)/(Le-pe),Ee=Le*de+lt}return ne.x=de,ne.y=Ee,ne}function Ke(oe,y,a,E,b,x,z,te,ne,re,ge,de,Ee,pe){var We=1-ne,Le=ne,lt=oe*We+a*Le,Dt=y*We+E*Le,Bt=a*We+b*Le,Me=E*We+x*Le,nt=b*We+z*Le,ot=x*We+te*Le,rt=lt*We+Bt*Le,St=Dt*We+Me*Le,kt=Bt*We+nt*Le,Sn=Me*We+ot*Le,bn=rt*We+kt*Le,Bn=St*We+Sn*Le;re.x=lt,re.y=Dt,ge.x=rt,ge.y=St,de.x=bn,de.y=Bn,Ee.x=kt,Ee.y=Sn,pe.x=nt,pe.y=ot}var se=new go.Spot(.156,.156),we=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ue("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*fe,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(oe,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=se,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(oe,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(oe,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,fe*y,0,y,(1-fe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,fe*a,(1-fe)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,fe*a,fe*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-fe)*y,0,0,(1-fe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ue("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ue("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ue("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ue("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ue("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var Ze=[];function je(){var oe=Ze.pop();return oe===void 0?[]:oe}function Ae(oe){oe.length=0,Ze.push(oe)}function Ve(oe){for(var y=je(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<oe;z++)x=2*Math.PI/oe*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function ke(oe){var y=Be(oe),a=je();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return Ae(y),a}function Be(oe){for(var y=Ve(oe),a=je(),E=Math.floor(y.length/2),b=y.length-1,x=oe%2===0?2:1,z=0;z<b;z++){var te=y[z],ne=y[z+1],re=y[(E+z-1)%b],ge=y[(E+z+x)%b];a[z*2]=te,a[z*2+1]=Xe(te.x,te.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return a[a.length]=a[0],Ae(y),a}go.Shape.defineFigureGenerator("Pentagon",function(oe,y,a){var E=Ve(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(oe,y,a){var E=Ve(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(oe,y,a){var E=Ve(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(oe,y,a){var E=Ve(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(oe,y,a){var E=Ve(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(oe,y,a){var E=Ve(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(oe,y,a){var E=Ve(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(oe,y,a){var E=Be(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(oe,y,a){var E=Be(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(oe,y,a){var E=Be(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(oe,y,a){var E=Be(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(oe,y,a){var E=Be(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(oe,y,a){var E=Be(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(oe,y,a){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(oe,y,a){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(oe,y,a){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(oe,y,a){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(oe,y,a){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(oe,y,a){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ue("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ue("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(oe,y,a){var E=oe?oe.parameter1:NaN,b=oe?oe.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ue("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var te=Math.max(b-E,0);return te>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+te,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,te,te).close())),x.spot1=se,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ue("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ue("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,y,a){var E=oe?oe.parameter1:NaN,b=oe?oe.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,te=Math.min(y,a)/2;return new go.Geometry().add(new go.PathFigure(te,te).add(new go.PathSegment(go.PathSegment.Arc,x,z,te,te,te,te).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(oe,y,a){var E=fe/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ue("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ue("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ue("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,y,a){var E=oe?oe.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,te=Math.atan2(a,y),ne=E-Math.min(Math.cos(te)*E/2,x),re=E-Math.min(Math.sin(te)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,y,a-re)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ue("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ue("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ue("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,fe*y,0,y,(.5-fe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+fe/2)*a,fe*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,te=0,ne=x*fe;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+te)*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z)*y,(.5-ne+te)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z+.05)*y,(.5-ne+te-.02)*a)),x=.2,z=0,te=-.3,ne=x*fe,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+te)*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z)*y,(.5-ne+te)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+te)*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z)*y,(.5-ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),x=.2,z=-.3,te=0,ne=x*fe,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z-.05)*y,(.5-ne+te-.02)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+te)*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z)*y,(.5-ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,te=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,te*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*te,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),te=.75,b=new go.PathFigure((z+x)*y,te*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*te,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(oe,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure(z*y,(te-x)*a);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),x=.4,b=fe*.4;var re=ee(),ge=ee(),de=ee(),Ee=ee();Ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.42,re,ge,de,Ee,Ee);var pe=ee(),We=ee(),Le=ee();Ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.58,Ee,Ee,Le,pe,We);var lt=ee(),Dt=ee(),Bt=ee();Ke(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.42,lt,Dt,Bt,Ee,Ee);var Me=ee(),nt=ee(),ot=ee();return Ke(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.58,Ee,Ee,ot,Me,nt),ne.add(new go.PathSegment(go.PathSegment.Move,ot.x*y,ot.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,Me.x*y,Me.y*a,nt.x*y,nt.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*y,de.y*a,re.x*y,re.y*a,ge.x*y,ge.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,ot.x*y,ot.y*a).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Bt.x*y,Bt.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,Le.x*y,Le.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,pe.x*y,pe.y*a,We.x*y,We.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Bt.x*y,Bt.y*a,lt.x*y,lt.y*a,Dt.x*y,Dt.y*a).close()),me(re),me(ge),me(de),me(Ee),me(pe),me(We),me(Le),me(lt),me(Dt),me(Bt),me(Me),me(nt),me(ot),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ue("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,y,a){var E=new go.Geometry,b=fe*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ge=ee(),de=ee(),Ee=new go.PathFigure((z-x)*y,te*a,!1);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),Ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.44,ge,de,re,ne,ne),Ee.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a));var pe=ae(re.x,re.y);Ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.56,ne,ne,re,ge,de);var We=ae(re.x,re.y);Ee.add(new go.PathSegment(go.PathSegment.Line,(pe.x*.1+.95*.9)*y,pe.y*.1*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,pe.y*.1*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,y,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(We.x*.1+.9)*y,.15*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(We.x*.1+.9)*y,(We.y*.1+.05*.9)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,We.x*y,We.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),x=.35,b=fe*.35;var Le=new go.PathFigure(z*y,(te-x)*a,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a));var lt=new go.PathFigure((z-x)*y,te*a,!1);return E.add(lt),me(ne),me(re),me(ge),me(de),me(pe),me(We),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(oe,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,te=b*fe,ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+te+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-te+z)*a,(.5+te+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+te+z)*a,(.5-te+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,te=b*fe;var ne=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+te+z)*a,(.5+te+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a,(.5-te+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+te+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-te+z)*a));var ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(oe,y,a){var E=oe?oe.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,y,a){var E=oe?oe.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ue("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ue("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,te=(.5+b/2)*a,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/a);var ge=Xe(0,te/a,1,te/a,x/y,1,1,.5,ee());return ne.spot2=new go.Spot(ge.x,ge.y),me(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ue("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ue("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,te=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/a);var ge=Xe(0,te/a,1,te/a,x/y,1,1,.5,ee());return ne.spot2=new go.Spot(ge.x,ge.y),me(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ue("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var ne=Xe(0,.5,.3,0,0,b/a,.1,b/a,ee());return z.spot1=new go.Spot(ne.x,ne.y),ne=Xe(.7,1,1,.5,0,x/a,1,x/a,ne),z.spot2=new go.Spot(ne.x,ne.y),me(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ue("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ue("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=40);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,te=(a-b)/2,ne=te+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,te=0,ne=a):(x=0,z=a,te=0,ne=a));var re=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,te).close());var de=Xe(0,.5,.3,te/a,0,x/a,1,x/a,ee());return re.spot1=new go.Spot(de.x,de.y),de=Xe(.7,ne/a,1,.5,0,z/a,1,z/a,de),re.spot2=new go.Spot(de.x,de.y),me(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ue("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var ne=Xe(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),me(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ue("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ue("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=40);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,te=(a-b)/2,ne=te+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,te=0,ne=a):(x=0,z=a,te=0,ne=a));var re=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,te).close()),re.spot1=new go.Spot(0,x/a);var de=Xe(.7,ne/a,1,.5,0,z/a,1,z/a,ee());return re.spot2=new go.Spot(de.x,de.y),me(de),re}),go.Shape.setFigureParameter("Pointer",0,new Ue("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),me(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ue("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),me(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ue("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Xe(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),me(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ue("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var ne=Xe(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),me(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ue("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,fe*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,fe*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-fe*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-fe*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var te=new go.PathFigure(y,E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-fe*E,(.5+x)*y,2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,2*E,0,2*E-fe*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,fe*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,fe*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-fe*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-fe*E));var te=new go.PathFigure(0,a-E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-fe*E,(.5-x)*y,a-2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-E-fe*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-fe*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-fe*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,fe*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,fe*E,0));var te=new go.PathFigure(E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*a,E+fe*E,0,2*E,(.5-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+fe*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-fe*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-fe*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,fe*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,fe*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var te=new go.PathFigure(y-E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-fe*E,0,y-2*E,(.5-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-fe*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(oe,y,a){var E=new go.Geometry,b=.2,x=.1,z=fe*b,te=fe*x,ne=.5,re=.1,ge=new go.PathFigure(ne*y,(re+x)*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*y,re*a,(ne-z)*y,(re+x)*a,(ne-b)*y,(re+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-x)*a,(ne-b)*y,(re-te)*a,(ne-z)*y,(re-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*y,re*a,(ne+z)*y,(re-x)*a,(ne+b)*y,(re-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+x)*a,(ne+b)*y,(re+te)*a,(ne+z)*y,(re+x)*a));var de=.05,Ee=fe*de;ne=.05,re=.25;var pe=new go.PathFigure(.5*y,.2*a,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),ne=.95,re=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*y,re*a,(ne+Ee)*y,(re-de)*a,(ne+de)*y,(re-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),de=.025,Ee=fe*de,ne=.825,re=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-Ee)*a,(ne+Ee)*y,(re-de)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-Ee)*y,(re-de)*a,(ne-de)*y,(re-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),de=.05,Ee=fe*de,ne=.5,re=.7,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-Ee)*a,(ne+Ee)*y,(re-de)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-Ee)*y,(re-de)*a,(ne-de)*y,(re-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),de=.025,Ee=fe*de,ne=.175,re=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-Ee)*a,(ne+Ee)*y,(re-de)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-Ee)*y,(re-de)*a,(ne-de)*y,(re-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),de=.05,Ee=fe*de,ne=.05,re=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne-de)*y,(re-Ee)*a,(ne-Ee)*y,(re-de)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ue("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,y,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var te=new go.PathFigure(y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var te=new go.PathFigure(y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=fe*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var te=new go.PathFigure(0,b*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(oe,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN,x=oe?oe.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(b*y,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),te.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(oe,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=fe*.5,te=.5,ne=new go.PathFigure(y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*y,a,y,(te+z)*a,(te+z)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,te*a,(te-z)*y,a,0,(te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*y,0,0,(te-z)*a,(te-z)*y,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,te*a,(te+z)*y,0,y,(te-z)*a));var re=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),re.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var te=new go.PathFigure(.5*b*y,b*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var te=new go.PathFigure(y,.5*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),te.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(oe,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN,x=oe?oe.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN,x=oe?oe.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,y,a){var E=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var te=new go.PathFigure(y,x*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var ne=new go.PathFigure(.8*y,.75*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(oe,y,a){var E=new go.Geometry,b=fe*.1,x=.1,z=.9,te=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var re=new go.PathFigure((z+x)*y,te*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te-x)*a,(z+x)*y,(te-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.4,z=fe*.1,te=.1,ne=.9,re=.5,ge=new go.PathFigure(.8*y,.5*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var de=new go.PathFigure((ne+te)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+te)*a,(ne+te)*y,(re+z)*a,(ne+z)*y,(re+te)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y,re*a,(ne-z)*y,(re+te)*a,(ne-te)*y,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-te)*a,(ne-te)*y,(re-z)*a,(ne-z)*y,(re-te)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y,re*a,(ne+z)*y,(re-te)*a,(ne+te)*y,(re-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=0,te=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(te-b)*a,.7*y,(te-x)*a)),b=.1,x=fe*.1,z=.9,te=.5;var re=new go.PathFigure((z-b)*y,te*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=0,te=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x+x)*y,(te-b)*a,.8*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(te+x)*a,(z+x+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=.2,te=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.8*y,.5*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(te-b)*a,.7*y,(te-x)*a)),b=.1,x=fe*.1,z=.9,te=.5;var ge=new go.PathFigure((z-b)*y,te*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=.2,te=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.2*y,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(te-b)*a,.9*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(oe,y,a){var E=new go.Geometry,b=fe*.1,x=.1,z=.1,te=.5,ne=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure((z-x)*y,te*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te-x)*a,(z+x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,te*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,te*a,z*y,(te-x)*a,z*y,(te+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(oe,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=fe*.8,te=.8,ne=0,re=.5,ge=(b-y)/2,de=(x-a)/2,Ee=new go.PathFigure(ne*y+ge,(re+te)*a+de,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ge,re*a+de,(ne-z)*y+ge,(re+te)*a+de,(ne-te)*y+ge,(re+z)*a+de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-te)*a+de,(ne-te)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-te)*a+de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*y+ge,re*a+de,ne*y+ge,(re-te)*a+de,(ne-te+z*.5)*y+ge,(re-z)*a+de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+te)*a+de,(ne-te+z*.5)*y+ge,(re+z)*a+de,ne*y+ge,(re+te)*a+de).close()),z=fe*.4,te=.4,ne=.2,re=.5;var pe=new go.PathFigure(ne*y+ge,(re+te)*a+de,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ge,re*a+de,(ne-z)*y+ge,(re+te)*a+de,(ne-te)*y+ge,(re+z)*a+de)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-te)*a+de,(ne-te)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-te)*a+de)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*y+ge,re*a+de,ne*y+ge,(re-te)*a+de,(ne-te+z*.5)*y+ge,(re-z)*a+de)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+te)*a+de,(ne-te+z*.5)*y+ge,(re+z)*a+de,ne*y+ge,(re+te)*a+de).close()),z=fe*.2,te=.2,ne=.5,re=.5;var We=new go.PathFigure((ne-te)*y+ge,re*a+de,!0);E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-te)*a+de,(ne-te)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-te)*a+de)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ge,re*a+de,(ne+z)*y+ge,(re-te)*a+de,(ne+te)*y+ge,(re-z)*a+de)),We.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+te)*a+de,(ne+te)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+te)*a+de)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ge,re*a+de,(ne-z)*y+ge,(re+te)*a+de,(ne-te)*y+ge,(re+z)*a+de)),z=fe*.4,te=.4,ne=.8,re=.5;var Le=new go.PathFigure(ne*y+ge,(re-te)*a+de,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ge,re*a+de,(ne+z)*y+ge,(re-te)*a+de,(ne+te)*y+ge,(re-z)*a+de)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+te)*a+de,(ne+te)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+te)*a+de)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*y+ge,re*a+de,ne*y+ge,(re+te)*a+de,(ne+te-z*.5)*y+ge,(re+z)*a+de)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-te)*a+de,(ne+te-z*.5)*y+ge,(re-z)*a+de,ne*y+ge,(re-te)*a+de).close()),z=fe*.8,te=.8,ne=1,re=.5;var lt=new go.PathFigure(ne*y+ge,(re-te)*a+de,!0);return E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ge,re*a+de,(ne+z)*y+ge,(re-te)*a+de,(ne+te)*y+ge,(re-z)*a+de)),lt.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+te)*a+de,(ne+te)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+te)*a+de)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*y+ge,re*a+de,ne*y+ge,(re+te)*a+de,(ne+te-z*.5)*y+ge,(re+z)*a+de)),lt.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-te)*a+de,(ne+te-z*.5)*y+ge,(re-z)*a+de,ne*y+ge,(re-te)*a+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var te=new go.PathFigure(0,.5*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),te.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),te.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(oe,y,a){var E=new go.Geometry,b=fe*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ge=ee(),de=ee();Ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ge,de);var Ee=ae(re.x,re.y),pe=new go.PathFigure(re.x*y,re.y*a,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),Ke(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ge,de,re,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),b=fe*.3,x=.3,Ke(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ge,de,re,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Line,re.x*y,re.y*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,de.x*y,de.y*a,ge.x*y,ge.y*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),Ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ge,de),pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,de.x*y,de.y*a,ge.x*y,ge.y*a).close());var pe=new go.PathFigure(.45*y,0,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),me(ne),me(re),me(ge),me(de),me(Ee),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,te,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*y,(.8+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*y,(.8+ne)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,y,a){var E=new go.Geometry,b=.5,x=0,z=0,te=b*fe,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,Ee=.5,pe=0,We=new go.PathFigure(ne*y,(1-re)*a,!1);return E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,de*a,ge*y,.7*a,ge*y,de*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+x)*y,(pe+x)*a,(.5+b+x)*y,(.5-te+x)*a,(.5+te+x)*y,(.5-b+x)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+te+z)*a,(.5-te+x)*y,.9*a)),We.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),We.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),We.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,te=.5,ne=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ge*.5,Ee=z,pe=z,We=ge*Ee,Le=ge*pe;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-Ee)*y,ne*a,(te-(We+Ee)/2)*y,(ne+(pe+Le)/2)*a,(te-Ee)*y,(ne+Le)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ne-pe)*a,(te-Ee)*y,(ne-Le)*a,(te-We)*y,(ne-pe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+Ee)*y,ne*a,(te+We)*y,(ne-pe)*a,(te+Ee)*y,(ne-Le)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(te+Ee)*y,(ne+Le)*a,(te+(We+Ee)/2)*y,(ne+(pe+Le)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var lt=new go.PathFigure(.2*y,a,!1);E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Dt=new go.PathFigure(.8*y,a,!1);return E.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var te=new go.PathFigure(b*y,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,te=fe*.1,ne=.2,re=.9,ge=new go.PathFigure((ne-z)*y,re*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-te)*a,(ne-te)*y,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+te)*y,(re-z)*a,(ne+z)*y,(re-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+te)*a,(ne+te)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-te)*y,(re+z)*a,(ne-z)*y,(re+te)*a).close()),z=.1,te=fe*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-te)*a,(ne-te)*y,(re-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+te)*y,(re-z)*a,(ne+z)*y,(re-te)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+te)*a,(ne+te)*y,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-te)*y,(re+z)*a,(ne-z)*y,(re+te)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var te=new go.PathFigure(.5*y,.7*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var ne=.1,re=fe*.1,ge=.1,de=.9,Ee=new go.PathFigure((ge-ne)*y,de*a,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ne)*a,(ge-ne)*y,(de-re)*a,(ge-re)*y,(de-ne)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,de*a,(ge+re)*y,(de-ne)*a,(ge+ne)*y,(de-re)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ne)*a,(ge+ne)*y,(de+re)*a,(ge+re)*y,(de+ne)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,de*a,(ge-re)*y,(de+ne)*a,(ge-ne)*y,(de+re)*a)),ne=.1,re=fe*.1,ge=.4,de=.9;var pe=new go.PathFigure((ge-ne)*y,de*a,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ne)*a,(ge-ne)*y,(de-re)*a,(ge-re)*y,(de-ne)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,de*a,(ge+re)*y,(de-ne)*a,(ge+ne)*y,(de-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ne)*a,(ge+ne)*y,(de+re)*a,(ge+re)*y,(de+ne)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,de*a,(ge-re)*y,(de+ne)*a,(ge-ne)*y,(de+re)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ge=.05,de=fe*.05,Ee=.175,pe=.95,te=new go.PathFigure((Ee-ge)*y,pe*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe-ge)*a,(Ee-ge)*y,(pe-de)*a,(Ee-de)*y,(pe-ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ge)*y,pe*a,(Ee+de)*y,(pe-ge)*a,(Ee+ge)*y,(pe-de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe+ge)*a,(Ee+ge)*y,(pe+de)*a,(Ee+de)*y,(pe+ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ge)*y,pe*a,(Ee-de)*y,(pe+ge)*a,(Ee-ge)*y,(pe+de)*a));var ge=.05,de=fe*.05,Ee=.375,pe=.95,ne=new go.PathFigure((Ee-ge)*y,pe*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe-ge)*a,(Ee-ge)*y,(pe-de)*a,(Ee-de)*y,(pe-ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ge)*y,pe*a,(Ee+de)*y,(pe-ge)*a,(Ee+ge)*y,(pe-de)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe+ge)*a,(Ee+ge)*y,(pe+de)*a,(Ee+de)*y,(pe+ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ge)*y,pe*a,(Ee-de)*y,(pe+ge)*a,(Ee-ge)*y,(pe+de)*a));var ge=.05,de=fe*.05,Ee=.625,pe=.95,re=new go.PathFigure((Ee-ge)*y,pe*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe-ge)*a,(Ee-ge)*y,(pe-de)*a,(Ee-de)*y,(pe-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ge)*y,pe*a,(Ee+de)*y,(pe-ge)*a,(Ee+ge)*y,(pe-de)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe+ge)*a,(Ee+ge)*y,(pe+de)*a,(Ee+de)*y,(pe+ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ge)*y,pe*a,(Ee-de)*y,(pe+ge)*a,(Ee-ge)*y,(pe+de)*a));var ge=.05,de=fe*.05,Ee=.825,pe=.95,We=new go.PathFigure((Ee-ge)*y,pe*a,!0);E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe-ge)*a,(Ee-ge)*y,(pe-de)*a,(Ee-de)*y,(pe-ge)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ge)*y,pe*a,(Ee+de)*y,(pe-ge)*a,(Ee+ge)*y,(pe-de)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ee*y,(pe+ge)*a,(Ee+ge)*y,(pe+de)*a,(Ee+de)*y,(pe+ge)*a)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ge)*y,pe*a,(Ee-de)*y,(pe+ge)*a,(Ee-ge)*y,(pe+de)*a).close());var Le=new go.PathFigure(0,a,!1);return E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var te=.05,ne=fe*.05,re=.35,ge=.775,de=new go.PathFigure((re-te)*y,ge*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ge-te)*a,(re-te)*y,(ge-ne)*a,(re-ne)*y,(ge-te)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*y,ge*a,(re+ne)*y,(ge-te)*a,(re+te)*y,(ge-ne)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ge+te)*a,(re+te)*y,(ge+ne)*a,(re+ne)*y,(ge+te)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*y,ge*a,(re-ne)*y,(ge+te)*a,(re-te)*y,(ge+ne)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(oe,y,a){var E=new go.Geometry,b=.3,x=fe*.3,z=.5,te=.7,ne=new go.PathFigure((z-b)*y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a));var re=new go.PathFigure(0,.7*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a));var re=new go.PathFigure(.15*y,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(oe,y,a){var E=new go.Geometry,b=.5,x=fe*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*y,te*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a).close()),b=.05,x=fe*.05,z=.5,te=.8;var re=new go.PathFigure((z-b)*y,te*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var te=new go.PathFigure(.678*y,.85*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var ne=new go.PathFigure(.5*y,.1*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var te=new go.PathFigure(y*.612,a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var ne=new go.PathFigure(y*.816,a,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var te=new go.PathFigure(y*.055,.18*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),te.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),te.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var ne=new go.PathFigure(y*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var ne=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,y,a){var E=new go.Geometry,b=8,x=b*fe,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var te=new go.PathFigure(y*.83,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var ne=new go.PathFigure(y*.83,a*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var re=new go.PathFigure(y*.78,a*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),re.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,y,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*fe,x=a*.8,z=new go.Geometry,te=new go.PathFigure(E,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),te.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),te.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),te.add(new go.PathSegment(go.PathSegment.Line,y*.55,x)),te.add(new go.PathSegment(go.PathSegment.Line,E,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.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(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(oe,y,a){var E=new go.Geometry,b=15,x=b*fe,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(oe,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ue={},st="5.0",ae={},ee=null,me=!1,Xe=!1,Ke=null,se=!1,we=null,fe=null,Ze=0;Ze<arguments.length;Ze++){var je=arguments[Ze];if(je!==null)switch(typeof je){case"number":st=je.toFixed(1);break;case"string":je.match(new RegExp("^[0-9]\\.[0-9]+$"))?st=je:Ke=je;break;case"object":typeof je.is3D!="undefined"?ee=je:ae=je;break;case"boolean":me=je,Xe=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Xe&&(me=!0)),Ke!==null&&ae.id===void 0&&(ae.id=Ke);var Ae="",Ve="",ke=!1,Be=null,oe=null,y=null,a=!1,E=null,b=null,x=null,z=null,te=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var ne=function(De){return parseFloat(De)>4?parseFloat(De):5};Ue.setHTML5Codebase=function(De,Ye){fe=De,Sn(De,Ye)},Ue.setJavaCodebase=Ue.setJavaCodebaseVersion=Ue.isCompiledInstalled=Ue.setPreCompiledScriptPath=Ue.setPreCompiledResourcePath=function(){},Ue.setHTML5CodebaseVersion=function(De,Ye){var gt=parseFloat(De);if(gt!==NaN&&gt<5){console.log("The GeoGebra HTML5 codebase version "+gt+" is deprecated. Using version latest instead.");return}we=De,kt(De,Ye)},Ue.getHTML5CodebaseVersion=function(){return oe},Ue.getParameters=function(){return ae},Ue.setFontsCSSURL=function(De){z=De},Ue.setGiacJSURL=function(De){},Ue.setJNLPFile=function(De){Ae=De},Ue.setJNLPBaseDir=function(De){},Ue.inject=function(){function De(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",gt=ae.id,Kt,ct=!1,Nt=0;Nt<arguments.length;Nt++){var ve=arguments[Nt];typeof ve=="string"?(ve=ve.toLowerCase(),ve.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=ve:gt=arguments[Nt]):typeof ve=="boolean"?ct=ve:ve instanceof HTMLElement&&(Kt=ve)}yt();function yt(){if(!se){setTimeout(yt,200);return}Ye=rt(Ye);var on=Kt||document.getElementById(gt);if(!on){console.log("possibly bug on ajax loading? ");return}if(Ue.removeExistingApplet(on,!1),ae.width===void 0&&on.clientWidth&&(ae.width=on.clientWidth),ae.height===void 0&&on.clientHeight&&(ae.height=on.clientHeight),!(ae.width&&ae.height)&&Ye==="html5"&&(delete ae.width,delete ae.height),Be=Ye,Ye==="screenshot")Dt(on,ae);else{var Tn=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?Tn=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(Tn=(!re()||De())&&ge()),Tn?(Be="screenshot",Me(on,ae,ct,Ye)):lt(on,ae,ct)}}};function re(){try{return window.self!==window.top}catch(De){return!0}}function ge(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ue.getViews=function(){return ee},Ue.isJavaInstalled=function(){return!1};var de=function(De){var Ye=function(Nt){var ve=JSON.parse(Nt),yt=function(xt){return xt.type=="G"||xt.type=="E"},on=ve.elements?ve.elements.filter(yt)[0]:ve;if(!on||!on.url){gt();return}ae.fileName=on.url,Ee(on.settings||{}),ee.is3D=!0;var Tn="https://www.geogebra.org/images/";Ue.setPreviewImage(E||on.previewUrl,Tn+"GeoGebra_loading.png",Tn+"applet_play.png"),De()},gt=function(){ae.onError&&ae.onError(),bn("Error: Fetching material (id "+ae.material_id+") failed.",ae)},Kt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ct="/materials/"+ae.material_id+"?scope=basic";pe("https://"+Kt+"/api/proxy.php?path="+encodeURIComponent(ct),Ye,gt)};function Ee(De){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(gt){De[gt]=!!De[gt]}),Ye.forEach(function(gt){ae[gt]===void 0&&De[gt]!==void 0&&(ae[gt]=De[gt])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function pe(De,Ye,gt){var Kt=new XMLHttpRequest;Kt.open("GET",De),Kt.onload=function(){Ye(Kt.responseText)},Kt.onerror=gt,Kt.send()}Ue.isHTML5Installed=function(){return!0},Ue.getLoadedAppletType=function(){return Be},Ue.setPreviewImage=function(De,Ye,gt){E=De,b=Ye,x=gt},Ue.removeExistingApplet=function(De,Ye){var gt;typeof De=="string"&&(De=document.getElementById(De)),Be=null;var Kt=null;for(gt=0;gt<De.childNodes.length;gt++){var ct=De.childNodes[gt],Nt=ct.className;Nt==="applet_screenshot"?Ye?(ct.style.display="block",Be="screenshot"):ct.style.display="none":Nt!=="applet_scaler prerender"&&(De.removeChild(ct),Kt=Nt&&Nt.indexOf("appletParameters")!=-1?ct.id:null,gt--)}var ve=ae.id!==void 0?ae.id:Kt,yt=window[ve];yt&&typeof yt.getBase64=="function"&&(yt.remove(),window[ve]=null)},Ue.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var De=Ue.getAppletObject();return De&&typeof De.recalculateEnvironments=="function"?(De.recalculateEnvironments(),!0):!1},Ue.startAnimation=function(){var De=Ue.getAppletObject();return De&&typeof De.startAnimation=="function"?(De.startAnimation(),!0):!1},Ue.stopAnimation=function(){var De=Ue.getAppletObject();return De&&typeof De.stopAnimation=="function"?(De.stopAnimation(),!0):!1},Ue.getAppletObject=function(){var De=ae.id!==void 0?ae.id:"ggbApplet";return window[De]},Ue.resize=function(){};var We=function(De,Ye,gt){var Kt=document.createElement("param");Kt.setAttribute("name",Ye),Kt.setAttribute("value",gt),De.appendChild(Kt)},Le=function(De){return De&&De!=="false"},lt=function(De,Ye,gt){ne(oe)<=4.2&&(gt=!0);var Kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ct=document.createElement("div");ct.classList.add("appletParameters","notranslate");var Nt=Ye.width,ve=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(ne(oe)<=4.4)Le(Ye.showToolBar)&&(Ye.height-=7),Le(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Le(Ye.showToolBar)&&(Ye.width=605,Nt=605);else{var yt=100;(Le(Ye.showToolBar)||Le(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),yt=Le(Ye.showMenuBar)?245:155),Nt<yt&&(Ye.width=yt,Nt=yt)}ct.style.border="none",ct.style.display="inline-block";for(var on in Ye)Ye.hasOwnProperty(on)&&on!=="appletOnLoad"&&ct.setAttribute("data-param-"+on,Ye[on]);z&&ct.setAttribute("data-param-fontscssurl",z),Ue.resize=function(){GGBAppletUtils.responsiveResize(De,Ye)},window.addEventListener("resize",function(wn){Ue.resize()});var Tn=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!gt&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||ct.setAttribute("data-param-showSplash","false");var xt=De.querySelector(".applet_scaler.prerender"),tt=xt!==null;if(tt)var Re=xt.querySelector(".ggb_preview");else{var Re=ot(Nt,ve,Ye.borderColor,!1);xt=document.createElement("div"),xt.className="applet_scaler",xt.style.position="relative",xt.style.display="block",xt.style.width=Nt+"px",xt.style.height=ve+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xt,"66%"),ne(oe)>=5?(Ye.appletOnLoad=function(wn){var Se=De.querySelector(".ggb_preview");Se&&Se.parentNode.removeChild(Se),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xt),window.GGBT_wsf_view&&$(window).trigger("resize"),Tn(wn)},tt||xt.appendChild(Re)):ct.appendChild(Re),xt.appendChild(ct),tt||De.appendChild(xt),setTimeout(function(){Ue.resize()},1)}else{var Ne=document.createElement("div");Ne.className="applet_scaler",Ne.style.position="relative",Ne.style.display="block",Ne.appendChild(ct),De.appendChild(Ne),Ye.appletOnLoad=function(wn){Ue.resize(),Tn(wn)}}function et(wn,Se){Se&&typeof Se.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wn,Se.appletOnLoad):renderGGBElement(wn),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Se)}function dt(wn,Se){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wn,params:Se}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xe){et(xe.article,xe.params)}),html5AppletsToProcess=null)},ne(oe)<5&&(wn.className+=" geogebraweb")):et(wn,Se)}if(Kt){scriptLoadStarted=!0;for(var $t=0;$t<ct.childNodes.length;$t++){var Xt=ct.childNodes[$t].tagName;Xt==="TABLE"&&(ct.removeChild(ct.childNodes[$t]),$t--)}if(ggbHTML5LoadedScript!==null){var nn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');nn!=null&&nn.parentNode.removeChild(nn)}var sn=document.createElement("script"),hn=function(){dt(ct,Ye)};sn.src=Ve+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=oe,ggbHTML5LoadedScript=sn.src,bn("GeoGebra HTML5 codebase loaded: '"+Ve+"'.",Ye),!fe&&(!we||we=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),hn()):Ve.requirejs?__webpack_require__.e(12).then(function(){var wn=[__webpack_require__(12)];hn.apply(null,wn)}.bind(this)).catch(__webpack_require__.oe):(sn.onload=hn,De.appendChild(sn))}else dt(ct,Ye);Ye.height=ve,Ye.width=Nt},Dt=function(De,Ye,gt){var Kt=ot(Ye.width,Ye.height,Ye.borderColor,gt),ct=document.createElement("div");ct.style.position="relative",ct.style.display="block",ct.style.width=Ye.width+"px",ct.style.height=Ye.height+"px",ct.className="applet_screenshot applet_scaler"+(gt?" applet_screenshot_play":""),ct.appendChild(Kt);var Nt=GGBAppletUtils.getScale(Ye,De,gt);gt?(De.appendChild(nt()),window.GGBT_wsf_view||(De.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ct,"66%"),De.appendChild(ct),Nt!==1&&!isNaN(Nt)&&(GGBAppletUtils.scaleElement(ct,Nt),ct.style.width=Ye.width+"px",ct.style.height=Ye.height+"px",ct.parentNode.style.width=Ye.width*Nt+"px",ct.parentNode.style.height=Ye.height*Nt+"px"),Ue.resize=function(){Bt(De,Kt,ct,gt)},window.addEventListener("resize",function(ve){Ue.resize()}),Ue.resize()};function Bt(De,Ye,gt,Kt){if(De.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(De.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(De)}var ct=GGBAppletUtils.getScale(ae,De,Kt);gt.parentNode!==null&&(!isNaN(ct)&&ct!==1?(GGBAppletUtils.scaleElement(gt,ct),gt.parentNode.style.width=ae.width*ct+"px",gt.parentNode.style.height=ae.height*ct+"px"):(GGBAppletUtils.scaleElement(gt,1),gt.parentNode.style.width=ae.width+"px",gt.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(De),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ue.onExitFullscreen=function(De,Ye){Ye.appendChild(De)};var Me=function(De,Ye,gt,Kt){Dt(De,Ye,!0);for(var ct=function(){var yt=[];for(ve=0;ve<De.childNodes.length;ve++)yt.push(De.childNodes[ve]);if(window.GGBT_wsf_view){var on=window.GGBT_wsf_view.renderFullScreen(De,Ye.id),Tn=document.getElementById("fullscreencontainer"),xt=jQuery(De).find(".fullscreencontent");xt.length>0?(on.remove(),xt.attr("id","fullscreencontent").show(),jQuery(Tn).append(xt),window.dispatchEvent(new Event("resize"))):lt(on,Ye,!1),window.GGBT_wsf_view.launchFullScreen(Tn)}else Be=Kt,lt(De,Ye,!1);if(!window.GGBT_wsf_view)for(ve=0;ve<yt.length;ve++)De.removeChild(yt[ve])},Nt=De.getElementsByClassName("ggb_preview_play"),ve=0;ve<Nt.length;ve++)Nt[ve].addEventListener("click",ct,!1),Nt[ve].addEventListener("ontouchstart",ct,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(De),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},nt=function(){var De=document.createElement("div");if(De.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ye='.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");}',gt=document.createElement("style");gt.styleSheet?gt.styleSheet.cssText=Ye:gt.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(gt)}return De},ot=function(De,Ye,gt,Kt){var ct=document.createElement("div");ct.className="ggb_preview",ct.style.position="absolute",ct.style.zIndex="90",ct.style.width=De-2+"px",ct.style.height=Ye-2+"px",ct.style.top="0px",ct.style.left="0px",ct.style.overflow="hidden",ct.style.backgroundColor="white";var Nt="lightgrey";gt!==void 0&&(gt==="none"?Nt="transparent":Nt=gt),ct.style.border="1px solid "+Nt;var ve=document.createElement("img");if(ve.style.position="relative",ve.style.zIndex="1000",ve.style.top="-1px",ve.style.left="-1px",E!==null&&ve.setAttribute("src",E),ve.style.opacity=.7,b!==null){var yt,on,Tn;if(!Kt){yt=document.createElement("img"),yt.style.position="absolute",yt.style.zIndex="1001",yt.style.opacity=1,ve.style.opacity=.3,on=360,on>De/4*3&&(on=De/4*3),Tn=on/5.8,yt.setAttribute("src",b),yt.setAttribute("width",on),yt.setAttribute("height",Tn);var xt=(De-on)/2,tt=(Ye-Tn)/2;yt.style.left=xt+"px",yt.style.top=tt+"px",ct.appendChild(yt)}}return ct.appendChild(ve),ct},rt=function(De){return De=De.toLowerCase(),De==="html5"||De==="screenshot"?De:"html5"},St=["web","webSimple","web3d","tablet","tablet3d","phone"],kt=function(De,Ye){if(oe=De,Ye){Sn(oe,!0);return}var gt=!me;if(gt){var Kt=ne(oe);!isNaN(Kt)&&Kt<4.4&&(gt=!1)}var ct,Nt;window.location.protocol.substr(0,4)==="http"?ct=window.location.protocol:ct="http:";var ve=oe.indexOf("//");ve>0?Nt=oe:ve===0?Nt=ct+oe:Nt="https://www.geogebra.org/apps/5.2.814.0/";for(var yt in St)if(oe.slice(St[yt].length*-1)===St[yt]||oe.slice((St[yt].length+1)*-1)===St[yt]+"/"){Sn(Nt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&gt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Le(ae.showToolBar)&&!Le(ae.showMenuBar)&&!Le(ae.showAlgebraInput)&&!Le(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Nt+="webSimple/":Nt+="web3d/",Sn(Nt,!1)},Sn=function(De,Ye){if(De.requirejs){Ve=De;return}De.slice(-1)!=="/"&&(De+="/"),Ve=De,Ye===null&&(Ye=De.indexOf("http")===-1),ke=Ye,y="web.nocache.js",a=!1;var gt=Ve.split("/");gt.length>1&&(!Ye&&gt[gt.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):St.indexOf(gt[gt.length-2])>=0&&(y=gt[gt.length-2]+".nocache.js")),gt=De.split("/"),oe=gt[gt.length-3],oe.substr(0,4)==="test"?oe=oe.substr(4,1)+"."+oe.substr(5,1):(oe.substr(0,3)==="war"||oe.substr(0,4)==="beta")&&(oe="5.0");var Kt=parseFloat(oe);Kt!==NaN&&Kt<5&&De.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kt+" is deprecated. Using version latest instead."),kt("5.0",Ye))},bn=function(De,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(De)};ae.material_id!==void 0?de(Bn):Bn();function Bn(){var De=st;we!==null?De=we:parseFloat(De)<5&&(De="5.0"),kt(De,!1),fe!==null&&Sn(fe,ke),se=!0}return Ue},GGBAppletUtils=function(){"use strict";function Ue(){return window.GGBT_wsf_edit!==void 0}function st(se,we){we!=1?(se.style.transformOrigin="0% 0% 0px",se.style.webkitTransformOrigin="0% 0% 0px",se.style.transform="scale("+we+","+we+")",se.style.webkitTransform="scale("+we+","+we+")",se.style.maxWidth="initial",se.querySelector(".ggb_preview")!==null&&(se.querySelector(".ggb_preview").style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(se.style.transform="none",se.style.webkitTransform="none")}function ae(se,we,fe,Ze,je,Ae){var Ve=null;if(Ae!=null&&Ae!="")for(var ke=se.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+Ae+" ")>-1){Ve=ke;break}else ke=ke.parentNode;var Be=0,oe=0,y=0,a=0,E=0,b=0,x=0;if(Ve)Be=Ve.offsetWidth,oe=Math.max(Ze?Ve.offsetWidth:0,Ve.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Be=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),y=Be):(Be=window.innerWidth,oe=window.innerHeight,y=window.innerWidth),se){var z=se.getBoundingClientRect();z.left>0&&z.left<=Be&&(je===void 0||!je)&&(document.dir==="rtl"?(E=Be-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return se&&((fe===void 0||!fe)&&we>0&&we+a<Be?Be=we:Be-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe===void 0||!fe)&&(oe-=x)),{width:Be,height:oe}}function ee(se,we,fe,Ze,je){if(se.isScreenshoGenerator)return 1;var Ae=Ze!==void 0&&Ze,Ve=se.noScaleMargin!=null&&se.noScaleMargin,ke=function(te){return te&&te!=="false"},Be=ke(se.autoHeight),oe=ae(we,se.width,fe,Be,Ae&&window.GGBT_wsf_view||Ve,je),y=parseInt(oe.width),a=se.width,E=se.height;if(a===void 0){var b=we.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=Ae?1:oe.height/E;return fe!==void 0&&!fe&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function me(se,we,fe){var Ze=1,je,Ae=!1;if(se.hasOwnProperty("allowUpscale")&&(Ae=se.allowUpscale),se.hasOwnProperty("scale")&&(Ze=parseFloat(se.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(Ae=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(se.hasOwnProperty("disableAutoScale")&&se.disableAutoScale))je=ee(se,we,Ae,fe,se.scaleContainerClass);else return Ze;return Ae&&(!se.hasOwnProperty("scale")||Ze===1)?je:Math.min(Ze,je)}function Xe(se){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=se.getBoundingClientRect(),je=(we-Ze.width)/2,Ae=(fe-Ze.height)/2;Ae<0&&(Ae=0),se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(je<40?se.style.left="40px":se.style.left=je+"px",se.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?se.style.top="40px":se.style.top=Ae+"px",se.style.left=je+"px")}function Ke(se,we){var fe=se.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(se)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var Ze=me(we,se);Ue()&&fe.setAttribute("data-param-scale",Ze);for(var je=null,Ae=0;Ae<se.childNodes.length;Ae++)if(se.childNodes[Ae].className!==void 0&&se.childNodes[Ae].className.match(/^applet_scaler/)){je=se.childNodes[Ae];break}if(je!==null&&je.querySelector(".noscale")!==null)return;var Ve=we.id!==void 0?we.id:"ggbApplet",ke=window[Ve];(ke==null||!ke.recalculateEnvironments)&&je!==null&&!je.className.match(/fullscreen/)&&(je.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(je.parentNode.style.width=we.width*Ze+"px",je.parentNode.style.height=we.height*Ze+"px",st(je,Ze)):(st(je,1),je.parentNode.style.width=we.width+"px",je.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:Ke,isFlexibleWorksheetEditor:Ue,positionCenter:Xe,getScale:me,scaleElement:st}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ue=n.location.search;return Ue.indexOf(J)!=-1||Ue.indexOf(K)!=-1}function q(Ue,st){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ue){var st=s[L].bindings;s[L].bindings=function(){for(var ae=st?st():{},ee=Ue[webModule.__softPermutationId],me=O;me<ee.length;me++){var Xe=ee[me];ae[Xe[O]]=Xe[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Ue=o.createElement(Q);if(Ue.id=L,Ue.style.cssText=R+S,Ue.tabIndex=-1,o.body.appendChild(Ue),t=Ue.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var st=document.compatMode==U?V:W;t.write(st+X),t.close()}}}function w(Ue){function st(ee){function me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=me();if(Xe){ee();return}function Ke(){if(!Xe){if(!me())return;Xe=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,Ke,!1),se&&clearInterval(se)}}o.addEventListener&&o.addEventListener(Z,Ke,!1);var se=setInterval(function(){Ke()},$)}function ae(ee){var me=u(),Xe=me.body,Ke=me.createElement(_);Ke.language=ab,Ke.crossOrigin=W,Ke.src=ee,webModule.__errFn&&(Ke.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),Xe.appendChild(Ke)}st(function(){ae(Ue)})}webModule.__startLoadingFragment=function(Ue){return C(Ue)},webModule.__installRunAsyncCode=function(Ue){var st=u(),ae=st.body,ee=st.createElement(_);ee.language=ab,ee.text=Ue,ae.appendChild(ee),ae.removeChild(ee)};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(Ue){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ue){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ue){var st=c[Ue];return st==null?null:st},r=d,webModule.__errFn=e}function B(){function Ue(se){var we=se.lastIndexOf(rb);we==-1&&(we=se.length);var fe=se.indexOf(sb);fe==-1&&(fe=se.length);var Ze=se.lastIndexOf(tb,Math.min(fe,we));return Ze>=O?se.substring(O,Ze+P):W}function st(se){if(!se.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=se+vb,se=Ue(we.src)}return se}function ae(){var se=__gwt_getMetaProperty(wb);return se!=null?se:W}function ee(){for(var se=o.getElementsByTagName(_),we=O;we<se.length;++we)if(se[we].src.indexOf(xb)!=-1)return Ue(se[we].src);return W}function me(){var se=o.getElementsByTagName(yb);return se.length>O?se[se.length-P].href:W}function Xe(){var se=o.location;return se.href==se.protocol+zb+se.host+se.pathname+se.search+se.hash}var Ke=ae();return Ke==W&&(Ke=ee()),Ke==W&&(Ke=me()),Ke==W&&Xe()&&(Ke=Ue(o.location.href)),Ke=st(Ke),Ke}function C(Ue){return Ue.match(/^\//)||Ue.match(/^[a-zA-Z]+:\/\//)?Ue:webModule.__moduleBase+Ue}function D(){var Ue=[],st=O,ae=[],ee=[];function me(se){var we=ee[se](),fe=ae[se];if(we in fe)return we;var Ze=[];for(var je in fe)Ze[fe[je]]=je;throw r&&r(se,Ze,we),null}if(__gwt_isKnownPropertyValue=function(se,we){return we in ae[se]},webModule.__getPropMap=function(){var se={};for(var we in ae)ae.hasOwnProperty(we)&&(se[we]=me(we));return se},webModule.__computePropValue=me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Ke=Xe.indexOf(Db);Ke!=-1&&(st=parseInt(Xe.substring(Ke+P),$),Xe=Xe.substring(O,Ke))}catch(se){}return webModule.__softPermutationId=st,C(Xe+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(Ue,st,ae){"use strict";ae.d(st,{Ax:function(){return Ke},Ds:function(){return se},KI:function(){return fe},SI:function(){return Xe},f1:function(){return me}});var ee=ae(11320);function me(Ze){let je=!0;if(Ze.length>0){for(let Ae=0;Ae<Ze.length;Ae++)if(Ze[Ae].compile_success==0||!Ze[Ae].compile_success){je=!1;break}}else je=!1;return je}function Xe(Ze,je=""){let Ae=[];for(let Ve=0;Ve<Ze.length;Ve++){let ke=Ze[Ve],Be=je?`${je}/${ke.name}`:`${ke.name}`;Ae.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:Be})}return Ae}function Ke(Ze,je,Ae){for(let Ve=0;Ve<Ze.length;Ve++){let ke=Ze[Ve];if(ke.key===je){ke.children=Ae;break}ke.children&&Ke(ke.children,je,Ae)}return Ze}function se(Ze,je,Ae){let Ve;return function(){let ke=this,Be=arguments,oe=function(){Ve=null,Ae||Ze.apply(ke,Be)},y=Ae&&!Ve;clearTimeout(Ve),Ve=setTimeout(oe,je),y&&Ze.apply(ke,Be)}}const we=!0,fe=ee.Z.API_SERVER},73646:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return je}});var ee=ae(67294),me=ae(69677),Xe=ae(66309),Ke=ae(2453),se={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},we=ae(38308);const{TextArea:fe}=me.default;class Ze extends ee.Component{constructor(Ve){super(Ve),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ve,onAnswerChange:ke,addChildAnswer:Be,exerciseIsPublish:oe,answers:y,activeOptionErrorIndex:a,flex:E="0 0 1000px"}=this.props;console.log("----",y);let{inputVisible:b,EditInputIndex:x}=this.state;return ee.createElement("div",{className:se.flex},ee.createElement("div",{className:`${se.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ve+1,"):"),ee.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},y==null?void 0:y.map((z,te)=>ee.createElement(ee.Fragment,null,x!==te?(z==null?void 0:z.length)>0?ee.createElement(Xe.default,{className:"edit-tag",key:z,closable:!((y==null?void 0:y.length)===1&&te===0),onClose:ne=>{ne.preventDefault(),(y==null?void 0:y.length)===1&&te===0?this.props.deleteChildAnswermain(Ve,te):this.props.deleteChildAnswer(Ve,te)}},ee.createElement("span",{onDoubleClick:ne=>{this.setState({EditInputIndex:te}),ne.preventDefault()}},z)):ee.createElement(me.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){Ke.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}ke(Ve,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):ee.createElement(me.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){Ke.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}ke(Ve,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!b&&ee.createElement(Xe.default,{className:"site-tag-plus",onClick:()=>{Be(Ve),this.setState({inputVisible:!0})}},ee.createElement(we.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var je=Ze},35566:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return oe}});var ee=ae(67294),me=ae(35567),Xe=Object.defineProperty,Ke=Object.defineProperties,se=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,je=(y,a,E)=>a in y?Xe(y,a,{enumerable:!0,configurable:!0,writable:!0,value:E}):y[a]=E,Ae=(y,a)=>{for(var E in a||(a={}))fe.call(a,E)&&je(y,E,a[E]);if(we)for(var E of we(a))Ze.call(a,E)&&je(y,E,a[E]);return y},Ve=(y,a)=>Ke(y,se(a)),ke=(y,a,E)=>je(y,typeof a!="symbol"?a+"":a,E);const Be="\u2581";class oe extends ee.Component{constructor(){super(...arguments),ke(this,"getChCountBeforeCursor",(a,E)=>{const b=E.line;let x=0;for(let te=0;te<b;te++)x+=a.getLine(te).split(Be).length-1;const z=a.getLine(b).substring(0,E.ch);return x+=z.split(Be).length-1,x}),ke(this,"onCMBeforeChange",(a,E)=>{const b=a.getRange(E.from,E.to);let x=0;if(E.text.forEach(z=>{x+=z.split(Be).length-1}),b&&b.indexOf(Be)!=-1){const z=b.split(Be).length-1,te=this.getChCountBeforeCursor(a,E.from);console.log(`\u5220\u9664${z}\u4E2A\uFF0C \u4E4B\u524D\u6709${te}\u4E2A\uFF0C\u65B0\u589E${x}\u4E2A`),this.props.deleteEmptyDisabled?E.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(te,z,x)}else if(x){const z=this.getChCountBeforeCursor(a,E.from);console.log(`\u65B0\u589E${x}\u4E2A\uFF0C\u4E4B\u524D\u6709${z}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(z,0,x)}})}render(){return ee.createElement(me.Z,Ve(Ae({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},63205:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return Ve}});var ee=ae(67294),me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=ae(94184),Ke=ae.n(Xe),se=ae(57953),we=ae(15979),fe=ae(33170),Ze=ae(28706),je=(ke,Be,oe)=>new Promise((y,a)=>{var E=z=>{try{x(oe.next(z))}catch(te){a(te)}},b=z=>{try{x(oe.throw(z))}catch(te){a(te)}},x=z=>z.done?y(z.value):Promise.resolve(z.value).then(E,b);x((oe=oe.apply(ke,Be)).next())}),Ve=({data:ke,className:Be,fullWidth:oe,style:y={},onClose:a,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ee.useRef)(null),te=(0,ee.useRef)(null),ne=(0,ee.useRef)(null),re=(0,ee.useRef)(null),[ge,de]=(0,ee.useState)(!1),[Ee,pe]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&We()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[ke==null?void 0:ke.visible]);const We=()=>je(void 0,null,function*(){de(!0),pe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Me=yield(0,Ze.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Me,z.current.onload=function(){Bt()},de(!1),pe("")}),Le=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",a()},lt=Me=>je(void 0,null,function*(){de(!0),pe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const nt=yield(0,fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Me.dataUrl}});nt!=null&&nt.id&&!x?(yield(0,fe.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:nt==null?void 0:nt.id,settings:JSON.stringify(Me.state)}})).status===0&&E():nt!=null&&nt.id&&E(nt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),pe("")}),Dt=()=>{const Me=document.querySelector('a[href="https://markerjs.com/"]');Me&&Me.parentNode&&(Me.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ot=>{const rt=document.querySelector(ot.name);rt&&rt.setAttribute("title",ot.title)})},Bt=()=>{te.current=new we.hP(z.current),te.current.targetRoot=re.current,te.current.addEventListener("render",lt),te.current.addEventListener("beforeclose",Le),b&&(te.current.availableMarkerTypes=te.current.ALL_MARKER_TYPES,te.current.uiStyleSettings.redoButtonVisible=!0,te.current.uiStyleSettings.notesButtonVisible=!0,te.current.uiStyleSettings.zoomButtonVisible=!0,te.current.uiStyleSettings.zoomOutButtonVisible=!0,te.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=te.current.uiStyleSettings,te.current.show(),ke!=null&&ke.snapshotData&&te.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Dt()},300)};return ee.createElement(ee.Fragment,null,(ke==null?void 0:ke.visible)&&ee.createElement(se.Z,{spinning:ge,tip:Ee,style:{position:"absolute"}},ee.createElement("div",{ref:re,className:Ke()(me.imageDimensions,Be,oe?me.fullWidth:""),style:y},ee.createElement("img",{className:me.img,ref:z}))))}},36527:function(Ue,st,ae){"use strict";var ee=ae(67294),me=ae(71230),Xe=ae(15746),Ke=ae(66368),se=ae(71577),we=ae(85725),fe=ae(71736),Ze=ae(84279),je=ae(67294);const Ae=(0,ee.forwardRef)(({callback:Ve,showSaveButton:ke,value:Be=""},oe)=>{const y=(0,ee.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=te=>{y.current.setValue(y.current.getValue()+" "+te.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:je.createElement(me.Z,{className:fe.Z.lists,gutter:[10,10]},a.map((te,ne)=>je.createElement(Xe.Z,{flex:"110px",className:fe.Z.item},je.createElement("div",null,je.createElement(we.Z,{value:`$$${te.value}$$`}),te.name),je.createElement("div",{className:fe.Z.children},te.children.map((re,ge)=>je.createElement("div",{key:ge},je.createElement("h1",null,re.name),je.createElement(me.Z,{gutter:[10,10]},re.data.map((de,Ee)=>je.createElement(Xe.Z,{key:Ee,onClick:()=>b(de),className:fe.Z.diamond},je.createElement(we.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:je.createElement(me.Z,{className:fe.Z.lists,gutter:[10,10]},E.map((te,ne)=>je.createElement(Xe.Z,{flex:"110px",className:fe.Z.item},je.createElement("div",null,je.createElement(we.Z,{value:"`$$"+te.value+"$$`"}),te.name),je.createElement("div",{className:fe.Z.children},te.children.map((re,ge)=>je.createElement("div",{key:ge},re.name&&je.createElement("h1",null,re.name),je.createElement(me.Z,{gutter:[10,10]},re.data.map((de,Ee)=>je.createElement(Xe.Z,{key:Ee,onClick:()=>b(de),className:fe.Z.diamond},je.createElement(we.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var te=document.createElement("div");te.innerHTML=y.current.getValue();var ne=te.innerText;return Ve&&Ve(ne),ne};return(0,ee.useImperativeHandle)(oe,()=>({getData:z})),je.createElement("div",{className:fe.Z.mathWrap},je.createElement(Ke.default,{defaultActiveKey:"1",items:x}),je.createElement("math-field",{locale:"zh_cn",className:fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},Be||""),ke&&je.createElement("div",{className:fe.Z.button},je.createElement(se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});st.Z=Ae},57444:function(Ue,st,ae){"use strict";ae.d(st,{h:function(){return te}});var ee=ae(67294),me=ae(42563),Xe=ae(22150),Ke=ae(71577),se=ae(4631),we=ae.n(se),fe=ae(71749),Ze=ae(30483),je=Object.defineProperty,Ae=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,y=(ne,re,ge)=>re in ne?je(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,a=(ne,re)=>{for(var ge in re||(re={}))Be.call(re,ge)&&y(ne,ge,re[ge]);if(ke)for(var ge of ke(re))oe.call(re,ge)&&y(ne,ge,re[ge]);return ne},E=(ne,re)=>Ae(ne,Ve(re));const b=me.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};st.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,ee.useState)("python");function Ee(We){de(z[We][1])}function pe(We){ne(We)}return ee.createElement(Xe.default,E(a({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pe,style:{width:500}}),ee.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(me.default,{getPopupContainer:We=>We.parentNode,onChange:Ee},Object.keys(z).map(We=>ee.createElement(b,{key:We,value:We},z[We][0])))),ee.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(te,{mode:ge})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Ke.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function te({value:ne,onChange:re,mode:ge,options:de={}}){const Ee=(0,ee.useRef)(),[pe,We]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(pe){let Le=function(lt){const Dt=lt.getValue();re&&re(Dt)};return pe.on("change",Le),()=>{pe.off("change",Le)}}},[pe,re]),(0,ee.useEffect)(()=>{pe&&pe.setOption("mode",ge)},[pe,ge]),(0,ee.useEffect)(()=>{pe&&(ne!==pe.getValue()||ne==="")&&setTimeout(()=>{pe.setValue(ne||"")},300)},[pe,ne]),(0,ee.useEffect)(()=>{if(Ee.current&&!pe){const Le=we().fromTextArea(Ee.current,a({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));We(Le)}},[Ee.current,pe]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Ee}))}},35567:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return yo}});var ee=ae(67294),me=ae(4631),Xe=ae.n(me),Ke=ae(91033),se=ae(71749),we=ae(57341),fe=ae(82801),Ze=ae(88386),je=ae(49047),Ae=ae(80785),Ve=ae(85725),ke=({value:$e="",className:Ie,showTextOnly:Fe,showLines:Pt,style:Yt={}})=>{const Jt=(0,ee.useMemo)(()=>"",[$e]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:Jt}}))},Be=ae(67294),oe=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=($e,Ie,Fe)=>Ie in $e?oe($e,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):$e[Ie]=Fe,te=($e,Ie)=>{for(var Fe in Ie||(Ie={}))b.call(Ie,Fe)&&z($e,Fe,Ie[Fe]);if(E)for(var Fe of E(Ie))x.call(Ie,Fe)&&z($e,Fe,Ie[Fe]);return $e},ne=($e,Ie)=>y($e,a(Ie));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:$e,title:Ie,icon:Fe,actionName:Pt,className:Yt="",children:Jt}){function Gn(){$e(Pt)}return Be.createElement("a",{title:Ie,className:Yt,onClick:Gn},Be.createElement("i",{className:`${Fe}`}),Jt)}var de=({watch:$e,showNullButton:Ie,showNullProgramButton:Fe,onActionCallback:Pt,fullScreen:Yt,insertTemp:Jt,hidetoolBar:Gn,extraUse:An})=>{const kn=[...re,{title:`${$e?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$e?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Be.createElement("ul",{className:"markdown-toolbar-container"},!Gn&&kn.map((na,La)=>Be.createElement("li",{key:La},na.actionName?Be.createElement(ge,ne(te({},na),{onActionCallback:Pt})):Be.createElement("span",{className:"v-line"}))),Ie?Be.createElement("li",null,Be.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Pt},Be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Fe?Be.createElement(Be.Fragment,null,Be.createElement("li",null,Be.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Pt},Be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Be.createElement("li",null,Be.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Pt},Be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Jt&&Be.createElement("li",null,Be.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Jt}`,onActionCallback:Pt},Be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),An&&Be.createElement("li",null,An),Be.createElement("li",{className:"btn-full-screen"},Be.createElement(ge,{icon:`${Yt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Yt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Pt})))},Ee=ae(76621),pe=ae(22150),We=ae(69677),Le=ae(71577),lt=Object.defineProperty,Dt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,rt=($e,Ie,Fe)=>Ie in $e?lt($e,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):$e[Ie]=Fe,St=($e,Ie)=>{for(var Fe in Ie||(Ie={}))nt.call(Ie,Fe)&&rt($e,Fe,Ie[Fe]);if(Me)for(var Fe of Me(Ie))ot.call(Ie,Fe)&&rt($e,Fe,Ie[Fe]);return $e},kt=($e,Ie)=>Dt($e,Bt(Ie));const Sn={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:$e,onCancel:Ie})=>{function Fe(Pt){$e(Pt)}return ee.createElement(pe.default,kt(St({},Sn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Fe,style:{width:500}}),ee.createElement(pe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(We.default,null)),ee.createElement(pe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(We.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Le.ZP,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))},Bn=ae(57444),De=ae(70859),Ye=ae(14446),gt=ae(71230),Kt=ae(63205),ct=ae(67294),Nt=({callback:$e,onCancel:Ie})=>{const Fe=document.createElement("canvas"),Pt=Fe.getContext("2d");Fe.width=1e3,Fe.height=800,Pt.fillStyle="#ffffff",Pt.fillRect(0,0,Fe.width,Fe.height);const Yt=Fe.toDataURL("image/png");return ct.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ct.createElement(gt.Z,{style:{height:"100vh"}},ct.createElement(Kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yt,visible:!0,title:String(Date.now())},onOk:Jt=>{$e({src:Jt.url})},onClose:Ie})))},ve=ae(23495);function yt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(yt,go.CommandHandler),yt.prototype.canAlignSelection=function(){var $e=this.diagram;return!($e===null||$e.isReadOnly||$e.isModelReadOnly||$e.selection.count<2)},yt.prototype.alignLeft=function(){var $e=this.diagram;$e.startTransaction("aligning left");var Ie=1/0;$e.selection.each(function(Fe){Fe instanceof go.Link||(Ie=Math.min(Fe.position.x,Ie))}),$e.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Ie,Fe.position.y))}),$e.commitTransaction("aligning left")},yt.prototype.alignRight=function(){var $e=this.diagram;$e.startTransaction("aligning right");var Ie=-1/0;$e.selection.each(function(Fe){if(!(Fe instanceof go.Link)){var Pt=Fe.actualBounds.x+Fe.actualBounds.width;Ie=Math.max(Pt,Ie)}}),$e.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Ie-Fe.actualBounds.width,Fe.position.y))}),$e.commitTransaction("aligning right")},yt.prototype.alignTop=function(){var $e=this.diagram;$e.startTransaction("alignTop");var Ie=1/0;$e.selection.each(function(Fe){Fe instanceof go.Link||(Ie=Math.min(Fe.position.y,Ie))}),$e.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Fe.position.x,Ie))}),$e.commitTransaction("alignTop")},yt.prototype.alignBottom=function(){var $e=this.diagram;$e.startTransaction("aligning bottom");var Ie=-1/0;$e.selection.each(function(Fe){if(!(Fe instanceof go.Link)){var Pt=Fe.actualBounds.y+Fe.actualBounds.height;Ie=Math.max(Pt,Ie)}}),$e.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Fe.actualBounds.x,Ie-Fe.actualBounds.height))}),$e.commitTransaction("aligning bottom")},yt.prototype.alignCenterX=function(){var $e=this.diagram,Ie=$e.selection.first();if(Ie){$e.startTransaction("aligning Center X");var Fe=Ie.actualBounds.x+Ie.actualBounds.width/2;$e.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Fe-Pt.actualBounds.width/2,Pt.actualBounds.y))}),$e.commitTransaction("aligning Center X")}},yt.prototype.alignCenterY=function(){var $e=this.diagram,Ie=$e.selection.first();if(Ie){$e.startTransaction("aligning Center Y");var Fe=Ie.actualBounds.y+Ie.actualBounds.height/2;$e.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Pt.actualBounds.x,Fe-Pt.actualBounds.height/2))}),$e.commitTransaction("aligning Center Y")}},yt.prototype.alignColumn=function($e){var Ie=this.diagram;Ie.startTransaction("align Column"),$e===void 0&&($e=0),$e=parseFloat($e);var Fe=new Array;Ie.selection.each(function(An){An instanceof go.Link||Fe.push(An)});for(var Pt=0;Pt<Fe.length-1;Pt++){var Yt=Fe[Pt],Jt=Yt.actualBounds.y+Yt.actualBounds.height+$e,Gn=Fe[Pt+1];Gn.move(new go.Point(Yt.actualBounds.x,Jt))}Ie.commitTransaction("align Column")},yt.prototype.alignRow=function($e){$e===void 0&&($e=0),$e=parseFloat($e);var Ie=this.diagram;Ie.startTransaction("align Row");var Fe=new Array;Ie.selection.each(function(An){An instanceof go.Link||Fe.push(An)});for(var Pt=0;Pt<Fe.length-1;Pt++){var Yt=Fe[Pt],Jt=Yt.actualBounds.x+Yt.actualBounds.width+$e,Gn=Fe[Pt+1];Gn.move(new go.Point(Jt,Yt.actualBounds.y))}Ie.commitTransaction("align Row")},yt.prototype.canRotate=function($e){var Ie=this.diagram;return!(Ie===null||Ie.isReadOnly||Ie.isModelReadOnly||Ie.selection.count<1)},yt.prototype.rotate=function($e){$e===void 0&&($e=90);var Ie=this.diagram;Ie.startTransaction("rotate "+$e.toString());var Ie=this.diagram;Ie.selection.each(function(Fe){Fe instanceof go.Link||Fe instanceof go.Group||(Fe.angle+=$e)}),Ie.commitTransaction("rotate "+$e.toString())},yt.prototype.pullToFront=function(){var $e=this.diagram;$e.startTransaction("pullToFront");var Ie=new go.Map;$e.selection.each(function(Fe){Ie.set(Fe.layer,0)}),Ie.iteratorKeys.each(function(Fe){var Pt=0;Fe.parts.each(function(Yt){if(!Yt.isSelected){var Jt=Yt.zOrder;isNaN(Jt)?Yt.zOrder=0:Pt=Math.max(Pt,Jt)}}),Ie.set(Fe,Pt)}),$e.selection.each(function(Fe){yt._assignZOrder(Fe,Ie.get(Fe.layer)+1)}),$e.commitTransaction("pullToFront")},yt.prototype.pushToBack=function(){var $e=this.diagram;$e.startTransaction("pushToBack");var Ie=new go.Map;$e.selection.each(function(Fe){Ie.set(Fe.layer,0)}),Ie.iteratorKeys.each(function(Fe){var Pt=0;Fe.parts.each(function(Yt){if(!Yt.isSelected){var Jt=Yt.zOrder;isNaN(Jt)?Yt.zOrder=0:Pt=Math.min(Pt,Jt)}}),Ie.set(Fe,Pt)}),$e.selection.each(function(Fe){yt._assignZOrder(Fe,Ie.get(Fe.layer)-1-yt._findGroupDepth(Fe))}),$e.commitTransaction("pushToBack")},yt._assignZOrder=function($e,Ie,Fe){Fe===void 0&&(Fe=$e),$e.layer===Fe.layer&&($e.zOrder=Ie),$e instanceof go.Group&&$e.memberParts.each(function(Pt){yt._assignZOrder(Pt,Ie+1,Fe)})},yt._findGroupDepth=function($e){if($e instanceof go.Group){var Ie=0;return $e.memberParts.each(function(Fe){Ie=Math.max(Ie,yt._findGroupDepth(Fe))}),Ie+1}else return 0},yt.prototype.doKeyDown=function(){var $e=this.diagram;if($e!==null){var Ie=$e.lastInput;if(Ie.key==="Up"||Ie.key==="Down"||Ie.key==="Left"||Ie.key==="Right"){var Fe=this.arrowKeyBehavior;if(Fe==="none")return;if(Fe==="select"){this._arrowKeySelect();return}else if(Fe==="move"){this._arrowKeyMove();return}else if(Fe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},yt.prototype._getAllParts=function(){var $e=new Array;return this.diagram.nodes.each(function(Ie){$e.push(Ie)}),this.diagram.parts.each(function(Ie){$e.push(Ie)}),$e},yt.prototype._arrowKeyMove=function(){var $e=this.diagram,Ie=$e.lastInput,Fe=0,Pt=0;if(Ie.control||Ie.meta)Fe=1,Pt=1;else if($e.grid!==null){var Yt=$e.grid.gridCellSize;Pt=Yt.width,Fe=Yt.height}$e.startTransaction("arrowKeyMove"),$e.selection.each(function(Jt){Ie.key==="Up"?Jt.move(new go.Point(Jt.actualBounds.x,Jt.actualBounds.y-Fe)):Ie.key==="Down"?Jt.move(new go.Point(Jt.actualBounds.x,Jt.actualBounds.y+Fe)):Ie.key==="Left"?Jt.move(new go.Point(Jt.actualBounds.x-Pt,Jt.actualBounds.y)):Ie.key==="Right"&&Jt.move(new go.Point(Jt.actualBounds.x+Pt,Jt.actualBounds.y))}),$e.commitTransaction("arrowKeyMove")},yt.prototype._arrowKeySelect=function(){var $e=this.diagram,Ie=$e.lastInput,Fe=null;Ie.key==="Up"?Fe=this._findNearestPartTowards(270):Ie.key==="Down"?Fe=this._findNearestPartTowards(90):Ie.key==="Left"?Fe=this._findNearestPartTowards(180):Ie.key==="Right"&&(Fe=this._findNearestPartTowards(0)),Fe!==null&&(Ie.shift?Fe.isSelected=!0:Ie.control||Ie.meta?Fe.isSelected=!Fe.isSelected:$e.select(Fe))},yt.prototype._findNearestPartTowards=function($e){var Ie=this.diagram.selection.first();if(Ie===null)return null;for(var Fe=Ie.actualBounds.center,Pt=this._getAllParts(),Yt=1/0,Jt=Ie,Gn=0;Gn<Pt.length;Gn++){var An=Pt[Gn];if(An!==Ie&&An.canSelect()){var kn=An.actualBounds.center,na=Fe.directionPoint(kn),La=this._angleCloseness(na,$e);if(La<=45){var ft=Fe.distanceSquaredPoint(kn);ft*=1+Math.sin(La*Math.PI/180),ft<Yt&&(Yt=ft,Jt=An)}}}return Jt},yt.prototype._angleCloseness=function($e,Ie){return Math.min(Math.abs(Ie-$e),Math.min(Math.abs(Ie+360-$e),Math.abs(Ie-360-$e)))},yt.prototype._arrowKeyTree=function(){var $e=this.diagram,Ie=$e.selection.first();if(Ie instanceof go.Node){var Fe=$e.lastInput;if(Fe.key==="Right"){if(!Ie.isTreeLeaf)if(!Ie.isTreeExpanded)$e.commandHandler.canExpandTree(Ie)&&$e.commandHandler.expandTree(Ie);else{var Pt=this._sortTreeChildrenByY(Ie).first();Pt!==null&&$e.select(Pt)}}else if(Fe.key==="Left")if(!Ie.isTreeLeaf&&Ie.isTreeExpanded)$e.commandHandler.canCollapseTree(Ie)&&$e.commandHandler.collapseTree(Ie);else{var Yt=Ie.findTreeParentNode();Yt!==null&&$e.select(Yt)}else if(Fe.key==="Up"){var Yt=Ie.findTreeParentNode();if(Yt!==null){var Jt=this._sortTreeChildrenByY(Yt),Gn=Jt.indexOf(Ie);if(Gn>0){for(var An=Jt.elt(Gn-1);An!==null&&An.isTreeExpanded&&!An.isTreeLeaf;){var kn=this._sortTreeChildrenByY(An);An=kn.last()}An!==null&&$e.select(An)}else $e.select(Yt)}}else if(Fe.key==="Down")if(Ie.isTreeExpanded&&!Ie.isTreeLeaf){var Pt=this._sortTreeChildrenByY(Ie).first();Pt!==null&&$e.select(Pt)}else for(;Ie!==null;){var Yt=Ie.findTreeParentNode();if(Yt===null)break;var Jt=this._sortTreeChildrenByY(Yt),Gn=Jt.indexOf(Ie);if(Gn<Jt.length-1){$e.select(Jt.elt(Gn+1));break}else Ie=Yt}var na=$e.selection.first();na!==null&&$e.scrollToRect(na.actualBounds)}},yt.prototype._sortTreeChildrenByY=function($e){var Ie=new go.List().addAll($e.findTreeChildrenNodes());return Ie.sort(function(Fe,Pt){var Yt=Fe.location,Jt=Pt.location;return Yt.y<Jt.y?-1:Yt.y>Jt.y?1:Yt.x<Jt.x?-1:Yt.x>Jt.x?1:0}),Ie},yt.prototype.copyToClipboard=function($e){go.CommandHandler.prototype.copyToClipboard.call(this,$e),this._lastPasteOffset.set(this.pasteOffset)},yt.prototype.pasteFromClipboard=function(){var $e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts($e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),$e},Object.defineProperty(yt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function($e){if($e!=="move"&&$e!=="select"&&$e!=="scroll"&&$e!=="tree"&&$e!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+$e);this._arrowKeyBehavior=$e}}),Object.defineProperty(yt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function($e){if(!($e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+$e);this._pasteOffset.set($e)}});var on=yt,Tn=ae(18023),xt=ae(15746),tt=ae(33170),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ne=ae(67294),et=($e,Ie,Fe)=>new Promise((Pt,Yt)=>{var Jt=kn=>{try{An(Fe.next(kn))}catch(na){Yt(na)}},Gn=kn=>{try{An(Fe.throw(kn))}catch(na){Yt(na)}},An=kn=>kn.done?Pt(kn.value):Promise.resolve(kn.value).then(Jt,Gn);An((Fe=Fe.apply($e,Ie)).next())});function dt({onCancel:$e,callback:Ie}){let Fe=(0,ee.useRef)(),Pt=(0,ee.useRef)(),Yt=(0,ee.useRef)(),Jt=(0,ee.useRef)(!1);const Gn=(0,ee.useRef)(!1),[An,kn]=(0,ee.useState)(0);function na(){const ft=ve.bx.make,Hn={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"};Fe.current=new ve.S0(Pt.current,{padding:20,grid:ft(ve.s_,"Grid",ft(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ft(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Te=>{var ye=Te.diagram.commandHandler.addTopLevelParts(Te.diagram.selection,!0);ye||Te.diagram.currentTool.doCancel()},commandHandler:ft(on),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Te=>{var ye=Te.subject;ye.location=ye.location.copy().snapToGridPoint(Te.diagram.grid.gridOrigin,Te.diagram.grid.gridCellSize),setTimeout(()=>{Te.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Te=>{var ye=Te.subject;setTimeout(()=>{Te.diagram.commandHandler.editTextBlock()})},LinkRelinked:Te=>{var ye=Te.parameter.part;ye.invalidateConnectedLinks();var ht=Te.subject;Te.diagram.toolManager.linkingTool.isForwards?ht.toNode.invalidateConnectedLinks():ht.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Fe.current.nodeTemplate=ft(ve.NB,"Auto",{locationSpot:ve.z6.Center,locationObjectName:"SHAPE",desiredSize:new ve.$u(120,60),minSize:new ve.$u(40,40),resizable:!0,resizeCellSize:new ve.$u(10,10),rotatable:!0},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),new ve.KX("desiredSize","size",ve.$u.parse).makeTwoWay(ve.$u.stringify),ft(ve.bn,{name:"SHAPE",fill:Hn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("figure"),new ve.KX("fill"),new ve.KX("stroke","borderColor"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),ft(ve.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ft(ve.al,{margin:1,textAlign:"center",overflow:ve.al.OverflowEllipsis,editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),Fe.current.nodeTemplate.toolTip=ft("ToolTip",ft(ve.s_,"Vertical",{maxSize:new ve.$u(200,NaN)},ft(ve.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ve.KX("text")),ft(ve.al,{font:"10pt sans-serif",textAlign:"center"},new ve.KX("text","details"))));function Ta(Te,ye){var ht=(it,un)=>{it.handled=!0,it.diagram.model.commit(yn=>{var On=un.part.adornedPart,It=new ve.E9().setRectSpot(On.actualBounds,Te);It.subtract(On.location),It.scale(2,2),It.x+=Math.sign(It.x)*130,It.y+=Math.sign(It.y)*130,It.add(On.location),It.snapToGridPoint(it.diagram.grid.gridOrigin,it.diagram.grid.gridCellSize);var Rn=yn.copyNodeData(On.data);yn.setGroupKeyForNodeData(Rn,yn.getGroupKeyForNodeData(On.data)),yn.addNodeData(Rn);var Pe={from:On.key,to:yn.getKeyForNodeData(Rn)};yn.addLinkData(Pe);var he=it.diagram.findNodeForData(Rn);he.location=It,it.diagram.select(he),setTimeout(()=>{it.diagram.commandHandler.editTextBlock()},20)})};return ft(ve.bn,{figure:ye,alignment:Te,alignmentFocus:Te.opposite(),width:Te.equals(ve.z6.Top)||Te.equals(ve.z6.Bottom)?25:18,height:Te.equals(ve.z6.Top)||Te.equals(ve.z6.Bottom)?18:25,fill:"orange",stroke:Hn.white,strokeWidth:4,mouseEnter:(it,un)=>un.fill="dodgerblue",mouseLeave:(it,un)=>un.fill="orange",isActionable:!0,click:ht,contextClick:ht})}function so(Te){return ft(ve.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:(ye,ht)=>ht.fill="dodgerblue",mouseLeave:(ye,ht)=>ht.fill="orange",click:(ye,ht)=>{ye.diagram.commandHandler.showContextMenu(ht.part.adornedPart)}},Te||{})}Fe.current.nodeTemplate.selectionAdornmentTemplate=ft(ve.uz,"Spot",ft(ve.Vm,{padding:10}),Ta(ve.z6.Top,"TriangleUp"),Ta(ve.z6.Left,"TriangleLeft"),Ta(ve.z6.Right,"TriangleRight"),Ta(ve.z6.Bottom,"TriangleDown"),so({alignment:new ve.z6(.75,0)}));function wa(Te,ye){return(ht,it)=>{ht.handled=!0,ht.diagram.model.commit(un=>{un.set(it.part.adornedPart.data,Te,ye)})}}function aa(Te,ye){return ye||(ye="color"),ft(ve.bn,{width:16,height:16,stroke:"lightgray",fill:Te,margin:1,background:"transparent",mouseEnter:(ht,it)=>it.stroke="dodgerblue",mouseLeave:(ht,it)=>it.stroke="lightgray",click:wa(ye,Te),contextClick:wa(ye,Te)})}function ho(){return[ft("ContextMenuButton",ft(ve.s_,"Horizontal",aa(Hn.white,"fill"),aa(Hn.beige,"fill"),aa(Hn.extralightblue,"fill"),aa(Hn.extralightred,"fill"))),ft("ContextMenuButton",ft(ve.s_,"Horizontal",aa(Hn.lightgray,"fill"),aa(Hn.lightgreen,"fill"),aa(Hn.lightblue,"fill"),aa(Hn.lightred,"fill")))]}function to(){return[ft("ContextMenuButton",ft(ve.s_,"Horizontal",aa(Hn.black),aa(Hn.green),aa(Hn.blue),aa(Hn.red))),ft("ContextMenuButton",ft(ve.s_,"Horizontal",aa(Hn.white),aa(Hn.magenta),aa(Hn.purple),aa(Hn.orange)))]}function To(Te,ye){return ye||(ye="thickness"),ft(ve.bn,"LineH",{width:16,height:16,strokeWidth:Te,margin:1,background:"transparent",mouseEnter:(ht,it)=>it.background="dodgerblue",mouseLeave:(ht,it)=>it.background="transparent",click:wa(ye,Te),contextClick:wa(ye,Te)})}function wo(Te,ye){return ye||(ye="dash"),ft(ve.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Te,margin:1,background:"transparent",mouseEnter:(ht,it)=>it.background="dodgerblue",mouseLeave:(ht,it)=>it.background="transparent",click:wa(ye,Te),contextClick:wa(ye,Te)})}function uo(){return[ft("ContextMenuButton",ft(ve.s_,"Horizontal",To(1),To(2),To(3),To(4))),ft("ContextMenuButton",ft(ve.s_,"Horizontal",wo(null),wo([2,4]),wo([4,4])))]}function _a(Te,ye){return ye||(ye="figure"),ft(ve.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Te,margin:1,background:"transparent",mouseEnter:(ht,it)=>it.fill="dodgerblue",mouseLeave:(ht,it)=>it.fill="lightgray",click:wa(ye,Te),contextClick:wa(ye,Te)})}Fe.current.nodeTemplate.contextMenu=ft("ContextMenu",ft("ContextMenuButton",ft(ve.s_,"Horizontal",_a("Rectangle"),_a("RoundedRectangle"),_a("Ellipse"),_a("Diamond"))),ft("ContextMenuButton",ft(ve.s_,"Horizontal",_a("Parallelogram2"),_a("ManualOperation"),_a("Procedure"),_a("Cylinder1"))),ft("ContextMenuButton",ft(ve.s_,"Horizontal",_a("Terminator"),_a("CreateRequest"),_a("Document"),_a("TriangleDown"))),ho(),to(),uo()),Fe.current.groupTemplate=ft(ve.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ve.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Te,ye)=>{var ht=ye.addMembers(ye.diagram.selection,!0);ht||ye.diagram.currentTool.doCancel()},avoidable:!1},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),ft(ve.s_,"Auto",{name:"BODY"},ft(ve.bn,{parameter1:10,fill:Hn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("fill"),new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),ft(ve.Vm,{background:"transparent",margin:20})),ft(ve.al,{alignment:ve.z6.Top,alignmentFocus:ve.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ve.KX("text"),new ve.KX("stroke","color"))),Fe.current.groupTemplate.selectionAdornmentTemplate=ft(ve.uz,"Spot",ft(ve.s_,"Auto",ft(ve.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ft(ve.Vm,{margin:1.5})),so({alignment:ve.z6.TopRight,alignmentFocus:ve.z6.BottomRight})),Fe.current.groupTemplate.contextMenu=ft("ContextMenu",ho(),to(),uo()),Fe.current.linkTemplate=ft(ve.rU,{layerName:"Foreground",routing:ve.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ve.KX("fromSpot","fromSpot",ve.z6.parse),new ve.KX("toSpot","toSpot",ve.z6.parse),new ve.KX("fromShortLength","dir",Te=>Te>=1?10:0),new ve.KX("toShortLength","dir",Te=>Te>=1?10:0),new ve.KX("points").makeTwoWay(),ft(ve.bn,{strokeWidth:2},new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),ft(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,0),segmentOrientation:ve.rU.OrientAlong,alignmentFocus:ve.z6.Right,figure:"circle",width:10,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Te=>Te===1)),ft(ve.bn,{segmentIndex:-1,segmentOffset:new ve.E9(-10,6),segmentOrientation:ve.rU.OrientPlus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Te=>Te>=1),new ve.KX("width","thickness",Te=>7+3*Te),new ve.KX("height","thickness",Te=>7+3*Te),new ve.KX("segmentOffset","thickness",Te=>new ve.E9(-15,4+1.5*Te))),ft(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,-6),segmentOrientation:ve.rU.OrientMinus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Te=>Te===2),new ve.KX("width","thickness",Te=>7+3*Te),new ve.KX("height","thickness",Te=>7+3*Te),new ve.KX("segmentOffset","thickness",Te=>new ve.E9(-15,4+1.5*Te))),ft(ve.al,{alignmentFocus:new ve.z6(0,1,-4,0),editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),Fe.current.linkTemplate.selectionAdornmentTemplate=ft(ve.uz,ft(ve.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Co(2)},new ve.KX("pathPattern","thickness",Co)),so({alignmentFocus:new ve.z6(0,0,-6,-4)}));function Co(Te){return ft(ve.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Te+4).toString()+" H3"})}function ze(Te){var ye="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Te===0?ye="M0 0 M16 16 M0 8 L16 8":Te===2&&(ye="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ft(ve.bn,{geometryString:ye,margin:2,background:"transparent",mouseEnter:(ht,it)=>it.background="dodgerblue",mouseLeave:(ht,it)=>it.background="transparent",click:wa("dir",Te),contextClick:wa("dir",Te)})}function Ge(Te){var ye=(ht,it)=>{ht.handled=!0,ht.diagram.model.commit(un=>{var yn=it.part.adornedPart;un.set(yn.data,Te?"toSpot":"fromSpot",ve.z6.stringify(ve.z6.AllSides)),(Te?yn.toNode:yn.fromNode).invalidateConnectedLinks()})};return ft(ve.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ht,it)=>it.background="dodgerblue",mouseLeave:(ht,it)=>it.background="transparent",click:ye,contextClick:ye})}function le(Te,ye){var ht=0,it=ve.z6.RightSide;Te.equals(ve.z6.Top)?(ht=270,it=ve.z6.TopSide):Te.equals(ve.z6.Left)?(ht=180,it=ve.z6.LeftSide):Te.equals(ve.z6.Bottom)&&(ht=90,it=ve.z6.BottomSide),ye||(ht-=180);var un=(yn,On)=>{yn.handled=!0,yn.diagram.model.commit(It=>{var Rn=On.part.adornedPart;It.set(Rn.data,ye?"toSpot":"fromSpot",ve.z6.stringify(it)),(ye?Rn.toNode:Rn.fromNode).invalidateConnectedLinks()})};return ft(ve.bn,{alignment:Te,alignmentFocus:Te.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ht,background:"transparent",mouseEnter:(yn,On)=>On.background="dodgerblue",mouseLeave:(yn,On)=>On.background="transparent",click:un,contextClick:un})}Fe.current.linkTemplate.contextMenu=ft("ContextMenu",to(),uo(),ft("ContextMenuButton",ft(ve.s_,"Horizontal",ze(0),ze(1),ze(2))),ft("ContextMenuButton",ft(ve.s_,"Horizontal",ft(ve.s_,"Spot",Ge(!1),le(ve.z6.Top,!1),le(ve.z6.Left,!1),le(ve.z6.Right,!1),le(ve.z6.Bottom,!1)),ft(ve.s_,"Spot",{margin:new ve.Zt(0,0,0,2)},Ge(!0),le(ve.z6.Top,!0),le(ve.z6.Left,!0),le(ve.z6.Right,!0),le(ve.z6.Bottom,!0)))));const ut=`{ "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 In=["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 oa(Te){return console.log("shapeName:",Te),In.indexOf(Te)>=0}var fn=new ve.YI(Yt.current,{maxSelectionCount:1,linkTemplate:ft(ve.rU,{locationSpot:ve.z6.Center,selectionAdornmentTemplate:ft(ve.uz,"Link",{locationSpot:ve.z6.Center},ft(ve.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ft(ve.bn,{toArrow:"Standard",stroke:null}))},{routing:ve.rU.AvoidsNodes,curve:ve.rU.JumpOver,corner:5,toShortLength:4},new ve.KX("points"),ft(ve.bn,{isPanelMain:!0,strokeWidth:2}),ft(ve.bn,{toArrow:"Standard",stroke:null})),model:new ve.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ve.bn.getFigureGenerators().toArray().map(Te=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Te.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Fe.current.addDiagramListener("TextEdited",function(Te){var ye;const ht=Te.subject.part;var it=(ye=document.activeElement)==null?void 0:ye.value;typeof it=="string"&&it.trim()===""&&Fe.current.model.commit(function(un){un.set(ht.data,"text","\u672A\u547D\u540D"),Fe.current.commandHandler.stopCommand()},"increment")}),fn.nodeTemplate=ft(ve.NB,"Auto",{locationSpot:ve.z6.Center},new ve.KX("location","location",ve.E9.parse).makeTwoWay(ve.E9.stringify),ft(ve.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 ve.KX("stroke").makeTwoWay(),new ve.KX("fill").makeTwoWay(),new ve.KX("figure")),ft(ve.al,{margin:new ve.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ve.$u(16,16),maxSize:new ve.$u(10,NaN),textAlign:"center",editable:!0},new ve.KX("key").makeTwoWay())),setTimeout(()=>{Fe.current.grid=ft(ve.s_,"Grid",ft(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ft(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Fe.current.grid.visible=!0,Fe.current.grid.gridCellStroke="darkgray",Fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Fe.current,Fe.current}const La=()=>et(this,null,function*(){var ft=Fe.current.makeImage();const Hn=yield(0,tt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ft.src}});Ie({src:Hn.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{na()},500),kn(An+1),()=>{Fe.current=null}),[]),Ne.createElement("div",{ref:Gn,className:Jt.current?`${Re.maxH60} body-overflow-initial`:"body-overflow-initial"},Ne.createElement(Ye.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!An,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ne.createElement(gt.Z,null,Ne.createElement(xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ne.createElement(xt.Z,{onClick:()=>{var ft,Hn,Ta=Fe.current.selection.first();if(Jt.current=!Jt.current,document.activeElement&&Ta){let so=(Hn=(ft=document.activeElement)==null?void 0:ft.value)==null?void 0:Hn.trim();typeof so=="string"&&Fe.current.model.commit(function(wa){wa.set(Ta.data,"text",so||"\u672A\u547D\u540D"),Fe.current.commandHandler.stopCommand()},"increment")}kn(An+1)}},Ne.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:$e},Ne.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Re.flowChartWrp},Ne.createElement("div",{style:{display:"flex",height:"100%"}},Ne.createElement("div",{style:{width:"300px",height:"100%"}},Ne.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ne.createElement("div",{style:{height:"calc(100% - 50px)"},className:Re.myPaletteDiv,ref:Yt})),Ne.createElement("div",{style:{flex:1,position:"relative"}},Ne.createElement("div",{ref:Pt,style:{height:"80vh"}}))),Ne.createElement("div",{className:"tr"},Ne.createElement(Le.ZP,{size:"large",onClick:La,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $t=dt,Xt=ae(78045),nn=ae(31795);const sn=Xt.ZP.Group,hn={margin:"0 8px"};var wn=({callback:$e,onCancel:Ie})=>{function Fe(Pt){$e(Pt)}return ee.createElement(pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Fe},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:hn},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:hn},"\u884C\u6570"),ee.createElement(pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(nn.Z,null)),ee.createElement("span",{style:hn},"\u5217\u6570"),ee.createElement(pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(nn.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:hn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(pe.default.Item,{name:"align"},ee.createElement(sn,null,ee.createElement(Xt.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(Xt.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(Xt.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(Xt.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Le.ZP,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))},Se=ae(47897),xe=ae(61016),ln=ae.n(xe),Ce=(0,ee.forwardRef)(({use3d:$e,width:Ie,height:Fe,callback:Pt,showSaveButton:Yt},Jt)=>{const Gn=(0,ee.useRef)(),An=(0,ee.useRef)(),[kn,na]=(0,ee.useState)(!1),La=(0,ee.useRef)({id:Gn,appName:"graphing",width:Ie||1e3,height:Fe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{An.current=new(ln())(La.current,!0),window.onload=function(){An.current.inject("applet_container")}},[]);const ft=()=>{var Hn=window.ggbApplet.getPNGBase64(1,!0,72);return Pt&&Pt(Hn),Hn};return(0,ee.useEffect)(()=>{La.current.appName=kn?"3D":"graphing",An.current.inject("applet_container")},[kn]),(0,ee.useEffect)(()=>{na($e)},[$e]),(0,ee.useImperativeHandle)(Jt,()=>({getImgData:ft})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gn}),ee.createElement(gt.Z,{align:"middle"},ee.createElement(xt.Z,{flex:1},ee.createElement(Se.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:kn,onChange:Hn=>na(Hn)})),ee.createElement(xt.Z,null,ee.createElement(Le.ZP,{size:"large",onClick:ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),mt=ae(36527),at=ae(25934),Ot=ae(2453);const an="link",At="upload-image",Gt="add-flowchart",Vt="draw-image",Dn="add-flowchart",mn="code-block",Pn="add-table",ea="------------",$n={default:ea,left:`:${ea}`,center:`:${ea}:`,right:`${ea}:`};var sa=ae(99914),Ea=($e,Ie,Fe)=>new Promise((Pt,Yt)=>{var Jt=kn=>{try{An(Fe.next(kn))}catch(na){Yt(na)}},Gn=kn=>{try{An(Fe.throw(kn))}catch(na){Yt(na)}},An=kn=>kn.done?Pt(kn.value):Promise.resolve(kn.value).then(Jt,Gn);An((Fe=Fe.apply($e,Ie)).next())});function za(){}let eo=0;const ka=1e4,oo="\u2581",$a="@\u2581\u2581@",Xa="@\u2581@",Yn=`
**\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`,ja=["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 Za($e){return/^\d+$/.test($e)?`${$e}px`:$e}const Qn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mo={[Qn+"-B"]:"bold",[Qn+"-I"]:"italic"},Ha={[an]:"\u6DFB\u52A0\u94FE\u63A5",[mn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[At]:"\u6DFB\u52A0\u56FE\u7247",[Vt]:"\u6DFB\u52A0\u753B\u56FE",[Gt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Pn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var yo=({defaultValue:$e="",onChange:Ie,width:Fe="100%",height:Pt=400,miniToolbar:Yt=!1,isFocus:Jt=!1,watch:Gn,insertTemp:An,mode:kn="markdown",id:na="markdown-editor-id",showResizeBar:La=!1,noStorage:ft=!1,showNullButton:Hn=!1,showNullProgramButton:Ta=!1,hidetoolBar:so=!1,fullScreen:wa=!1,onBlur:aa,onCMBeforeChange:ho,onFullScreen:to,className:To="",disablePaste:wo=!1,disabled:uo=!1,disabledFill:_a=!1,placeholder:Co="",values:ze="",extraUse:Ge})=>{const[le,ut]=(0,ee.useState)(null),[In,oa]=(0,ee.useState)($e),[fn,Te]=(0,ee.useState)(Gn),[ye,ht]=(0,ee.useState)(wa),[it,un]=(0,ee.useState)(""),[yn,On]=(0,ee.useState)(0),[It,Rn]=(0,ee.useState)(Pt),[Pe,he]=(0,ee.useState)(!1),Oe=(0,ee.useRef)((0,at.Z)()),He=(0,ee.useRef)(!1),qe=(0,ee.useRef)(),[wt,Ct]=(0,ee.useState)(0),[zt,Mt]=(0,ee.useState)(0),Rt=(0,ee.useRef)(),Et=(0,ee.useRef)(),Cn=(0,ee.useRef)(),jt=(0,ee.useRef)(),vt=()=>Ea(void 0,null,function*(){var Ut;const pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Oe.current}});(Ut=pt==null?void 0:pt.attachments)!=null&&Ut.length&&(console.log("cm:",le,Rt),pt.attachments.map(Ft=>{Ft.content_type.indexOf("image")>-1?le.replaceSelection(`![,](/api/attachments/${Ft.id}?type=${Ft.content_type})`):Ft.content_type.indexOf("video")>-1?le.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ft.content_type.indexOf("pdf")>-1?le.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ft.id}?type=${Ft.content_type}&disposition=inline" target="_blank">${Ft.name}</a>`):le.replaceSelection(`[${Ft.name}](${ENV.API_SERVER}/api/attachments/${Ft.id}?type=${Ft.content_type})`)}))});(0,ee.useEffect)(()=>{const Ut=window.scrollY||window.pageYOffset;oa(ze),le==null||le.setValue(ze),window.scrollTo(0,Ut)},[ze]),(0,ee.useEffect)(()=>{to==null||to(ye)},[ye]),(0,ee.useEffect)(()=>{if(Rt.current){let Ut=function(Ft,Ht){var Wn;if(wo){Ht.preventDefault();return}const ia=Ht.clipboardData;if(ia){const Aa=ia.types.toString(),Ca=ia.items;if(Aa==="Files"||ia.types.indexOf("Files")>-1){if(Ht.preventDefault(),kn=="stex")return;try{let ua=Ca[1];((Wn=Ca[0])==null?void 0:Wn.kind)==="file"&&(ua=Ca[0]);const Pa=ua.getAsFile(),Ga=Pa.name.split(".").pop();(0,De.I)(Pa,Ma=>{var xo,Bo,bo;Ma.id?((xo=Pa==null?void 0:Pa.type)==null?void 0:xo.indexOf("image"))>-1?pt.replaceSelection(`<img width="100%" src="/api/attachments/${Ma.id}?type=${Ma.content_type})" alt="" />`):((Bo=Pa==null?void 0:Pa.type)==null?void 0:Bo.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ma.id}"></video>`):((bo=Pa==null?void 0:Pa.type)==null?void 0:bo.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="/api/attachments/${Ma.id}?type=${Pa.type}&disposition=inline" target="_blank">${Pa.name}</a>`):ja.includes(Ga)?pt.replaceSelection(`<a href="/api/attachments/${Ma.id}?type=office&disposition=inline" target="_blank">${Pa.name}</a>`):pt.replaceSelection(`[${Pa.name}](/api/attachments/${Ma.id}?type=${Ma.content_type})`):(Ma==null?void 0:Ma.status)===401&&(Ot.ZP.warning((Ma==null?void 0:Ma.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ua){Ot.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pt=Xe().fromTextArea(Rt.current,{mode:kn,lineNumbers:!Yt,lineWrapping:!0,value:$e,autoCloseTags:!Ta,autoCloseBrackets:!0});return pt.on("keyup",function(Ft,Ht){Ht.keyCode===8&&(Ft.getValue()==""?pt.setOption("placeholder",Co):pt.setOption("placeholder",null))}),pt.on("keydown",function(Ft,Ht){if(Ht.keyCode===8){var Wn=Qt(Ft);Wn&&Ht.preventDefault()}}),Jt&&pt.focus(),pt.on("paste",Ut),pt.on("dragleave",function(Ft,Ht){Et.current.classList.remove("mouse-hover-md")}),uo&&pt.on("beforeChange",function(Ft,Ht){(Ht.origin==="paste"||Ht.origin==="+input")&&Ht.cancel()}),ut(pt),()=>{pt.off("paste",Ut)}}},[]);const Zt=(0,ee.useCallback)(()=>{if(Et.current)try{}catch(Ut){console.log(Ut,"---- to set md editor body height")}},[It,Et,ye]);(0,ee.useEffect)(()=>{function Ut(){let pt=new Ke.Z(Ft=>{for(let Ht of Ft)(Ht.target.offsetHeight>0||Ht.target.offsetWidth>0)&&(Zt(),le.setSize("100%","100%"),le.refresh())});return pt.observe(Rt.current.parentElement),pt}if(le){const pt=Ut();return()=>{var Ft,Ht;(Ft=Rt.current)!=null&&Ft.parentElement&&pt.unobserve((Ht=Rt.current)==null?void 0:Ht.parentElement)}}},[le,Zt]),(0,ee.useEffect)(()=>{if(le){let Ut=[];for(const[pt,Ft]of Object.entries(Mo)){let Ht={[pt]:()=>{_n(Ft)}};Ut.push(Ht),le.addKeyMap(Ht)}return qe.current=setInterval(()=>{He.current&&vt()},4e3),()=>{clearInterval(qe.current);for(let pt of Ut)le.removeKeyMap(pt)}}},[le]),(0,ee.useEffect)(()=>{wa!==ye&&ht(wa)},[wa]),(0,sa.Z)(()=>{if(!ft&&yn>0){let Ut=new Date().getTime(),pt=window.sessionStorage.getItem(na);Ut>=yn+ka&&(!pt||pt!==In)&&(window.sessionStorage.setItem(na,In),he(!0))}},ka),(0,ee.useEffect)(()=>{Te(Gn)},[le,Gn]),(0,ee.useEffect)(()=>{le&&Jt&&le.focus()},[le,Jt]),(0,ee.useEffect)(()=>{if(fn&&le){let Ut=function(Ft){let Ht=Ft.target;if(jt.current){let Wn=Ht.scrollTop/Ht.scrollHeight;jt.current.scrollTop=jt.current.scrollHeight*Wn}};const pt=le.getScrollerElement();return pt.addEventListener("scroll",Ut),()=>{pt.removeEventListener("scroll",Ut)}}},[le,fn]),(0,ee.useEffect)(()=>{if(le&&ho){let Ut=function(pt,Ft){ho(pt,Ft)};return le.on("beforeChange",Ut),()=>{le.off("beforeChange",Ut)}}},[le,ho]),(0,ee.useEffect)(()=>{if(le&&aa){let Ut=function(){aa(le.getValue())};return le.on("blur",Ut),()=>{le.off("blur",Ut)}}},[le,aa]);function Qt(Ut,pt){var Ft=Ut.getDoc(),Ht=Ft.getCursor(),Wn=Ft.getLine(Ht.line),ia=Wn.charAt(Ht.ch-1),Aa=Wn.lastIndexOf("@\u2581@",Ht.ch),Ca=Wn.lastIndexOf("@\u2581\u2581@",Ht.ch),ua=Aa>Ca?Aa:Ca,Pa=Aa>Ca?3:4;if($a.indexOf(ia)===-1)return null;if(console.log("change1:",pt,Ut,Wn,Ht,ua,Aa,Ca,ia),ua>=0&&Ht.ch-ua<5){var Ga=ua+Pa;return Ft.replaceRange("",{line:Ht.line,ch:ua},{line:Ht.line,ch:Ga}),{line:Ht.line,ch:Ga}}return null}(0,ee.useEffect)(()=>{if(le){let Ut=function(pt,Ft){const Ht=pt.getValue();oa(Ht),On(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ie&&(Ta?Ie(Ht,Ba(Ht)):Ie(Ht))};return le.on("change",Ut),()=>{le.off("change",Ut)}}},[le,Ie]),(0,ee.useEffect)(()=>{if(le)if($e==null)le.setValue(""),oa("");else{const Ut=window.scrollY||window.pageYOffset;$e!==le.getValue()&&(le.setValue($e),oa($e),le.setCursor(uo?1:le.lineCount(),0),window.scrollTo(0,Ut))}},[le,$e]);const _n=(0,ee.useCallback)(Ut=>{const pt=le.getCursor(),Ft=le.getSelection();let Ht=Ft.split(`
`);switch(Ut){case"bold":return le.replaceSelection("**"+Ft+"**"),Ft===""&&le.setCursor(pt.line,pt.ch+2),le.focus();case"italic":return le.replaceSelection("*"+Ft+"*"),Ft===""&&le.setCursor(pt.line,pt.ch+1),le.focus();case"code":return le.replaceSelection("`"+Ft+"`"),Ft===""&&le.setCursor(pt.line,pt.ch+1),le.focus();case"inline-latex":return un("inline-latex"),le.focus();case"latex":return le.replaceSelection("```latex\n"+Ft+"\n```"),le.setCursor(pt.line+1,Ft.length+1),le.focus();case"line-break":return le.replaceSelection(`<br/>
`),le.focus();case"list-ul":return Ft===""?le.replaceSelection("- "+Ft):le.replaceSelection(Ht.map(Wn=>Wn===""?"":`- ${Wn}`).join(`
`)),le.focus();case"list-ol":return Ft===""?le.replaceSelection("1. "+Ft):le.replaceSelection(Ht.map((Wn,ia)=>Wn===""?"":`${ia+1}. ${Wn}`).join(`
`)),le.focus();case"add-null-ch":return Ft===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(oo),le.focus();case"add-signal":return Ft===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(Xa),le.focus();case"add-multiple":return Ft===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection($a),le.focus();case"inster-template-1":return Ft===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(Yn),le.focus();case"eraser":return le.setValue(""),le.focus();case"trigger-watch":return Te(!fn),le.focus();case"trigger-full-screen":return ht(!ye),le.focus();case an:un(an);return;case mn:un(mn);return;case At:un(At);return;case Vt:un(Vt);return;case"maths-latex":un("maths-latex");return;case Gt:un(Gt);return;case Pn:un(Pn);return;default:throw new Error}},[le,fn,ye]),xn=(0,ee.useCallback)((Ut,pt)=>{var Ft,Ht,Wn,ia,Aa,Ca;switch(un(""),it){case an:const{title:xo,link:Bo}=Ut;return le.replaceSelection(`[${xo}](${Bo})`),le.focus();case mn:const{language:bo,content:Vo}=Ut;return le.replaceSelection(["```"+bo,Vo,"```"].join(`
`)),le.focus();case"maths-latex":for(var ua=atob(Ut),Pa=new Uint8Array(ua.length),Ga=0;Ga<ua.length;Ga++)Pa[Ga]=ua.charCodeAt(Ga);var Ma=new Blob([Pa],{type:"image/png"});(0,De.I)(Ma,no=>{no.id?le.replaceSelection(`![,](/api/attachments/${no.id}?type=${no.content_type})`):(no==null?void 0:no.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":le.replaceSelection("`$$"+Ut+"$$`");break;case At:case Vt:case Dn:const{src:fo,alt:Fa}=Ut,ga=pt,So=(Wn=(Ht=(Ft=ga==null?void 0:ga.name)==null?void 0:Ft.split("."))==null?void 0:Ht.pop)==null?void 0:Wn.call(Ht);return((ia=ga==null?void 0:ga.type)==null?void 0:ia.indexOf("image"))>-1||!(ga!=null&&ga.type)?ga.align||ga.width?le.replaceSelection(`<p style="text-align:${ga.align||"initial"}"><img width="${ga.width?ga.width+"%":"initial"}" src="${fo}" alt="${Fa||""}" /></p>`):le.replaceSelection(`<img width="100%" src="${fo}" alt="${Fa||""}" />`):((Aa=ga==null?void 0:ga.type)==null?void 0:Aa.indexOf("video"))>-1?le.replaceSelection(`<video width="100%" controls src="${fo}"></video>`):((Ca=ga==null?void 0:ga.type)==null?void 0:Ca.indexOf("pdf"))>-1?le.replaceSelection(`<a href="${fo}?type=${ga.type}&disposition=inline" target="_blank">${ga.name}</a>`):ja.includes(So)?le.replaceSelection(`<a href="${fo}?type=office&disposition=inline" target="_blank">${ga.name}</a>`):le.replaceSelection(`[${ga.name}](${fo})`),le.focus();case Pn:const{row:Sr,col:Fo,align:Go}=Ut;let Ra=`
`;for(let no=0;no<Sr;no++){let nr=[],Ro=[];for(let xa=0;xa<Fo;xa++)no===1&&Ro.push($n[Go]),nr.push(" ");no===1&&(Ra+=`| ${Ro.join(" | ")} |
`),Ra+=`| ${nr.join(Fo===1?"":" | ")} |
`}return le.replaceSelection(Ra+`
`),le.focus();default:throw new Error}},[le,it]),Fn=(0,ee.useMemo)(()=>{switch(it){case an:return ee.createElement(bn,{callback:xn,onCancel:vn});case mn:return ee.createElement(Bn.Z,{callback:xn,onCancel:vn});case At:return ee.createElement(De.Z,{callback:xn,onCancel:vn});case Gt:return ee.createElement($t,{callback:xn,onCancel:vn});case Pn:return ee.createElement(wn,{callback:xn,onCancel:vn});case"maths-latex":return ee.createElement(Ce,{showSaveButton:!0,callback:xn});case"inline-latex":return ee.createElement(mt.Z,{showSaveButton:!0,callback:xn});default:return null}},[it]);function vn(){un("")}(0,ee.useEffect)(()=>{if(Cn.current){let Ut=function(Aa){Wn=!0,ia=Aa.pageY},pt=function(){Wn=!1},Ft=function(Aa){if(Wn){let Ca=Aa.pageY-ia;Ca<0&&(Ca=0),Ca>300&&(Ca=300);let ua=Pt+Ca+"px";Rn(ua)}},Ht=Cn.current,Wn=!1,ia=0;return Ht.addEventListener("mousedown",Ut),document.addEventListener("mousemove",Ft),document.addEventListener("mouseup",pt),()=>{Ht.removeEventListener("mousedown",Ut),document.removeEventListener("mousemove",Ft),document.removeEventListener("mouseup",pt)}}},[le,Cn]),(0,ee.useEffect)(()=>{Rn(Pt)},[Pt]);const qt=Za(Fe),dn=Za(It),Mn={width:qt,height:dn},Sa=(0,ee.useMemo)(()=>{if(yn){let Ut=new Date(yn),pt=Ut.getHours(),Ft=Ut.getMinutes(),Ht=Ut.getSeconds();return pt=pt<10?"0"+pt:pt,Ft=Ft<10?"0"+Ft:Ft,Ht=Ht<10?"0"+Ht:Ht,`${pt}:${Ft}:${Ht}`}return 0},[yn]),Ba=Ut=>{const pt=[];if(Ta){let Ft=-1;Ut=Ut.replace(/(@▁▁@|@▁@)/g,function(Ht,Wn,ia){pt.push({multiLine:Ht!==Xa})})}return pt};function ro(){window.sessionStorage.removeItem(na),he(!1),On(0)}function Po(){he(!1),On(0),le.setValue(window.sessionStorage.getItem(na))}(0,ee.useEffect)(()=>{Ha[it]&&it!==Vt&&it!==Gt&&setTimeout(()=>{const Ut=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Ut.offsetWidth/2,Ft=window.innerHeight/2-Ut.offsetHeight/2;Ct(pt),Mt(Ft)},0)},[it]);const co=Ut=>{Ut.preventDefault();const pt=Ut.clientX-wt,Ft=Ut.clientY-zt;document.body.onmousemove=Ht=>{let Wn=Ht.clientX-pt,ia=Ht.clientY-Ft;const Aa=document.getElementsByClassName("markdown-popup-form")[0],Ca=window.innerWidth-Aa.offsetWidth,ua=window.innerHeight-Aa.offsetHeight;Wn=Math.max(0,Math.min(Wn,Ca)),ia=Math.max(0,Math.min(ia,ua)),mo(Ht.clientX,Ht.clientY,pt,Ft)&&(Ct(Wn),Mt(ia))},document.body.onmouseup=function(){document.body.onmousemove=null}},mo=(Ut,pt,Ft,Ht)=>{const Wn=document.body.clientHeight,ia=document.body.clientWidth;return Ut<20&&Ft>Ut||Ut>ia-20&&Ft<Ut||pt<20&&Ht>pt||pt>Wn-20&&Ht<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:Et},ee.createElement("div",{className:`markdown-editor-container ${To} ${fn?"on-preview":""} ${Yt?"mini":""} ${ye?"full-screen":""}`,style:Mn},ee.createElement(de,{insertTemp:An,watch:fn,fullScreen:ye,showNullButton:Hn,showNullProgramButton:Ta,onActionCallback:_n,hidetoolBar:so,extraUse:Ge}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:Rt,placeholder:Co})),fn?ee.createElement("div",{ref:jt,className:"preview-container"},kn==="stex"&&ee.createElement(ke,{value:In}),kn!=="stex"&&ee.createElement(Ve.Z,{disabledFill:_a,showProgramFill:Ta,value:In})):null))),La?ee.createElement("a",{ref:Cn,className:"editor-resize"}):null,it===Vt&&ee.createElement(Nt,{callback:xn,onCancel:vn}),it===Gt&&ee.createElement($t,{callback:xn,onCancel:vn}),ee.createElement(Ee.Z,null,Ha[it]&&it!==Vt&&it!==Gt?ee.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:wt,top:zt},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:co},Ha[it]),open:!0,onCancel:vn,footer:null,destroyOnClose:!0,width:it===Gt?"1200px":null,height:it===Gt?"80vh":null,className:"markdown-popup-form"},Fn):null))}},70859:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return ge},I:function(){return Ee}});var ee=ae(22150),me=ae(2453),Xe=ae(69677),Ke=ae(93421),se=ae(31795),we=ae(78045),fe=ae(71577),Ze=ae(15476),je=ae(67294),Ae=ae(52262),Ve=ae(67294),ke=Object.defineProperty,Be=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(pe,We,Le)=>We in pe?ke(pe,We,{enumerable:!0,configurable:!0,writable:!0,value:Le}):pe[We]=Le,x=(pe,We)=>{for(var Le in We||(We={}))a.call(We,Le)&&b(pe,Le,We[Le]);if(y)for(var Le of y(We))E.call(We,Le)&&b(pe,Le,We[Le]);return pe},z=(pe,We)=>Be(pe,oe(We));const{useForm:te}=ee.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:pe,onCancel:We})=>{const[Le]=te();let lt=(0,je.useRef)();function Dt(nt){lt.current.width=Le.getFieldValue("width"),lt.current.align=Le.getFieldValue("align"),pe(nt,lt.current)}function Bt(nt,ot){if(nt.status===-1){me.ZP.error(nt.message);return}Le.setFieldsValue({src:`/api/attachments/${nt.id}`,type:ot.type})}function Me(nt){let ot=nt.target.files[0];lt.current=ot,Ee(ot,Bt)}return Ve.createElement(ee.default,z(x({form:Le},re),{className:"upload-image-panel",onFinish:Dt,style:{width:470,overflow:"hidden"}}),Ve.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ve.createElement("div",{className:"flex-container"},Ve.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ve.createElement(Xe.default,{style:ne})),Ve.createElement(de,{onFileChange:Me}))),Ve.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ve.createElement(Xe.default,{style:{width:264}})),Ve.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ve.createElement(Ke.Z,null,Ve.createElement(ee.default.Item,{name:"width",style:{margin:0}},Ve.createElement(se.Z,{style:{width:264}})),Ve.createElement("span",{className:"ml8"},"%"))),Ve.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ve.createElement(we.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"}]})),Ve.createElement("aside",null,Ve.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ve.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ve.createElement(fe.ZP,{type:"default",onClick:We},"\u53D6\u6D88"))))};function de({onFileChange:pe}){return Ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ve.createElement("input",{type:"file",onChange:pe}))}function Ee(pe,We){if(!pe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw me.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",pe),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var lt=new window.XMLHttpRequest;lt.withCredentials=!0,lt.addEventListener("load",function(Dt){We(JSON.parse(Dt.target.responseText),pe)},!1),lt.addEventListener("error",function(Dt){console.error(Dt)},!1),lt.open("POST",`${Ze.KI}/api/attachments.json`),lt.send(Le)}},76621:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return Xe}});var ee=ae(67294),me=ae(73935);class Xe extends ee.Component{constructor(se){super(se);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:se}=this.props;return(0,me.createPortal)(se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return me}});var ee=ae(67294);function me(Xe,Ke){const se=(0,ee.useRef)();(0,ee.useEffect)(()=>{se.current=Xe}),(0,ee.useEffect)(()=>{function we(){se.current()}if(Ke!==null){let fe=setInterval(we,Ke);return()=>clearInterval(fe)}},[Ke])}},79061:function(Ue,st,ae){"use strict";ae.r(st),ae.d(st,{default:function(){return Co}});var ee=ae(67294),me=ae(35973),Xe=ae(68508),Ke=ae(97183),se=ae(22150),we=ae(2453),fe=ae(96074),Ze=ae(85673),je=ae(71230),Ae=ae(15746),Ve=ae(83062),ke=ae(69677),Be=ae(71577),oe=ae(40043),y=ae(32027),a=ae(14446),E=ae(84567),b=ae(31795),x=ae(15835),z=ae(35567),te=ae(85725),ne={flex_box_center:"flex_box_center___T9vjl",flex_space_between:"flex_space_between___zZP1J",flex_box_vertical_center:"flex_box_vertical_center___vbIhw",flex_box_center_end:"flex_box_center_end___SjRau",flex_box_column:"flex_box_column___Ic_zi",wrap:"wrap___GtXAk",modal:"modal___mDuC3",titleWrap:"titleWrap___EzCZh",required:"required___KgfdI",title:"title___TMgfc",colorGray:"colorGray___xNVTs",choiceWrap:"choiceWrap___Rv9ug",answer:"answer___hVpls",activeAnswer:"activeAnswer___oJoq9",deleteIcon:"deleteIcon___bkn4b",addIcon:"addIcon___S2pDY",editorWrap:"editorWrap___BOx_r",htmlWrap:"htmlWrap___ERVlQ",radio:"radio___lrt5b",color333:"color333___pz3OT",color999:"color999___jtQ7e",questionType:"questionType___qUnUb",questionChoices:"questionChoices___n36qp"},re=Object.defineProperty,ge=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,pe=(ze,Ge,le)=>Ge in ze?re(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,We=(ze,Ge)=>{for(var le in Ge||(Ge={}))de.call(Ge,le)&&pe(ze,le,Ge[le]);if(ge)for(var le of ge(Ge))Ee.call(Ge,le)&&pe(ze,le,Ge[le]);return ze},Le=(ze,Ge)=>{var le={};for(var ut in ze)de.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&ge)for(var ut of ge(ze))Ge.indexOf(ut)<0&&Ee.call(ze,ut)&&(le[ut]=ze[ut]);return le},lt=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const Dt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Bt=(ze,Ge)=>{var le=ze,{problemset:ut,globalSetting:In,loading:oa,dispatch:fn,onRef:Te=()=>{},editData:ye}=le,ht=Le(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[it,un]=(0,ee.useState)([]),[yn,On]=(0,ee.useState)(),[It,Rn]=(0,ee.useState)([]),[Pe,he]=(0,ee.useState)(""),[Oe,He]=(0,ee.useState)(5),[qe,wt]=(0,ee.useState)(!1),Ct=(0,me.useParams)();(0,ee.useEffect)(()=>{un(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(ye!=null&&ye.question_choices)){wt(!0);return}he(ye==null?void 0:ye.question_title),He(parseInt(ye==null?void 0:ye.question_score)),un(ye==null?void 0:ye.question_choices.map(vt=>vt.choice_text));const jt=[];ye==null||ye.standard_answer.map((vt,Zt)=>{jt.push(vt-1)}),Rn(jt)},[ye]),(0,ee.useImperativeHandle)(Ge,()=>({onSave:zt,isEdit:qe}));const zt=()=>lt(void 0,null,function*(){if(!Pe)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const jt=it.findIndex(Qt=>!Qt);if(jt>-1)return we.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Dt[jt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!It.length)return we.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(It.length<1)return we.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const vt=it.map((Qt,_n)=>({choice_text:Qt,is_answer:It.includes(_n)?_n+1:0}));let Zt;ye.question_id?Zt=yield fn({type:"exercise/editExerciseQuestion",payload:{id:ye.question_id,question_title:Pe,question_type:1,question_score:"5.0",question_choices:vt.map(Qt=>Qt.choice_text),standard_answers:vt.filter(Qt=>Qt.is_answer).map(Qt=>Qt.is_answer)}}):Zt=yield fn({type:"exercise/addExerciseQuestion",payload:{categoryId:Ct.categoryId,question_title:Pe,question_type:1,question_score:"5.0",question_choices:vt.map(Qt=>Qt.choice_text),standard_answers:vt.filter(Qt=>Qt.is_answer).map(Qt=>Qt.is_answer)}}),Zt.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),wt(!1),fn({type:"exercise/editExercise",payload:We({},Ct)}))}),Mt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Rt=jt=>lt(void 0,null,function*(){switch(jt.id){case"del":let vt;a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return lt(this,null,function*(){yield(0,x.Fl)({id:ye.question_id}),fn({type:"exercise/editExercise",payload:We({},Ct)})})}});break;case"up":case"down":yield fn({type:"exercise/exeriseMoveUpDown",payload:{id:ye.question_id,opr:jt.id}}),fn({type:"exercise/editExercise",payload:We({},Ct)});break;case"edit":wt(!0);break}}),Et=()=>{var jt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ye.key,"\u3001\u591A\u9009\u9898"),"\uFF08",ye.question_score,"\u5206\uFF09"),!ye.hideAction&&Mt.map(function(vt,Zt){return vt.id==="up"&&ye.key===1||vt.id==="down"&&ye.key===ye.len?null:ee.createElement(Ve.Z,{key:Zt,placement:"bottom",title:vt.name},ee.createElement("span",{onClick:()=>Rt(vt),className:vt.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:ye.question_title})),ee.createElement("div",{className:ne.questionChoices},(jt=ye==null?void 0:ye.question_choices)==null?void 0:jt.map(function(vt,Zt){return ee.createElement(je.Z,null,ee.createElement(Ae.Z,null,ee.createElement(E.default,{key:Zt,checked:ye.standard_answer.includes(Zt+1),disabled:!0},Dt[Zt],".")),ee.createElement(Ae.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:vt.choice_text}))))})))},Cn=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Pe,onChange:jt=>he(jt)}),it.map((jt,vt)=>ee.createElement("div",{className:ne.choiceWrap,key:vt},ee.createElement(Ve.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${It.includes(vt)?ne.activeAnswer:""}`,onClick:()=>{It.includes(vt)?Rn(It.filter(Zt=>Zt!==vt)):Rn([...It,vt])}},Dt[vt])),ee.createElement("div",{className:ne.editorWrap},yn===vt?ee.createElement(z.Z,{id:`single-question-option-${vt}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:jt,onChange:Zt=>{it[vt]=Zt,un(it)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>On(vt)},ee.createElement(te.Z,{value:jt}))),vt>1&&ee.createElement(Ve.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>un(it.filter((Zt,Qt)=>Qt!==vt))})),vt<7&&vt===it.length-1&&ee.createElement(Ve.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>un([...it,""])})))),ee.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Oe,max:1e4,min:-1,onChange:jt=>{He(jt)}})," \u5206"),ee.createElement("aside",{className:"tr"},ye.question_id&&ee.createElement(Be.ZP,{type:"default",onClick:()=>wt(!1)},"\u53D6\u6D88"),ee.createElement(Be.ZP,{className:"ml20",type:"primary",onClick:()=>zt()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!qe&&Et(),qe&&Cn())};var Me=(0,me.connect)(({problemset:ze,loading:Ge,globalSetting:le})=>({problemset:ze,globalSetting:le,loading:Ge.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Bt)),nt=ae(78045),ot=Object.defineProperty,rt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Sn=(ze,Ge,le)=>Ge in ze?ot(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,bn=(ze,Ge)=>{for(var le in Ge||(Ge={}))St.call(Ge,le)&&Sn(ze,le,Ge[le]);if(rt)for(var le of rt(Ge))kt.call(Ge,le)&&Sn(ze,le,Ge[le]);return ze},Bn=(ze,Ge)=>{var le={};for(var ut in ze)St.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&rt)for(var ut of rt(ze))Ge.indexOf(ut)<0&&kt.call(ze,ut)&&(le[ut]=ze[ut]);return le},De=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const Ye=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],gt=(ze,Ge)=>{var le=ze,{problemset:ut,globalSetting:In,loading:oa,dispatch:fn,onRef:Te=()=>{},editData:ye}=le,ht=Bn(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[it,un]=(0,ee.useState)([]),[yn,On]=(0,ee.useState)(),[It,Rn]=(0,ee.useState)([]),[Pe,he]=(0,ee.useState)(""),[Oe,He]=(0,ee.useState)(0),[qe,wt]=(0,ee.useState)(!1),Ct=(0,me.useParams)();(0,ee.useEffect)(()=>{un(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(ye!=null&&ye.question_choices)){wt(!0);return}he(ye==null?void 0:ye.question_title),He(parseInt(ye==null?void 0:ye.question_score)),un(ye==null?void 0:ye.question_choices.map(vt=>vt.choice_text));const jt=[];ye==null||ye.standard_answer.map((vt,Zt)=>{jt.push(vt-1)}),Rn(jt)},[ye]),(0,ee.useImperativeHandle)(Ge,()=>({onSave:zt,isEdit:qe}));const zt=()=>De(void 0,null,function*(){if(!Pe)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const jt=it.findIndex(Qt=>!Qt);if(jt>-1)return we.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ye[jt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!It.length)return we.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(It.length<1)return we.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const vt=it.map((Qt,_n)=>({choice_text:Qt,is_answer:It.includes(_n)?_n+1:0}));let Zt;ye.question_id?Zt=yield(0,y.Kc)({id:ye.question_id,question_title:Pe,question_type:1,question_score:Oe,question_choices:vt.map(Qt=>Qt.choice_text),standard_answers:vt.filter(Qt=>Qt.is_answer).map(Qt=>Qt.is_answer)}):Zt=yield(0,y.iV)({exercise_bank_id:Ct.topicId,question_title:Pe,question_type:1,question_score:"5.0",question_choices:vt.map(Qt=>Qt.choice_text),standard_answers:vt.filter(Qt=>Qt.is_answer).map(Qt=>Qt.is_answer)}),Zt.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),wt(!1)),yield fn({type:"polls/getExerciseBanks",payload:bn({},Ct)})}),Mt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Rt=jt=>De(void 0,null,function*(){switch(jt.id){case"del":let vt;a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return De(this,null,function*(){yield(0,y.x$)({pollsId:ye.question_id}),fn({type:"polls/getExerciseBanks",payload:bn({},Ct)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ye==null?void 0:ye.question_id,opr:jt.id}),fn({type:"polls/getExerciseBanks",payload:bn({},Ct)});break;case"edit":wt(!0);break}}),Et=()=>{var jt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ye.key,"\u3001\u5355\u9009\u9898"),"\uFF08",ye.question_score,"\u5206\uFF09"),!ye.hideAction&&Mt.map(function(vt,Zt){return vt.id==="up"&&ye.key===1||vt.id==="down"&&ye.key===ye.len?null:ee.createElement(Ve.Z,{key:Zt,placement:"bottom",title:vt.name},ee.createElement("span",{onClick:()=>Rt(vt),className:vt.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:ye.question_title})),ee.createElement("div",{className:ne.questionChoices},(jt=ye==null?void 0:ye.question_choices)==null?void 0:jt.map(function(vt,Zt){return ee.createElement(je.Z,null,ee.createElement(Ae.Z,null,ee.createElement(nt.ZP,{key:Zt,checked:ye.standard_answer.includes(Zt+1),disabled:!0},Ye[Zt],".")),ee.createElement(Ae.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:vt.choice_text}))))})))},Cn=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Pe,onChange:jt=>he(jt)}),it.map((jt,vt)=>ee.createElement("div",{className:ne.choiceWrap,key:vt},ee.createElement(Ve.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${It.includes(vt)?ne.activeAnswer:""}`,onClick:()=>{It.includes(vt)?Rn(It.filter(Zt=>Zt!==vt)):Rn([...It,vt])}},Ye[vt])),ee.createElement("div",{className:ne.editorWrap},yn===vt?ee.createElement(z.Z,{id:`single-question-option-${vt}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:jt,onChange:Zt=>{it[vt]=Zt,un(it)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>On(vt)},ee.createElement(te.Z,{value:jt}))),vt>1&&ee.createElement(Ve.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>un(it.filter((Zt,Qt)=>Qt!==vt))})),vt<7&&vt===it.length-1&&ee.createElement(Ve.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>un([...it,""])})))),ee.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Oe,max:1e4,min:-1,onChange:jt=>{He(jt)}})," \u5206"),ee.createElement("aside",{className:"tr"},ye.question_id&&ee.createElement(Be.ZP,{type:"default",onClick:()=>wt(!1)},"\u53D6\u6D88"),ee.createElement(Be.ZP,{className:"ml20",type:"primary",onClick:()=>zt()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!qe&&Et(),qe&&Cn())};var Kt=(0,me.connect)(({problemset:ze,loading:Ge,globalSetting:le})=>({problemset:ze,globalSetting:le,loading:Ge.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(gt)),ct=Object.defineProperty,Nt=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,on=(ze,Ge,le)=>Ge in ze?ct(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,Tn=(ze,Ge)=>{for(var le in Ge||(Ge={}))ve.call(Ge,le)&&on(ze,le,Ge[le]);if(Nt)for(var le of Nt(Ge))yt.call(Ge,le)&&on(ze,le,Ge[le]);return ze},xt=(ze,Ge)=>{var le={};for(var ut in ze)ve.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&Nt)for(var ut of Nt(ze))Ge.indexOf(ut)<0&&yt.call(ze,ut)&&(le[ut]=ze[ut]);return le},tt=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const Re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ne=(ze,Ge)=>{var le=ze,{problemset:ut,globalSetting:In,loading:oa,dispatch:fn,onRef:Te=()=>{},editData:ye}=le,ht=xt(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[it,un]=(0,ee.useState)(),[yn,On]=(0,ee.useState)(""),[It,Rn]=(0,ee.useState)(!1),[Pe,he]=(0,ee.useState)(5),Oe=(0,me.useParams)();(0,ee.useEffect)(()=>{if(!(ye!=null&&ye.question_choices)){Rn(!0);return}On(ye==null?void 0:ye.question_title),he(ye==null?void 0:ye.question_score),un(ye.standard_answer[0]+"")},[ye]),(0,ee.useImperativeHandle)(Ge,()=>({onSave:He,isEdit:It}));const He=()=>tt(void 0,null,function*(){if(!yn)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!it)return we.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Mt=[{choice_text:"\u6B63\u786E",is_answer:it==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:it==="2"?2:0}];let Rt;return ye.question_id?Rt=yield(0,y.Kc)({id:ye.question_id,question_title:yn,question_type:2,question_score:Pe,question_choices:Mt.map(Et=>Et.choice_text),standard_answers:Mt.filter(Et=>Et.is_answer).map(Et=>Et.is_answer)}):Rt=yield(0,y.iV)({exercise_bank_id:Oe.topicId,question_title:yn,question_type:2,question_score:Pe,question_choices:Mt.map(Et=>Et.choice_text),standard_answers:Mt.filter(Et=>Et.is_answer).map(Et=>Et.is_answer)}),Rt.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),Rn(!1)),fn({type:"polls/getExerciseBanks",payload:Tn({},Oe)}),{name:yn,choices:Mt}}),qe=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],wt=Mt=>tt(void 0,null,function*(){switch(Mt.id){case"del":let Rt;a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return tt(this,null,function*(){yield(0,y.x$)({pollsId:ye.question_id}),fn({type:"polls/getExerciseBanks",payload:Tn({},Oe)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ye==null?void 0:ye.question_id,opr:Mt.id}),fn({type:"polls/getExerciseBanks",payload:Tn({},Oe)});break;case"edit":Rn(!0);break}}),Ct=()=>{var Mt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ye.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",ye.question_score,"\u5206\uFF09"),!ye.hideAction&&qe.map(function(Rt,Et){return Rt.id==="up"&&ye.key===1||Rt.id==="down"&&ye.key===ye.len?null:ee.createElement(Ve.Z,{key:Et,placement:"bottom",title:Rt.name},ee.createElement("span",{onClick:()=>wt(Rt),className:Rt.icon}))})),ee.createElement("div",{className:"mt5"},ye.question_title),ee.createElement("div",{className:ne.questionChoices},(Mt=ye==null?void 0:ye.question_choices)==null?void 0:Mt.map(function(Rt,Et){return ee.createElement(nt.ZP,{key:Et,checked:ye.standard_answer.includes(Et+1),disabled:!0},Re[Et],". ",ee.createElement("span",{className:"c-black font14"},Rt.choice_text))})))},zt=()=>ee.createElement("aside",null,ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:yn,onChange:Mt=>On(Mt)}),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u7B54\u6848\u9009\u9879\uFF1A",ee.createElement("span",{className:ne.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ee.createElement(nt.ZP.Group,{buttonStyle:"solid",value:it,onChange:Mt=>un(Mt.target.value)},ee.createElement(nt.ZP.Button,{value:"1",className:`${ne.radio} mr40`},"\u6B63\u786E"),ee.createElement(nt.ZP.Button,{value:"2",className:ne.radio},"\u9519\u8BEF")),ee.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Pe,max:1e4,min:-1,onChange:Mt=>{he(Mt)}})," \u5206"),ee.createElement("aside",{className:"tr"},ye.question_id&&ee.createElement(Be.ZP,{type:"default",onClick:()=>Rn(!1)},"\u53D6\u6D88"),ee.createElement(Be.ZP,{className:"ml20",type:"primary",onClick:()=>He()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!It&&Ct(),It&&zt())};var et=(0,me.connect)(({problemset:ze,loading:Ge,globalSetting:le})=>({problemset:ze,globalSetting:le,loading:Ge.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Ne)),dt=ae(35566),$t=ae(73646),Xt=ae(28706),nn=Object.defineProperty,sn=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Se=(ze,Ge,le)=>Ge in ze?nn(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,xe=(ze,Ge)=>{for(var le in Ge||(Ge={}))hn.call(Ge,le)&&Se(ze,le,Ge[le]);if(sn)for(var le of sn(Ge))wn.call(Ge,le)&&Se(ze,le,Ge[le]);return ze},ln=(ze,Ge)=>{var le={};for(var ut in ze)hn.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&sn)for(var ut of sn(ze))Ge.indexOf(ut)<0&&wn.call(ze,ut)&&(le[ut]=ze[ut]);return le},bt=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const Ce=null,mt=(ze,Ge)=>{var le=ze,{problemset:ut,globalSetting:In,loading:oa,dispatch:fn,editData:Te}=le,ye=ln(le,["problemset","globalSetting","loading","dispatch","editData"]);const[ht,it]=(0,ee.useState)(""),[un,yn]=(0,ee.useState)(""),[On,It]=(0,ee.useState)([]),[Rn,Pe]=(0,ee.useState)(""),[he,Oe]=(0,ee.useState)(),[He,qe]=(0,ee.useState)(!1),[wt,Ct]=(0,ee.useState)(5),[zt,Mt]=(0,ee.useState)(!1),Rt=(0,me.useParams)();(0,ee.useEffect)(()=>{if(!(Te!=null&&Te.question_title)){Mt(!0);return}it(Te==null?void 0:Te.question_title),Oe(Te==null?void 0:Te.is_ordered),Ct(Te==null?void 0:Te.question_score);const qt=Te==null?void 0:Te.standard_answer.map(dn=>dn.answer_text);It(qt)},[ut.editData]),(0,ee.useEffect)(()=>{qe(!1)},[zt]),(0,ee.useImperativeHandle)(Ge,()=>({onSave:Et,isEdit:zt}));const Et=()=>bt(void 0,null,function*(){let qt=[],dn=!1;if(On.forEach((Sa,Ba)=>{qt.push({choice_id:Ba+1,answer_text:[]}),Sa.forEach((ro,Po)=>{qt[Ba].answer_text.push(ro),(!ro||!(0,Xt.eR)(ro,1e4))&&(Pe(`${Ba}-${Po}`),we.ZP.info(ro?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),dn=!0)})}),dn)return!1;let Mn;return Te.question_id?Mn=yield(0,y.Kc)({id:Te.question_id,question_title:ht,question_type:3,question_score:wt,is_ordered:he,standard_answers:qt}):Mn=yield(0,y.iV)({exercise_bank_id:Rt.topicId,question_title:ht,question_type:3,question_score:wt,is_ordered:he,standard_answers:qt}),Mn.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),Mt(!1)),fn({type:"polls/getExerciseBanks",payload:xe({},Rt)}),{name:ht,analysis:un,standard_answers:qt,is_ordered:he}}),Cn=(qt,dn,Mn)=>{const Sa=On.slice();if(dn&&Sa.splice(qt,dn),Mn&&He)for(let Ba=0;Ba<Mn;Ba++)Sa.splice(qt+Ba,0,[""]);qe(!0),It(Sa)},jt=(qt,dn,Mn)=>{Pe("");let Sa=On.slice();Sa[qt][dn]=Mn,It(Sa)},vt=qt=>{let dn=On.slice();dn[qt]=[...dn[qt],""],It(dn)},Zt=(qt,dn)=>{let Mn=On.slice();if(!Mn[qt][dn]){Mn[qt]=Mn[qt].filter((Sa,Ba)=>Ba!==dn),It(Mn);return}a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{Mn[qt]=Mn[qt].filter((Sa,Ba)=>Ba!==dn),It(Mn)}})},Qt=qt=>{a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{let dn=On.slice();dn=On.filter((Mn,Sa)=>qt!==Sa),It(dn)}})},_n=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),ee.createElement("div",null,ee.createElement(dt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:ht,onChange:qt=>it(qt),showNullButton:!0,onPlaceholderChange:Cn})),ee.createElement("div",{className:"mt20"},On.map((qt,dn)=>ee.createElement($t.Z,{key:dn,answers:qt,index:dn,is_md:!0,activeOptionErrorIndex:Rn,onAnswerChange:jt,addChildAnswer:vt,deleteChildAnswer:Zt,deleteChildAnswermain:Qt}))),ee.createElement("div",{className:"mt20"},On.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:he,onChange:qt=>Oe(qt.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),ee.createElement("span",{className:`${ne.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:wt,max:1e4,min:-1,onChange:qt=>{Ct(qt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Te.question_id&&ee.createElement(Be.ZP,{type:"default",onClick:()=>Mt(!1)},"\u53D6\u6D88"),ee.createElement(Be.ZP,{className:"ml20",type:"primary",onClick:()=>Et()},"\u4FDD\u5B58"))),xn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Fn=qt=>bt(void 0,null,function*(){switch(qt.id){case"del":let dn;a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return bt(this,null,function*(){yield(0,y.x$)({pollsId:Te.question_id}),fn({type:"polls/getExerciseBanks",payload:xe({},Rt)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:Te==null?void 0:Te.question_id,opr:qt.id}),fn({type:"polls/getExerciseBanks",payload:xe({},Rt)});break;case"edit":Mt(!0);break}}),vn=()=>{var qt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Te.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Te.question_score,"\u5206\uFF09"),!Te.hideAction&&xn.map(function(dn,Mn){return dn.id==="up"&&Te.key===1||dn.id==="down"&&Te.key===Te.len?null:ee.createElement(Ve.Z,{key:Mn,placement:"bottom",title:dn.name},ee.createElement("span",{onClick:()=>Fn(dn),className:dn.icon}))})),ee.createElement("div",{className:"mt5"},Te.question_title),ee.createElement("div",{className:ne.questionChoices},(qt=Te==null?void 0:Te.standard_answer)==null?void 0:qt.map(function(dn,Mn){return ee.createElement(je.Z,null,ee.createElement(Ae.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",dn.choice_id,"\uFF09\uFF1A"),ee.createElement(Ae.Z,{flex:"1"},ee.createElement(ke.default,{key:Mn,checked:Te.standard_answer.includes(Mn),disabled:!0,value:dn.answer_text})))})))};return ee.createElement("section",{className:ne.wrap},!zt&&vn(),zt&&_n())};var at=(0,me.connect)(({problemset:ze,loading:Ge,globalSetting:le})=>({problemset:ze,globalSetting:le,loading:Ge.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(mt)),Ot=Object.defineProperty,an=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Vt=(ze,Ge,le)=>Ge in ze?Ot(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,Dn=(ze,Ge)=>{for(var le in Ge||(Ge={}))At.call(Ge,le)&&Vt(ze,le,Ge[le]);if(an)for(var le of an(Ge))Gt.call(Ge,le)&&Vt(ze,le,Ge[le]);return ze},mn=(ze,Ge)=>{var le={};for(var ut in ze)At.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&an)for(var ut of an(ze))Ge.indexOf(ut)<0&&Gt.call(ze,ut)&&(le[ut]=ze[ut]);return le},Pn=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const ea=null,$n=(ze,Ge)=>{var le=ze,{problemset:ut,globalSetting:In,loading:oa,dispatch:fn,onRef:Te=()=>{},editData:ye}=le,ht=mn(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[it,un]=(0,ee.useState)(""),[yn,On]=(0,ee.useState)(""),[It,Rn]=(0,ee.useState)(""),[Pe,he]=(0,ee.useState)(5),[Oe,He]=(0,ee.useState)(!1),qe=(0,me.useParams)();(0,ee.useEffect)(()=>{var Et;if(!(ye!=null&&ye.question_title)){He(!0);return}un(ye==null?void 0:ye.question_title),Rn((Et=ye==null?void 0:ye.standard_answer)==null?void 0:Et[0]),he(ye==null?void 0:ye.question_score)},[ut.editData]),(0,ee.useImperativeHandle)(Ge,()=>({onSave:wt,isEdit:Oe}));const wt=()=>Pn(void 0,null,function*(){if(!it)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Et;return ye.question_id?Et=yield(0,y.Kc)({id:ye.question_id,question_title:it,question_type:4,question_score:Pe,standard_answers:[It]}):Et=yield(0,y.iV)({exercise_bank_id:qe.topicId,question_title:it,question_type:4,question_score:Pe,standard_answers:[It]}),Et.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),He(!1),fn({type:"polls/getExerciseBanks",payload:Dn({},qe)})),{name:it,answer_texts:[It],analysis:yn}}),Ct=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:it,onChange:Et=>un(Et)}),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),ee.createElement(z.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:It,onChange:Et=>Rn(Et)}),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Pe,max:1e4,min:-1,onChange:Et=>{he(Et)}})," \u5206"),ee.createElement("aside",{className:"tr"},ye.question_id&&ee.createElement(Be.ZP,{type:"default",onClick:()=>He(!1)},"\u53D6\u6D88"),ee.createElement(Be.ZP,{className:"ml20",type:"primary",onClick:()=>wt()},"\u4FDD\u5B58"))),zt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Mt=Et=>Pn(void 0,null,function*(){switch(Et.id){case"del":let Cn;a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Pn(this,null,function*(){yield(0,y.x$)({pollsId:ye.question_id}),fn({type:"polls/getExerciseBanks",payload:Dn({},qe)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ye==null?void 0:ye.question_id,opr:Et.id}),fn({type:"polls/getExerciseBanks",payload:Dn({},qe)});break;case"edit":He(!0);break}}),Rt=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ye.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",ye.question_score,"\u5206\uFF09"),!ye.hideAction&&zt.map(function(Et,Cn){return Et.id==="up"&&ye.key===1||Et.id==="down"&&ye.key===ye.len?null:ee.createElement(Ve.Z,{key:Cn,placement:"bottom",title:Et.name},ee.createElement("span",{onClick:()=>Mt(Et),className:Et.icon}))})),ee.createElement("div",{className:"mt5"},ye.question_title),ee.createElement("div",{className:ne.questionChoices},ee.createElement("p",null,ee.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),ee.createElement(te.Z,{value:It})));return ee.createElement("section",{className:ne.wrap},!Oe&&Rt(),Oe&&Ct())};var sa=(0,me.connect)(({problemset:ze,loading:Ge,globalSetting:le})=>({problemset:ze,globalSetting:le,loading:Ge.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)($n)),Ea=Object.defineProperty,za=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable,oo=(ze,Ge,le)=>Ge in ze?Ea(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,$a=(ze,Ge)=>{for(var le in Ge||(Ge={}))eo.call(Ge,le)&&oo(ze,le,Ge[le]);if(za)for(var le of za(Ge))ka.call(Ge,le)&&oo(ze,le,Ge[le]);return ze},Xa=(ze,Ge)=>{var le={};for(var ut in ze)eo.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&za)for(var ut of za(ze))Ge.indexOf(ut)<0&&ka.call(ze,ut)&&(le[ut]=ze[ut]);return le},Yn=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const ja=null,Za=(ze,Ge)=>{var le=ze,{problemset:ut,globalSetting:In,loading:oa,dispatch:fn,editData:Te}=le,ye=Xa(le,["problemset","globalSetting","loading","dispatch","editData"]);const[ht,it]=(0,ee.useState)(""),[un,yn]=(0,ee.useState)(""),[On,It]=(0,ee.useState)(""),[Rn,Pe]=(0,ee.useState)([]),[he,Oe]=(0,ee.useState)(""),[He,qe]=(0,ee.useState)(),[wt,Ct]=(0,ee.useState)(!1),[zt,Mt]=(0,ee.useState)([]),[Rt,Et]=(0,ee.useState)(!1),Cn=(0,me.useParams)();(0,ee.useEffect)(()=>{var xn;Te.edit&&Et(!0),it(Te.shixun_name),yn(Te.question_title);const Fn=[];(xn=Te.shixun)==null||xn.map(vn=>{Fn.push(vn.challenge_score)}),Mt(Fn)},[Te]),(0,ee.useEffect)(()=>{Ct(!1)},[Rt]),(0,ee.useImperativeHandle)(Ge,()=>({onSave:jt,isEdit:Rt}));const jt=()=>Yn(void 0,null,function*(){let xn=[];if(!1)return!1;let vn;return Te.question_id?vn=yield(0,y.Kc)({id:Te.question_id,question_title:un,shixun_name:ht,shixun_id:Te.shixun_id,question_type:5,question_scores:zt}):vn=yield(0,y.iV)({exercise_bank_id:Cn.topicId,question_title:un,shixun_name:ht,shixun_id:Te.shixun_id,question_type:5,question_scores:zt}),vn.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),Et(!1)),yield fn({type:"polls/getExerciseBanks",payload:$a({},Cn)}),{name:un,analysis:On,standard_answers:xn,is_ordered:He}}),vt=()=>{var xn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),ee.createElement("div",{className:"mt10"},ee.createElement(ke.default,{defaultValue:ht,onChange:Fn=>{it(Fn.target.value)}})),ee.createElement("div",{className:"mt10"},ee.createElement(z.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:un,onChange:Fn=>{yn(Fn)}})),ee.createElement("div",{className:"mt20"},(xn=Te.shixun)==null?void 0:xn.map((Fn,vn)=>ee.createElement(je.Z,{gutter:[20,20]},ee.createElement(Ae.Z,{flex:"1"},vn+1,".",Fn.challenge_name),ee.createElement(Ae.Z,null,ee.createElement(b.Z,{defaultValue:zt[vn],onChange:qt=>{zt[vn]=qt,Mt(zt),console.log("srore:L",zt[vn])}}))))),ee.createElement("div",{className:"mt20"},Rn.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:He,onChange:Fn=>qe(Fn.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),ee.createElement("span",{className:`${ne.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),ee.createElement("aside",{className:"tr"},!(Te!=null&&Te.edit)&&ee.createElement(Be.ZP,{type:"default",onClick:()=>Et(!1)},"\u53D6\u6D88"),ee.createElement(Be.ZP,{className:"ml20",type:"primary",onClick:()=>jt()},"\u4FDD\u5B58")))},Zt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Qt=xn=>Yn(void 0,null,function*(){switch(xn.id){case"del":let Fn;a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Yn(this,null,function*(){yield(0,y.x$)({pollsId:Te.question_id}),fn({type:"polls/getExerciseBanks",payload:$a({},Cn)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:Te==null?void 0:Te.question_id,opr:xn.id}),fn({type:"polls/getExerciseBanks",payload:$a({},Cn)});break;case"edit":Et(!0);break}}),_n=()=>{var xn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Te.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Te.question_score,"\u5206\uFF09"),ee.createElement("div",{className:"tr"},ee.createElement(me.Link,{target:"_blank",to:`/shixuns/${Te.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Te.hideAction&&Zt.map(function(Fn,vn){return Fn.id==="up"&&Te.key===1||Fn.id==="down"&&Te.key===Te.len?null:ee.createElement(Ve.Z,{key:vn,placement:"bottom",title:Fn.name},ee.createElement("span",{onClick:()=>Qt(Fn),className:Fn.icon}))}))),ee.createElement("div",{className:"font16"},Te.shixun_name),ee.createElement("div",{className:"mt30"}),(xn=Te.shixun)==null?void 0:xn.map(function(Fn,vn){return ee.createElement("div",{key:vn},"\u7B2C",vn+1,"\u5173 ",ee.createElement("span",{className:"ml10"},Fn.challenge_name)," ",ee.createElement("span",{className:"ml10"},Fn.challenge_score))}))};return ee.createElement("section",{className:ne.wrap},!Rt&&_n(),Rt&&vt())};var ta=(0,me.connect)(({problemset:ze,loading:Ge,globalSetting:le})=>({problemset:ze,globalSetting:le,loading:Ge.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Za)),Qn=ae(72565),Mo=ae(28452),Ha={flex_box_center:"flex_box_center___hUmFx",flex_space_between:"flex_space_between___ZQWRF",flex_box_vertical_center:"flex_box_vertical_center___NvFWH",flex_box_center_end:"flex_box_center_end___VzfH9",flex_box_column:"flex_box_column___jzLHY",wrp:"wrp___tA5YW",drawer:"drawer___aMsAr",menu:"menu___EdF6h",actived:"actived___rUgO6",actived2:"actived2___ENpPA",listItem:"listItem___Ixzli",info:"info___KHkuz",title:"title___pDJPn",titleLeft:"titleLeft___UBBKz",titleRight:"titleRight___WrCz9",search:"search___AEwRm",description:"description___CYPQc",menuCourse:"menuCourse___gwZ0E"},yo=Object.defineProperty,$e=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Pt=(ze,Ge,le)=>Ge in ze?yo(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,Yt=(ze,Ge)=>{for(var le in Ge||(Ge={}))Ie.call(Ge,le)&&Pt(ze,le,Ge[le]);if($e)for(var le of $e(Ge))Fe.call(Ge,le)&&Pt(ze,le,Ge[le]);return ze},Jt=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const{Search:Gn}=ke.default,An=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],kn=({classroomList:ze,loading:Ge,dispatch:le,callback:ut})=>{var In;const oa=(0,me.useParams)(),fn=(0,me.useLocation)(),{actionTabs:Te}=ze,[ye]=se.default.useForm(),{shixunLists:ht}=ze,[it,un]=(0,ee.useState)([]),[yn,On]=(0,ee.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1});return(0,ee.useEffect)(()=>{le({type:"classroomList/getShixunLists",payload:Yt({},yn)})},[oa.categoryId]),(0,ee.useEffect)(()=>{un([])},[ze.actionTabs.key]),ze.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:ee.createElement(Qn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:ze.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:Ha.drawer,footer:ee.createElement("div",{className:"tc"},ee.createElement(Be.ZP,{size:"middle",onClick:()=>{le({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},"\u53D6\u6D88"),ee.createElement(Be.ZP,{size:"middle",onClick:()=>Jt(void 0,null,function*(){var It;it.length>1?we.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):it.length===0?we.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(ut&&ut((It=ht==null?void 0:ht.shixun_list)==null?void 0:It.filter(Rn=>Rn.id===it[0])[0]),le({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},ee.createElement("section",{className:"tc"},ee.createElement(Gn,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:Ha.search,onSearch:It=>{yn.keyword=It,le({type:"classroomList/getShixunLists",payload:Yt({},yn)})}})),ee.createElement("section",{className:"edu-container"},An.map(function(It,Rn){var Pe;return ee.createElement("ul",{className:Ha.menu,key:Rn},ee.createElement("li",null,It.name),(Pe=It==null?void 0:It.children)==null?void 0:Pe.map(function(he,Oe){return ee.createElement("li",{key:Oe,className:yn[It.id]==he.id?Ha.actived:"",onClick:()=>{yn[It.id]=he.id,On(Yt({},yn)),le({type:"classroomList/getShixunLists",payload:Yt({},yn)})}},ee.createElement("strong",null,he.name))}))}),(In=ht==null?void 0:ht.shixun_list)==null?void 0:In.map(function(It,Rn){return ee.createElement("div",{className:Ha.listItem,key:Rn},ee.createElement(E.default,{checked:it.includes(It.id),value:It.id,onChange:Pe=>{let he=it.indexOf(It.id);it.indexOf(It.id)>-1?un(it.filter(Oe=>Oe!==It.id)):un(it.concat(It.id))}}),ee.createElement("div",{className:Ha.info},ee.createElement("div",{className:Ha.title},ee.createElement("div",{className:Ha.titleLeft},ee.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:It.title}}))),ee.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},ee.createElement("span",{className:Ha.description,dangerouslySetInnerHTML:{__html:It.description}})),ee.createElement("div",{className:" mt15"},It.challenge_names.map(function(Pe,he){return ee.createElement("span",{key:he,className:"mr30"},"\u7B2C",he+1,"\u5173 ",Pe," ")})),ee.createElement(fe.Z,{dashed:!0}),ee.createElement("div",{className:"c-light-black mt20"},ee.createElement("span",null,It.author_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,It.author_school_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",It.level),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),ee.createElement("span",null,It.study_count))))}),ee.createElement("p",null)),ee.createElement("div",{className:"tc"},ee.createElement(Mo.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:ht==null?void 0:ht.shixuns_count,onChange:It=>{yn.page=It,un([]),le({type:"classroomList/getShixunLists",payload:Yt({},yn)})}})))};var na=(0,me.connect)(({classroomList:ze,loading:Ge})=>({classroomList:ze,loading:Ge}))(kn),La={flex_box_center:"flex_box_center___SQWFF",flex_space_between:"flex_space_between___CnFKV",flex_box_vertical_center:"flex_box_vertical_center___pIPP9",flex_box_center_end:"flex_box_center_end___wiYA8",flex_box_column:"flex_box_column___elCPc",bg:"bg___EaPuT",containerTitle:"containerTitle___ixpkx",containerDesc:"containerDesc___r2R0u",listItem:"listItem___jvD98",info:"info___dCwGz",title:"title___UW6TT",titleLeft:"titleLeft___MquHc",titleRight:"titleRight___aWhE3",acitons:"acitons___yle7y"},ft=Object.defineProperty,Hn=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,wa=(ze,Ge,le)=>Ge in ze?ft(ze,Ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):ze[Ge]=le,aa=(ze,Ge)=>{for(var le in Ge||(Ge={}))Ta.call(Ge,le)&&wa(ze,le,Ge[le]);if(Hn)for(var le of Hn(Ge))so.call(Ge,le)&&wa(ze,le,Ge[le]);return ze},ho=(ze,Ge)=>{var le={};for(var ut in ze)Ta.call(ze,ut)&&Ge.indexOf(ut)<0&&(le[ut]=ze[ut]);if(ze!=null&&Hn)for(var ut of Hn(ze))Ge.indexOf(ut)<0&&so.call(ze,ut)&&(le[ut]=ze[ut]);return le},to=(ze,Ge,le)=>new Promise((ut,In)=>{var oa=ye=>{try{Te(le.next(ye))}catch(ht){In(ht)}},fn=ye=>{try{Te(le.throw(ye))}catch(ht){In(ht)}},Te=ye=>ye.done?ut(ye.value):Promise.resolve(ye.value).then(oa,fn);Te((le=le.apply(ze,Ge)).next())});const{SubMenu:To}=Xe.default,{Content:wo,Sider:uo}=Ke.default,_a=ze=>{var Ge=ze,{polls:le,globalSetting:ut,loading:In,user:oa,dispatch:fn}=Ge,Te=ho(Ge,["polls","globalSetting","loading","user","dispatch"]),ye,ht,it,un,yn,On,It,Rn,Pe,he,Oe,He,qe,wt,Ct,zt,Mt,Rt,Et,Cn,jt,vt,Zt,Qt,_n,xn,Fn,vn,qt,dn,Mn,Sa,Ba,ro,Po,co,mo,Ut,pt,Ft,Ht,Wn,ia,Aa,Ca,ua,Pa,Ga,Ma,xo,Bo,bo,Vo,fo,Fa,ga;const So=(0,me.useParams)(),Sr=(0,me.useLocation)(),{userInfo:Fo}=oa,[Go]=se.default.useForm(),[Ra,no]=(0,ee.useState)([]),[nr,Ro]=(0,ee.useState)(!1),xa=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],Wa=(0,ee.useRef)();(0,ee.useEffect)(()=>{var qn,vo,lr,Ur,Kr,Vr;(qn=le.exerciseBanks)!=null&&qn.exercise_questions&&(no([...(vo=le.exerciseBanks)==null?void 0:vo.exercise_questions]),Go.setFieldsValue({exercise_name:(Ur=(lr=le.exerciseBanks)==null?void 0:lr.exercise)==null?void 0:Ur.exercise_name,exercise_description:(Vr=(Kr=le.exerciseBanks)==null?void 0:Kr.exercise)==null?void 0:Vr.exercise_description}))},[le.exerciseBanks]),(0,ee.useEffect)(()=>{fn({type:"polls/getExerciseBanks",payload:aa({},So)})},[So.categoryId]);const Xo=()=>to(void 0,null,function*(){var qn,vo;yield Go.validateFields();const lr=Go.getFieldValue();lr.is_md=!0,lr.topicId=(vo=(qn=le.exerciseBanks)==null?void 0:qn.exercise)==null?void 0:vo.id,Ro(!1),yield(0,y.hO)(aa({},lr)),fn({type:"polls/getExerciseBanks",payload:aa({},So)})}),Yo=qn=>to(void 0,null,function*(){const vo=yield Wa==null?void 0:Wa.current;if(vo!=null&&vo.isEdit){we.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}qn===5?fn({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):no([...Ra,{question_type:qn}])}),hr=function(){return Ra==null?void 0:Ra.map(function(qn,vo){if(qn.key=vo+1,qn.len=Ra.length,qn.question_type===0)return ee.createElement("aside",null,ee.createElement(Kt,{ref:Wa,editData:qn}),ee.createElement(fe.Z,null));if(qn.question_type===1)return ee.createElement("aside",null,ee.createElement(Me,{ref:Wa,editData:qn}),ee.createElement(fe.Z,null));if(qn.question_type===2)return ee.createElement("aside",null,ee.createElement(et,{ref:Wa,editData:qn}),ee.createElement(fe.Z,null));if(qn.question_type===3)return ee.createElement("aside",null,ee.createElement(at,{editData:qn}),ee.createElement(fe.Z,null));if(qn.question_type===4)return ee.createElement("aside",null,ee.createElement(sa,{editData:qn}),ee.createElement(fe.Z,null));if(qn.question_type===5)return ee.createElement("aside",null,ee.createElement(ta,{editData:qn}),ee.createElement(fe.Z,null))})};return ee.createElement("section",{className:"edu-container"},ee.createElement("section",{className:"animated fadeIn"},ee.createElement("aside",{className:"mt10"},Fo&&ee.createElement(Ze.Z,{separator:">"},ee.createElement(Ze.Z.Item,null,ee.createElement(me.Link,{to:`/users/${Fo.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),ee.createElement(Ze.Z.Item,null,ee.createElement(me.Link,{to:`/users/${Fo==null?void 0:Fo.login}/topics/${So.topicId}/${So.topictype}/exercise/detail`},"\u8BE6\u60C5")),ee.createElement(Ze.Z.Item,null,"\u7F16\u8F91"))),ee.createElement("aside",{className:[La.title,"mt20"].join(" ")},ee.createElement(je.Z,{style:{width:"100%"},align:"middle"},ee.createElement(Ae.Z,{flex:"1"},ee.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u8BD5\u5377"),ee.createElement(Xt.VV,{status:[(ht=(ye=le.exerciseBanks)==null?void 0:ye.exercise)!=null&&ht.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),ee.createElement(Ae.Z,null,ee.createElement(me.Link,{className:"font16 c-light-black",to:`/users/${Fo.login}/topics/personal`},"\u8FD4\u56DE"))))),ee.createElement("section",{className:[La.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!nr&&ee.createElement("aside",null,ee.createElement("div",{className:La.containerDesc},ee.createElement("div",null,(un=(it=le.exerciseBanks)==null?void 0:it.exercise)==null?void 0:un.exercise_name),ee.createElement("div",null,ee.createElement(Ve.Z,{title:"\u7F16\u8F91"},ee.createElement("span",{onClick:()=>Ro(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),ee.createElement("div",{className:"c-light-black"},(On=(yn=le.exerciseBanks)==null?void 0:yn.exercise)==null?void 0:On.exercise_description)),nr&&ee.createElement(se.default,{layout:"vertical",form:Go},ee.createElement(se.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},ee.createElement(ke.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ee.createElement(se.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},ee.createElement(ke.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),ee.createElement(se.default.Item,{className:"tr"},ee.createElement(Be.ZP,{type:"primary",onClick:()=>{Xo()}},"\u4FDD\u5B58")))),ee.createElement("p",{className:"mt10",style:{display:"flex"}},ee.createElement("span",{className:"fl",style:{flex:"1"}},!!((Rn=(It=le.exerciseBanks)==null?void 0:It.exercise_types)!=null&&Rn.q_singles)&&ee.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(he=(Pe=le.exerciseBanks)==null?void 0:Pe.exercise_types)==null?void 0:he.q_singles,"\u9898\uFF0C\u5171",(He=(Oe=le.exerciseBanks)==null?void 0:Oe.exercise_types)==null?void 0:He.q_singles_scores,"\u5206"),!!((wt=(qe=le.exerciseBanks)==null?void 0:qe.exercise_types)!=null&&wt.q_doubles)&&ee.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(zt=(Ct=le.exerciseBanks)==null?void 0:Ct.exercise_types)==null?void 0:zt.q_doubles,"\u9898\uFF0C\u5171",(Rt=(Mt=le.exerciseBanks)==null?void 0:Mt.exercise_types)==null?void 0:Rt.q_doubles_scores,"\u5206"),!!((Cn=(Et=le.exerciseBanks)==null?void 0:Et.exercise_types)!=null&&Cn.q_judges)&&ee.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(vt=(jt=le.exerciseBanks)==null?void 0:jt.exercise_types)==null?void 0:vt.q_judges,"\u9898\uFF0C\u5171",(Qt=(Zt=le.exerciseBanks)==null?void 0:Zt.exercise_types)==null?void 0:Qt.q_judges_scores,"\u5206"),!!((xn=(_n=le.exerciseBanks)==null?void 0:_n.exercise_types)!=null&&xn.q_nulls)&&ee.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(vn=(Fn=le.exerciseBanks)==null?void 0:Fn.exercise_types)==null?void 0:vn.q_nulls,"\u9898\uFF0C\u5171",(dn=(qt=le.exerciseBanks)==null?void 0:qt.exercise_types)==null?void 0:dn.q_nulls_scores,"\u5206"),!!((Sa=(Mn=le.exerciseBanks)==null?void 0:Mn.exercise_types)!=null&&Sa.q_mains)&&ee.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(ro=(Ba=le.exerciseBanks)==null?void 0:Ba.exercise_types)==null?void 0:ro.q_mains,"\u9898\uFF0C\u5171",(co=(Po=le.exerciseBanks)==null?void 0:Po.exercise_types)==null?void 0:co.q_mains_scores,"\u5206"),!!((Ut=(mo=le.exerciseBanks)==null?void 0:mo.exercise_types)!=null&&Ut.q_shixuns)&&ee.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(Ft=(pt=le.exerciseBanks)==null?void 0:pt.exercise_types)==null?void 0:Ft.q_shixuns,"\u9898\uFF0C\u5171",(Wn=(Ht=le.exerciseBanks)==null?void 0:Ht.exercise_types)==null?void 0:Wn.q_shixuns_scores,"\u5206"),!!((Aa=(ia=le.exerciseBanks)==null?void 0:ia.exercise_types)!=null&&Aa.q_pros)&&ee.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(ua=(Ca=le.exerciseBanks)==null?void 0:Ca.exercise_types)==null?void 0:ua.q_pros,"\u9898\uFF0C\u5171",(Ga=(Pa=le.exerciseBanks)==null?void 0:Pa.exercise_types)==null?void 0:Ga.q_pros_scores,"\u5206")),ee.createElement("span",{className:"fr"},!!((xo=(Ma=le.exerciseBanks)==null?void 0:Ma.exercise_types)!=null&&xo.q_counts)&&ee.createElement("span",null,"\u5408\u8BA1 ",ee.createElement("span",{className:"color-blue"},(bo=(Bo=le.exerciseBanks)==null?void 0:Bo.exercise_types)==null?void 0:bo.q_counts)," \u9898\uFF0C \u5171 ",ee.createElement("span",{className:`${((fo=(Vo=le.exerciseBanks)==null?void 0:Vo.exercise_types)==null?void 0:fo.q_scores)>100?"color-red font-bd":"color-orange"}`},(ga=(Fa=le.exerciseBanks)==null?void 0:Fa.exercise_types)==null?void 0:ga.q_scores)," \u5206"))),Ra!=""&&ee.createElement("section",{className:[La.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},hr()),ee.createElement("section",{style:{display:"flex"},className:[La.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ee.createElement("div",{style:{flex:"1"}},xa.map(function(qn,vo){return ee.createElement(Be.ZP,{className:"mr20",type:"primary",onClick:()=>Yo(qn.id)},ee.createElement(oe.Z,{className:"mr5"}),qn.name)}))),ee.createElement(na,{callback:qn=>{Ra.push({shixun:qn.challenge_names.map(vo=>({challenge_name:vo,challenge_score:5})),shixun_name:qn.title,shixun_id:qn.id,question_type:5,edit:!0}),no([...Ra])}}))};var Co=(0,me.connect)(({polls:ze,loading:Ge,user:le,globalSetting:ut})=>({polls:ze,globalSetting:ut,user:le,loading:Ge.effects}))(_a)},57838:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return me}});var ee=ae(67294);function me(){const[,Xe]=ee.useReducer(Ke=>Ke+1,0);return Xe}},85673:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return Bt}});var ee=ae(94184),me=ae.n(ee),Xe=ae(37419),Ke=ae(1337),se=ae(67294),we=ae(96159),fe=ae(53124),Ze=ae(42922),je=ae(56153);const Ae=Me=>{let{children:nt}=Me;const{getPrefixCls:ot}=se.useContext(fe.E_),rt=ot("breadcrumb");return se.createElement("li",{className:`${rt}-separator`,"aria-hidden":"true"},nt===""?nt:nt||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var Ve=Ae,ke=function(Me,nt){var ot={};for(var rt in Me)Object.prototype.hasOwnProperty.call(Me,rt)&&nt.indexOf(rt)<0&&(ot[rt]=Me[rt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(Me);St<rt.length;St++)nt.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(Me,rt[St])&&(ot[rt[St]]=Me[rt[St]]);return ot};function Be(Me,nt){if(Me.title===void 0||Me.title===null)return null;const ot=Object.keys(nt).join("|");return typeof Me.title=="object"?Me.title:String(Me.title).replace(new RegExp(`:(${ot})`,"g"),(rt,St)=>nt[St]||rt)}function oe(Me,nt,ot,rt){if(ot==null)return null;const{className:St,onClick:kt}=nt,Sn=ke(nt,["className","onClick"]),bn=Object.assign(Object.assign({},(0,Ke.Z)(Sn,{data:!0,aria:!0})),{onClick:kt});return rt!==void 0?se.createElement("a",Object.assign({},bn,{className:me()(`${Me}-link`,St),href:rt}),ot):se.createElement("span",Object.assign({},bn,{className:me()(`${Me}-link`,St)}),ot)}function y(Me,nt){return(rt,St,kt,Sn,bn)=>{if(nt)return nt(rt,St,kt,Sn);const Bn=Be(rt,St);return oe(Me,rt,Bn,bn)}}var a=function(Me,nt){var ot={};for(var rt in Me)Object.prototype.hasOwnProperty.call(Me,rt)&&nt.indexOf(rt)<0&&(ot[rt]=Me[rt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(Me);St<rt.length;St++)nt.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(Me,rt[St])&&(ot[rt[St]]=Me[rt[St]]);return ot};const E=Me=>{const{prefixCls:nt,separator:ot="/",children:rt,menu:St,overlay:kt,dropdownProps:Sn,href:bn}=Me,De=(Ye=>{if(St||kt){const gt=Object.assign({},Sn);if(St){const Kt=St||{},{items:ct}=Kt,Nt=a(Kt,["items"]);gt.menu=Object.assign(Object.assign({},Nt),{items:ct==null?void 0:ct.map((ve,yt)=>{var{key:on,title:Tn,label:xt,path:tt}=ve,Re=a(ve,["key","title","label","path"]);let Ne=xt!=null?xt:Tn;return tt&&(Ne=se.createElement("a",{href:`${bn}${tt}`},Ne)),Object.assign(Object.assign({},Re),{key:on!=null?on:yt,label:Ne})})})}else kt&&(gt.overlay=kt);return se.createElement(je.Z,Object.assign({placement:"bottom"},gt),se.createElement("span",{className:`${nt}-overlay-link`},Ye,se.createElement(Ze.Z,null)))}return Ye})(rt);return De!=null?se.createElement(se.Fragment,null,se.createElement("li",null,De),ot&&se.createElement(Ve,null,ot)):null},b=Me=>{const{prefixCls:nt,children:ot,href:rt}=Me,St=a(Me,["prefixCls","children","href"]),{getPrefixCls:kt}=se.useContext(fe.E_),Sn=kt("breadcrumb",nt);return se.createElement(E,Object.assign({},St,{prefixCls:Sn}),oe(Sn,St,ot,rt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=ae(14747),te=ae(67968),ne=ae(45503);const re=Me=>{const{componentCls:nt,iconCls:ot}=Me;return{[nt]:Object.assign(Object.assign({},(0,z.Wf)(Me)),{color:Me.itemColor,fontSize:Me.fontSize,[ot]:{fontSize:Me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Me.linkColor,transition:`color ${Me.motionDurationMid}`,padding:`0 ${Me.paddingXXS}px`,borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",marginInline:-Me.marginXXS,"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover}},(0,z.Qy)(Me)),"li:last-child":{color:Me.lastItemColor},[`${nt}-separator`]:{marginInline:Me.separatorMargin,color:Me.separatorColor},[`${nt}-link`]:{[`
> ${ot} + span,
> ${ot} + a
`]:{marginInlineStart:Me.marginXXS}},[`${nt}-overlay-link`]:{borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",padding:`0 ${Me.paddingXXS}px`,marginInline:-Me.marginXXS,[`> ${ot}`]:{marginInlineStart:Me.marginXXS,fontSize:Me.fontSizeIcon},"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover,a:{color:Me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Me.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,te.Z)("Breadcrumb",Me=>{const nt=(0,ne.TS)(Me,{});return[re(nt)]},Me=>({itemColor:Me.colorTextDescription,lastItemColor:Me.colorText,iconFontSize:Me.fontSize,linkColor:Me.colorTextDescription,linkHoverColor:Me.colorText,separatorColor:Me.colorTextDescription,separatorMargin:Me.marginXS})),de=function(Me,nt){var ot={};for(var rt in Me)Object.prototype.hasOwnProperty.call(Me,rt)&&nt.indexOf(rt)<0&&(ot[rt]=Me[rt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(Me);St<rt.length;St++)nt.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(Me,rt[St])&&(ot[rt[St]]=Me[rt[St]]);return ot};function Ee(Me){const{breadcrumbName:nt,children:ot}=Me,rt=de(Me,["breadcrumbName","children"]),St=Object.assign({title:nt},rt);return ot&&(St.menu={items:ot.map(kt=>{var{breadcrumbName:Sn}=kt,bn=de(kt,["breadcrumbName"]);return Object.assign(Object.assign({},bn),{title:Sn})})}),St}function pe(Me,nt){return(0,se.useMemo)(()=>Me||(nt?nt.map(Ee):null),[Me,nt])}var We=function(Me,nt){var ot={};for(var rt in Me)Object.prototype.hasOwnProperty.call(Me,rt)&&nt.indexOf(rt)<0&&(ot[rt]=Me[rt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(Me);St<rt.length;St++)nt.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(Me,rt[St])&&(ot[rt[St]]=Me[rt[St]]);return ot};const Le=(Me,nt)=>{if(nt===void 0)return nt;let ot=(nt||"").replace(/^\//,"");return Object.keys(Me).forEach(rt=>{ot=ot.replace(`:${rt}`,Me[rt])}),ot},lt=Me=>{const{prefixCls:nt,separator:ot="/",style:rt,className:St,rootClassName:kt,routes:Sn,items:bn,children:Bn,itemRender:De,params:Ye={}}=Me,gt=We(Me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Kt,direction:ct,breadcrumb:Nt}=se.useContext(fe.E_);let ve;const yt=Kt("breadcrumb",nt),[on,Tn]=ge(yt),xt=pe(bn,Sn),tt=y(yt,De);if(xt&&xt.length>0){const et=[],dt=bn||Sn;ve=xt.map(($t,Xt)=>{const{path:nn,key:sn,type:hn,menu:wn,overlay:Se,onClick:xe,className:ln,separator:bt,dropdownProps:Ce}=$t,mt=Le(Ye,nn);mt!==void 0&&et.push(mt);const at=sn!=null?sn:Xt;if(hn==="separator")return se.createElement(Ve,{key:at},bt);const Ot={},an=Xt===xt.length-1;wn?Ot.menu=wn:Se&&(Ot.overlay=Se);let{href:At}=$t;return et.length&&mt!==void 0&&(At=`#/${et.join("/")}`),se.createElement(E,Object.assign({key:at},Ot,(0,Ke.Z)($t,{data:!0,aria:!0}),{className:ln,dropdownProps:Ce,href:At,separator:an?"":ot,onClick:xe,prefixCls:yt}),tt($t,Ye,dt,et,At))})}else if(Bn){const et=(0,Xe.Z)(Bn).length;ve=(0,Xe.Z)(Bn).map((dt,$t)=>{if(!dt)return dt;const Xt=$t===et-1;return(0,we.Tm)(dt,{separator:Xt?"":ot,key:$t})})}const Re=me()(yt,Nt==null?void 0:Nt.className,{[`${yt}-rtl`]:ct==="rtl"},St,kt,Tn),Ne=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),rt);return on(se.createElement("nav",Object.assign({className:Re,style:Ne},gt),se.createElement("ol",null,ve)))};lt.Item=x,lt.Separator=Ve;var Dt=lt,Bt=Dt},84567:function(Ue,st,ae){"use strict";ae.d(st,{default:function(){return ge}});var ee=ae(94184),me=ae.n(ee),Xe=ae(95860),Ke=ae(67294),se=ae(53124),we=ae(98866),fe=ae(65223),je=Ke.createContext(null),Ae=ae(63185),Ve=ae(45353),ke=ae(92429),Be=function(de,Ee){var pe={};for(var We in de)Object.prototype.hasOwnProperty.call(de,We)&&Ee.indexOf(We)<0&&(pe[We]=de[We]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,We=Object.getOwnPropertySymbols(de);Le<We.length;Le++)Ee.indexOf(We[Le])<0&&Object.prototype.propertyIsEnumerable.call(de,We[Le])&&(pe[We[Le]]=de[We[Le]]);return pe};const oe=(de,Ee)=>{var pe;const{prefixCls:We,className:Le,rootClassName:lt,children:Dt,indeterminate:Bt=!1,style:Me,onMouseEnter:nt,onMouseLeave:ot,skipGroup:rt=!1,disabled:St}=de,kt=Be(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Sn,direction:bn,checkbox:Bn}=Ke.useContext(se.E_),De=Ke.useContext(je),{isFormItemInput:Ye}=Ke.useContext(fe.aM),gt=Ke.useContext(we.Z),Kt=(pe=(De==null?void 0:De.disabled)||St)!==null&&pe!==void 0?pe:gt,ct=Ke.useRef(kt.value);Ke.useEffect(()=>{De==null||De.registerValue(kt.value)},[]),Ke.useEffect(()=>{if(!rt)return kt.value!==ct.current&&(De==null||De.cancelValue(ct.current),De==null||De.registerValue(kt.value),ct.current=kt.value),()=>De==null?void 0:De.cancelValue(kt.value)},[kt.value]);const Nt=Sn("checkbox",We),[ve,yt]=(0,Ae.ZP)(Nt),on=Object.assign({},kt);De&&!rt&&(on.onChange=function(){kt.onChange&&kt.onChange.apply(kt,arguments),De.toggleOption&&De.toggleOption({label:Dt,value:kt.value})},on.name=De.name,on.checked=De.value.includes(kt.value));const Tn=me()(`${Nt}-wrapper`,{[`${Nt}-rtl`]:bn==="rtl",[`${Nt}-wrapper-checked`]:on.checked,[`${Nt}-wrapper-disabled`]:Kt,[`${Nt}-wrapper-in-form-item`]:Ye},Bn==null?void 0:Bn.className,Le,lt,yt),xt=me()({[`${Nt}-indeterminate`]:Bt},ke.A,yt),tt=Bt?"mixed":void 0;return ve(Ke.createElement(Ve.Z,{component:"Checkbox",disabled:Kt},Ke.createElement("label",{className:Tn,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),Me),onMouseEnter:nt,onMouseLeave:ot},Ke.createElement(Xe.Z,Object.assign({"aria-checked":tt},on,{prefixCls:Nt,className:xt,disabled:Kt,ref:Ee})),Dt!==void 0&&Ke.createElement("span",null,Dt))))};var a=Ke.forwardRef(oe),E=ae(74902),b=ae(10366),x=function(de,Ee){var pe={};for(var We in de)Object.prototype.hasOwnProperty.call(de,We)&&Ee.indexOf(We)<0&&(pe[We]=de[We]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,We=Object.getOwnPropertySymbols(de);Le<We.length;Le++)Ee.indexOf(We[Le])<0&&Object.prototype.propertyIsEnumerable.call(de,We[Le])&&(pe[We[Le]]=de[We[Le]]);return pe};const z=(de,Ee)=>{const{defaultValue:pe,children:We,options:Le=[],prefixCls:lt,className:Dt,rootClassName:Bt,style:Me,onChange:nt}=de,ot=x(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:rt,direction:St}=Ke.useContext(se.E_),[kt,Sn]=Ke.useState(ot.value||pe||[]),[bn,Bn]=Ke.useState([]);Ke.useEffect(()=>{"value"in ot&&Sn(ot.value||[])},[ot.value]);const De=Ke.useMemo(()=>Le.map(Re=>typeof Re=="string"||typeof Re=="number"?{label:Re,value:Re}:Re),[Le]),Ye=Re=>{Bn(Ne=>Ne.filter(et=>et!==Re))},gt=Re=>{Bn(Ne=>[].concat((0,E.Z)(Ne),[Re]))},Kt=Re=>{const Ne=kt.indexOf(Re.value),et=(0,E.Z)(kt);Ne===-1?et.push(Re.value):et.splice(Ne,1),"value"in ot||Sn(et),nt==null||nt(et.filter(dt=>bn.includes(dt)).sort((dt,$t)=>{const Xt=De.findIndex(sn=>sn.value===dt),nn=De.findIndex(sn=>sn.value===$t);return Xt-nn}))},ct=rt("checkbox",lt),Nt=`${ct}-group`,[ve,yt]=(0,Ae.ZP)(ct),on=(0,b.Z)(ot,["value","disabled"]),Tn=Le.length?De.map(Re=>Ke.createElement(a,{prefixCls:ct,key:Re.value.toString(),disabled:"disabled"in Re?Re.disabled:ot.disabled,value:Re.value,checked:kt.includes(Re.value),onChange:Re.onChange,className:`${Nt}-item`,style:Re.style,title:Re.title},Re.label)):We,xt={toggleOption:Kt,value:kt,disabled:ot.disabled,name:ot.name,registerValue:gt,cancelValue:Ye},tt=me()(Nt,{[`${Nt}-rtl`]:St==="rtl"},Dt,Bt,yt);return ve(Ke.createElement("div",Object.assign({className:tt,style:Me},on,{ref:Ee}),Ke.createElement(je.Provider,{value:xt},Tn)))},te=Ke.forwardRef(z);var ne=Ke.memo(te);const re=a;re.Group=ne,re.__ANT_CHECKBOX=!0;var ge=re},63185:function(Ue,st,ae){"use strict";ae.d(st,{C2:function(){return se}});var ee=ae(14747),me=ae(45503),Xe=ae(67968);const Ke=we=>{const{checkboxCls:fe}=we,Ze=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Ze]:Object.assign(Object.assign({},(0,ee.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ze}`]:{marginInlineStart:0},[`&${Ze}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,ee.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,ee.oN)(we))},[`${fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
${Ze}:not(${Ze}-disabled),
${fe}:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{borderColor:we.colorPrimary}},[`${Ze}:not(${Ze}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
${Ze}-checked:not(${Ze}-disabled),
${fe}-checked:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ze}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:we.colorTextDisabled}}}]};function se(we,fe){const Ze=(0,me.TS)(fe,{checkboxCls:`.${we}`,checkboxSize:fe.controlInteractiveSize});return[Ke(Ze)]}st.ZP=(0,Xe.Z)("Checkbox",(we,fe)=>{let{prefixCls:Ze}=fe;return[se(Ze,we)]})},96074:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return ke}});var ee=ae(94184),me=ae.n(ee),Xe=ae(67294),Ke=ae(53124),se=ae(14747),we=ae(67968),fe=ae(45503);const Ze=Be=>{const{componentCls:oe,sizePaddingEdgeHorizontal:y,colorSplit:a,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=Be;return{[oe]:Object.assign(Object.assign({},(0,se.Wf)(Be)),{borderBlockStart:`${E}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Be.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${oe}-with-text`]:{display:"flex",alignItems:"center",margin:`${Be.dividerHorizontalWithTextGutterMargin}px 0`,color:Be.colorTextHeading,fontWeight:500,fontSize:Be.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${oe}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${oe}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${oe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${oe}-with-text${oe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${oe}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${oe}-with-text`]:{color:Be.colorText,fontWeight:"normal",fontSize:Be.fontSize},[`&-horizontal${oe}-with-text-left${oe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${oe}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${oe}-with-text-right${oe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${oe}-inner-text`]:{paddingInlineEnd:y}}})}};var je=(0,we.Z)("Divider",Be=>{const oe=(0,fe.TS)(Be,{dividerHorizontalWithTextGutterMargin:Be.margin,dividerHorizontalGutterMargin:Be.marginLG,sizePaddingEdgeHorizontal:0});return[Ze(oe)]},Be=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Be.marginXS})),Ae=function(Be,oe){var y={};for(var a in Be)Object.prototype.hasOwnProperty.call(Be,a)&&oe.indexOf(a)<0&&(y[a]=Be[a]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(Be);E<a.length;E++)oe.indexOf(a[E])<0&&Object.prototype.propertyIsEnumerable.call(Be,a[E])&&(y[a[E]]=Be[a[E]]);return y},ke=Be=>{const{getPrefixCls:oe,direction:y,divider:a}=Xe.useContext(Ke.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:te,rootClassName:ne,children:re,dashed:ge,plain:de,style:Ee}=Be,pe=Ae(Be,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),We=oe("divider",E),[Le,lt]=je(We),Dt=x.length>0?`-${x}`:x,Bt=!!re,Me=x==="left"&&z!=null,nt=x==="right"&&z!=null,ot=me()(We,a==null?void 0:a.className,lt,`${We}-${b}`,{[`${We}-with-text`]:Bt,[`${We}-with-text${Dt}`]:Bt,[`${We}-dashed`]:!!ge,[`${We}-plain`]:!!de,[`${We}-rtl`]:y==="rtl",[`${We}-no-default-orientation-margin-left`]:Me,[`${We}-no-default-orientation-margin-right`]:nt},te,ne),rt=Xe.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),St=Object.assign(Object.assign({},Me&&{marginLeft:rt}),nt&&{marginRight:rt});return Le(Xe.createElement("div",Object.assign({className:ot,style:Object.assign(Object.assign({},a==null?void 0:a.style),Ee)},pe,{role:"separator"}),re&&b!=="vertical"&&Xe.createElement("span",{className:`${We}-inner-text`,style:St},re)))}},72565:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return Rn}});var ee=ae(94184),me=ae.n(ee),Xe=ae(1413),Ke=ae(97685),se=ae(67294),we=ae(73935);function fe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ze={};function je(Pe,he){}function Ae(Pe,he){}function Ve(){Ze={}}function ke(Pe,he,Oe){!he&&!Ze[Oe]&&(Pe(!1,Oe),Ze[Oe]=!0)}function Be(Pe,he){ke(je,Pe,he)}function oe(Pe,he){ke(Ae,Pe,he)}var y=null,a=ae(71002),E=ae(18459);function b(Pe,he,Oe){var He=se.useRef({});return(!("value"in He.current)||Oe(He.current.condition,he))&&(He.current.value=Pe(),He.current.condition=he),He.current.value}function x(Pe,he){typeof Pe=="function"?Pe(he):(0,a.Z)(Pe)==="object"&&Pe&&"current"in Pe&&(Pe.current=he)}function z(){for(var Pe=arguments.length,he=new Array(Pe),Oe=0;Oe<Pe;Oe++)he[Oe]=arguments[Oe];var He=he.filter(function(qe){return qe});return He.length<=1?He[0]:function(qe){he.forEach(function(wt){x(wt,qe)})}}function te(){for(var Pe=arguments.length,he=new Array(Pe),Oe=0;Oe<Pe;Oe++)he[Oe]=arguments[Oe];return b(function(){return z.apply(void 0,he)},he,function(He,qe){return He.length===qe.length&&He.every(function(wt,Ct){return wt===qe[Ct]})})}function ne(Pe){var he,Oe,He=(0,E.isMemo)(Pe)?Pe.type.type:Pe.type;return!(typeof He=="function"&&!((he=He.prototype)!==null&&he!==void 0&&he.render)||typeof Pe=="function"&&!((Oe=Pe.prototype)!==null&&Oe!==void 0&&Oe.render))}var re=se.createContext(null),ge=re,de=ae(74902),Ee=fe()?se.useLayoutEffect:se.useEffect,pe=Ee,We=function(he,Oe){var He=React.useRef(!0);Ee(function(){if(!He.current)return he()},Oe),Ee(function(){return He.current=!1,function(){He.current=!0}},[])},Le=[];function lt(Pe,he){var Oe=se.useState(function(){if(!fe())return null;var Zt=document.createElement("div");return Zt}),He=(0,Ke.Z)(Oe,1),qe=He[0],wt=se.useRef(!1),Ct=se.useContext(ge),zt=se.useState(Le),Mt=(0,Ke.Z)(zt,2),Rt=Mt[0],Et=Mt[1],Cn=Ct||(wt.current?void 0:function(Zt){Et(function(Qt){var _n=[Zt].concat((0,de.Z)(Qt));return _n})});function jt(){qe.parentElement||document.body.appendChild(qe),wt.current=!0}function vt(){var Zt;(Zt=qe.parentElement)===null||Zt===void 0||Zt.removeChild(qe),wt.current=!1}return pe(function(){return Pe?Ct?Ct(jt):jt():vt(),vt},[Pe]),pe(function(){Rt.length&&(Rt.forEach(function(Zt){return Zt()}),Et(Le))},[Rt]),[qe,Cn]}function Dt(Pe,he){if(!Pe)return!1;if(Pe.contains)return Pe.contains(he);for(var Oe=he;Oe;){if(Oe===Pe)return!0;Oe=Oe.parentNode}return!1}var Bt="data-rc-order",Me="rc-util-key",nt=new Map;function ot(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=Pe.mark;return he?he.startsWith("data-")?he:"data-".concat(he):Me}function rt(Pe){if(Pe.attachTo)return Pe.attachTo;var he=document.querySelector("head");return he||document.body}function St(Pe){return Pe==="queue"?"prependQueue":Pe?"prepend":"append"}function kt(Pe){return Array.from((nt.get(Pe)||Pe).children).filter(function(he){return he.tagName==="STYLE"})}function Sn(Pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fe())return null;var Oe=he.csp,He=he.prepend,qe=document.createElement("style");qe.setAttribute(Bt,St(He)),Oe!=null&&Oe.nonce&&(qe.nonce=Oe==null?void 0:Oe.nonce),qe.innerHTML=Pe;var wt=rt(he),Ct=wt.firstChild;if(He){if(He==="queue"){var zt=kt(wt).filter(function(Mt){return["prepend","prependQueue"].includes(Mt.getAttribute(Bt))});if(zt.length)return wt.insertBefore(qe,zt[zt.length-1].nextSibling),qe}wt.insertBefore(qe,Ct)}else wt.appendChild(qe);return qe}function bn(Pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=rt(he);return kt(Oe).find(function(He){return He.getAttribute(ot(he))===Pe})}function Bn(Pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=bn(Pe,he);if(Oe){var He=rt(he);He.removeChild(Oe)}}function De(Pe,he){var Oe=nt.get(Pe);if(!Oe||!Dt(document,Oe)){var He=Sn("",he),qe=He.parentNode;nt.set(Pe,qe),Pe.removeChild(He)}}function Ye(){nt.clear()}function gt(Pe,he){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},He=rt(Oe);De(He,Oe);var qe=bn(he,Oe);if(qe){var wt,Ct;if((wt=Oe.csp)!==null&&wt!==void 0&&wt.nonce&&qe.nonce!==((Ct=Oe.csp)===null||Ct===void 0?void 0:Ct.nonce)){var zt;qe.nonce=(zt=Oe.csp)===null||zt===void 0?void 0:zt.nonce}return qe.innerHTML!==Pe&&(qe.innerHTML=Pe),qe}var Mt=Sn(Pe,Oe);return Mt.setAttribute(ot(Oe),he),Mt}var Kt;function ct(Pe){if(typeof document=="undefined")return 0;if(Pe||Kt===void 0){var he=document.createElement("div");he.style.width="100%",he.style.height="200px";var Oe=document.createElement("div"),He=Oe.style;He.position="absolute",He.top="0",He.left="0",He.pointerEvents="none",He.visibility="hidden",He.width="200px",He.height="150px",He.overflow="hidden",Oe.appendChild(he),document.body.appendChild(Oe);var qe=he.offsetWidth;Oe.style.overflow="scroll";var wt=he.offsetWidth;qe===wt&&(wt=Oe.clientWidth),document.body.removeChild(Oe),Kt=qe-wt}return Kt}function Nt(Pe){var he=Pe.match(/^(.*)px$/),Oe=Number(he==null?void 0:he[1]);return Number.isNaN(Oe)?ct():Oe}function ve(Pe){if(typeof document=="undefined"||!Pe||!(Pe instanceof Element))return{width:0,height:0};var he=getComputedStyle(Pe,"::-webkit-scrollbar"),Oe=he.width,He=he.height;return{width:Nt(Oe),height:Nt(He)}}function yt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var on="rc-util-locker-".concat(Date.now()),Tn=0;function xt(Pe){var he=!!Pe,Oe=se.useState(function(){return Tn+=1,"".concat(on,"_").concat(Tn)}),He=(0,Ke.Z)(Oe,1),qe=He[0];pe(function(){if(he){var wt=ve(document.body).width,Ct=yt();gt(`
html body {
overflow-y: hidden;
`.concat(Ct?"width: calc(100% - ".concat(wt,"px);"):"",`
}`),qe)}else Bn(qe);return function(){Bn(qe)}},[he,qe])}var tt=!1;function Re(Pe){return typeof Pe=="boolean"&&(tt=Pe),tt}var Ne=function(he){return he===!1?!1:!fe()||!he?null:typeof he=="string"?document.querySelector(he):typeof he=="function"?he():he},et=se.forwardRef(function(Pe,he){var Oe=Pe.open,He=Pe.autoLock,qe=Pe.getContainer,wt=Pe.debug,Ct=Pe.autoDestroy,zt=Ct===void 0?!0:Ct,Mt=Pe.children,Rt=se.useState(Oe),Et=(0,Ke.Z)(Rt,2),Cn=Et[0],jt=Et[1],vt=Cn||Oe;se.useEffect(function(){(zt||Oe)&&jt(Oe)},[Oe,zt]);var Zt=se.useState(function(){return Ne(qe)}),Qt=(0,Ke.Z)(Zt,2),_n=Qt[0],xn=Qt[1];se.useEffect(function(){var mo=Ne(qe);xn(mo!=null?mo:null)});var Fn=lt(vt&&!_n,wt),vn=(0,Ke.Z)(Fn,2),qt=vn[0],dn=vn[1],Mn=_n!=null?_n:qt;xt(He&&Oe&&fe()&&(Mn===qt||Mn===document.body));var Sa=null;if(Mt&&ne(Mt)&&he){var Ba=Mt;Sa=Ba.ref}var ro=te(Sa,he);if(!vt||!fe()||_n===void 0)return null;var Po=Mn===!1||Re(),co=Mt;return he&&(co=se.cloneElement(Mt,{ref:ro})),se.createElement(ge.Provider,{value:dn},Po?co:(0,we.createPortal)(co,Mn))}),dt=et,$t=dt;function Xt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var nn=Xt()?se.useLayoutEffect:se.useEffect,sn=function(he,Oe){var He=se.useRef(!0);nn(function(){return he(He.current)},Oe),nn(function(){return He.current=!1,function(){He.current=!0}},[])},hn=function(he,Oe){sn(function(He){if(!He)return he()},Oe)},wn=sn,Se=se.createContext(null),xe=se.createContext({}),ln=Se,bt=ae(4942),Ce=ae(87462),mt=ae(62874),at={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(he){var Oe=he.keyCode;if(he.altKey&&!he.ctrlKey||he.metaKey||Oe>=at.F1&&Oe<=at.F12)return!1;switch(Oe){case at.ALT:case at.CAPS_LOCK:case at.CONTEXT_MENU:case at.CTRL:case at.DOWN:case at.END:case at.ESC:case at.HOME:case at.INSERT:case at.LEFT:case at.MAC_FF_META:case at.META:case at.NUMLOCK:case at.NUM_CENTER:case at.PAGE_DOWN:case at.PAGE_UP:case at.PAUSE:case at.PRINT_SCREEN:case at.RIGHT:case at.SHIFT:case at.UP:case at.WIN_KEY:case at.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(he){if(he>=at.ZERO&&he<=at.NINE||he>=at.NUM_ZERO&&he<=at.NUM_MULTIPLY||he>=at.A&&he<=at.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&he===0)return!0;switch(he){case at.SPACE:case at.QUESTION_MARK:case at.NUM_PLUS:case at.NUM_MINUS:case at.NUM_PERIOD:case at.NUM_DIVISION:case at.SEMICOLON:case at.DASH:case at.EQUALS:case at.COMMA:case at.PERIOD:case at.SLASH:case at.APOSTROPHE:case at.SINGLE_QUOTE:case at.OPEN_SQUARE_BRACKET:case at.BACKSLASH:case at.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ot=at,an=`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`,At=`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`,Gt="".concat(an," ").concat(At).split(/[\s\n]+/),Vt="aria-",Dn="data-";function mn(Pe,he){return Pe.indexOf(he)===0}function Pn(Pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe;he===!1?Oe={aria:!0,data:!0,attr:!0}:he===!0?Oe={aria:!0}:Oe=(0,Xe.Z)({},he);var He={};return Object.keys(Pe).forEach(function(qe){(Oe.aria&&(qe==="role"||mn(qe,Vt))||Oe.data&&mn(qe,Dn)||Oe.attr&&Gt.includes(qe))&&(He[qe]=Pe[qe])}),He}function ea(Pe){var he=React.useRef();he.current=Pe;var Oe=React.useCallback(function(){for(var He,qe=arguments.length,wt=new Array(qe),Ct=0;Ct<qe;Ct++)wt[Ct]=arguments[Ct];return(He=he.current)===null||He===void 0?void 0:He.call.apply(He,[he].concat(wt))},[]);return Oe}function $n(Pe){var he=React.useRef(!1),Oe=React.useState(Pe),He=_slicedToArray(Oe,2),qe=He[0],wt=He[1];React.useEffect(function(){return he.current=!1,function(){he.current=!0}},[]);function Ct(zt,Mt){Mt&&he.current||wt(zt)}return[qe,Ct]}function sa(Pe){return Pe!==void 0}function Ea(Pe,he){var Oe=he||{},He=Oe.defaultValue,qe=Oe.value,wt=Oe.onChange,Ct=Oe.postState,zt=useState(function(){return sa(qe)?qe:sa(He)?typeof He=="function"?He():He:typeof Pe=="function"?Pe():Pe}),Mt=_slicedToArray(zt,2),Rt=Mt[0],Et=Mt[1],Cn=qe!==void 0?qe:Rt,jt=Ct?Ct(Cn):Cn,vt=useEvent(wt),Zt=useState([Cn]),Qt=_slicedToArray(Zt,2),_n=Qt[0],xn=Qt[1];useLayoutUpdateEffect(function(){var vn=_n[0];Rt!==vn&&vt(Rt,vn)},[_n]),useLayoutUpdateEffect(function(){sa(qe)||Et(qe)},[qe]);var Fn=useEvent(function(vn,qt){Et(vn,qt),xn([Cn],qt)});return[jt,Fn]}var za=ae(33993);function eo(Pe,he,Oe){var He=se.useRef({});return(!("value"in He.current)||Oe(He.current.condition,he))&&(He.current.value=Pe(),He.current.condition=he),He.current.value}function ka(Pe,he){typeof Pe=="function"?Pe(he):(0,a.Z)(Pe)==="object"&&Pe&&"current"in Pe&&(Pe.current=he)}function oo(){for(var Pe=arguments.length,he=new Array(Pe),Oe=0;Oe<Pe;Oe++)he[Oe]=arguments[Oe];var He=he.filter(function(qe){return qe});return He.length<=1?He[0]:function(qe){he.forEach(function(wt){ka(wt,qe)})}}function $a(){for(var Pe=arguments.length,he=new Array(Pe),Oe=0;Oe<Pe;Oe++)he[Oe]=arguments[Oe];return eo(function(){return oo.apply(void 0,he)},he,function(He,qe){return He.length!==qe.length||He.every(function(wt,Ct){return wt!==qe[Ct]})})}function Xa(Pe){var he,Oe,He=isMemo(Pe)?Pe.type.type:Pe.type;return!(typeof He=="function"&&!((he=He.prototype)!==null&&he!==void 0&&he.render)||typeof Pe=="function"&&!((Oe=Pe.prototype)!==null&&Oe!==void 0&&Oe.render))}function Yn(Pe){return!isValidElement(Pe)||isFragment(Pe)?!1:Xa(Pe)}function ja(Pe,he,Oe,He){if(!he.length)return Oe;var qe=_toArray(he),wt=qe[0],Ct=qe.slice(1),zt;return!Pe&&typeof wt=="number"?zt=[]:Array.isArray(Pe)?zt=_toConsumableArray(Pe):zt=_objectSpread({},Pe),He&&Oe===void 0&&Ct.length===1?delete zt[wt][Ct[0]]:zt[wt]=ja(zt[wt],Ct,Oe,He),zt}function Za(Pe,he,Oe){var He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return he.length&&He&&Oe===void 0&&!get(Pe,he.slice(0,-1))?Pe:ja(Pe,he,Oe,He)}function ta(Pe){return _typeof(Pe)==="object"&&Pe!==null&&Object.getPrototypeOf(Pe)===Object.prototype}function Qn(Pe){return Array.isArray(Pe)?[]:{}}var Mo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ha(){for(var Pe=arguments.length,he=new Array(Pe),Oe=0;Oe<Pe;Oe++)he[Oe]=arguments[Oe];var He=Qn(he[0]);return he.forEach(function(qe){function wt(Ct,zt){var Mt=new Set(zt),Rt=get(qe,Ct),Et=Array.isArray(Rt);if(Et||ta(Rt)){if(!Mt.has(Rt)){Mt.add(Rt);var Cn=get(He,Ct);Et?He=Za(He,Ct,[]):(!Cn||_typeof(Cn)!=="object")&&(He=Za(He,Ct,Qn(Rt))),Mo(Rt).forEach(function(jt){wt([].concat(_toConsumableArray(Ct),[jt]),Mt)})}}else He=Za(He,Ct,Rt)}wt([])}),He}var yo={},$e=[],Ie=function(he){$e.push(he)};function Fe(Pe,he){if(0)var Oe}function Pt(Pe,he){if(0)var Oe}function Yt(){yo={}}function Jt(Pe,he,Oe){!he&&!yo[Oe]&&(Pe(!1,Oe),yo[Oe]=!0)}function Gn(Pe,he){Jt(Fe,Pe,he)}function An(Pe,he){Jt(Pt,Pe,he)}Gn.preMessage=Ie,Gn.resetWarned=Yt,Gn.noteOnce=An;var kn=Gn,na=function(he){var Oe=he.prefixCls,He=he.className,qe=he.style,wt=he.children,Ct=he.containerRef,zt=he.id,Mt=he.onMouseEnter,Rt=he.onMouseOver,Et=he.onMouseLeave,Cn=he.onClick,jt=he.onKeyDown,vt=he.onKeyUp,Zt={onMouseEnter:Mt,onMouseOver:Rt,onMouseLeave:Et,onClick:Cn,onKeyDown:jt,onKeyUp:vt},Qt=se.useContext(xe),_n=Qt.panel,xn=$a(_n,Ct);return se.createElement(se.Fragment,null,se.createElement("div",(0,Ce.Z)({id:zt,className:me()("".concat(Oe,"-content"),He),style:(0,Xe.Z)({},qe),"aria-modal":"true",role:"dialog",ref:xn},Zt),wt))},La=na;function ft(Pe){return typeof Pe=="string"&&String(Number(Pe))===Pe?(kn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Pe)):Pe}function Hn(Pe){warning(!("wrapperClassName"in Pe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Pe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ta={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function so(Pe,he){var Oe,He,qe,wt,Ct=Pe.prefixCls,zt=Pe.open,Mt=Pe.placement,Rt=Pe.inline,Et=Pe.push,Cn=Pe.forceRender,jt=Pe.autoFocus,vt=Pe.keyboard,Zt=Pe.rootClassName,Qt=Pe.rootStyle,_n=Pe.zIndex,xn=Pe.className,Fn=Pe.id,vn=Pe.style,qt=Pe.motion,dn=Pe.width,Mn=Pe.height,Sa=Pe.children,Ba=Pe.contentWrapperStyle,ro=Pe.mask,Po=Pe.maskClosable,co=Pe.maskMotion,mo=Pe.maskClassName,Ut=Pe.maskStyle,pt=Pe.afterOpenChange,Ft=Pe.onClose,Ht=Pe.onMouseEnter,Wn=Pe.onMouseOver,ia=Pe.onMouseLeave,Aa=Pe.onClick,Ca=Pe.onKeyDown,ua=Pe.onKeyUp,Pa=se.useRef(),Ga=se.useRef(),Ma=se.useRef();se.useImperativeHandle(he,function(){return Pa.current});var xo=function(Wa){var Xo=Wa.keyCode,Yo=Wa.shiftKey;switch(Xo){case Ot.TAB:{if(Xo===Ot.TAB){if(!Yo&&document.activeElement===Ma.current){var hr;(hr=Ga.current)===null||hr===void 0||hr.focus({preventScroll:!0})}else if(Yo&&document.activeElement===Ga.current){var qn;(qn=Ma.current)===null||qn===void 0||qn.focus({preventScroll:!0})}}break}case Ot.ESC:{Ft&&vt&&(Wa.stopPropagation(),Ft(Wa));break}}};se.useEffect(function(){if(zt&&jt){var xa;(xa=Pa.current)===null||xa===void 0||xa.focus({preventScroll:!0})}},[zt]);var Bo=se.useState(!1),bo=(0,Ke.Z)(Bo,2),Vo=bo[0],fo=bo[1],Fa=se.useContext(ln),ga;Et===!1?ga={distance:0}:Et===!0?ga={}:ga=Et||{};var So=(Oe=(He=(qe=ga)===null||qe===void 0?void 0:qe.distance)!==null&&He!==void 0?He:Fa==null?void 0:Fa.pushDistance)!==null&&Oe!==void 0?Oe:180,Sr=se.useMemo(function(){return{pushDistance:So,push:function(){fo(!0)},pull:function(){fo(!1)}}},[So]);se.useEffect(function(){if(zt){var xa;Fa==null||(xa=Fa.push)===null||xa===void 0||xa.call(Fa)}else{var Wa;Fa==null||(Wa=Fa.pull)===null||Wa===void 0||Wa.call(Fa)}},[zt]),se.useEffect(function(){return function(){var xa;Fa==null||(xa=Fa.pull)===null||xa===void 0||xa.call(Fa)}},[]);var Fo=ro&&se.createElement(mt.Z,(0,Ce.Z)({key:"mask"},co,{visible:zt}),function(xa,Wa){var Xo=xa.className,Yo=xa.style;return se.createElement("div",{className:me()("".concat(Ct,"-mask"),Xo,mo),style:(0,Xe.Z)((0,Xe.Z)({},Yo),Ut),onClick:Po&&zt?Ft:void 0,ref:Wa})}),Go=typeof qt=="function"?qt(Mt):qt,Ra={};if(Vo&&So)switch(Mt){case"top":Ra.transform="translateY(".concat(So,"px)");break;case"bottom":Ra.transform="translateY(".concat(-So,"px)");break;case"left":Ra.transform="translateX(".concat(So,"px)");break;default:Ra.transform="translateX(".concat(-So,"px)");break}Mt==="left"||Mt==="right"?Ra.width=ft(dn):Ra.height=ft(Mn);var no={onMouseEnter:Ht,onMouseOver:Wn,onMouseLeave:ia,onClick:Aa,onKeyDown:Ca,onKeyUp:ua},nr=se.createElement(mt.Z,(0,Ce.Z)({key:"panel"},Go,{visible:zt,forceRender:Cn,onVisibleChanged:function(Wa){pt==null||pt(Wa)},removeOnLeave:!1,leavedClassName:"".concat(Ct,"-content-wrapper-hidden")}),function(xa,Wa){var Xo=xa.className,Yo=xa.style;return se.createElement("div",(0,Ce.Z)({className:me()("".concat(Ct,"-content-wrapper"),Xo),style:(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Ra),Yo),Ba)},Pn(Pe,{data:!0})),se.createElement(La,(0,Ce.Z)({id:Fn,containerRef:Wa,prefixCls:Ct,className:xn,style:vn},no),Sa))}),Ro=(0,Xe.Z)({},Qt);return _n&&(Ro.zIndex=_n),se.createElement(ln.Provider,{value:Sr},se.createElement("div",{className:me()(Ct,"".concat(Ct,"-").concat(Mt),Zt,(wt={},(0,bt.Z)(wt,"".concat(Ct,"-open"),zt),(0,bt.Z)(wt,"".concat(Ct,"-inline"),Rt),wt)),style:Ro,tabIndex:-1,ref:Pa,onKeyDown:xo},Fo,se.createElement("div",{tabIndex:0,ref:Ga,style:Ta,"aria-hidden":"true","data-sentinel":"start"}),nr,se.createElement("div",{tabIndex:0,ref:Ma,style:Ta,"aria-hidden":"true","data-sentinel":"end"})))}var wa=se.forwardRef(so),aa=wa,ho=function(he){var Oe=he.open,He=Oe===void 0?!1:Oe,qe=he.prefixCls,wt=qe===void 0?"rc-drawer":qe,Ct=he.placement,zt=Ct===void 0?"right":Ct,Mt=he.autoFocus,Rt=Mt===void 0?!0:Mt,Et=he.keyboard,Cn=Et===void 0?!0:Et,jt=he.width,vt=jt===void 0?378:jt,Zt=he.mask,Qt=Zt===void 0?!0:Zt,_n=he.maskClosable,xn=_n===void 0?!0:_n,Fn=he.getContainer,vn=he.forceRender,qt=he.afterOpenChange,dn=he.destroyOnClose,Mn=he.onMouseEnter,Sa=he.onMouseOver,Ba=he.onMouseLeave,ro=he.onClick,Po=he.onKeyDown,co=he.onKeyUp,mo=he.panelRef,Ut=se.useState(!1),pt=(0,Ke.Z)(Ut,2),Ft=pt[0],Ht=pt[1],Wn=se.useState(!1),ia=(0,Ke.Z)(Wn,2),Aa=ia[0],Ca=ia[1];wn(function(){Ca(!0)},[]);var ua=Aa?He:!1,Pa=se.useRef(),Ga=se.useRef();wn(function(){ua&&(Ga.current=document.activeElement)},[ua]);var Ma=function(fo){var Fa;if(Ht(fo),qt==null||qt(fo),!fo&&Ga.current&&!((Fa=Pa.current)!==null&&Fa!==void 0&&Fa.contains(Ga.current))){var ga;(ga=Ga.current)===null||ga===void 0||ga.focus({preventScroll:!0})}},xo=se.useMemo(function(){return{panel:mo}},[mo]);if(!vn&&!Ft&&!ua&&dn)return null;var Bo={onMouseEnter:Mn,onMouseOver:Sa,onMouseLeave:Ba,onClick:ro,onKeyDown:Po,onKeyUp:co},bo=(0,Xe.Z)((0,Xe.Z)({},he),{},{open:ua,prefixCls:wt,placement:zt,autoFocus:Rt,keyboard:Cn,width:vt,mask:Qt,maskClosable:xn,inline:Fn===!1,afterOpenChange:Ma,ref:Pa},Bo);return se.createElement(xe.Provider,{value:xo},se.createElement($t,{open:ua||vn||Ft,autoDestroy:!1,getContainer:Fn,autoLock:Qt&&(ua||Ft)},se.createElement(aa,bo)))},to=ho,To=to,wo=ae(33603),uo=ae(53124),_a=ae(65223),Co=ae(69760),Ge=Pe=>{const{prefixCls:he,title:Oe,footer:He,extra:qe,closeIcon:wt,closable:Ct,onClose:zt,headerStyle:Mt,drawerStyle:Rt,bodyStyle:Et,footerStyle:Cn,children:jt}=Pe,vt=se.useCallback(Fn=>se.createElement("button",{type:"button",onClick:zt,"aria-label":"Close",className:`${he}-close`},Fn),[zt]),[Zt,Qt]=(0,Co.Z)(Ct,wt,vt,void 0,!0),_n=se.useMemo(()=>!Oe&&!Zt?null:se.createElement("div",{style:Mt,className:me()(`${he}-header`,{[`${he}-header-close-only`]:Zt&&!Oe&&!qe})},se.createElement("div",{className:`${he}-header-title`},Qt,Oe&&se.createElement("div",{className:`${he}-title`},Oe)),qe&&se.createElement("div",{className:`${he}-extra`},qe)),[Zt,Qt,qe,Mt,he,Oe]),xn=se.useMemo(()=>{if(!He)return null;const Fn=`${he}-footer`;return se.createElement("div",{className:Fn,style:Cn},He)},[He,Cn,he]);return se.createElement("div",{className:`${he}-wrapper-body`,style:Rt},_n,se.createElement("div",{className:`${he}-body`,style:Et},jt),xn)},le=ae(4173),ut=ae(67968),In=ae(45503),fn=Pe=>{const{componentCls:he,motionDurationSlow:Oe}=Pe,He={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Oe}`}}};return{[he]:{[`${he}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Oe}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${he}-panel-motion`]:{"&-left":[He,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[He,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[He,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[He,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Te=Pe=>{const{componentCls:he,zIndexPopup:Oe,colorBgMask:He,colorBgElevated:qe,motionDurationSlow:wt,motionDurationMid:Ct,padding:zt,paddingLG:Mt,fontSizeLG:Rt,lineHeightLG:Et,lineWidth:Cn,lineType:jt,colorSplit:vt,marginSM:Zt,colorIcon:Qt,colorIconHover:_n,colorText:xn,fontWeightStrong:Fn,footerPaddingBlock:vn,footerPaddingInline:qt}=Pe,dn=`${he}-content-wrapper`;return{[he]:{position:"fixed",inset:0,zIndex:Oe,pointerEvents:"none","&-pure":{position:"relative",background:qe,[`&${he}-left`]:{boxShadow:Pe.boxShadowDrawerLeft},[`&${he}-right`]:{boxShadow:Pe.boxShadowDrawerRight},[`&${he}-top`]:{boxShadow:Pe.boxShadowDrawerUp},[`&${he}-bottom`]:{boxShadow:Pe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${he}-mask`]:{position:"absolute",inset:0,zIndex:Oe,background:He,pointerEvents:"auto"},[dn]:{position:"absolute",zIndex:Oe,maxWidth:"100vw",transition:`all ${wt}`,"&-hidden":{display:"none"}},[`&-left > ${dn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowDrawerLeft},[`&-right > ${dn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Pe.boxShadowDrawerRight},[`&-top > ${dn}`]:{top:0,insetInline:0,boxShadow:Pe.boxShadowDrawerUp},[`&-bottom > ${dn}`]:{bottom:0,insetInline:0,boxShadow:Pe.boxShadowDrawerDown},[`${he}-content`]:{width:"100%",height:"100%",overflow:"auto",background:qe,pointerEvents:"auto"},[`${he}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${he}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${zt}px ${Mt}px`,fontSize:Rt,lineHeight:Et,borderBottom:`${Cn}px ${jt} ${vt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${he}-extra`]:{flex:"none"},[`${he}-close`]:{display:"inline-block",marginInlineEnd:Zt,color:Qt,fontWeight:Fn,fontSize:Rt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ct}`,textRendering:"auto","&:focus, &:hover":{color:_n,textDecoration:"none"}},[`${he}-title`]:{flex:1,margin:0,color:xn,fontWeight:Pe.fontWeightStrong,fontSize:Rt,lineHeight:Et},[`${he}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Mt,overflow:"auto"},[`${he}-footer`]:{flexShrink:0,padding:`${vn}px ${qt}px`,borderTop:`${Cn}px ${jt} ${vt}`},"&-rtl":{direction:"rtl"}}}};var ye=(0,ut.Z)("Drawer",Pe=>{const he=(0,In.TS)(Pe,{});return[Te(he),fn(he)]},Pe=>({zIndexPopup:Pe.zIndexPopupBase,footerPaddingBlock:Pe.paddingXS,footerPaddingInline:Pe.padding})),ht=ae(16569),it=function(Pe,he){var Oe={};for(var He in Pe)Object.prototype.hasOwnProperty.call(Pe,He)&&he.indexOf(He)<0&&(Oe[He]=Pe[He]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,He=Object.getOwnPropertySymbols(Pe);qe<He.length;qe++)he.indexOf(He[qe])<0&&Object.prototype.propertyIsEnumerable.call(Pe,He[qe])&&(Oe[He[qe]]=Pe[He[qe]]);return Oe};const un=null,yn={distance:180},On=Pe=>{var he;const{rootClassName:Oe,width:He,height:qe,size:wt="default",mask:Ct=!0,push:zt=yn,open:Mt,afterOpenChange:Rt,onClose:Et,prefixCls:Cn,getContainer:jt,style:vt,className:Zt,visible:Qt,afterVisibleChange:_n}=Pe,xn=it(Pe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Fn,getPrefixCls:vn,direction:qt,drawer:dn}=se.useContext(uo.E_),Mn=vn("drawer",Cn),[Sa,Ba]=ye(Mn),ro=jt===void 0&&Fn?()=>Fn(document.body):jt,Po=me()({"no-mask":!Ct,[`${Mn}-rtl`]:qt==="rtl"},Oe,Ba),co=se.useMemo(()=>He!=null?He:wt==="large"?736:378,[He,wt]),mo=se.useMemo(()=>qe!=null?qe:wt==="large"?736:378,[qe,wt]),Ut={motionName:(0,wo.m)(Mn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},pt=Ht=>({motionName:(0,wo.m)(Mn,`panel-motion-${Ht}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ft=(0,ht.H)();return Sa(se.createElement(le.BR,null,se.createElement(_a.Ux,{status:!0,override:!0},se.createElement(To,Object.assign({prefixCls:Mn,onClose:Et,maskMotion:Ut,motion:pt},xn,{open:Mt!=null?Mt:Qt,mask:Ct,push:zt,width:co,height:mo,style:Object.assign(Object.assign({},dn==null?void 0:dn.style),vt),className:me()(dn==null?void 0:dn.className,Zt),rootClassName:Po,getContainer:ro,afterOpenChange:Rt!=null?Rt:_n,panelRef:Ft}),se.createElement(Ge,Object.assign({prefixCls:Mn},xn,{onClose:Et}))))))},It=Pe=>{const{prefixCls:he,style:Oe,className:He,placement:qe="right"}=Pe,wt=it(Pe,["prefixCls","style","className","placement"]),{getPrefixCls:Ct}=se.useContext(uo.E_),zt=Ct("drawer",he),[Mt,Rt]=ye(zt),Et=me()(zt,`${zt}-pure`,`${zt}-${qe}`,Rt,He);return Mt(se.createElement("div",{className:Et,style:Oe},se.createElement(Ge,Object.assign({prefixCls:zt},wt))))};On._InternalPanelDoNotUseOrYouWillBeFired=It;var Rn=On},56153:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return hg}});var ee=ae(67294),me=ae.t(ee,2),Xe=ae(91034),Ke=ae(94184),se=ae.n(Ke),we=ae(87462),fe=ae(4942),Ze=ae(97685),je=ae(45987),Ae=ae(1413),Ve=ae(73935);function ke(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Be={};function oe(ie,ue){}function y(ie,ue){}function a(){Be={}}function E(ie,ue,ce){!ue&&!Be[ce]&&(ie(!1,ce),Be[ce]=!0)}function b(ie,ue){E(oe,ie,ue)}function x(ie,ue){E(y,ie,ue)}var z=null,te=ae(71002),ne=ae(12060);function re(ie,ue,ce){var be=ee.useRef({});return(!("value"in be.current)||ce(be.current.condition,ue))&&(be.current.value=ie(),be.current.condition=ue),be.current.value}function ge(ie,ue){typeof ie=="function"?ie(ue):(0,te.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=ue)}function de(){for(var ie=arguments.length,ue=new Array(ie),ce=0;ce<ie;ce++)ue[ce]=arguments[ce];var be=ue.filter(function(_e){return _e});return be.length<=1?be[0]:function(_e){ue.forEach(function(Qe){ge(Qe,_e)})}}function Ee(){for(var ie=arguments.length,ue=new Array(ie),ce=0;ce<ie;ce++)ue[ce]=arguments[ce];return re(function(){return de.apply(void 0,ue)},ue,function(be,_e){return be.length===_e.length&&be.every(function(Qe,Je){return Qe===_e[Je]})})}function pe(ie){var ue,ce,be=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof be=="function"&&!((ue=be.prototype)!==null&&ue!==void 0&&ue.render)||typeof ie=="function"&&!((ce=ie.prototype)!==null&&ce!==void 0&&ce.render))}var We=ee.createContext(null),Le=We,lt=ae(74902),Dt=ke()?ee.useLayoutEffect:ee.useEffect,Bt=Dt,Me=function(ue,ce){var be=React.useRef(!0);Dt(function(){if(!be.current)return ue()},ce),Dt(function(){return be.current=!1,function(){be.current=!0}},[])},nt=[];function ot(ie,ue){var ce=ee.useState(function(){if(!ke())return null;var pn=document.createElement("div");return pn}),be=(0,Ze.Z)(ce,1),_e=be[0],Qe=ee.useRef(!1),Je=ee.useContext(Le),Lt=ee.useState(nt),Wt=(0,Ze.Z)(Lt,2),Tt=Wt[0],rn=Wt[1],_t=Je||(Qe.current?void 0:function(pn){rn(function(Un){var zn=[pn].concat((0,lt.Z)(Un));return zn})});function gn(){_e.parentElement||document.body.appendChild(_e),Qe.current=!0}function en(){var pn;(pn=_e.parentElement)===null||pn===void 0||pn.removeChild(_e),Qe.current=!1}return Bt(function(){return ie?Je?Je(gn):gn():en(),en},[ie]),Bt(function(){Tt.length&&(Tt.forEach(function(pn){return pn()}),rn(nt))},[Tt]),[_e,_t]}function rt(ie,ue){if(!ie)return!1;if(ie.contains)return ie.contains(ue);for(var ce=ue;ce;){if(ce===ie)return!0;ce=ce.parentNode}return!1}var St="data-rc-order",kt="rc-util-key",Sn=new Map;function bn(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=ie.mark;return ue?ue.startsWith("data-")?ue:"data-".concat(ue):kt}function Bn(ie){if(ie.attachTo)return ie.attachTo;var ue=document.querySelector("head");return ue||document.body}function De(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function Ye(ie){return Array.from((Sn.get(ie)||ie).children).filter(function(ue){return ue.tagName==="STYLE"})}function gt(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ke())return null;var ce=ue.csp,be=ue.prepend,_e=document.createElement("style");_e.setAttribute(St,De(be)),ce!=null&&ce.nonce&&(_e.nonce=ce==null?void 0:ce.nonce),_e.innerHTML=ie;var Qe=Bn(ue),Je=Qe.firstChild;if(be){if(be==="queue"){var Lt=Ye(Qe).filter(function(Wt){return["prepend","prependQueue"].includes(Wt.getAttribute(St))});if(Lt.length)return Qe.insertBefore(_e,Lt[Lt.length-1].nextSibling),_e}Qe.insertBefore(_e,Je)}else Qe.appendChild(_e);return _e}function Kt(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=Bn(ue);return Ye(ce).find(function(be){return be.getAttribute(bn(ue))===ie})}function ct(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=Kt(ie,ue);if(ce){var be=Bn(ue);be.removeChild(ce)}}function Nt(ie,ue){var ce=Sn.get(ie);if(!ce||!rt(document,ce)){var be=gt("",ue),_e=be.parentNode;Sn.set(ie,_e),ie.removeChild(be)}}function ve(){Sn.clear()}function yt(ie,ue){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=Bn(ce);Nt(be,ce);var _e=Kt(ue,ce);if(_e){var Qe,Je;if((Qe=ce.csp)!==null&&Qe!==void 0&&Qe.nonce&&_e.nonce!==((Je=ce.csp)===null||Je===void 0?void 0:Je.nonce)){var Lt;_e.nonce=(Lt=ce.csp)===null||Lt===void 0?void 0:Lt.nonce}return _e.innerHTML!==ie&&(_e.innerHTML=ie),_e}var Wt=gt(ie,ce);return Wt.setAttribute(bn(ce),ue),Wt}var on;function Tn(ie){if(typeof document=="undefined")return 0;if(ie||on===void 0){var ue=document.createElement("div");ue.style.width="100%",ue.style.height="200px";var ce=document.createElement("div"),be=ce.style;be.position="absolute",be.top="0",be.left="0",be.pointerEvents="none",be.visibility="hidden",be.width="200px",be.height="150px",be.overflow="hidden",ce.appendChild(ue),document.body.appendChild(ce);var _e=ue.offsetWidth;ce.style.overflow="scroll";var Qe=ue.offsetWidth;_e===Qe&&(Qe=ce.clientWidth),document.body.removeChild(ce),on=_e-Qe}return on}function xt(ie){var ue=ie.match(/^(.*)px$/),ce=Number(ue==null?void 0:ue[1]);return Number.isNaN(ce)?Tn():ce}function tt(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var ue=getComputedStyle(ie,"::-webkit-scrollbar"),ce=ue.width,be=ue.height;return{width:xt(ce),height:xt(be)}}function Re(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ne="rc-util-locker-".concat(Date.now()),et=0;function dt(ie){var ue=!!ie,ce=ee.useState(function(){return et+=1,"".concat(Ne,"_").concat(et)}),be=(0,Ze.Z)(ce,1),_e=be[0];Bt(function(){if(ue){var Qe=tt(document.body).width,Je=Re();yt(`
html body {
overflow-y: hidden;
`.concat(Je?"width: calc(100% - ".concat(Qe,"px);"):"",`
}`),_e)}else ct(_e);return function(){ct(_e)}},[ue,_e])}var $t=!1;function Xt(ie){return typeof ie=="boolean"&&($t=ie),$t}var nn=function(ue){return ue===!1?!1:!ke()||!ue?null:typeof ue=="string"?document.querySelector(ue):typeof ue=="function"?ue():ue},sn=ee.forwardRef(function(ie,ue){var ce=ie.open,be=ie.autoLock,_e=ie.getContainer,Qe=ie.debug,Je=ie.autoDestroy,Lt=Je===void 0?!0:Je,Wt=ie.children,Tt=ee.useState(ce),rn=(0,Ze.Z)(Tt,2),_t=rn[0],gn=rn[1],en=_t||ce;ee.useEffect(function(){(Lt||ce)&&gn(ce)},[ce,Lt]);var pn=ee.useState(function(){return nn(_e)}),Un=(0,Ze.Z)(pn,2),zn=Un[0],Jn=Un[1];ee.useEffect(function(){var Na=nn(_e);Jn(Na!=null?Na:null)});var jn=ot(en&&!zn,Qe),En=(0,Ze.Z)(jn,2),tn=En[0],va=En[1],ma=zn!=null?zn:tn;dt(be&&ce&&ke()&&(ma===tn||ma===document.body));var pa=null;if(Wt&&pe(Wt)&&ue){var Oa=Wt;pa=Oa.ref}var Ya=Ee(pa,ue);if(!en||!ke()||zn===void 0)return null;var la=ma===!1||Xt(),Xn=Wt;return ue&&(Xn=ee.cloneElement(Wt,{ref:Ya})),ee.createElement(Le.Provider,{value:va},la?Xn:(0,Ve.createPortal)(Xn,ma))}),hn=sn,wn=hn,Se=ae(48555);function xe(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function ln(ie){return xe(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function bt(ie){var ue;return ie==null||(ue=ie.getRootNode)===null||ue===void 0?void 0:ue.call(ie)}function Ce(ie){return bt(ie)instanceof ShadowRoot}function mt(ie){return Ce(ie)?bt(ie):null}function at(ie){var ue=ee.useRef();ue.current=ie;var ce=ee.useCallback(function(){for(var be,_e=arguments.length,Qe=new Array(_e),Je=0;Je<_e;Je++)Qe[Je]=arguments[Je];return(be=ue.current)===null||be===void 0?void 0:be.call.apply(be,[ue].concat(Qe))},[]);return ce}function Ot(){var ie=(0,Ae.Z)({},me);return ie.useId}var an=0;function At(){}var Gt=Ot(),Vt=Gt?function(ue){var ce=Gt();return ue||ce}:function(ue){var ce=ee.useState("ssr-id"),be=(0,Ze.Z)(ce,2),_e=be[0],Qe=be[1];return ee.useEffect(function(){var Je=an;an+=1,Qe("rc_unique_".concat(Je))},[]),ue||_e};function Dn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var mn=Dn()?ee.useLayoutEffect:ee.useEffect,Pn=function(ue,ce){var be=ee.useRef(!0);mn(function(){return ue(be.current)},ce),mn(function(){return be.current=!1,function(){be.current=!0}},[])},ea=function(ue,ce){Pn(function(be){if(!be)return ue()},ce)},$n=Pn,sa=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ie==null?void 0:ie.substr(0,4))},Ea=ee.createContext(null),za=Ea;function eo(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function ka(ie,ue,ce,be){return ee.useMemo(function(){var _e=eo(ce!=null?ce:ue),Qe=eo(be!=null?be:ue),Je=new Set(_e),Lt=new Set(Qe);return ie&&(Je.has("hover")&&(Je.delete("hover"),Je.add("click")),Lt.has("hover")&&(Lt.delete("hover"),Lt.add("click"))),[Je,Lt]},[ie,ue,ce,be])}var oo=function(ie){if(!ie)return!1;if(ie instanceof Element){if(ie.offsetParent)return!0;if(ie.getBBox){var ue=ie.getBBox(),ce=ue.width,be=ue.height;if(ce||be)return!0}if(ie.getBoundingClientRect){var _e=ie.getBoundingClientRect(),Qe=_e.width,Je=_e.height;if(Qe||Je)return!0}}return!1};function $a(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ce=arguments.length>2?arguments[2]:void 0;return ce?ie[0]===ue[0]:ie[0]===ue[0]&&ie[1]===ue[1]}function Xa(ie,ue,ce,be){for(var _e=ce.points,Qe=Object.keys(ie),Je=0;Je<Qe.length;Je+=1){var Lt,Wt=Qe[Je];if($a((Lt=ie[Wt])===null||Lt===void 0?void 0:Lt.points,_e,be))return"".concat(ue,"-placement-").concat(Wt)}return""}function Yn(ie,ue,ce,be){return ue||(ce?{motionName:"".concat(ie,"-").concat(ce)}:be?{motionName:be}:null)}function ja(ie){return ie.ownerDocument.defaultView}function Za(ie){for(var ue=[],ce=ie==null?void 0:ie.parentElement,be=["hidden","scroll","clip","auto"];ce;){var _e=ja(ce).getComputedStyle(ce),Qe=_e.overflowX,Je=_e.overflowY,Lt=_e.overflow;[Qe,Je,Lt].some(function(Wt){return be.includes(Wt)})&&ue.push(ce),ce=ce.parentElement}return ue}function ta(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?ue:ie}function Qn(ie){return ta(parseFloat(ie),0)}function Mo(ie,ue){var ce=(0,Ae.Z)({},ie);return(ue||[]).forEach(function(be){if(!(be instanceof HTMLBodyElement||be instanceof HTMLHtmlElement)){var _e=ja(be).getComputedStyle(be),Qe=_e.overflow,Je=_e.overflowClipMargin,Lt=_e.borderTopWidth,Wt=_e.borderBottomWidth,Tt=_e.borderLeftWidth,rn=_e.borderRightWidth,_t=be.getBoundingClientRect(),gn=be.offsetHeight,en=be.clientHeight,pn=be.offsetWidth,Un=be.clientWidth,zn=Qn(Lt),Jn=Qn(Wt),jn=Qn(Tt),En=Qn(rn),tn=ta(Math.round(_t.width/pn*1e3)/1e3),va=ta(Math.round(_t.height/gn*1e3)/1e3),ma=(pn-Un-jn-En)*tn,pa=(gn-en-zn-Jn)*va,Oa=zn*va,Ya=Jn*va,la=jn*tn,Xn=En*tn,Na=0,Da=0;if(Qe==="clip"){var ya=Qn(Je);Na=ya*tn,Da=ya*va}var Kn=_t.x+la-Na,da=_t.y+Oa-Da,Zn=Kn+_t.width+2*Na-la-Xn-ma,Qa=da+_t.height+2*Da-Oa-Ya-pa;ce.left=Math.max(ce.left,Kn),ce.top=Math.max(ce.top,da),ce.right=Math.min(ce.right,Zn),ce.bottom=Math.min(ce.bottom,Qa)}}),ce}function Ha(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ce="".concat(ue),be=ce.match(/^(.*)\%$/);return be?ie*(parseFloat(be[1])/100):parseFloat(ce)}function yo(ie,ue){var ce=ue||[],be=(0,Ze.Z)(ce,2),_e=be[0],Qe=be[1];return[Ha(ie.width,_e),Ha(ie.height,Qe)]}function $e(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function Ie(ie,ue){var ce=ue[0],be=ue[1],_e,Qe;return ce==="t"?Qe=ie.y:ce==="b"?Qe=ie.y+ie.height:Qe=ie.y+ie.height/2,be==="l"?_e=ie.x:be==="r"?_e=ie.x+ie.width:_e=ie.x+ie.width/2,{x:_e,y:Qe}}function Fe(ie,ue){var ce={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(be,_e){return _e===ue?ce[be]||"c":be}).join("")}function Pt(ie,ue,ce,be,_e,Qe,Je){var Lt=ee.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:_e[be]||{}}),Wt=(0,Ze.Z)(Lt,2),Tt=Wt[0],rn=Wt[1],_t=ee.useRef(0),gn=ee.useMemo(function(){return ue?Za(ue):[]},[ue]),en=ee.useRef({}),pn=function(){en.current={}};ie||pn();var Un=at(function(){if(ue&&ce&&ie){let Zo=function(ui,Fr){var fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ja,Wr=ca.x+ui,Dr=ca.y+Fr,ci=Wr+ha,Ai=Dr+Ia,Oi=Math.max(Wr,fr.left),Mi=Math.max(Dr,fr.top),Ti=Math.min(ci,fr.right),cn=Math.min(Ai,fr.bottom);return Math.max(0,(Ti-Oi)*(cn-Mi))},gr=function(){rr=ca.y+fa,pr=rr+Ia,yr=ca.x+qa,br=yr+ha};var jn,En,tn=ue,va=tn.ownerDocument,ma=ja(tn),pa=ma.getComputedStyle(tn),Oa=pa.width,Ya=pa.height,la=pa.position,Xn=tn.style.left,Na=tn.style.top,Da=tn.style.right,ya=tn.style.bottom,Kn=(0,Ae.Z)((0,Ae.Z)({},_e[be]),Qe),da=va.createElement("div");(jn=tn.parentElement)===null||jn===void 0||jn.appendChild(da),da.style.left="".concat(tn.offsetLeft,"px"),da.style.top="".concat(tn.offsetTop,"px"),da.style.position=la,da.style.height="".concat(tn.offsetHeight,"px"),da.style.width="".concat(tn.offsetWidth,"px"),tn.style.left="0",tn.style.top="0",tn.style.right="auto",tn.style.bottom="auto";var Zn;if(Array.isArray(ce))Zn={x:ce[0],y:ce[1],width:0,height:0};else{var Qa=ce.getBoundingClientRect();Zn={x:Qa.x,y:Qa.y,width:Qa.width,height:Qa.height}}var ca=tn.getBoundingClientRect(),ao=va.documentElement,No=ao.clientWidth,io=ao.clientHeight,$o=ao.scrollWidth,Do=ao.scrollHeight,ra=ao.scrollTop,Ao=ao.scrollLeft,Ia=ca.height,ha=ca.width,Ua=Zn.height,ko=Zn.width,ar={left:0,top:0,right:No,bottom:io},dr={left:-Ao,top:-ra,right:$o-Ao,bottom:Do-ra},po=Kn.htmlRegion,Eo="visible",Qo="visibleFirst";po!=="scroll"&&po!==Qo&&(po=Eo);var Lo=po===Qo,ba=Mo(dr,gn),Ln=Mo(ar,gn),Ja=po===Eo?Ln:ba,Oo=Lo?Ln:Ja;tn.style.left="auto",tn.style.top="auto",tn.style.right="0",tn.style.bottom="0";var Jo=tn.getBoundingClientRect();tn.style.left=Xn,tn.style.top=Na,tn.style.right=Da,tn.style.bottom=ya,(En=tn.parentElement)===null||En===void 0||En.removeChild(da);var Pr=ta(Math.round(ha/parseFloat(Oa)*1e3)/1e3),vr=ta(Math.round(Ia/parseFloat(Ya)*1e3)/1e3);if(Pr===0||vr===0||xe(ce)&&!oo(ce))return;var hi=Kn.offset,Xr=Kn.targetOffset,Ho=yo(ca,hi),Yr=(0,Ze.Z)(Ho,2),Wo=Yr[0],Uo=Yr[1],Qr=yo(Zn,Xr),Ko=(0,Ze.Z)(Qr,2),Pi=Ko[0],vi=Ko[1];Zn.x-=Pi,Zn.y-=vi;var Ar=Kn.points||[],Io=(0,Ze.Z)(Ar,2),sr=Io[0],pi=Io[1],or=$e(pi),zo=$e(sr),Jr=Ie(Zn,or),Ir=Ie(ca,zo),ur=(0,Ae.Z)({},Kn),qa=Jr.x-Ir.x+Wo,fa=Jr.y-Ir.y+Uo,qo=Zo(qa,fa),er=Zo(qa,fa,Ln),zr=Ie(Zn,["t","l"]),_r=Ie(ca,["t","l"]),Gr=Ie(Zn,["b","r"]),jo=Ie(ca,["b","r"]),Or=Kn.overflow||{},qr=Or.adjustX,Rr=Or.adjustY,kr=Or.shiftX,ei=Or.shiftY,jr=function(Fr){return typeof Fr=="boolean"?Fr:Fr>=0},rr,pr,yr,br;gr();var Zr=jr(Rr),ti=zo[0]===or[0];if(Zr&&zo[0]==="t"&&(pr>Oo.bottom||en.current.bt)){var tr=fa;ti?tr-=Ia-Ua:tr=zr.y-jo.y-Uo;var ni=Zo(qa,tr),_o=Zo(qa,tr,Ln);ni>qo||ni===qo&&(!Lo||_o>=er)?(en.current.bt=!0,fa=tr,Uo=-Uo,ur.points=[Fe(zo,0),Fe(or,0)]):en.current.bt=!1}if(Zr&&zo[0]==="b"&&(rr<Oo.top||en.current.tb)){var Er=fa;ti?Er+=Ia-Ua:Er=Gr.y-_r.y-Uo;var ai=Zo(qa,Er),yi=Zo(qa,Er,Ln);ai>qo||ai===qo&&(!Lo||yi>=er)?(en.current.tb=!0,fa=Er,Uo=-Uo,ur.points=[Fe(zo,0),Fe(or,0)]):en.current.tb=!1}var oi=jr(qr),ri=zo[1]===or[1];if(oi&&zo[1]==="l"&&(br>Oo.right||en.current.rl)){var Lr=qa;ri?Lr-=ha-ko:Lr=zr.x-jo.x-Wo;var ii=Zo(Lr,fa),bi=Zo(Lr,fa,Ln);ii>qo||ii===qo&&(!Lo||bi>=er)?(en.current.rl=!0,qa=Lr,Wo=-Wo,ur.points=[Fe(zo,1),Fe(or,1)]):en.current.rl=!1}if(oi&&zo[1]==="r"&&(yr<Oo.left||en.current.lr)){var wr=qa;ri?wr+=ha-ko:wr=Gr.x-_r.x-Wo;var Cr=Zo(wr,fa),Hr=Zo(wr,fa,Ln);Cr>qo||Cr===qo&&(!Lo||Hr>=er)?(en.current.lr=!0,qa=wr,Wo=-Wo,ur.points=[Fe(zo,1),Fe(or,1)]):en.current.lr=!1}gr();var xr=kr===!0?0:kr;typeof xr=="number"&&(yr<Ln.left&&(qa-=yr-Ln.left-Wo,Zn.x+ko<Ln.left+xr&&(qa+=Zn.x-Ln.left+ko-xr)),br>Ln.right&&(qa-=br-Ln.right-Wo,Zn.x>Ln.right-xr&&(qa+=Zn.x-Ln.right+xr)));var cr=ei===!0?0:ei;typeof cr=="number"&&(rr<Ln.top&&(fa-=rr-Ln.top-Uo,Zn.y+Ua<Ln.top+cr&&(fa+=Zn.y-Ln.top+Ua-cr)),pr>Ln.bottom&&(fa-=pr-Ln.bottom-Uo,Zn.y>Ln.bottom-cr&&(fa+=Zn.y-Ln.bottom+cr)));var mr=ca.x+qa,Br=mr+ha,Mr=ca.y+fa,Tr=Mr+Ia,ir=Zn.x,Ei=ir+ko,gi=Zn.y,Li=gi+Ua,li=Math.max(mr,ir),wi=Math.min(Br,Ei),Ci=(li+wi)/2,xi=Ci-mr,di=Math.max(Mr,gi),Bi=Math.min(Tr,Li),Fi=(di+Bi)/2,si=Fi-Mr;Je==null||Je(ue,ur);var Ni=Jo.right-ca.x-(qa+ca.width),$i=Jo.bottom-ca.y-(fa+ca.height);rn({ready:!0,offsetX:qa/Pr,offsetY:fa/vr,offsetR:Ni/Pr,offsetB:$i/vr,arrowX:xi/Pr,arrowY:si/vr,scaleX:Pr,scaleY:vr,align:ur})}}),zn=function(){_t.current+=1;var En=_t.current;Promise.resolve().then(function(){_t.current===En&&Un()})},Jn=function(){rn(function(En){return(0,Ae.Z)((0,Ae.Z)({},En),{},{ready:!1})})};return $n(Jn,[be]),$n(function(){ie||Jn()},[ie]),[Tt.ready,Tt.offsetX,Tt.offsetY,Tt.offsetR,Tt.offsetB,Tt.arrowX,Tt.arrowY,Tt.scaleX,Tt.scaleY,Tt.align,zn]}function Yt(ie,ue,ce,be,_e){$n(function(){if(ie&&ue&&ce){let _t=function(){be(),_e()};var Qe=ue,Je=ce,Lt=Za(Qe),Wt=Za(Je),Tt=ja(Je),rn=new Set([Tt].concat((0,lt.Z)(Lt),(0,lt.Z)(Wt)));return rn.forEach(function(gn){gn.addEventListener("scroll",_t,{passive:!0})}),Tt.addEventListener("resize",_t,{passive:!0}),be(),function(){rn.forEach(function(gn){gn.removeEventListener("scroll",_t),Tt.removeEventListener("resize",_t)})}}},[ie,ue,ce])}function Jt(ie){var ue=React.useRef(!1),ce=React.useState(ie),be=_slicedToArray(ce,2),_e=be[0],Qe=be[1];React.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function Je(Lt,Wt){Wt&&ue.current||Qe(Lt)}return[_e,Je]}function Gn(ie){return ie!==void 0}function An(ie,ue){var ce=ue||{},be=ce.defaultValue,_e=ce.value,Qe=ce.onChange,Je=ce.postState,Lt=useState(function(){return Gn(_e)?_e:Gn(be)?typeof be=="function"?be():be:typeof ie=="function"?ie():ie}),Wt=_slicedToArray(Lt,2),Tt=Wt[0],rn=Wt[1],_t=_e!==void 0?_e:Tt,gn=Je?Je(_t):_t,en=useEvent(Qe),pn=useState([_t]),Un=_slicedToArray(pn,2),zn=Un[0],Jn=Un[1];useLayoutUpdateEffect(function(){var En=zn[0];Tt!==En&&en(Tt,En)},[zn]),useLayoutUpdateEffect(function(){Gn(_e)||rn(_e)},[_e]);var jn=useEvent(function(En,tn){rn(En,tn),Jn([_t],tn)});return[gn,jn]}var kn=ae(95845);function na(ie,ue,ce){var be=ee.useRef({});return(!("value"in be.current)||ce(be.current.condition,ue))&&(be.current.value=ie(),be.current.condition=ue),be.current.value}function La(ie,ue){typeof ie=="function"?ie(ue):(0,te.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=ue)}function ft(){for(var ie=arguments.length,ue=new Array(ie),ce=0;ce<ie;ce++)ue[ce]=arguments[ce];var be=ue.filter(function(_e){return _e});return be.length<=1?be[0]:function(_e){ue.forEach(function(Qe){La(Qe,_e)})}}function Hn(){for(var ie=arguments.length,ue=new Array(ie),ce=0;ce<ie;ce++)ue[ce]=arguments[ce];return na(function(){return ft.apply(void 0,ue)},ue,function(be,_e){return be.length!==_e.length||be.every(function(Qe,Je){return Qe!==_e[Je]})})}function Ta(ie){var ue,ce,be=(0,kn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof be=="function"&&!((ue=be.prototype)!==null&&ue!==void 0&&ue.render)||typeof ie=="function"&&!((ce=ie.prototype)!==null&&ce!==void 0&&ce.render))}function so(ie){return!isValidElement(ie)||isFragment(ie)?!1:Ta(ie)}function wa(ie,ue,ce,be){if(!ue.length)return ce;var _e=_toArray(ue),Qe=_e[0],Je=_e.slice(1),Lt;return!ie&&typeof Qe=="number"?Lt=[]:Array.isArray(ie)?Lt=_toConsumableArray(ie):Lt=_objectSpread({},ie),be&&ce===void 0&&Je.length===1?delete Lt[Qe][Je[0]]:Lt[Qe]=wa(Lt[Qe],Je,ce,be),Lt}function aa(ie,ue,ce){var be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ue.length&&be&&ce===void 0&&!get(ie,ue.slice(0,-1))?ie:wa(ie,ue,ce,be)}function ho(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function to(ie){return Array.isArray(ie)?[]:{}}var To=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function wo(){for(var ie=arguments.length,ue=new Array(ie),ce=0;ce<ie;ce++)ue[ce]=arguments[ce];var be=to(ue[0]);return ue.forEach(function(_e){function Qe(Je,Lt){var Wt=new Set(Lt),Tt=get(_e,Je),rn=Array.isArray(Tt);if(rn||ho(Tt)){if(!Wt.has(Tt)){Wt.add(Tt);var _t=get(be,Je);rn?be=aa(be,Je,[]):(!_t||_typeof(_t)!=="object")&&(be=aa(be,Je,to(Tt))),To(Tt).forEach(function(gn){Qe([].concat(_toConsumableArray(Je),[gn]),Wt)})}}else be=aa(be,Je,Tt)}Qe([])}),be}var uo={},_a=[],Co=function(ue){_a.push(ue)};function ze(ie,ue){if(0)var ce}function Ge(ie,ue){if(0)var ce}function le(){uo={}}function ut(ie,ue,ce){!ue&&!uo[ce]&&(ie(!1,ce),uo[ce]=!0)}function In(ie,ue){ut(ze,ie,ue)}function oa(ie,ue){ut(Ge,ie,ue)}In.preMessage=Co,In.resetWarned=le,In.noteOnce=oa;var fn=null,Te=function(ue){return+setTimeout(ue,16)},ye=function(ue){return clearTimeout(ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Te=function(ue){return window.requestAnimationFrame(ue)},ye=function(ue){return window.cancelAnimationFrame(ue)});var ht=0,it=new Map;function un(ie){it.delete(ie)}var yn=function(ue){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ht+=1;var be=ht;function _e(Qe){if(Qe===0)un(be),ue();else{var Je=Te(function(){_e(Qe-1)});it.set(be,Je)}}return _e(ce),be};yn.cancel=function(ie){var ue=it.get(ie);return un(ue),ye(ue)};var On=yn;function It(ie,ue,ce,be,_e,Qe,Je,Lt){var Wt=ee.useRef(ie),Tt=ee.useRef(!1);Wt.current!==ie&&(Tt.current=!0,Wt.current=ie),ee.useEffect(function(){var rn=On(function(){Tt.current=!1});return function(){On.cancel(rn)}},[ie]),ee.useEffect(function(){if(ue&&be&&(!_e||Qe)){var rn=function(){var la=!1,Xn=function(ya){var Kn=ya.target;la=Je(Kn)},Na=function(ya){var Kn=ya.target;!Tt.current&&Wt.current&&!la&&!Je(Kn)&&Lt(!1)};return[Xn,Na]},_t=rn(),gn=(0,Ze.Z)(_t,2),en=gn[0],pn=gn[1],Un=rn(),zn=(0,Ze.Z)(Un,2),Jn=zn[0],jn=zn[1],En=ja(be);En.addEventListener("mousedown",en,!0),En.addEventListener("click",pn,!0),En.addEventListener("contextmenu",pn,!0);var tn=mt(ce);if(tn&&(tn.addEventListener("mousedown",Jn,!0),tn.addEventListener("click",jn,!0),tn.addEventListener("contextmenu",jn,!0)),0)var va,ma,pa,Oa;return function(){En.removeEventListener("mousedown",en,!0),En.removeEventListener("click",pn,!0),En.removeEventListener("contextmenu",pn,!0),tn&&(tn.removeEventListener("mousedown",Jn,!0),tn.removeEventListener("click",jn,!0),tn.removeEventListener("contextmenu",jn,!0))}}},[ue,ce,be,_e,Qe])}function Rn(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Pe(ie){return Rn(ie)?ie:ie instanceof ee.Component?Ve.findDOMNode(ie):null}function he(ie,ue){var ce={};return ce[ie.toLowerCase()]=ue.toLowerCase(),ce["Webkit".concat(ie)]="webkit".concat(ue),ce["Moz".concat(ie)]="moz".concat(ue),ce["ms".concat(ie)]="MS".concat(ue),ce["O".concat(ie)]="o".concat(ue.toLowerCase()),ce}function Oe(ie,ue){var ce={animationend:he("Animation","AnimationEnd"),transitionend:he("Transition","TransitionEnd")};return ie&&("AnimationEvent"in ue||delete ce.animationend.animation,"TransitionEvent"in ue||delete ce.transitionend.transition),ce}var He=Oe(ke(),typeof window!="undefined"?window:{}),qe={};if(ke()){var wt=document.createElement("div");qe=wt.style}var Ct={};function zt(ie){if(Ct[ie])return Ct[ie];var ue=He[ie];if(ue)for(var ce=Object.keys(ue),be=ce.length,_e=0;_e<be;_e+=1){var Qe=ce[_e];if(Object.prototype.hasOwnProperty.call(ue,Qe)&&Qe in qe)return Ct[ie]=ue[Qe],Ct[ie]}return""}var Mt=zt("animationend"),Rt=zt("transitionend"),Et=!!(Mt&&Rt),Cn=Mt||"animationend",jt=Rt||"transitionend";function vt(ie,ue){if(!ie)return null;if((0,te.Z)(ie)==="object"){var ce=ue.replace(/-\w/g,function(be){return be[1].toUpperCase()});return ie[ce]}return"".concat(ie,"-").concat(ue)}var Zt="none",Qt="appear",_n="enter",xn="leave",Fn="none",vn="prepare",qt="start",dn="active",Mn="end";function Sa(ie){var ue=ee.useRef(!1),ce=ee.useState(ie),be=(0,Ze.Z)(ce,2),_e=be[0],Qe=be[1];ee.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function Je(Lt,Wt){Wt&&ue.current||Qe(Lt)}return[_e,Je]}var Ba=function(ue){return+setTimeout(ue,16)},ro=function(ue){return clearTimeout(ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ba=function(ue){return window.requestAnimationFrame(ue)},ro=function(ue){return window.cancelAnimationFrame(ue)});var Po=0,co=new Map;function mo(ie){co.delete(ie)}var Ut=function(ue){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Po+=1;var be=Po;function _e(Qe){if(Qe===0)mo(be),ue();else{var Je=Ba(function(){_e(Qe-1)});co.set(be,Je)}}return _e(ce),be};Ut.cancel=function(ie){var ue=co.get(ie);return mo(ue),ro(ue)};var pt=Ut,Ft=function(){var ie=ee.useRef(null);function ue(){pt.cancel(ie.current)}function ce(be){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ue();var Qe=pt(function(){_e<=1?be({isCanceled:function(){return Qe!==ie.current}}):ce(be,_e-1)});ie.current=Qe}return ee.useEffect(function(){return function(){ue()}},[]),[ce,ue]},Ht=ke()?ee.useLayoutEffect:ee.useEffect,Wn=Ht,ia=[vn,qt,dn,Mn],Aa=!1,Ca=!0;function ua(ie){return ie===dn||ie===Mn}var Pa=function(ie,ue){var ce=Sa(Fn),be=(0,Ze.Z)(ce,2),_e=be[0],Qe=be[1],Je=Ft(),Lt=(0,Ze.Z)(Je,2),Wt=Lt[0],Tt=Lt[1];function rn(){Qe(vn,!0)}return Wn(function(){if(_e!==Fn&&_e!==Mn){var _t=ia.indexOf(_e),gn=ia[_t+1],en=ue(_e);en===Aa?Qe(gn,!0):Wt(function(pn){function Un(){pn.isCanceled()||Qe(gn,!0)}en===!0?Un():Promise.resolve(en).then(Un)})}},[ie,_e]),ee.useEffect(function(){return function(){Tt()}},[]),[rn,_e]},Ga=function(ie){var ue=(0,ee.useRef)(),ce=(0,ee.useRef)(ie);ce.current=ie;var be=ee.useCallback(function(Je){ce.current(Je)},[]);function _e(Je){Je&&(Je.removeEventListener(jt,be),Je.removeEventListener(Cn,be))}function Qe(Je){ue.current&&ue.current!==Je&&_e(ue.current),Je&&Je!==ue.current&&(Je.addEventListener(jt,be),Je.addEventListener(Cn,be),ue.current=Je)}return ee.useEffect(function(){return function(){_e(ue.current)}},[]),[Qe,_e]};function Ma(ie,ue,ce,be){var _e=be.motionEnter,Qe=_e===void 0?!0:_e,Je=be.motionAppear,Lt=Je===void 0?!0:Je,Wt=be.motionLeave,Tt=Wt===void 0?!0:Wt,rn=be.motionDeadline,_t=be.motionLeaveImmediately,gn=be.onAppearPrepare,en=be.onEnterPrepare,pn=be.onLeavePrepare,Un=be.onAppearStart,zn=be.onEnterStart,Jn=be.onLeaveStart,jn=be.onAppearActive,En=be.onEnterActive,tn=be.onLeaveActive,va=be.onAppearEnd,ma=be.onEnterEnd,pa=be.onLeaveEnd,Oa=be.onVisibleChanged,Ya=Sa(),la=(0,Ze.Z)(Ya,2),Xn=la[0],Na=la[1],Da=Sa(Zt),ya=(0,Ze.Z)(Da,2),Kn=ya[0],da=ya[1],Zn=Sa(null),Qa=(0,Ze.Z)(Zn,2),ca=Qa[0],ao=Qa[1],No=(0,ee.useRef)(!1),io=(0,ee.useRef)(null);function $o(){return ce()}var Do=(0,ee.useRef)(!1);function ra(ba){var Ln=$o();if(!(ba&&!ba.deadline&&ba.target!==Ln)){var Ja=Do.current,Oo;Kn===Qt&&Ja?Oo=va==null?void 0:va(Ln,ba):Kn===_n&&Ja?Oo=ma==null?void 0:ma(Ln,ba):Kn===xn&&Ja&&(Oo=pa==null?void 0:pa(Ln,ba)),Kn!==Zt&&Ja&&Oo!==!1&&(da(Zt,!0),ao(null,!0))}}var Ao=Ga(ra),Ia=(0,Ze.Z)(Ao,1),ha=Ia[0],Ua=ee.useMemo(function(){var ba,Ln,Ja;switch(Kn){case Qt:return ba={},(0,fe.Z)(ba,vn,gn),(0,fe.Z)(ba,qt,Un),(0,fe.Z)(ba,dn,jn),ba;case _n:return Ln={},(0,fe.Z)(Ln,vn,en),(0,fe.Z)(Ln,qt,zn),(0,fe.Z)(Ln,dn,En),Ln;case xn:return Ja={},(0,fe.Z)(Ja,vn,pn),(0,fe.Z)(Ja,qt,Jn),(0,fe.Z)(Ja,dn,tn),Ja;default:return{}}},[Kn]),ko=Pa(Kn,function(ba){if(ba===vn){var Ln=Ua[vn];return Ln?Ln($o()):Aa}if(po in Ua){var Ja;ao(((Ja=Ua[po])===null||Ja===void 0?void 0:Ja.call(Ua,$o(),null))||null)}return po===dn&&(ha($o()),rn>0&&(clearTimeout(io.current),io.current=setTimeout(function(){ra({deadline:!0})},rn))),Ca}),ar=(0,Ze.Z)(ko,2),dr=ar[0],po=ar[1],Eo=ua(po);Do.current=Eo,Wn(function(){Na(ue);var ba=No.current;if(No.current=!0,!!ie){var Ln;!ba&&ue&&Lt&&(Ln=Qt),ba&&ue&&Qe&&(Ln=_n),(ba&&!ue&&Tt||!ba&&_t&&!ue&&Tt)&&(Ln=xn),Ln&&(da(Ln),dr())}},[ue]),(0,ee.useEffect)(function(){(Kn===Qt&&!Lt||Kn===_n&&!Qe||Kn===xn&&!Tt)&&da(Zt)},[Lt,Qe,Tt]),(0,ee.useEffect)(function(){return function(){No.current=!1,clearTimeout(io.current)}},[]);var Qo=ee.useRef(!1);(0,ee.useEffect)(function(){Xn&&(Qo.current=!0),Xn!==void 0&&Kn===Zt&&((Qo.current||Xn)&&(Oa==null||Oa(Xn)),Qo.current=!0)},[Xn,Kn]);var Lo=ca;return Ua[vn]&&po===qt&&(Lo=(0,Ae.Z)({transition:"none"},Lo)),[Kn,po,Lo,Xn!=null?Xn:ue]}var xo=ae(15671),Bo=ae(43144),bo=ae(60136),Vo=ae(51630),fo=function(ie){(0,bo.Z)(ce,ie);var ue=(0,Vo.Z)(ce);function ce(){return(0,xo.Z)(this,ce),ue.apply(this,arguments)}return(0,Bo.Z)(ce,[{key:"render",value:function(){return this.props.children}}]),ce}(ee.Component),Fa=fo;function ga(ie){var ue=ie;(0,te.Z)(ie)==="object"&&(ue=ie.transitionSupport);function ce(_e){return!!(_e.motionName&&ue)}var be=ee.forwardRef(function(_e,Qe){var Je=_e.visible,Lt=Je===void 0?!0:Je,Wt=_e.removeOnLeave,Tt=Wt===void 0?!0:Wt,rn=_e.forceRender,_t=_e.children,gn=_e.motionName,en=_e.leavedClassName,pn=_e.eventProps,Un=ce(_e),zn=(0,ee.useRef)(),Jn=(0,ee.useRef)();function jn(){try{return zn.current instanceof HTMLElement?zn.current:Pe(Jn.current)}catch(Zn){return null}}var En=Ma(Un,Lt,jn,_e),tn=(0,Ze.Z)(En,4),va=tn[0],ma=tn[1],pa=tn[2],Oa=tn[3],Ya=ee.useRef(Oa);Oa&&(Ya.current=!0);var la=ee.useCallback(function(Zn){zn.current=Zn,ge(Qe,Zn)},[Qe]),Xn,Na=(0,Ae.Z)((0,Ae.Z)({},pn),{},{visible:Lt});if(!_t)Xn=null;else if(va===Zt||!ce(_e))Oa?Xn=_t((0,Ae.Z)({},Na),la):!Tt&&Ya.current&&en?Xn=_t((0,Ae.Z)((0,Ae.Z)({},Na),{},{className:en}),la):rn||!Tt&&!en?Xn=_t((0,Ae.Z)((0,Ae.Z)({},Na),{},{style:{display:"none"}}),la):Xn=null;else{var Da,ya;ma===vn?ya="prepare":ua(ma)?ya="active":ma===qt&&(ya="start"),Xn=_t((0,Ae.Z)((0,Ae.Z)({},Na),{},{className:se()(vt(gn,va),(Da={},(0,fe.Z)(Da,vt(gn,"".concat(va,"-").concat(ya)),ya),(0,fe.Z)(Da,gn,typeof gn=="string"),Da)),style:pa}),la)}if(ee.isValidElement(Xn)&&pe(Xn)){var Kn=Xn,da=Kn.ref;da||(Xn=ee.cloneElement(Xn,{ref:la}))}return ee.createElement(Fa,{ref:Jn},Xn)});return be.displayName="CSSMotion",be}var So=ga(Et),Sr=ae(97326),Fo="add",Go="keep",Ra="remove",no="removed";function nr(ie){var ue;return ie&&(0,te.Z)(ie)==="object"&&"key"in ie?ue=ie:ue={key:ie},(0,Ae.Z)((0,Ae.Z)({},ue),{},{key:String(ue.key)})}function Ro(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(nr)}function xa(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ce=[],be=0,_e=ue.length,Qe=Ro(ie),Je=Ro(ue);Qe.forEach(function(Tt){for(var rn=!1,_t=be;_t<_e;_t+=1){var gn=Je[_t];if(gn.key===Tt.key){be<_t&&(ce=ce.concat(Je.slice(be,_t).map(function(en){return(0,Ae.Z)((0,Ae.Z)({},en),{},{status:Fo})})),be=_t),ce.push((0,Ae.Z)((0,Ae.Z)({},gn),{},{status:Go})),be+=1,rn=!0;break}}rn||ce.push((0,Ae.Z)((0,Ae.Z)({},Tt),{},{status:Ra}))}),be<_e&&(ce=ce.concat(Je.slice(be).map(function(Tt){return(0,Ae.Z)((0,Ae.Z)({},Tt),{},{status:Fo})})));var Lt={};ce.forEach(function(Tt){var rn=Tt.key;Lt[rn]=(Lt[rn]||0)+1});var Wt=Object.keys(Lt).filter(function(Tt){return Lt[Tt]>1});return Wt.forEach(function(Tt){ce=ce.filter(function(rn){var _t=rn.key,gn=rn.status;return _t!==Tt||gn!==Ra}),ce.forEach(function(rn){rn.key===Tt&&(rn.status=Go)})}),ce}var Wa=["component","children","onVisibleChanged","onAllRemoved"],Xo=["status"],Yo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hr(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:So,ce=function(be){(0,bo.Z)(Qe,be);var _e=(0,Vo.Z)(Qe);function Qe(){var Je;(0,xo.Z)(this,Qe);for(var Lt=arguments.length,Wt=new Array(Lt),Tt=0;Tt<Lt;Tt++)Wt[Tt]=arguments[Tt];return Je=_e.call.apply(_e,[this].concat(Wt)),(0,fe.Z)((0,Sr.Z)(Je),"state",{keyEntities:[]}),(0,fe.Z)((0,Sr.Z)(Je),"removeKey",function(rn){var _t=Je.state.keyEntities,gn=_t.map(function(en){return en.key!==rn?en:(0,Ae.Z)((0,Ae.Z)({},en),{},{status:no})});return Je.setState({keyEntities:gn}),gn.filter(function(en){var pn=en.status;return pn!==no}).length}),Je}return(0,Bo.Z)(Qe,[{key:"render",value:function(){var Lt=this,Wt=this.state.keyEntities,Tt=this.props,rn=Tt.component,_t=Tt.children,gn=Tt.onVisibleChanged,en=Tt.onAllRemoved,pn=(0,je.Z)(Tt,Wa),Un=rn||ee.Fragment,zn={};return Yo.forEach(function(Jn){zn[Jn]=pn[Jn],delete pn[Jn]}),delete pn.keys,ee.createElement(Un,pn,Wt.map(function(Jn){var jn=Jn.status,En=(0,je.Z)(Jn,Xo),tn=jn===Fo||jn===Go;return ee.createElement(ue,(0,we.Z)({},zn,{key:En.key,visible:tn,eventProps:En,onVisibleChanged:function(ma){if(gn==null||gn(ma,{key:En.key}),!ma){var pa=Lt.removeKey(En.key);pa===0&&en&&en()}}}),_t)}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,Wt){var Tt=Lt.keys,rn=Wt.keyEntities,_t=Ro(Tt),gn=xa(rn,_t);return{keyEntities:gn.filter(function(en){var pn=rn.find(function(Un){var zn=Un.key;return en.key===zn});return!(pn&&pn.status===no&&en.status===Ra)})}}}]),Qe}(ee.Component);return(0,fe.Z)(ce,"defaultProps",{component:"div"}),ce}var qn=hr(Et),vo=So;function lr(ie){var ue=ie.prefixCls,ce=ie.align,be=ie.arrow,_e=ie.arrowPos,Qe=be||{},Je=Qe.className,Lt=Qe.content,Wt=_e.x,Tt=Wt===void 0?0:Wt,rn=_e.y,_t=rn===void 0?0:rn,gn=ee.useRef();if(!ce||!ce.points)return null;var en={position:"absolute"};if(ce.autoArrow!==!1){var pn=ce.points[0],Un=ce.points[1],zn=pn[0],Jn=pn[1],jn=Un[0],En=Un[1];zn===jn||!["t","b"].includes(zn)?en.top=_t:zn==="t"?en.top=0:en.bottom=0,Jn===En||!["l","r"].includes(Jn)?en.left=Tt:Jn==="l"?en.left=0:en.right=0}return ee.createElement("div",{ref:gn,className:se()("".concat(ue,"-arrow"),Je),style:en},Lt)}function Ur(ie){var ue=ie.prefixCls,ce=ie.open,be=ie.zIndex,_e=ie.mask,Qe=ie.motion;return _e?ee.createElement(vo,(0,we.Z)({},Qe,{motionAppear:!0,visible:ce,removeOnLeave:!0}),function(Je){var Lt=Je.className;return ee.createElement("div",{style:{zIndex:be},className:se()("".concat(ue,"-mask"),Lt)})}):null}var Kr=ee.memo(function(ie){var ue=ie.children;return ue},function(ie,ue){return ue.cache}),Vr=Kr,_i=ee.forwardRef(function(ie,ue){var ce=ie.popup,be=ie.className,_e=ie.prefixCls,Qe=ie.style,Je=ie.target,Lt=ie.onVisibleChanged,Wt=ie.open,Tt=ie.keepDom,rn=ie.fresh,_t=ie.onClick,gn=ie.mask,en=ie.arrow,pn=ie.arrowPos,Un=ie.align,zn=ie.motion,Jn=ie.maskMotion,jn=ie.forceRender,En=ie.getPopupContainer,tn=ie.autoDestroy,va=ie.portal,ma=ie.zIndex,pa=ie.onMouseEnter,Oa=ie.onMouseLeave,Ya=ie.onPointerEnter,la=ie.ready,Xn=ie.offsetX,Na=ie.offsetY,Da=ie.offsetR,ya=ie.offsetB,Kn=ie.onAlign,da=ie.onPrepare,Zn=ie.stretch,Qa=ie.targetWidth,ca=ie.targetHeight,ao=typeof ce=="function"?ce():ce,No=Wt||Tt,io=(En==null?void 0:En.length)>0,$o=ee.useState(!En||!io),Do=(0,Ze.Z)($o,2),ra=Do[0],Ao=Do[1];if($n(function(){!ra&&io&&Je&&Ao(!0)},[ra,io,Je]),!ra)return null;var Ia="auto",ha={left:"-1000vw",top:"-1000vh",right:Ia,bottom:Ia};if(la||!Wt){var Ua,ko=Un.points,ar=Un.dynamicInset||((Ua=Un._experimental)===null||Ua===void 0?void 0:Ua.dynamicInset),dr=ar&&ko[0][1]==="r",po=ar&&ko[0][0]==="b";dr?(ha.right=Da,ha.left=Ia):(ha.left=Xn,ha.right=Ia),po?(ha.bottom=ya,ha.top=Ia):(ha.top=Na,ha.bottom=Ia)}var Eo={};return Zn&&(Zn.includes("height")&&ca?Eo.height=ca:Zn.includes("minHeight")&&ca&&(Eo.minHeight=ca),Zn.includes("width")&&Qa?Eo.width=Qa:Zn.includes("minWidth")&&Qa&&(Eo.minWidth=Qa)),Wt||(Eo.pointerEvents="none"),ee.createElement(va,{open:jn||No,getContainer:En&&function(){return En(Je)},autoDestroy:tn},ee.createElement(Ur,{prefixCls:_e,open:Wt,zIndex:ma,mask:gn,motion:Jn}),ee.createElement(Se.Z,{onResize:Kn,disabled:!Wt},function(Qo){return ee.createElement(vo,(0,we.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:jn,leavedClassName:"".concat(_e,"-hidden")},zn,{onAppearPrepare:da,onEnterPrepare:da,visible:Wt,onVisibleChanged:function(ba){var Ln;zn==null||(Ln=zn.onVisibleChanged)===null||Ln===void 0||Ln.call(zn,ba),Lt(ba)}}),function(Lo,ba){var Ln=Lo.className,Ja=Lo.style,Oo=se()(_e,Ln,be);return ee.createElement("div",{ref:ft(Qo,ue,ba),className:Oo,style:(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({"--arrow-x":"".concat(pn.x||0,"px"),"--arrow-y":"".concat(pn.y||0,"px")},ha),Eo),Ja),{},{boxSizing:"border-box",zIndex:ma},Qe),onMouseEnter:pa,onMouseLeave:Oa,onPointerEnter:Ya,onClick:_t},en&&ee.createElement(lr,{prefixCls:_e,arrow:en,arrowPos:pn,align:Un}),ee.createElement(Vr,{cache:!Wt&&!rn},ao))})}))}),Gi=_i,Ri=ee.forwardRef(function(ie,ue){var ce=ie.children,be=ie.getTriggerDOMNode,_e=Ta(ce),Qe=ee.useCallback(function(Lt){La(ue,be?be(Lt):Lt)},[be]),Je=Hn(Qe,ce.ref);return _e?ee.cloneElement(ce,{ref:Je}):ce}),ki=Ri,ji=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Zi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,ue=ee.forwardRef(function(ce,be){var _e=ce.prefixCls,Qe=_e===void 0?"rc-trigger-popup":_e,Je=ce.children,Lt=ce.action,Wt=Lt===void 0?"hover":Lt,Tt=ce.showAction,rn=ce.hideAction,_t=ce.popupVisible,gn=ce.defaultPopupVisible,en=ce.onPopupVisibleChange,pn=ce.afterPopupVisibleChange,Un=ce.mouseEnterDelay,zn=ce.mouseLeaveDelay,Jn=zn===void 0?.1:zn,jn=ce.focusDelay,En=ce.blurDelay,tn=ce.mask,va=ce.maskClosable,ma=va===void 0?!0:va,pa=ce.getPopupContainer,Oa=ce.forceRender,Ya=ce.autoDestroy,la=ce.destroyPopupOnHide,Xn=ce.popup,Na=ce.popupClassName,Da=ce.popupStyle,ya=ce.popupPlacement,Kn=ce.builtinPlacements,da=Kn===void 0?{}:Kn,Zn=ce.popupAlign,Qa=ce.zIndex,ca=ce.stretch,ao=ce.getPopupClassNameFromAlign,No=ce.fresh,io=ce.alignPoint,$o=ce.onPopupClick,Do=ce.onPopupAlign,ra=ce.arrow,Ao=ce.popupMotion,Ia=ce.maskMotion,ha=ce.popupTransitionName,Ua=ce.popupAnimation,ko=ce.maskTransitionName,ar=ce.maskAnimation,dr=ce.className,po=ce.getTriggerDOMNode,Eo=(0,je.Z)(ce,ji),Qo=Ya||la||!1,Lo=ee.useState(!1),ba=(0,Ze.Z)(Lo,2),Ln=ba[0],Ja=ba[1];$n(function(){Ja(sa())},[]);var Oo=ee.useRef({}),Jo=ee.useContext(za),Pr=ee.useMemo(function(){return{registerSubPopup:function(Vn,Ka){Oo.current[Vn]=Ka,Jo==null||Jo.registerSubPopup(Vn,Ka)}}},[Jo]),vr=Vt(),hi=ee.useState(null),Xr=(0,Ze.Z)(hi,2),Ho=Xr[0],Yr=Xr[1],Wo=at(function(cn){xe(cn)&&Ho!==cn&&Yr(cn),Jo==null||Jo.registerSubPopup(vr,cn)}),Uo=ee.useState(null),Qr=(0,Ze.Z)(Uo,2),Ko=Qr[0],Pi=Qr[1],vi=at(function(cn){xe(cn)&&Ko!==cn&&Pi(cn)}),Ar=ee.Children.only(Je),Io=(Ar==null?void 0:Ar.props)||{},sr={},pi=at(function(cn){var Vn,Ka,lo=Ko;return(lo==null?void 0:lo.contains(cn))||((Vn=mt(lo))===null||Vn===void 0?void 0:Vn.host)===cn||cn===lo||(Ho==null?void 0:Ho.contains(cn))||((Ka=mt(Ho))===null||Ka===void 0?void 0:Ka.host)===cn||cn===Ho||Object.values(Oo.current).some(function(Va){return(Va==null?void 0:Va.contains(cn))||cn===Va})}),or=Yn(Qe,Ao,Ua,ha),zo=Yn(Qe,Ia,ar,ko),Jr=ee.useState(gn||!1),Ir=(0,Ze.Z)(Jr,2),ur=Ir[0],qa=Ir[1],fa=_t!=null?_t:ur,qo=at(function(cn){_t===void 0&&qa(cn)});$n(function(){qa(_t||!1)},[_t]);var er=ee.useRef(fa);er.current=fa;var zr=at(function(cn){(0,Ve.flushSync)(function(){fa!==cn&&(qo(cn),en==null||en(cn))})}),_r=ee.useRef(),Gr=function(){clearTimeout(_r.current)},jo=function(Vn){var Ka=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Gr(),Ka===0?zr(Vn):_r.current=setTimeout(function(){zr(Vn)},Ka*1e3)};ee.useEffect(function(){return Gr},[]);var Or=ee.useState(!1),qr=(0,Ze.Z)(Or,2),Rr=qr[0],kr=qr[1];$n(function(cn){(!cn||fa)&&kr(!0)},[fa]);var ei=ee.useState(null),jr=(0,Ze.Z)(ei,2),rr=jr[0],pr=jr[1],yr=ee.useState([0,0]),br=(0,Ze.Z)(yr,2),Zr=br[0],ti=br[1],tr=function(Vn){ti([Vn.clientX,Vn.clientY])},ni=Pt(fa,Ho,io?Zr:Ko,ya,da,Zn,Do),_o=(0,Ze.Z)(ni,11),Er=_o[0],ai=_o[1],yi=_o[2],oi=_o[3],ri=_o[4],Lr=_o[5],ii=_o[6],bi=_o[7],wr=_o[8],Cr=_o[9],Hr=_o[10],xr=ka(Ln,Wt,Tt,rn),cr=(0,Ze.Z)(xr,2),mr=cr[0],Br=cr[1],Mr=mr.has("click"),Tr=Br.has("click")||Br.has("contextMenu"),ir=at(function(){Rr||Hr()}),Ei=function(){er.current&&io&&Tr&&jo(!1)};Yt(fa,Ko,Ho,ir,Ei),$n(function(){ir()},[Zr,ya]),$n(function(){fa&&!(da!=null&&da[ya])&&ir()},[JSON.stringify(Zn)]);var gi=ee.useMemo(function(){var cn=Xa(da,Qe,Cr,io);return se()(cn,ao==null?void 0:ao(Cr))},[Cr,ao,da,Qe,io]);ee.useImperativeHandle(be,function(){return{forceAlign:ir}});var Li=ee.useState(0),li=(0,Ze.Z)(Li,2),wi=li[0],Ci=li[1],xi=ee.useState(0),di=(0,Ze.Z)(xi,2),Bi=di[0],Fi=di[1],si=function(){if(ca&&Ko){var Vn=Ko.getBoundingClientRect();Ci(Vn.width),Fi(Vn.height)}},Ni=function(){si(),ir()},$i=function(Vn){kr(!1),Hr(),pn==null||pn(Vn)},Zo=function(){return new Promise(function(Vn){si(),pr(function(){return Vn})})};$n(function(){rr&&(Hr(),rr(),pr(null))},[rr]);function gr(cn,Vn,Ka,lo){sr[cn]=function(Va){var mi;lo==null||lo(Va),jo(Vn,Ka);for(var Di=arguments.length,zi=new Array(Di>1?Di-1:0),fi=1;fi<Di;fi++)zi[fi-1]=arguments[fi];(mi=Io[cn])===null||mi===void 0||mi.call.apply(mi,[Io,Va].concat(zi))}}(Mr||Tr)&&(sr.onClick=function(cn){var Vn;er.current&&Tr?jo(!1):!er.current&&Mr&&(tr(cn),jo(!0));for(var Ka=arguments.length,lo=new Array(Ka>1?Ka-1:0),Va=1;Va<Ka;Va++)lo[Va-1]=arguments[Va];(Vn=Io.onClick)===null||Vn===void 0||Vn.call.apply(Vn,[Io,cn].concat(lo))}),It(fa,Tr,Ko,Ho,tn,ma,pi,jo);var ui=mr.has("hover"),Fr=Br.has("hover"),fr,Wr;ui&&(gr("onMouseEnter",!0,Un,function(cn){tr(cn)}),gr("onPointerEnter",!0,Un,function(cn){tr(cn)}),fr=function(){(fa||Rr)&&jo(!0,Un)},io&&(sr.onMouseMove=function(cn){var Vn;(Vn=Io.onMouseMove)===null||Vn===void 0||Vn.call(Io,cn)})),Fr&&(gr("onMouseLeave",!1,Jn),gr("onPointerLeave",!1,Jn),Wr=function(){jo(!1,Jn)}),mr.has("focus")&&gr("onFocus",!0,jn),Br.has("focus")&&gr("onBlur",!1,En),mr.has("contextMenu")&&(sr.onContextMenu=function(cn){var Vn;er.current&&Br.has("contextMenu")?jo(!1):(tr(cn),jo(!0)),cn.preventDefault();for(var Ka=arguments.length,lo=new Array(Ka>1?Ka-1:0),Va=1;Va<Ka;Va++)lo[Va-1]=arguments[Va];(Vn=Io.onContextMenu)===null||Vn===void 0||Vn.call.apply(Vn,[Io,cn].concat(lo))}),dr&&(sr.className=se()(Io.className,dr));var Dr=(0,Ae.Z)((0,Ae.Z)({},Io),sr),ci={},Ai=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ai.forEach(function(cn){Eo[cn]&&(ci[cn]=function(){for(var Vn,Ka=arguments.length,lo=new Array(Ka),Va=0;Va<Ka;Va++)lo[Va]=arguments[Va];(Vn=Dr[cn])===null||Vn===void 0||Vn.call.apply(Vn,[Dr].concat(lo)),Eo[cn].apply(Eo,lo)})});var Oi=ee.cloneElement(Ar,(0,Ae.Z)((0,Ae.Z)({},Dr),ci)),Mi={x:Lr,y:ii},Ti=ra?(0,Ae.Z)({},ra!==!0?ra:{}):null;return ee.createElement(ee.Fragment,null,ee.createElement(Se.Z,{disabled:!fa,ref:vi,onResize:Ni},ee.createElement(ki,{getTriggerDOMNode:po},Oi)),ee.createElement(za.Provider,{value:Pr},ee.createElement(Gi,{portal:ie,ref:Wo,prefixCls:Qe,popup:Xn,className:se()(Na,gi),style:Da,target:Ko,onMouseEnter:fr,onMouseLeave:Wr,onPointerEnter:fr,zIndex:Qa,open:fa,keepDom:Rr,fresh:No,onClick:$o,mask:tn,motion:or,maskMotion:zo,onVisibleChanged:$i,onPrepare:Zo,forceRender:Oa,autoDestroy:Qo,getPopupContainer:pa,align:Cr,arrow:Ti,arrowPos:Mi,ready:Er,offsetX:ai,offsetY:yi,offsetR:oi,offsetB:ri,onAlign:ir,stretch:ca,targetWidth:wi/bi,targetHeight:Bi/wr})))});return ue}var Hi=Zi(wn),Nn={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(ue){var ce=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||ce>=Nn.F1&&ce<=Nn.F12)return!1;switch(ce){case Nn.ALT:case Nn.CAPS_LOCK:case Nn.CONTEXT_MENU:case Nn.CTRL:case Nn.DOWN:case Nn.END:case Nn.ESC:case Nn.HOME:case Nn.INSERT:case Nn.LEFT:case Nn.MAC_FF_META:case Nn.META:case Nn.NUMLOCK:case Nn.NUM_CENTER:case Nn.PAGE_DOWN:case Nn.PAGE_UP:case Nn.PAUSE:case Nn.PRINT_SCREEN:case Nn.RIGHT:case Nn.SHIFT:case Nn.UP:case Nn.WIN_KEY:case Nn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=Nn.ZERO&&ue<=Nn.NINE||ue>=Nn.NUM_ZERO&&ue<=Nn.NUM_MULTIPLY||ue>=Nn.A&&ue<=Nn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case Nn.SPACE:case Nn.QUESTION_MARK:case Nn.NUM_PLUS:case Nn.NUM_MINUS:case Nn.NUM_PERIOD:case Nn.NUM_DIVISION:case Nn.SEMICOLON:case Nn.DASH:case Nn.EQUALS:case Nn.COMMA:case Nn.PERIOD:case Nn.SLASH:case Nn.APOSTROPHE:case Nn.SINGLE_QUOTE:case Nn.OPEN_SQUARE_BRACKET:case Nn.BACKSLASH:case Nn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ii=Nn,Wi=Ii.ESC,Ui=Ii.TAB;function Ki(ie){var ue=ie.visible,ce=ie.triggerRef,be=ie.onVisibleChange,_e=ie.autoFocus,Qe=ie.overlayRef,Je=ee.useRef(!1),Lt=function(){if(ue){var _t,gn;(_t=ce.current)===null||_t===void 0||(gn=_t.focus)===null||gn===void 0||gn.call(_t),be==null||be(!1)}},Wt=function(){var _t;return(_t=Qe.current)!==null&&_t!==void 0&&_t.focus?(Qe.current.focus(),Je.current=!0,!0):!1},Tt=function(_t){switch(_t.keyCode){case Wi:Lt();break;case Ui:{var gn=!1;Je.current||(gn=Wt()),gn?_t.preventDefault():Lt();break}}};ee.useEffect(function(){return ue?(window.addEventListener("keydown",Tt),_e&&pt(Wt,3),function(){window.removeEventListener("keydown",Tt),Je.current=!1}):function(){Je.current=!1}},[ue])}var Vi=(0,ee.forwardRef)(function(ie,ue){var ce=ie.overlay,be=ie.arrow,_e=ie.prefixCls,Qe=(0,ee.useMemo)(function(){var Lt;return typeof ce=="function"?Lt=ce():Lt=ce,Lt},[ce]),Je=de(ue,Qe==null?void 0:Qe.ref);return ee.createElement(ee.Fragment,null,be&&ee.createElement("div",{className:"".concat(_e,"-arrow")}),ee.cloneElement(Qe,{ref:pe(Qe)?Je:void 0}))}),Xi=Vi,Nr={adjustX:1,adjustY:1},$r=[0,0],Yi={topLeft:{points:["bl","tl"],overflow:Nr,offset:[0,-4],targetOffset:$r},top:{points:["bc","tc"],overflow:Nr,offset:[0,-4],targetOffset:$r},topRight:{points:["br","tr"],overflow:Nr,offset:[0,-4],targetOffset:$r},bottomLeft:{points:["tl","bl"],overflow:Nr,offset:[0,4],targetOffset:$r},bottom:{points:["tc","bc"],overflow:Nr,offset:[0,4],targetOffset:$r},bottomRight:{points:["tr","br"],overflow:Nr,offset:[0,4],targetOffset:$r}},Qi=Yi,Ji=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function qi(ie,ue){var ce,be=ie.arrow,_e=be===void 0?!1:be,Qe=ie.prefixCls,Je=Qe===void 0?"rc-dropdown":Qe,Lt=ie.transitionName,Wt=ie.animation,Tt=ie.align,rn=ie.placement,_t=rn===void 0?"bottomLeft":rn,gn=ie.placements,en=gn===void 0?Qi:gn,pn=ie.getPopupContainer,Un=ie.showAction,zn=ie.hideAction,Jn=ie.overlayClassName,jn=ie.overlayStyle,En=ie.visible,tn=ie.trigger,va=tn===void 0?["hover"]:tn,ma=ie.autoFocus,pa=ie.overlay,Oa=ie.children,Ya=ie.onVisibleChange,la=(0,je.Z)(ie,Ji),Xn=ee.useState(),Na=(0,Ze.Z)(Xn,2),Da=Na[0],ya=Na[1],Kn="visible"in ie?En:Da,da=ee.useRef(null),Zn=ee.useRef(null),Qa=ee.useRef(null);ee.useImperativeHandle(ue,function(){return da.current});var ca=function(ha){ya(ha),Ya==null||Ya(ha)};Ki({visible:Kn,triggerRef:Qa,onVisibleChange:ca,autoFocus:ma,overlayRef:Zn});var ao=function(ha){var Ua=ie.onOverlayClick;ya(!1),Ua&&Ua(ha)},No=function(){return ee.createElement(Xi,{ref:Zn,overlay:pa,prefixCls:Je,arrow:_e})},io=function(){return typeof pa=="function"?No:No()},$o=function(){var ha=ie.minOverlayWidthMatchTrigger,Ua=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?ha:!Ua},Do=function(){var ha=ie.openClassName;return ha!==void 0?ha:"".concat(Je,"-open")},ra=ee.cloneElement(Oa,{className:se()((ce=Oa.props)===null||ce===void 0?void 0:ce.className,Kn&&Do()),ref:pe(Oa)?de(Qa,Oa.ref):void 0}),Ao=zn;return!Ao&&va.indexOf("contextMenu")!==-1&&(Ao=["click"]),ee.createElement(Hi,(0,we.Z)({builtinPlacements:en},la,{prefixCls:Je,ref:da,popupClassName:se()(Jn,(0,fe.Z)({},"".concat(Je,"-show-arrow"),_e)),popupStyle:jn,action:va,showAction:Un,hideAction:Ao,popupPlacement:_t,popupAlign:Tt,popupTransitionName:Lt,popupAnimation:Wt,popupVisible:Kn,stretch:$o()?"minWidth":"",popup:io(),onPopupVisibleChange:ca,onPopupClick:ao,getPopupContainer:pn}),ra)}var eg=ee.forwardRef(qi),tg=eg,ng=ae(60276),ag=ae(5663),og=ae(10366),rg=ae(80636),ig=ae(8745),gg=ae(96159),lg=ae(53124),dg=ae(68508),sg=ae(76529),ug=ae(46605),cg=ae(66748);const Pg=null,Si=ie=>{const{menu:ue,arrow:ce,prefixCls:be,children:_e,trigger:Qe,disabled:Je,dropdownRender:Lt,getPopupContainer:Wt,overlayClassName:Tt,rootClassName:rn,open:_t,onOpenChange:gn,visible:en,onVisibleChange:pn,mouseEnterDelay:Un=.15,mouseLeaveDelay:zn=.1,autoAdjustOverflow:Jn=!0,placement:jn="",overlay:En,transitionName:tn}=ie,{getPopupContainer:va,getPrefixCls:ma,direction:pa}=ee.useContext(lg.E_),Oa=ee.useMemo(()=>{const ra=ma();return tn!==void 0?tn:jn.includes("top")?`${ra}-slide-down`:`${ra}-slide-up`},[ma,jn,tn]),Ya=ee.useMemo(()=>jn?jn.includes("Center")?jn.slice(0,jn.indexOf("Center")):jn:pa==="rtl"?"bottomRight":"bottomLeft",[jn,pa]),la=ma("dropdown",be),[Xn,Na]=(0,cg.Z)(la),[,Da]=(0,ug.Z)(),ya=ee.Children.only(_e),Kn=(0,gg.Tm)(ya,{className:se()(`${la}-trigger`,{[`${la}-rtl`]:pa==="rtl"},ya.props.className),disabled:Je}),da=Je?[]:Qe;let Zn;da&&da.includes("contextMenu")&&(Zn=!0);const[Qa,ca]=(0,ag.Z)(!1,{value:_t!=null?_t:en}),ao=(0,ng.useEvent)(ra=>{gn==null||gn(ra),pn==null||pn(ra),ca(ra)}),No=se()(Tt,rn,Na,{[`${la}-rtl`]:pa==="rtl"}),io=(0,rg.Z)({arrowPointAtCenter:typeof ce=="object"&&ce.pointAtCenter,autoAdjustOverflow:Jn,offset:Da.marginXXS,arrowWidth:ce?Da.sizePopupArrow:0,borderRadius:Da.borderRadius}),$o=ee.useCallback(()=>{ca(!1)},[]),Do=()=>{let ra;return ue!=null&&ue.items?ra=ee.createElement(dg.default,Object.assign({},ue)):typeof En=="function"?ra=En():ra=En,Lt&&(ra=Lt(ra)),ra=ee.Children.only(typeof ra=="string"?ee.createElement("span",null,ra):ra),ee.createElement(sg.J,{prefixCls:`${la}-menu`,expandIcon:ee.createElement("span",{className:`${la}-menu-submenu-arrow`},ee.createElement(Xe.Z,{className:`${la}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$o,validator:Ao=>{let{mode:Ia}=Ao}},ra)};return Xn(ee.createElement(tg,Object.assign({alignPoint:Zn},(0,og.Z)(ie,["rootClassName"]),{mouseEnterDelay:Un,mouseLeaveDelay:zn,visible:Qa,builtinPlacements:io,arrow:!!ce,overlayClassName:No,prefixCls:la,getPopupContainer:Wt||va,transitionName:Oa,trigger:da,overlay:Do,placement:Ya,onVisibleChange:ao}),Kn))};function mg(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const fg=(0,ig.Z)(Si,"dropdown",ie=>ie,mg),Sg=ie=>ee.createElement(fg,Object.assign({},ie),ee.createElement("span",null));Si._InternalPanelDoNotUseOrYouWillBeFired=Sg;var hg=Si},66748:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return Ve}});var ee=ae(14747),me=ae(67771),Xe=ae(33297),Ke=ae(50438),se=ae(97414),we=ae(67968),fe=ae(45503),je=ke=>{const{componentCls:Be,menuCls:oe,colorError:y,colorTextLightSolid:a}=ke,E=`${oe}-item`;return{[`${Be}, ${Be}-menu-submenu`]:{[`${oe} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Ae=ke=>{const{componentCls:Be,menuCls:oe,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:te,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:Ee,colorBgElevated:pe}=ke;return[{[Be]:Object.assign(Object.assign({},(0,ee.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${Be}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Be}-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${Be}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomRight`]:{animationName:me.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topRight`]:{animationName:me.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomRight`]:{animationName:me.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topRight`]:{animationName:me.ly}})},(0,se.ZP)(ke,{colorBg:pe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Be} ${oe}`]:{position:"relative",margin:0},[`${oe}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Be}, ${Be}-menu-submenu`]:{[oe]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ee.Qy)(ke)),{[`${oe}-item-group-title`]:{padding:`${te}px ${Ee}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${oe}-item-icon`]:{minWidth:ne,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${oe}-item, ${oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${te}px ${Ee}px`,color:ke.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ee.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${Be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${Be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${oe}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${oe}-submenu-title`]:{paddingInlineEnd:Ee+ke.fontSizeSM},[`${oe}-submenu-vertical`]:{position:"relative"},[`${oe}-submenu${oe}-submenu-disabled ${Be}-menu-submenu-title`]:{[`&, ${Be}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:pe,cursor:"not-allowed"}},[`${oe}-submenu-selected ${Be}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,me.oN)(ke,"slide-up"),(0,me.oN)(ke,"slide-down"),(0,Xe.Fm)(ke,"move-up"),(0,Xe.Fm)(ke,"move-down"),(0,Ke._y)(ke,"zoom-big")]]};var Ve=(0,we.Z)("Dropdown",(ke,Be)=>{let{rootPrefixCls:oe}=Be;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:te,borderRadiusLG:ne}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,se.fS)({contentRadius:ne}),de=(0,fe.TS)(ke,{menuCls:`${te}-menu`,rootPrefixCls:oe,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ae(de),je(de)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},25378:function(Ue,st,ae){"use strict";var ee=ae(67294),me=ae(14075),Xe=ae(57838),Ke=ae(74443);function se(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const fe=(0,ee.useRef)({}),Ze=(0,Xe.Z)(),je=(0,Ke.ZP)();return(0,me.Z)(()=>{const Ae=je.subscribe(Ve=>{fe.current=Ve,we&&Ze()});return()=>je.unsubscribe(Ae)},[]),fe.current}st.Z=se},71322:function(Ue,st,ae){"use strict";ae.d(st,{D:function(){return x},Z:function(){return ne}});var ee=ae(87462),me=ae(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ke=Xe,se=ae(74643),we=function(ge,de){return me.createElement(se.Z,(0,ee.Z)({},ge,{ref:de,icon:Ke}))},fe=me.forwardRef(we),Ze=ae(22751),je=ae(91034),Ae=ae(94184),Ve=ae.n(Ae),ke=ae(10366),oe=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ae(53124),a=ae(84321),E=function(re,ge){var de={};for(var Ee in re)Object.prototype.hasOwnProperty.call(re,Ee)&&ge.indexOf(Ee)<0&&(de[Ee]=re[Ee]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ee=Object.getOwnPropertySymbols(re);pe<Ee.length;pe++)ge.indexOf(Ee[pe])<0&&Object.prototype.propertyIsEnumerable.call(re,Ee[pe])&&(de[Ee[pe]]=re[Ee[pe]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=me.createContext({}),z=(()=>{let re=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ge}${re}`}})();var ne=me.forwardRef((re,ge)=>{const{prefixCls:de,className:Ee,trigger:pe,children:We,defaultCollapsed:Le=!1,theme:lt="dark",style:Dt={},collapsible:Bt=!1,reverseArrow:Me=!1,width:nt=200,collapsedWidth:ot=80,zeroWidthTriggerStyle:rt,breakpoint:St,onCollapse:kt,onBreakpoint:Sn}=re,bn=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Bn}=(0,me.useContext)(a.Gs),[De,Ye]=(0,me.useState)("collapsed"in re?re.collapsed:Le),[gt,Kt]=(0,me.useState)(!1);(0,me.useEffect)(()=>{"collapsed"in re&&Ye(re.collapsed)},[re.collapsed]);const ct=(xt,tt)=>{"collapsed"in re||Ye(xt),kt==null||kt(xt,tt)},Nt=(0,me.useRef)();Nt.current=xt=>{Kt(xt.matches),Sn==null||Sn(xt.matches),De!==xt.matches&&ct(xt.matches,"responsive")},(0,me.useEffect)(()=>{function xt(Re){return Nt.current(Re)}let tt;if(typeof window!="undefined"){const{matchMedia:Re}=window;if(Re&&St&&St in b){tt=Re(`(max-width: ${b[St]})`);try{tt.addEventListener("change",xt)}catch(Ne){tt.addListener(xt)}xt(tt)}}return()=>{try{tt==null||tt.removeEventListener("change",xt)}catch(Re){tt==null||tt.removeListener(xt)}}},[St]),(0,me.useEffect)(()=>{const xt=z("ant-sider-");return Bn.addSider(xt),()=>Bn.removeSider(xt)},[]);const ve=()=>{ct(!De,"clickTrigger")},{getPrefixCls:yt}=(0,me.useContext)(y.E_),on=()=>{const xt=yt("layout-sider",de),tt=(0,ke.Z)(bn,["collapsed"]),Re=De?ot:nt,Ne=oe(Re)?`${Re}px`:String(Re),et=parseFloat(String(ot||0))===0?me.createElement("span",{onClick:ve,className:Ve()(`${xt}-zero-width-trigger`,`${xt}-zero-width-trigger-${Me?"right":"left"}`),style:rt},pe||me.createElement(fe,null)):null,Xt={expanded:Me?me.createElement(je.Z,null):me.createElement(Ze.Z,null),collapsed:Me?me.createElement(Ze.Z,null):me.createElement(je.Z,null)}[De?"collapsed":"expanded"],nn=pe!==null?et||me.createElement("div",{className:`${xt}-trigger`,onClick:ve,style:{width:Ne}},pe||Xt):null,sn=Object.assign(Object.assign({},Dt),{flex:`0 0 ${Ne}`,maxWidth:Ne,minWidth:Ne,width:Ne}),hn=Ve()(xt,`${xt}-${lt}`,{[`${xt}-collapsed`]:!!De,[`${xt}-has-trigger`]:Bt&&pe!==null&&!et,[`${xt}-below`]:!!gt,[`${xt}-zero-width`]:parseFloat(Ne)===0},Ee);return me.createElement("aside",Object.assign({className:hn},tt,{style:sn,ref:ge}),me.createElement("div",{className:`${xt}-children`},We),Bt||gt&&et?nn:null)},Tn=me.useMemo(()=>({siderCollapsed:De}),[De]);return me.createElement(x.Provider,{value:Tn},on())})},97183:function(Ue,st,ae){"use strict";var ee=ae(84321),me=ae(71322);const Xe=ee.ZP;Xe.Header=ee.h4,Xe.Footer=ee.$_,Xe.Content=ee.VY,Xe.Sider=me.Z,st.default=Xe},84321:function(Ue,st,ae){"use strict";ae.d(st,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Be},ZP:function(){return te}});var ee=ae(74902),me=ae(94184),Xe=ae.n(me),Ke=ae(10366),se=ae(67294),we=ae(53124),fe=ae(67968),je=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Ee,lightTriggerColor:pe}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:pe,background:Ee},[`${re}-sider-zero-width-trigger`]:{color:pe,background:Ee,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ae=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:Ee,footerBg:pe,triggerBg:We,headerHeight:Le,headerPadding:lt,headerColor:Dt,footerPadding:Bt,triggerHeight:Me,zeroTriggerHeight:nt,zeroTriggerWidth:ot,motionDurationMid:rt,motionDurationSlow:St,fontSize:kt,borderRadius:Sn,bodyBg:bn,headerBg:Bn,siderBg:De}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:De,transition:`all ${rt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:Ee,lineHeight:`${Me}px`,textAlign:"center",background:We,cursor:"pointer",transition:`all ${rt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Le,insetInlineEnd:-ot,zIndex:1,width:ot,height:nt,color:Ee,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:De,borderStartStartRadius:0,borderStartEndRadius:Sn,borderEndEndRadius:Sn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${St} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${St}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ot,borderStartStartRadius:Sn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Sn}}}}},je(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Le,padding:lt,color:Dt,lineHeight:`${Le}px`,background:Bn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Bt,color:de,fontSize:kt,background:pe},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ve=(0,fe.Z)("Layout",ne=>[Ae(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:Ee,controlHeightSM:pe,marginXXS:We,colorTextLightSolid:Le,colorBgContainer:lt}=ne,Dt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Dt}px`,headerColor:Ee,footerPadding:`${pe}px ${Dt}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+We*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:Ee}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(ne,re){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&re.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,de=Object.getOwnPropertySymbols(ne);Ee<de.length;Ee++)re.indexOf(de[Ee])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Ee])&&(ge[de[Ee]]=ne[de[Ee]]);return ge};const Be=se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function oe(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return Ee=>se.forwardRef((We,Le)=>se.createElement(Ee,Object.assign({ref:Le,suffixCls:re,tagName:ge},We)))}const y=se.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:Ee,tagName:pe}=ne,We=ke(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Le}=se.useContext(we.E_),lt=Le("layout",ge),[Dt,Bt]=Ve(lt),Me=de?`${lt}-${de}`:lt;return Dt(se.createElement(pe,Object.assign({className:Xe()(ge||Me,Ee,Bt),ref:re},We)))}),a=se.forwardRef((ne,re)=>{const{direction:ge}=se.useContext(we.E_),[de,Ee]=se.useState([]),{prefixCls:pe,className:We,rootClassName:Le,children:lt,hasSider:Dt,tagName:Bt,style:Me}=ne,nt=ke(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ot=(0,Ke.Z)(nt,["suffixCls"]),{getPrefixCls:rt,layout:St}=se.useContext(we.E_),kt=rt("layout",pe),[Sn,bn]=Ve(kt),Bn=Xe()(kt,{[`${kt}-has-sider`]:typeof Dt=="boolean"?Dt:de.length>0,[`${kt}-rtl`]:ge==="rtl"},St==null?void 0:St.className,We,Le,bn),De=se.useMemo(()=>({siderHook:{addSider:Ye=>{Ee(gt=>[].concat((0,ee.Z)(gt),[Ye]))},removeSider:Ye=>{Ee(gt=>gt.filter(Kt=>Kt!==Ye))}}}),[]);return Sn(se.createElement(Be.Provider,{value:De},se.createElement(Bt,Object.assign({ref:re,className:Bn,style:Object.assign(Object.assign({},St==null?void 0:St.style),Me)},ot),lt)))}),E=oe({tagName:"div",displayName:"Layout"})(a),b=oe({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=oe({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var te=E},76529:function(Ue,st,ae){"use strict";ae.d(st,{J:function(){return we}});var ee=ae(67294),me=ae(4173),Xe=ae(60276),Ke=function(fe,Ze){var je={};for(var Ae in fe)Object.prototype.hasOwnProperty.call(fe,Ae)&&Ze.indexOf(Ae)<0&&(je[Ae]=fe[Ae]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ae=Object.getOwnPropertySymbols(fe);Ve<Ae.length;Ve++)Ze.indexOf(Ae[Ve])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ae[Ve])&&(je[Ae[Ve]]=fe[Ae[Ve]]);return je};const se=ee.createContext(null),we=ee.forwardRef((fe,Ze)=>{const{children:je}=fe,Ae=Ke(fe,["children"]),Ve=ee.useContext(se),ke=ee.useMemo(()=>Object.assign(Object.assign({},Ve),Ae),[Ve,Ae.prefixCls,Ae.mode,Ae.selectable]);return ee.createElement(se.Provider,{value:ke},ee.createElement(me.BR,null,(0,Xe.supportNodeRef)(je)?ee.cloneElement(je,{ref:Ze}):je))});st.Z=se},68508:function(Ue,st,ae){"use strict";ae.d(st,{default:function(){return xt}});var ee=ae(52073),me=ae(67294),Xe=ae(71322),Ke=ae(94184),se=ae.n(Ke),we=ae(53124),fe=function(tt,Re){var Ne={};for(var et in tt)Object.prototype.hasOwnProperty.call(tt,et)&&Re.indexOf(et)<0&&(Ne[et]=tt[et]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,et=Object.getOwnPropertySymbols(tt);dt<et.length;dt++)Re.indexOf(et[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,et[dt])&&(Ne[et[dt]]=tt[et[dt]]);return Ne},je=tt=>{const{prefixCls:Re,className:Ne,dashed:et}=tt,dt=fe(tt,["prefixCls","className","dashed"]),{getPrefixCls:$t}=me.useContext(we.E_),Xt=$t("menu",Re),nn=se()({[`${Xt}-item-divider-dashed`]:!!et},Ne);return me.createElement(ee.iz,Object.assign({className:nn},dt))},Ae=ae(37419),Ve=ae(10366),ke=ae(83062),Be=ae(96159),y=(0,me.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=tt=>{var Re;const{className:Ne,children:et,icon:dt,title:$t,danger:Xt}=tt,{prefixCls:nn,firstLevel:sn,direction:hn,disableMenuItemTitleTooltip:wn,inlineCollapsed:Se}=me.useContext(y),xe=Ot=>{const an=me.createElement("span",{className:`${nn}-title-content`},et);return(!dt||(0,Be.l$)(et)&&et.type==="span")&&et&&Ot&&sn&&typeof et=="string"?me.createElement("div",{className:`${nn}-inline-collapsed-noicon`},et.charAt(0)):an},{siderCollapsed:ln}=me.useContext(Xe.D);let bt=$t;typeof $t=="undefined"?bt=sn?et:"":$t===!1&&(bt="");const Ce={title:bt};!ln&&!Se&&(Ce.title=null,Ce.open=!1);const mt=(0,Ae.Z)(et).length;let at=me.createElement(ee.ck,Object.assign({},(0,Ve.Z)(tt,["title","icon","danger"]),{className:se()({[`${nn}-item-danger`]:Xt,[`${nn}-item-only-child`]:(dt?mt+1:mt)===1},Ne),title:typeof $t=="string"?$t:void 0}),(0,Be.Tm)(dt,{className:se()((0,Be.l$)(dt)?(Re=dt.props)===null||Re===void 0?void 0:Re.className:"",`${nn}-item-icon`)}),xe(Se));return wn||(at=me.createElement(ke.Z,Object.assign({},Ce,{placement:hn==="rtl"?"left":"right",overlayClassName:`${nn}-inline-collapsed-tooltip`}),at)),at},x=tt=>{var Re;const{popupClassName:Ne,icon:et,title:dt,theme:$t}=tt,Xt=me.useContext(y),{prefixCls:nn,inlineCollapsed:sn,theme:hn}=Xt,wn=(0,ee.Xl)();let Se;if(!et)Se=sn&&!wn.length&&dt&&typeof dt=="string"?me.createElement("div",{className:`${nn}-inline-collapsed-noicon`},dt.charAt(0)):me.createElement("span",{className:`${nn}-title-content`},dt);else{const ln=(0,Be.l$)(dt)&&dt.type==="span";Se=me.createElement(me.Fragment,null,(0,Be.Tm)(et,{className:se()((0,Be.l$)(et)?(Re=et.props)===null||Re===void 0?void 0:Re.className:"",`${nn}-item-icon`)}),ln?dt:me.createElement("span",{className:`${nn}-title-content`},dt))}const xe=me.useMemo(()=>Object.assign(Object.assign({},Xt),{firstLevel:!1}),[Xt]);return me.createElement(y.Provider,{value:xe},me.createElement(ee.Wd,Object.assign({},(0,Ve.Z)(tt,["icon"]),{title:Se,popupClassName:se()(nn,Ne,`${nn}-${$t||hn}`)})))},z=ae(25877),te=ae(60276),ne=ae(33603),re=ae(76529),ge=function(tt,Re){var Ne={};for(var et in tt)Object.prototype.hasOwnProperty.call(tt,et)&&Re.indexOf(et)<0&&(Ne[et]=tt[et]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,et=Object.getOwnPropertySymbols(tt);dt<et.length;dt++)Re.indexOf(et[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,et[dt])&&(Ne[et[dt]]=tt[et[dt]]);return Ne};function de(tt){return(tt||[]).map((Re,Ne)=>{if(Re&&typeof Re=="object"){const et=Re,{label:dt,children:$t,key:Xt,type:nn}=et,sn=ge(et,["label","children","key","type"]),hn=Xt!=null?Xt:`tmp-${Ne}`;return $t||nn==="group"?nn==="group"?me.createElement(ee.BW,Object.assign({key:hn},sn,{title:dt}),de($t)):me.createElement(x,Object.assign({key:hn},sn,{title:dt}),de($t)):nn==="divider"?me.createElement(je,Object.assign({key:hn},sn)):me.createElement(E,Object.assign({key:hn},sn),dt)}return null}).filter(Re=>Re)}function Ee(tt){return me.useMemo(()=>tt&&de(tt),[tt])}var pe=ae(84780),We=ae(14747),Le=ae(33507),lt=ae(67771),Dt=ae(50438),Bt=ae(67968),Me=ae(45503),ot=tt=>{const{componentCls:Re,motionDurationSlow:Ne,horizontalLineHeight:et,colorSplit:dt,lineWidth:$t,lineType:Xt,itemPaddingInline:nn}=tt;return{[`${Re}-horizontal`]:{lineHeight:et,border:0,borderBottom:`${$t}px ${Xt} ${dt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Re}-item, ${Re}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:nn},[`> ${Re}-item:hover,
> ${Re}-item-active,
> ${Re}-submenu ${Re}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Re}-item, ${Re}-submenu-title`]:{transition:[`border-color ${Ne}`,`background ${Ne}`].join(",")},[`${Re}-submenu-arrow`]:{display:"none"}}}},St=tt=>{let{componentCls:Re,menuArrowOffset:Ne}=tt;return{[`${Re}-rtl`]:{direction:"rtl"},[`${Re}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Re}-rtl${Re}-vertical,
${Re}-submenu-rtl ${Re}-vertical`]:{[`${Re}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ne})`},"&::after":{transform:`rotate(45deg) translateY(${Ne})`}}}}};const kt=tt=>Object.assign({},(0,We.oN)(tt));var bn=(tt,Re)=>{const{componentCls:Ne,itemColor:et,itemSelectedColor:dt,groupTitleColor:$t,itemBg:Xt,subMenuItemBg:nn,itemSelectedBg:sn,activeBarHeight:hn,activeBarWidth:wn,activeBarBorderWidth:Se,motionDurationSlow:xe,motionEaseInOut:ln,motionEaseOut:bt,itemPaddingInline:Ce,motionDurationMid:mt,itemHoverColor:at,lineType:Ot,colorSplit:an,itemDisabledColor:At,dangerItemColor:Gt,dangerItemHoverColor:Vt,dangerItemSelectedColor:Dn,dangerItemActiveBg:mn,dangerItemSelectedBg:Pn,itemHoverBg:ea,itemActiveBg:$n,menuSubMenuBg:sa,horizontalItemSelectedColor:Ea,horizontalItemSelectedBg:za,horizontalItemBorderRadius:eo,horizontalItemHoverBg:ka,popupBg:oo}=tt;return{[`${Ne}-${Re}, ${Ne}-${Re} > ${Ne}`]:{color:et,background:Xt,[`&${Ne}-root:focus-visible`]:Object.assign({},kt(tt)),[`${Ne}-item-group-title`]:{color:$t},[`${Ne}-submenu-selected`]:{[`> ${Ne}-submenu-title`]:{color:dt}},[`${Ne}-item-disabled, ${Ne}-submenu-disabled`]:{color:`${At} !important`},[`${Ne}-item:not(${Ne}-item-selected):not(${Ne}-submenu-selected)`]:{[`&:hover, > ${Ne}-submenu-title:hover`]:{color:at}},[`&:not(${Ne}-horizontal)`]:{[`${Ne}-item:not(${Ne}-item-selected)`]:{"&:hover":{backgroundColor:ea},"&:active":{backgroundColor:$n}},[`${Ne}-submenu-title`]:{"&:hover":{backgroundColor:ea},"&:active":{backgroundColor:$n}}},[`${Ne}-item-danger`]:{color:Gt,[`&${Ne}-item:hover`]:{[`&:not(${Ne}-item-selected):not(${Ne}-submenu-selected)`]:{color:Vt}},[`&${Ne}-item:active`]:{background:mn}},[`${Ne}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ne}-item-selected`]:{color:dt,[`&${Ne}-item-danger`]:{color:Dn},"a, a:hover":{color:"inherit"}},[`& ${Ne}-item-selected`]:{backgroundColor:sn,[`&${Ne}-item-danger`]:{backgroundColor:Pn}},[`${Ne}-item, ${Ne}-submenu-title`]:{[`&:not(${Ne}-item-disabled):focus-visible`]:Object.assign({},kt(tt))},[`&${Ne}-submenu > ${Ne}`]:{backgroundColor:sa},[`&${Ne}-popup > ${Ne}`]:{backgroundColor:oo},[`&${Ne}-horizontal`]:Object.assign(Object.assign({},Re==="dark"?{borderBottom:0}:{}),{[`> ${Ne}-item, > ${Ne}-submenu`]:{top:Se,marginTop:-Se,marginBottom:0,borderRadius:eo,"&::after":{position:"absolute",insetInline:Ce,bottom:0,borderBottom:`${hn}px solid transparent`,transition:`border-color ${xe} ${ln}`,content:'""'},"&:hover, &-active, &-open":{background:ka,"&::after":{borderBottomWidth:hn,borderBottomColor:Ea}},"&-selected":{color:Ea,backgroundColor:za,"&:hover":{backgroundColor:za},"&::after":{borderBottomWidth:hn,borderBottomColor:Ea}}}}),[`&${Ne}-root`]:{[`&${Ne}-inline, &${Ne}-vertical`]:{borderInlineEnd:`${Se}px ${Ot} ${an}`}},[`&${Ne}-inline`]:{[`${Ne}-sub${Ne}-inline`]:{background:nn},[`${Ne}-item, ${Ne}-submenu-title`]:Se&&wn?{width:`calc(100% + ${Se}px)`}:{},[`${Ne}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wn}px solid ${dt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${mt} ${bt}`,`opacity ${mt} ${bt}`].join(","),content:'""'},[`&${Ne}-item-danger`]:{"&::after":{borderInlineEndColor:Dn}}},[`${Ne}-selected, ${Ne}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${mt} ${ln}`,`opacity ${mt} ${ln}`].join(",")}}}}}};const Bn=tt=>{const{componentCls:Re,itemHeight:Ne,itemMarginInline:et,padding:dt,menuArrowSize:$t,marginXS:Xt,itemMarginBlock:nn}=tt,sn=dt+$t+Xt;return{[`${Re}-item`]:{position:"relative",overflow:"hidden"},[`${Re}-item, ${Re}-submenu-title`]:{height:Ne,lineHeight:`${Ne}px`,paddingInline:dt,overflow:"hidden",textOverflow:"ellipsis",marginInline:et,marginBlock:nn,width:`calc(100% - ${et*2}px)`},[`> ${Re}-item,
> ${Re}-submenu > ${Re}-submenu-title`]:{height:Ne,lineHeight:`${Ne}px`},[`${Re}-item-group-list ${Re}-submenu-title,
${Re}-submenu-title`]:{paddingInlineEnd:sn}}};var Ye=tt=>{const{componentCls:Re,iconCls:Ne,itemHeight:et,colorTextLightSolid:dt,dropdownWidth:$t,controlHeightLG:Xt,motionDurationMid:nn,motionEaseOut:sn,paddingXL:hn,itemMarginInline:wn,fontSizeLG:Se,motionDurationSlow:xe,paddingXS:ln,boxShadowSecondary:bt,collapsedWidth:Ce,collapsedIconSize:mt}=tt,at={height:et,lineHeight:`${et}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Re]:{"&-inline, &-vertical":Object.assign({[`&${Re}-root`]:{boxShadow:"none"}},Bn(tt))},[`${Re}-submenu-popup`]:{[`${Re}-vertical`]:Object.assign(Object.assign({},Bn(tt)),{boxShadow:bt})}},{[`${Re}-submenu-popup ${Re}-vertical${Re}-sub`]:{minWidth:$t,maxHeight:`calc(100vh - ${Xt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Re}-inline`]:{width:"100%",[`&${Re}-root`]:{[`${Re}-item, ${Re}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${xe}`,`background ${xe}`,`padding ${nn} ${sn}`].join(","),[`> ${Re}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Re}-sub${Re}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Re}-submenu > ${Re}-submenu-title`]:at,[`& ${Re}-item-group-title`]:{paddingInlineStart:hn}},[`${Re}-item`]:at}},{[`${Re}-inline-collapsed`]:{width:Ce,[`&${Re}-root`]:{[`${Re}-item, ${Re}-submenu ${Re}-submenu-title`]:{[`> ${Re}-inline-collapsed-noicon`]:{fontSize:Se,textAlign:"center"}}},[`> ${Re}-item,
> ${Re}-item-group > ${Re}-item-group-list > ${Re}-item,
> ${Re}-item-group > ${Re}-item-group-list > ${Re}-submenu > ${Re}-submenu-title,
> ${Re}-submenu > ${Re}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Se/2}px - ${wn}px)`,textOverflow:"clip",[`
${Re}-submenu-arrow,
${Re}-submenu-expand-icon
`]:{opacity:0},[`${Re}-item-icon, ${Ne}`]:{margin:0,fontSize:mt,lineHeight:`${et}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Re}-item-icon, ${Ne}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Re}-item-icon, ${Ne}`]:{display:"none"},"a, a:hover":{color:dt}},[`${Re}-item-group-title`]:Object.assign(Object.assign({},We.vS),{paddingInline:ln})}}]};const gt=tt=>{const{componentCls:Re,motionDurationSlow:Ne,motionDurationMid:et,motionEaseInOut:dt,motionEaseOut:$t,iconCls:Xt,iconSize:nn,iconMarginInlineEnd:sn}=tt;return{[`${Re}-item, ${Re}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ne}`,`background ${Ne}`,`padding ${Ne} ${dt}`].join(","),[`${Re}-item-icon, ${Xt}`]:{minWidth:nn,fontSize:nn,transition:[`font-size ${et} ${$t}`,`margin ${Ne} ${dt}`,`color ${Ne}`].join(","),"+ span":{marginInlineStart:sn,opacity:1,transition:[`opacity ${Ne} ${dt}`,`margin ${Ne}`,`color ${Ne}`].join(",")}},[`${Re}-item-icon`]:Object.assign({},(0,We.Ro)()),[`&${Re}-item-only-child`]:{[`> ${Xt}, > ${Re}-item-icon`]:{marginInlineEnd:0}}},[`${Re}-item-disabled, ${Re}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Re}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Kt=tt=>{const{componentCls:Re,motionDurationSlow:Ne,motionEaseInOut:et,borderRadius:dt,menuArrowSize:$t,menuArrowOffset:Xt}=tt;return{[`${Re}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:tt.margin,width:$t,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ne} ${et}, opacity ${Ne}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$t*.6,height:$t*.15,backgroundColor:"currentcolor",borderRadius:dt,transition:[`background ${Ne} ${et}`,`transform ${Ne} ${et}`,`top ${Ne} ${et}`,`color ${Ne} ${et}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Xt})`},"&::after":{transform:`rotate(-45deg) translateY(${Xt})`}}}}},ct=tt=>{const{antCls:Re,componentCls:Ne,fontSize:et,motionDurationSlow:dt,motionDurationMid:$t,motionEaseInOut:Xt,paddingXS:nn,padding:sn,colorSplit:hn,lineWidth:wn,zIndexPopup:Se,borderRadiusLG:xe,subMenuItemBorderRadius:ln,menuArrowSize:bt,menuArrowOffset:Ce,lineType:mt,menuPanelMaskInset:at,groupTitleLineHeight:Ot,groupTitleFontSize:an}=tt;return[{"":{[`${Ne}`]:Object.assign(Object.assign({},(0,We.dF)()),{"&-hidden":{display:"none"}})},[`${Ne}-submenu-hidden`]:{display:"none"}},{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,We.Wf)(tt)),(0,We.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:et,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${dt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ne}-item`]:{flex:"none"}},[`${Ne}-item, ${Ne}-submenu, ${Ne}-submenu-title`]:{borderRadius:tt.itemBorderRadius},[`${Ne}-item-group-title`]:{padding:`${nn}px ${sn}px`,fontSize:an,lineHeight:Ot,transition:`all ${dt}`},[`&-horizontal ${Ne}-submenu`]:{transition:[`border-color ${dt} ${Xt}`,`background ${dt} ${Xt}`].join(",")},[`${Ne}-submenu, ${Ne}-submenu-inline`]:{transition:[`border-color ${dt} ${Xt}`,`background ${dt} ${Xt}`,`padding ${$t} ${Xt}`].join(",")},[`${Ne}-submenu ${Ne}-sub`]:{cursor:"initial",transition:[`background ${dt} ${Xt}`,`padding ${dt} ${Xt}`].join(",")},[`${Ne}-title-content`]:{transition:`color ${dt}`},[`${Ne}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ne}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:hn,borderStyle:mt,borderWidth:0,borderTopWidth:wn,marginBlock:wn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gt(tt)),{[`${Ne}-item-group`]:{[`${Ne}-item-group-list`]:{margin:0,padding:0,[`${Ne}-item, ${Ne}-submenu-title`]:{paddingInline:`${et*2}px ${sn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Se,borderRadius:xe,boxShadow:"none",transformOrigin:"0 0",[`&${Ne}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${at}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:at},"\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:tt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:tt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:tt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:tt.paddingXS},[`> ${Ne}`]:Object.assign(Object.assign(Object.assign({borderRadius:xe},gt(tt)),Kt(tt)),{[`${Ne}-item, ${Ne}-submenu > ${Ne}-submenu-title`]:{borderRadius:ln},[`${Ne}-submenu-title::after`]:{transition:`transform ${dt} ${Xt}`}})}}),Kt(tt)),{[`&-inline-collapsed ${Ne}-submenu-arrow,
&-inline ${Ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ce})`},"&::after":{transform:`rotate(45deg) translateX(-${Ce})`}},[`${Ne}-submenu-open${Ne}-submenu-inline > ${Ne}-submenu-title > ${Ne}-submenu-arrow`]:{transform:`translateY(-${bt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ce})`},"&::before":{transform:`rotate(45deg) translateX(${Ce})`}}})},{[`${Re}-layout-header`]:{[Ne]:{lineHeight:"inherit"}}}]};var Nt=(tt,Re)=>(0,Bt.Z)("Menu",et=>{if(Re===!1)return[];const{colorBgElevated:dt,colorPrimary:$t,colorTextLightSolid:Xt,controlHeightLG:nn,fontSize:sn,darkItemColor:hn,darkDangerItemColor:wn,darkItemBg:Se,darkSubMenuItemBg:xe,darkItemSelectedColor:ln,darkItemSelectedBg:bt,darkDangerItemSelectedBg:Ce,darkItemHoverBg:mt,darkGroupTitleColor:at,darkItemHoverColor:Ot,darkItemDisabledColor:an,darkDangerItemHoverColor:At,darkDangerItemSelectedColor:Gt,darkDangerItemActiveBg:Vt}=et,Dn=sn/7*5,mn=(0,Me.TS)(et,{menuArrowSize:Dn,menuHorizontalHeight:nn*1.15,menuArrowOffset:`${Dn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:dt}),Pn=(0,Me.TS)(mn,{itemColor:hn,itemHoverColor:Ot,groupTitleColor:at,itemSelectedColor:ln,itemBg:Se,popupBg:Se,subMenuItemBg:xe,itemActiveBg:"transparent",itemSelectedBg:bt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:mt,itemDisabledColor:an,dangerItemColor:wn,dangerItemHoverColor:At,dangerItemSelectedColor:Gt,dangerItemActiveBg:Vt,dangerItemSelectedBg:Ce,menuSubMenuBg:xe,horizontalItemSelectedColor:Xt,horizontalItemSelectedBg:$t});return[ct(mn),ot(mn),Ye(mn),bn(mn,"light"),bn(Pn,"dark"),St(mn),(0,Le.Z)(mn),(0,lt.oN)(mn,"slide-up"),(0,lt.oN)(mn,"slide-down"),(0,Dt._y)(mn,"zoom-big")]},et=>{const{colorPrimary:dt,colorError:$t,colorTextDisabled:Xt,colorErrorBg:nn,colorText:sn,colorTextDescription:hn,colorBgContainer:wn,colorFillAlter:Se,colorFillContent:xe,lineWidth:ln,lineWidthBold:bt,controlItemBgActive:Ce,colorBgTextHover:mt,controlHeightLG:at,lineHeight:Ot,colorBgElevated:an,marginXXS:At,padding:Gt,fontSize:Vt,controlHeightSM:Dn,fontSizeLG:mn,colorTextLightSolid:Pn,colorErrorHover:ea}=et,$n=new pe.C(Pn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:et.zIndexPopupBase+50,radiusItem:et.borderRadiusLG,itemBorderRadius:et.borderRadiusLG,radiusSubMenuItem:et.borderRadiusSM,subMenuItemBorderRadius:et.borderRadiusSM,colorItemText:sn,itemColor:sn,colorItemTextHover:sn,itemHoverColor:sn,colorItemTextHoverHorizontal:dt,horizontalItemHoverColor:dt,colorGroupTitle:hn,groupTitleColor:hn,colorItemTextSelected:dt,itemSelectedColor:dt,colorItemTextSelectedHorizontal:dt,horizontalItemSelectedColor:dt,colorItemBg:wn,itemBg:wn,colorItemBgHover:mt,itemHoverBg:mt,colorItemBgActive:xe,itemActiveBg:Ce,colorSubItemBg:Se,subMenuItemBg:Se,colorItemBgSelected:Ce,itemSelectedBg:Ce,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:bt,activeBarHeight:bt,colorActiveBarBorderSize:ln,activeBarBorderWidth:ln,colorItemTextDisabled:Xt,itemDisabledColor:Xt,colorDangerItemText:$t,dangerItemColor:$t,colorDangerItemTextHover:$t,dangerItemHoverColor:$t,colorDangerItemTextSelected:$t,dangerItemSelectedColor:$t,colorDangerItemBgActive:nn,dangerItemActiveBg:nn,colorDangerItemBgSelected:nn,dangerItemSelectedBg:nn,itemMarginInline:et.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:at,groupTitleLineHeight:Ot,collapsedWidth:at*2,popupBg:an,itemMarginBlock:At,itemPaddingInline:Gt,horizontalLineHeight:`${at*1.15}px`,iconSize:Vt,iconMarginInlineEnd:Dn-Vt,collapsedIconSize:mn,groupTitleFontSize:Vt,darkItemDisabledColor:new pe.C(Pn).setAlpha(.25).toRgbString(),darkItemColor:$n,darkDangerItemColor:$t,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Pn,darkItemSelectedBg:dt,darkDangerItemSelectedBg:$t,darkItemHoverBg:"transparent",darkGroupTitleColor:$n,darkItemHoverColor:Pn,darkDangerItemHoverColor:ea,darkDangerItemSelectedColor:Pn,darkDangerItemActiveBg:$t}},{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"]]})(tt),ve=function(tt,Re){var Ne={};for(var et in tt)Object.prototype.hasOwnProperty.call(tt,et)&&Re.indexOf(et)<0&&(Ne[et]=tt[et]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,et=Object.getOwnPropertySymbols(tt);dt<et.length;dt++)Re.indexOf(et[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,et[dt])&&(Ne[et[dt]]=tt[et[dt]]);return Ne},on=(0,me.forwardRef)((tt,Re)=>{var Ne,et;const dt=me.useContext(re.Z),$t=dt||{},{getPrefixCls:Xt,getPopupContainer:nn,direction:sn,menu:hn}=me.useContext(we.E_),wn=Xt(),{prefixCls:Se,className:xe,style:ln,theme:bt="light",expandIcon:Ce,_internalDisableMenuItemTitleTooltip:mt,inlineCollapsed:at,siderCollapsed:Ot,items:an,children:At,rootClassName:Gt,mode:Vt,selectable:Dn,onClick:mn,overflowedIndicatorPopupClassName:Pn}=tt,ea=ve(tt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$n=(0,Ve.Z)(ea,["collapsedWidth"]),sa=Ee(an)||At;(Ne=$t.validator)===null||Ne===void 0||Ne.call($t,{mode:Vt});const Ea=(0,te.useEvent)(function(){var Qn;mn==null||mn.apply(void 0,arguments),(Qn=$t.onClick)===null||Qn===void 0||Qn.call($t)}),za=$t.mode||Vt,eo=Dn!=null?Dn:$t.selectable,ka=me.useMemo(()=>Ot!==void 0?Ot:at,[at,Ot]),oo={horizontal:{motionName:`${wn}-slide-up`},inline:(0,ne.Z)(wn),other:{motionName:`${wn}-zoom-big`}},$a=Xt("menu",Se||$t.prefixCls),[Xa,Yn]=Nt($a,!dt),ja=se()(`${$a}-${bt}`,hn==null?void 0:hn.className,xe);let Za;if(typeof Ce=="function")Za=Ce;else if(Ce===null||Ce===!1)Za=null;else if($t.expandIcon===null||$t.expandIcon===!1)Za=null;else{const Qn=Ce!=null?Ce:$t.expandIcon;Za=(0,Be.Tm)(Qn,{className:se()(`${$a}-submenu-expand-icon`,(0,Be.l$)(Qn)?(et=Qn.props)===null||et===void 0?void 0:et.className:"")})}const ta=me.useMemo(()=>({prefixCls:$a,inlineCollapsed:ka||!1,direction:sn,firstLevel:!0,theme:bt,mode:za,disableMenuItemTitleTooltip:mt}),[$a,ka,sn,mt,bt]);return Xa(me.createElement(re.Z.Provider,{value:null},me.createElement(y.Provider,{value:ta},me.createElement(ee.ZP,Object.assign({getPopupContainer:nn,overflowedIndicator:me.createElement(z.Z,null),overflowedIndicatorPopupClassName:se()($a,`${$a}-${bt}`,Pn),mode:za,selectable:eo,onClick:Ea},$n,{inlineCollapsed:ka,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),ln),className:ja,prefixCls:$a,direction:sn,defaultMotions:oo,expandIcon:Za,ref:Re,rootClassName:se()(Gt,Yn)}),sa))))});const Tn=(0,me.forwardRef)((tt,Re)=>{const Ne=(0,me.useRef)(null),et=me.useContext(Xe.D);return(0,me.useImperativeHandle)(Re,()=>({menu:Ne.current,focus:dt=>{var $t;($t=Ne.current)===null||$t===void 0||$t.focus(dt)}})),me.createElement(on,Object.assign({ref:Ne},tt,et))});Tn.Item=E,Tn.SubMenu=x,Tn.Divider=je,Tn.ItemGroup=ee.BW;var xt=Tn},28452:function(Ue,st,ae){"use strict";ae.d(st,{Z:function(){return wn}});var ee=ae(87462),me=ae(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ke=Xe,se=ae(74643),we=function(xe,ln){return me.createElement(se.Z,(0,ee.Z)({},xe,{ref:ln,icon:Ke}))},fe=me.forwardRef(we),Ze=ae(81893),je=ae(22751),Ae=ae(91034),Ve=ae(94184),ke=ae.n(Ve),Be=ae(4942),oe=ae(1413),y=ae(15671),a=ae(43144),E=ae(60136),b=ae(51630),x=`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`,z=`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`,te="".concat(x," ").concat(z).split(/[\s\n]+/),ne="aria-",re="data-";function ge(Se,xe){return Se.indexOf(xe)===0}function de(Se){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln;xe===!1?ln={aria:!0,data:!0,attr:!0}:xe===!0?ln={aria:!0}:ln=(0,oe.Z)({},xe);var bt={};return Object.keys(Se).forEach(function(Ce){(ln.aria&&(Ce==="role"||ge(Ce,ne))||ln.data&&ge(Ce,re)||ln.attr&&te.includes(Ce))&&(bt[Ce]=Se[Ce])}),bt}var Ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},pe=Ee,We=ae(81626),Le=function(Se){(0,E.Z)(ln,Se);var xe=(0,b.Z)(ln);function ln(){var bt;(0,y.Z)(this,ln);for(var Ce=arguments.length,mt=new Array(Ce),at=0;at<Ce;at++)mt[at]=arguments[at];return bt=xe.call.apply(xe,[this].concat(mt)),bt.state={goInputText:""},bt.getValidValue=function(){var Ot=bt.state.goInputText;return!Ot||Number.isNaN(Ot)?void 0:Number(Ot)},bt.buildOptionText=function(Ot){return"".concat(Ot," ").concat(bt.props.locale.items_per_page)},bt.changeSize=function(Ot){bt.props.changeSize(Number(Ot))},bt.handleChange=function(Ot){bt.setState({goInputText:Ot.target.value})},bt.handleBlur=function(Ot){var an=bt.props,At=an.goButton,Gt=an.quickGo,Vt=an.rootPrefixCls,Dn=bt.state.goInputText;At||Dn===""||(bt.setState({goInputText:""}),!(Ot.relatedTarget&&(Ot.relatedTarget.className.indexOf("".concat(Vt,"-item-link"))>=0||Ot.relatedTarget.className.indexOf("".concat(Vt,"-item"))>=0))&&Gt(bt.getValidValue()))},bt.go=function(Ot){var an=bt.state.goInputText;an!==""&&(Ot.keyCode===pe.ENTER||Ot.type==="click")&&(bt.setState({goInputText:""}),bt.props.quickGo(bt.getValidValue()))},bt}return(0,a.Z)(ln,[{key:"getPageSizeOptions",value:function(){var Ce=this.props,mt=Ce.pageSize,at=Ce.pageSizeOptions;return at.some(function(Ot){return Ot.toString()===mt.toString()})?at:at.concat([mt.toString()]).sort(function(Ot,an){var At=Number.isNaN(Number(Ot))?0:Number(Ot),Gt=Number.isNaN(Number(an))?0:Number(an);return At-Gt})}},{key:"render",value:function(){var Ce=this,mt=this.props,at=mt.pageSize,Ot=mt.locale,an=mt.rootPrefixCls,At=mt.changeSize,Gt=mt.quickGo,Vt=mt.goButton,Dn=mt.selectComponentClass,mn=mt.buildOptionText,Pn=mt.selectPrefixCls,ea=mt.disabled,$n=this.state.goInputText,sa="".concat(an,"-options"),Ea=Dn,za=null,eo=null,ka=null;if(!At&&!Gt)return null;var oo=this.getPageSizeOptions();if(At&&Ea){var $a=oo.map(function(Xa,Yn){return me.createElement(Ea.Option,{key:Yn,value:Xa.toString()},(mn||Ce.buildOptionText)(Xa))});za=me.createElement(Ea,{disabled:ea,prefixCls:Pn,showSearch:!1,className:"".concat(sa,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(at||oo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Yn){return Yn.parentNode},"aria-label":Ot.page_size,defaultOpen:!1},$a)}return Gt&&(Vt&&(ka=typeof Vt=="boolean"?me.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ea,className:"".concat(sa,"-quick-jumper-button")},Ot.jump_to_confirm):me.createElement("span",{onClick:this.go,onKeyUp:this.go},Vt)),eo=me.createElement("div",{className:"".concat(sa,"-quick-jumper")},Ot.jump_to,me.createElement("input",{disabled:ea,type:"text",value:$n,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ot.page}),Ot.page,ka)),me.createElement("li",{className:"".concat(sa)},za,eo)}}]),ln}(me.Component);Le.defaultProps={pageSizeOptions:["10","20","50","100"]};var lt=Le,Dt=function(xe){var ln,bt=xe.rootPrefixCls,Ce=xe.page,mt=xe.active,at=xe.className,Ot=xe.showTitle,an=xe.onClick,At=xe.onKeyPress,Gt=xe.itemRender,Vt="".concat(bt,"-item"),Dn=ke()(Vt,"".concat(Vt,"-").concat(Ce),(ln={},(0,Be.Z)(ln,"".concat(Vt,"-active"),mt),(0,Be.Z)(ln,"".concat(Vt,"-disabled"),!Ce),(0,Be.Z)(ln,xe.className,at),ln)),mn=function(){an(Ce)},Pn=function(sa){At(sa,an,Ce)},ea=Gt(Ce,"page",me.createElement("a",{rel:"nofollow"},Ce));return ea?me.createElement("li",{title:Ot?Ce.toString():null,className:Dn,onClick:mn,onKeyPress:Pn,tabIndex:0},ea):null},Bt=Dt;function Me(){}function nt(Se){var xe=Number(Se);return typeof xe=="number"&&!Number.isNaN(xe)&&isFinite(xe)&&Math.floor(xe)===xe}var ot=function(xe,ln,bt){return bt};function rt(Se,xe,ln){var bt=typeof Se=="undefined"?xe.pageSize:Se;return Math.floor((ln.total-1)/bt)+1}var St=function(Se){(0,E.Z)(ln,Se);var xe=(0,b.Z)(ln);function ln(bt){var Ce;(0,y.Z)(this,ln),Ce=xe.call(this,bt),Ce.paginationNode=me.createRef(),Ce.getJumpPrevPage=function(){return Math.max(1,Ce.state.current-(Ce.props.showLessItems?3:5))},Ce.getJumpNextPage=function(){return Math.min(rt(void 0,Ce.state,Ce.props),Ce.state.current+(Ce.props.showLessItems?3:5))},Ce.getItemIcon=function(At,Gt){var Vt=Ce.props.prefixCls,Dn=At||me.createElement("button",{type:"button","aria-label":Gt,className:"".concat(Vt,"-item-link")});return typeof At=="function"&&(Dn=me.createElement(At,(0,oe.Z)({},Ce.props))),Dn},Ce.isValid=function(At){var Gt=Ce.props.total;return nt(At)&&At!==Ce.state.current&&nt(Gt)&&Gt>0},Ce.shouldDisplayQuickJumper=function(){var At=Ce.props,Gt=At.showQuickJumper,Vt=At.total,Dn=Ce.state.pageSize;return Vt<=Dn?!1:Gt},Ce.handleKeyDown=function(At){(At.keyCode===pe.ARROW_UP||At.keyCode===pe.ARROW_DOWN)&&At.preventDefault()},Ce.handleKeyUp=function(At){var Gt=Ce.getValidValue(At),Vt=Ce.state.currentInputValue;Gt!==Vt&&Ce.setState({currentInputValue:Gt}),At.keyCode===pe.ENTER?Ce.handleChange(Gt):At.keyCode===pe.ARROW_UP?Ce.handleChange(Gt-1):At.keyCode===pe.ARROW_DOWN&&Ce.handleChange(Gt+1)},Ce.handleBlur=function(At){var Gt=Ce.getValidValue(At);Ce.handleChange(Gt)},Ce.changePageSize=function(At){var Gt=Ce.state.current,Vt=rt(At,Ce.state,Ce.props);Gt=Gt>Vt?Vt:Gt,Vt===0&&(Gt=Ce.state.current),typeof At=="number"&&("pageSize"in Ce.props||Ce.setState({pageSize:At}),"current"in Ce.props||Ce.setState({current:Gt,currentInputValue:Gt})),Ce.props.onShowSizeChange(Gt,At),"onChange"in Ce.props&&Ce.props.onChange&&Ce.props.onChange(Gt,At)},Ce.handleChange=function(At){var Gt=Ce.props,Vt=Gt.disabled,Dn=Gt.onChange,mn=Ce.state,Pn=mn.pageSize,ea=mn.current,$n=mn.currentInputValue;if(Ce.isValid(At)&&!Vt){var sa=rt(void 0,Ce.state,Ce.props),Ea=At;return At>sa?Ea=sa:At<1&&(Ea=1),"current"in Ce.props||Ce.setState({current:Ea}),Ea!==$n&&Ce.setState({currentInputValue:Ea}),Dn(Ea,Pn),Ea}return ea},Ce.prev=function(){Ce.hasPrev()&&Ce.handleChange(Ce.state.current-1)},Ce.next=function(){Ce.hasNext()&&Ce.handleChange(Ce.state.current+1)},Ce.jumpPrev=function(){Ce.handleChange(Ce.getJumpPrevPage())},Ce.jumpNext=function(){Ce.handleChange(Ce.getJumpNextPage())},Ce.hasPrev=function(){return Ce.state.current>1},Ce.hasNext=function(){return Ce.state.current<rt(void 0,Ce.state,Ce.props)},Ce.runIfEnter=function(At,Gt){if(At.key==="Enter"||At.charCode===13){for(var Vt=arguments.length,Dn=new Array(Vt>2?Vt-2:0),mn=2;mn<Vt;mn++)Dn[mn-2]=arguments[mn];Gt.apply(void 0,Dn)}},Ce.runIfEnterPrev=function(At){Ce.runIfEnter(At,Ce.prev)},Ce.runIfEnterNext=function(At){Ce.runIfEnter(At,Ce.next)},Ce.runIfEnterJumpPrev=function(At){Ce.runIfEnter(At,Ce.jumpPrev)},Ce.runIfEnterJumpNext=function(At){Ce.runIfEnter(At,Ce.jumpNext)},Ce.handleGoTO=function(At){(At.keyCode===pe.ENTER||At.type==="click")&&Ce.handleChange(Ce.state.currentInputValue)},Ce.renderPrev=function(At){var Gt=Ce.props,Vt=Gt.prevIcon,Dn=Gt.itemRender,mn=Dn(At,"prev",Ce.getItemIcon(Vt,"prev page")),Pn=!Ce.hasPrev();return(0,me.isValidElement)(mn)?(0,me.cloneElement)(mn,{disabled:Pn}):mn},Ce.renderNext=function(At){var Gt=Ce.props,Vt=Gt.nextIcon,Dn=Gt.itemRender,mn=Dn(At,"next",Ce.getItemIcon(Vt,"next page")),Pn=!Ce.hasNext();return(0,me.isValidElement)(mn)?(0,me.cloneElement)(mn,{disabled:Pn}):mn};var mt=bt.onChange!==Me,at="current"in bt;at&&!mt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ot=bt.defaultCurrent;"current"in bt&&(Ot=bt.current);var an=bt.defaultPageSize;return"pageSize"in bt&&(an=bt.pageSize),Ot=Math.min(Ot,rt(an,void 0,bt)),Ce.state={current:Ot,currentInputValue:Ot,pageSize:an},Ce}return(0,a.Z)(ln,[{key:"componentDidUpdate",value:function(Ce,mt){var at=this.props.prefixCls;if(mt.current!==this.state.current&&this.paginationNode.current){var Ot=this.paginationNode.current.querySelector(".".concat(at,"-item-").concat(mt.current));if(Ot&&document.activeElement===Ot){var an;Ot==null||(an=Ot.blur)===null||an===void 0||an.call(Ot)}}}},{key:"getValidValue",value:function(Ce){var mt=Ce.target.value,at=rt(void 0,this.state,this.props),Ot=this.state.currentInputValue,an;return mt===""?an=mt:Number.isNaN(Number(mt))?an=Ot:mt>=at?an=at:an=Number(mt),an}},{key:"getShowSizeChanger",value:function(){var Ce=this.props,mt=Ce.showSizeChanger,at=Ce.total,Ot=Ce.totalBoundaryShowSizeChanger;return typeof mt!="undefined"?mt:at>Ot}},{key:"render",value:function(){var Ce=this.props,mt=Ce.prefixCls,at=Ce.className,Ot=Ce.style,an=Ce.disabled,At=Ce.hideOnSinglePage,Gt=Ce.total,Vt=Ce.locale,Dn=Ce.showQuickJumper,mn=Ce.showLessItems,Pn=Ce.showTitle,ea=Ce.showTotal,$n=Ce.simple,sa=Ce.itemRender,Ea=Ce.showPrevNextJumpers,za=Ce.jumpPrevIcon,eo=Ce.jumpNextIcon,ka=Ce.selectComponentClass,oo=Ce.selectPrefixCls,$a=Ce.pageSizeOptions,Xa=this.state,Yn=Xa.current,ja=Xa.pageSize,Za=Xa.currentInputValue;if(At===!0&&Gt<=ja)return null;var ta=rt(void 0,this.state,this.props),Qn=[],Mo=null,Ha=null,yo=null,$e=null,Ie=null,Fe=Dn&&Dn.goButton,Pt=mn?1:2,Yt=Yn-1>0?Yn-1:0,Jt=Yn+1<ta?Yn+1:ta,Gn=de(this.props,{aria:!0,data:!0}),An=ea&&me.createElement("li",{className:"".concat(mt,"-total-text")},ea(Gt,[Gt===0?0:(Yn-1)*ja+1,Yn*ja>Gt?Gt:Yn*ja]));if($n){Fe&&(typeof Fe=="boolean"?Ie=me.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Vt.jump_to_confirm):Ie=me.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Fe),Ie=me.createElement("li",{title:Pn?"".concat(Vt.jump_to).concat(Yn,"/").concat(ta):null,className:"".concat(mt,"-simple-pager")},Ie));var kn=this.renderPrev(Yt);return me.createElement("ul",(0,ee.Z)({className:ke()(mt,"".concat(mt,"-simple"),(0,Be.Z)({},"".concat(mt,"-disabled"),an),at),style:Ot,ref:this.paginationNode},Gn),An,kn?me.createElement("li",{title:Pn?Vt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ke()("".concat(mt,"-prev"),(0,Be.Z)({},"".concat(mt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},kn):null,me.createElement("li",{title:Pn?"".concat(Yn,"/").concat(ta):null,className:"".concat(mt,"-simple-pager")},me.createElement("input",{type:"text",value:Za,disabled:an,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),me.createElement("span",{className:"".concat(mt,"-slash")},"/"),ta),me.createElement("li",{title:Pn?Vt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ke()("".concat(mt,"-next"),(0,Be.Z)({},"".concat(mt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Jt)),Ie)}if(ta<=3+Pt*2){var na={locale:Vt,rootPrefixCls:mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Pn,itemRender:sa};ta||Qn.push(me.createElement(Bt,(0,ee.Z)({},na,{key:"noPager",page:1,className:"".concat(mt,"-item-disabled")})));for(var La=1;La<=ta;La+=1){var ft=Yn===La;Qn.push(me.createElement(Bt,(0,ee.Z)({},na,{key:La,page:La,active:ft})))}}else{var Hn=mn?Vt.prev_3:Vt.prev_5,Ta=mn?Vt.next_3:Vt.next_5,so=sa(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(za,"prev page")),wa=sa(this.getJumpNextPage(),"jump-next",this.getItemIcon(eo,"next page"));Ea&&(Mo=so?me.createElement("li",{title:Pn?Hn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ke()("".concat(mt,"-jump-prev"),(0,Be.Z)({},"".concat(mt,"-jump-prev-custom-icon"),!!za))},so):null,Ha=wa?me.createElement("li",{title:Pn?Ta:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ke()("".concat(mt,"-jump-next"),(0,Be.Z)({},"".concat(mt,"-jump-next-custom-icon"),!!eo))},wa):null),$e=me.createElement(Bt,{locale:Vt,last:!0,rootPrefixCls:mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ta,page:ta,active:!1,showTitle:Pn,itemRender:sa}),yo=me.createElement(Bt,{locale:Vt,rootPrefixCls:mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Pn,itemRender:sa});var aa=Math.max(1,Yn-Pt),ho=Math.min(Yn+Pt,ta);Yn-1<=Pt&&(ho=1+Pt*2),ta-Yn<=Pt&&(aa=ta-Pt*2);for(var to=aa;to<=ho;to+=1){var To=Yn===to;Qn.push(me.createElement(Bt,{locale:Vt,rootPrefixCls:mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:to,page:to,active:To,showTitle:Pn,itemRender:sa}))}Yn-1>=Pt*2&&Yn!==3&&(Qn[0]=(0,me.cloneElement)(Qn[0],{className:"".concat(mt,"-item-after-jump-prev")}),Qn.unshift(Mo)),ta-Yn>=Pt*2&&Yn!==ta-2&&(Qn[Qn.length-1]=(0,me.cloneElement)(Qn[Qn.length-1],{className:"".concat(mt,"-item-before-jump-next")}),Qn.push(Ha)),aa!==1&&Qn.unshift(yo),ho!==ta&&Qn.push($e)}var wo=!this.hasPrev()||!ta,uo=!this.hasNext()||!ta,_a=this.renderPrev(Yt),Co=this.renderNext(Jt);return me.createElement("ul",(0,ee.Z)({className:ke()(mt,at,(0,Be.Z)({},"".concat(mt,"-disabled"),an)),style:Ot,ref:this.paginationNode},Gn),An,_a?me.createElement("li",{title:Pn?Vt.prev_page:null,onClick:this.prev,tabIndex:wo?null:0,onKeyPress:this.runIfEnterPrev,className:ke()("".concat(mt,"-prev"),(0,Be.Z)({},"".concat(mt,"-disabled"),wo)),"aria-disabled":wo},_a):null,Qn,Co?me.createElement("li",{title:Pn?Vt.next_page:null,onClick:this.next,tabIndex:uo?null:0,onKeyPress:this.runIfEnterNext,className:ke()("".concat(mt,"-next"),(0,Be.Z)({},"".concat(mt,"-disabled"),uo)),"aria-disabled":uo},Co):null,me.createElement(lt,{disabled:an,locale:Vt,rootPrefixCls:mt,selectComponentClass:ka,selectPrefixCls:oo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Yn,pageSize:ja,pageSizeOptions:$a,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Fe}))}}],[{key:"getDerivedStateFromProps",value:function(Ce,mt){var at={};if("current"in Ce&&(at.current=Ce.current,Ce.current!==mt.current&&(at.currentInputValue=at.current)),"pageSize"in Ce&&Ce.pageSize!==mt.pageSize){var Ot=mt.current,an=rt(Ce.pageSize,mt,Ce);Ot=Ot>an?an:Ot,"current"in Ce||(at.current=Ot,at.currentInputValue=Ot),at.pageSize=Ce.pageSize}return at}}]),ln}(me.Component);St.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Me,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Me,locale:We.Z,style:{},itemRender:ot,totalBoundaryShowSizeChanger:50};var kt=St,Sn=ae(62906),bn=ae(53124),Bn=ae(98675),De=ae(25378),Ye=ae(10110),gt=ae(42563);const Kt=Se=>me.createElement(gt.default,Object.assign({},Se,{showSearch:!0,size:"small"})),ct=Se=>me.createElement(gt.default,Object.assign({},Se,{showSearch:!0,size:"middle"}));Kt.Option=gt.default.Option,ct.Option=gt.default.Option;var Nt=ae(47673),ve=ae(14747),yt=ae(67968),on=ae(45503);const Tn=Se=>{const{componentCls:xe}=Se;return{[`${xe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${xe}-item-link`]:{color:Se.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${xe}-item-link`]:{color:Se.colorTextDisabled,cursor:"not-allowed"}}},[`&${xe}-disabled`]:{cursor:"not-allowed",[`${xe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Se.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Se.colorBorder,backgroundColor:Se.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Se.itemActiveBgDisabled},a:{color:Se.itemActiveColorDisabled}}},[`${xe}-item-link`]:{color:Se.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${xe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${xe}-simple-pager`]:{color:Se.colorTextDisabled},[`${xe}-jump-prev, ${xe}-jump-next`]:{[`${xe}-item-link-icon`]:{opacity:0},[`${xe}-item-ellipsis`]:{opacity:1}}},[`&${xe}-simple`]:{[`${xe}-prev, ${xe}-next`]:{[`&${xe}-disabled ${xe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},xt=Se=>{const{componentCls:xe}=Se;return{[`&${xe}-mini ${xe}-total-text, &${xe}-mini ${xe}-simple-pager`]:{height:Se.itemSizeSM,lineHeight:`${Se.itemSizeSM}px`},[`&${xe}-mini ${xe}-item`]:{minWidth:Se.itemSizeSM,height:Se.itemSizeSM,margin:0,lineHeight:`${Se.itemSizeSM-2}px`},[`&${xe}-mini:not(${xe}-disabled) ${xe}-item:not(${xe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Se.colorBgTextHover},"&:active":{backgroundColor:Se.colorBgTextActive}},[`&${xe}-mini ${xe}-prev, &${xe}-mini ${xe}-next`]:{minWidth:Se.itemSizeSM,height:Se.itemSizeSM,margin:0,lineHeight:`${Se.itemSizeSM}px`},[`&${xe}-mini:not(${xe}-disabled)`]:{[`${xe}-prev, ${xe}-next`]:{[`&:hover ${xe}-item-link`]:{backgroundColor:Se.colorBgTextHover},[`&:active ${xe}-item-link`]:{backgroundColor:Se.colorBgTextActive},[`&${xe}-disabled:hover ${xe}-item-link`]:{backgroundColor:"transparent"}}},[`
&${xe}-mini ${xe}-prev ${xe}-item-link,
&${xe}-mini ${xe}-next ${xe}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Se.itemSizeSM,lineHeight:`${Se.itemSizeSM}px`}},[`&${xe}-mini ${xe}-jump-prev, &${xe}-mini ${xe}-jump-next`]:{height:Se.itemSizeSM,marginInlineEnd:0,lineHeight:`${Se.itemSizeSM}px`},[`&${xe}-mini ${xe}-options`]:{marginInlineStart:Se.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Se.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Se.itemSizeSM,lineHeight:`${Se.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Nt.x0)(Se)),{width:Se.paginationMiniQuickJumperInputWidth,height:Se.controlHeightSM})}}}},tt=Se=>{const{componentCls:xe}=Se;return{[`
&${xe}-simple ${xe}-prev,
&${xe}-simple ${xe}-next
`]:{height:Se.itemSizeSM,lineHeight:`${Se.itemSizeSM}px`,verticalAlign:"top",[`${xe}-item-link`]:{height:Se.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Se.colorBgTextHover},"&:active":{backgroundColor:Se.colorBgTextActive},"&::after":{height:Se.itemSizeSM,lineHeight:`${Se.itemSizeSM}px`}}},[`&${xe}-simple ${xe}-simple-pager`]:{display:"inline-block",height:Se.itemSizeSM,marginInlineEnd:Se.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Se.marginXS,padding:`0 ${Se.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Se.itemInputBg,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadius,outline:"none",transition:`border-color ${Se.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Se.colorPrimary},"&:focus":{borderColor:Se.colorPrimaryHover,boxShadow:`${Se.inputOutlineOffset}px 0 ${Se.controlOutlineWidth}px ${Se.controlOutline}`},"&[disabled]":{color:Se.colorTextDisabled,backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,cursor:"not-allowed"}}}}},Re=Se=>{const{componentCls:xe}=Se;return{[`${xe}-jump-prev, ${xe}-jump-next`]:{outline:0,[`${xe}-item-container`]:{position:"relative",[`${xe}-item-link-icon`]:{color:Se.colorPrimary,fontSize:Se.fontSizeSM,opacity:0,transition:`all ${Se.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${xe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Se.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Se.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Se.paginationEllipsisTextIndent,opacity:1,transition:`all ${Se.motionDurationMid}`}},"&:hover":{[`${xe}-item-link-icon`]:{opacity:1},[`${xe}-item-ellipsis`]:{opacity:0}}},[`
${xe}-prev,
${xe}-jump-prev,
${xe}-jump-next
`]:{marginInlineEnd:Se.marginXS},[`
${xe}-prev,
${xe}-next,
${xe}-jump-prev,
${xe}-jump-next
`]:{display:"inline-block",minWidth:Se.itemSize,height:Se.itemSize,color:Se.colorText,fontFamily:Se.fontFamily,lineHeight:`${Se.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Se.borderRadius,cursor:"pointer",transition:`all ${Se.motionDurationMid}`},[`${xe}-prev, ${xe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Se.colorText,cursor:"pointer",userSelect:"none"},[`${xe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Se.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Se.lineWidth}px ${Se.lineType} transparent`,borderRadius:Se.borderRadius,outline:"none",transition:`all ${Se.motionDurationMid}`},[`&:hover ${xe}-item-link`]:{backgroundColor:Se.colorBgTextHover},[`&:active ${xe}-item-link`]:{backgroundColor:Se.colorBgTextActive},[`&${xe}-disabled:hover`]:{[`${xe}-item-link`]:{backgroundColor:"transparent"}}},[`${xe}-slash`]:{marginInlineEnd:Se.paginationSlashMarginInlineEnd,marginInlineStart:Se.paginationSlashMarginInlineStart},[`${xe}-options`]:{display:"inline-block",marginInlineStart:Se.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Se.controlHeight,marginInlineStart:Se.marginXS,lineHeight:`${Se.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Nt.ik)(Se)),{width:Se.controlHeightLG*1.25,height:Se.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Se.marginXS,marginInlineEnd:Se.marginXS})}}}},Ne=Se=>{const{componentCls:xe}=Se;return{[`${xe}-item`]:{display:"inline-block",minWidth:Se.itemSize,height:Se.itemSize,marginInlineEnd:Se.marginXS,fontFamily:Se.fontFamily,lineHeight:`${Se.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Se.lineWidth}px ${Se.lineType} transparent`,borderRadius:Se.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Se.paginationItemPaddingInline}px`,color:Se.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${xe}-item-active)`]:{"&:hover":{transition:`all ${Se.motionDurationMid}`,backgroundColor:Se.colorBgTextHover},"&:active":{backgroundColor:Se.colorBgTextActive}},"&-active":{fontWeight:Se.fontWeightStrong,backgroundColor:Se.itemActiveBg,borderColor:Se.colorPrimary,a:{color:Se.colorPrimary},"&:hover":{borderColor:Se.colorPrimaryHover},"&:hover a":{color:Se.colorPrimaryHover}}}}},et=Se=>{const{componentCls:xe}=Se;return{[xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(Se)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${xe}-total-text`]:{display:"inline-block",height:Se.itemSize,marginInlineEnd:Se.marginXS,lineHeight:`${Se.itemSize-2}px`,verticalAlign:"middle"}}),Ne(Se)),Re(Se)),tt(Se)),xt(Se)),Tn(Se)),{[`@media only screen and (max-width: ${Se.screenLG}px)`]:{[`${xe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Se.screenSM}px)`]:{[`${xe}-options`]:{display:"none"}}}),[`&${Se.componentCls}-rtl`]:{direction:"rtl"}}},dt=Se=>{const{componentCls:xe}=Se;return{[`${xe}${xe}-disabled:not(${xe}-mini)`]:{"&, &:hover":{[`${xe}-item-link`]:{borderColor:Se.colorBorder}},"&:focus-visible":{[`${xe}-item-link`]:{borderColor:Se.colorBorder}},[`${xe}-item, ${xe}-item-link`]:{backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,[`&:hover:not(${xe}-item-active)`]:{backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,a:{color:Se.colorTextDisabled}},[`&${xe}-item-active`]:{backgroundColor:Se.itemActiveBgDisabled}},[`${xe}-prev, ${xe}-next`]:{"&:hover button":{backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,color:Se.colorTextDisabled},[`${xe}-item-link`]:{backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder}}},[`${xe}:not(${xe}-mini)`]:{[`${xe}-prev, ${xe}-next`]:{"&:hover button":{borderColor:Se.colorPrimaryHover,backgroundColor:Se.itemBg},[`${xe}-item-link`]:{backgroundColor:Se.itemLinkBg,borderColor:Se.colorBorder},[`&:hover ${xe}-item-link`]:{borderColor:Se.colorPrimary,backgroundColor:Se.itemBg,color:Se.colorPrimary},[`&${xe}-disabled`]:{[`${xe}-item-link`]:{borderColor:Se.colorBorder,color:Se.colorTextDisabled}}},[`${xe}-item`]:{backgroundColor:Se.itemBg,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,[`&:hover:not(${xe}-item-active)`]:{borderColor:Se.colorPrimary,backgroundColor:Se.itemBg,a:{color:Se.colorPrimary}},"&-active":{borderColor:Se.colorPrimary}}}}},$t=Se=>{const{componentCls:xe}=Se;return{[`${xe}:not(${xe}-disabled)`]:{[`${xe}-item`]:Object.assign({},(0,ve.Qy)(Se)),[`${xe}-jump-prev, ${xe}-jump-next`]:{"&:focus-visible":Object.assign({[`${xe}-item-link-icon`]:{opacity:1},[`${xe}-item-ellipsis`]:{opacity:0}},(0,ve.oN)(Se))},[`${xe}-prev, ${xe}-next`]:{[`&:focus-visible ${xe}-item-link`]:Object.assign({},(0,ve.oN)(Se))}}}};var Xt=(0,yt.Z)("Pagination",Se=>{const xe=(0,on.TS)(Se,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Se.marginXXS/2,paginationMiniQuickJumperInputWidth:Se.controlHeightLG*1.1,paginationItemPaddingInline:Se.marginXXS*1.5,paginationEllipsisLetterSpacing:Se.marginXXS/2,paginationSlashMarginInlineStart:Se.marginXXS,paginationSlashMarginInlineEnd:Se.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Nt.e5)(Se),(0,Nt.TM)(Se));return[et(xe),$t(xe),Se.wireframe&&dt(xe)]},Se=>({itemBg:Se.colorBgContainer,itemSize:Se.controlHeight,itemSizeSM:Se.controlHeightSM,itemActiveBg:Se.colorBgContainer,itemLinkBg:Se.colorBgContainer,itemActiveColorDisabled:Se.colorTextDisabled,itemActiveBgDisabled:Se.controlItemBgActiveDisabled,itemInputBg:Se.colorBgContainer,miniOptionsSizeChangerTop:0})),nn=function(Se,xe){var ln={};for(var bt in Se)Object.prototype.hasOwnProperty.call(Se,bt)&&xe.indexOf(bt)<0&&(ln[bt]=Se[bt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,bt=Object.getOwnPropertySymbols(Se);Ce<bt.length;Ce++)xe.indexOf(bt[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Se,bt[Ce])&&(ln[bt[Ce]]=Se[bt[Ce]]);return ln},hn=Se=>{const{prefixCls:xe,selectPrefixCls:ln,className:bt,rootClassName:Ce,style:mt,size:at,locale:Ot,selectComponentClass:an,responsive:At,showSizeChanger:Gt}=Se,Vt=nn(Se,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Dn}=(0,De.Z)(At),{getPrefixCls:mn,direction:Pn,pagination:ea={}}=me.useContext(bn.E_),$n=mn("pagination",xe),[sa,Ea]=Xt($n),za=Gt!=null?Gt:ea.showSizeChanger,eo=me.useMemo(()=>{const ta=me.createElement("span",{className:`${$n}-item-ellipsis`},"\u2022\u2022\u2022"),Qn=me.createElement("button",{className:`${$n}-item-link`,type:"button",tabIndex:-1},Pn==="rtl"?me.createElement(Ae.Z,null):me.createElement(je.Z,null)),Mo=me.createElement("button",{className:`${$n}-item-link`,type:"button",tabIndex:-1},Pn==="rtl"?me.createElement(je.Z,null):me.createElement(Ae.Z,null)),Ha=me.createElement("a",{className:`${$n}-item-link`},me.createElement("div",{className:`${$n}-item-container`},Pn==="rtl"?me.createElement(Ze.Z,{className:`${$n}-item-link-icon`}):me.createElement(fe,{className:`${$n}-item-link-icon`}),ta)),yo=me.createElement("a",{className:`${$n}-item-link`},me.createElement("div",{className:`${$n}-item-container`},Pn==="rtl"?me.createElement(fe,{className:`${$n}-item-link-icon`}):me.createElement(Ze.Z,{className:`${$n}-item-link-icon`}),ta));return{prevIcon:Qn,nextIcon:Mo,jumpPrevIcon:Ha,jumpNextIcon:yo}},[Pn,$n]),[ka]=(0,Ye.Z)("Pagination",Sn.Z),oo=Object.assign(Object.assign({},ka),Ot),$a=(0,Bn.Z)(at),Xa=$a==="small"||!!(Dn&&!$a&&At),Yn=mn("select",ln),ja=ke()({[`${$n}-mini`]:Xa,[`${$n}-rtl`]:Pn==="rtl"},ea==null?void 0:ea.className,bt,Ce,Ea),Za=Object.assign(Object.assign({},ea==null?void 0:ea.style),mt);return sa(me.createElement(kt,Object.assign({},eo,Vt,{style:Za,prefixCls:$n,selectPrefixCls:Yn,className:ja,selectComponentClass:an||(Xa?Kt:ct),locale:oo,showSizeChanger:za})))},wn=hn},66309:function(Ue,st,ae){"use strict";ae.d(st,{default:function(){return We}});var ee=ae(67294),me=ae(73475),Xe=ae(94184),Ke=ae.n(Xe),se=ae(98787),we=ae(69760),fe=ae(45353),Ze=ae(53124),je=ae(14747),Ae=ae(45503),Ve=ae(67968);const ke=Le=>{const{paddingXXS:lt,lineWidth:Dt,tagPaddingHorizontal:Bt,componentCls:Me}=Le,nt=Bt-Dt,ot=lt-Dt;return{[Me]:Object.assign(Object.assign({},(0,je.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:nt,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Me}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${Me}-close-icon`]:{marginInlineStart:ot,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${Me}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Me}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:nt}}),[`${Me}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},Be=Le=>{const{lineWidth:lt,fontSizeIcon:Dt}=Le,Bt=Le.fontSizeSM,Me=`${Le.lineHeightSM*Bt}px`;return(0,Ae.TS)(Le,{tagFontSize:Bt,tagLineHeight:Me,tagIconSize:Dt-2*lt,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},oe=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var y=(0,Ve.Z)("Tag",Le=>{const lt=Be(Le);return ke(lt)},oe),a=function(Le,lt){var Dt={};for(var Bt in Le)Object.prototype.hasOwnProperty.call(Le,Bt)&&lt.indexOf(Bt)<0&&(Dt[Bt]=Le[Bt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Bt=Object.getOwnPropertySymbols(Le);Me<Bt.length;Me++)lt.indexOf(Bt[Me])<0&&Object.prototype.propertyIsEnumerable.call(Le,Bt[Me])&&(Dt[Bt[Me]]=Le[Bt[Me]]);return Dt},b=Le=>{const{prefixCls:lt,style:Dt,className:Bt,checked:Me,onChange:nt,onClick:ot}=Le,rt=a(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:St,tag:kt}=ee.useContext(Ze.E_),Sn=gt=>{nt==null||nt(!Me),ot==null||ot(gt)},bn=St("tag",lt),[Bn,De]=y(bn),Ye=Ke()(bn,`${bn}-checkable`,{[`${bn}-checkable-checked`]:Me},kt==null?void 0:kt.className,Bt,De);return Bn(ee.createElement("span",Object.assign({},rt,{style:Object.assign(Object.assign({},Dt),kt==null?void 0:kt.style),className:Ye,onClick:Sn})))},x=ae(98719);const z=Le=>(0,x.Z)(Le,(lt,Dt)=>{let{textColor:Bt,lightBorderColor:Me,lightColor:nt,darkColor:ot}=Dt;return{[`${Le.componentCls}-${lt}`]:{color:Bt,background:nt,borderColor:Me,"&-inverse":{color:Le.colorTextLightSolid,background:ot,borderColor:ot},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var te=(0,Ve.b)(["Tag","preset"],Le=>{const lt=Be(Le);return z(lt)},oe);function ne(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const re=(Le,lt,Dt)=>{const Bt=ne(Dt);return{[`${Le.componentCls}-${lt}`]:{color:Le[`color${Dt}`],background:Le[`color${Bt}Bg`],borderColor:Le[`color${Bt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ge=(0,Ve.b)(["Tag","status"],Le=>{const lt=Be(Le);return[re(lt,"success","Success"),re(lt,"processing","Info"),re(lt,"error","Error"),re(lt,"warning","Warning")]},oe),de=function(Le,lt){var Dt={};for(var Bt in Le)Object.prototype.hasOwnProperty.call(Le,Bt)&&lt.indexOf(Bt)<0&&(Dt[Bt]=Le[Bt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Bt=Object.getOwnPropertySymbols(Le);Me<Bt.length;Me++)lt.indexOf(Bt[Me])<0&&Object.prototype.propertyIsEnumerable.call(Le,Bt[Me])&&(Dt[Bt[Me]]=Le[Bt[Me]]);return Dt};const Ee=(Le,lt)=>{const{prefixCls:Dt,className:Bt,rootClassName:Me,style:nt,children:ot,icon:rt,color:St,onClose:kt,closeIcon:Sn,closable:bn,bordered:Bn=!0}=Le,De=de(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Ye,direction:gt,tag:Kt}=ee.useContext(Ze.E_),[ct,Nt]=ee.useState(!0);ee.useEffect(()=>{"visible"in De&&Nt(De.visible)},[De.visible]);const ve=(0,se.o2)(St),yt=(0,se.yT)(St),on=ve||yt,Tn=Object.assign(Object.assign({backgroundColor:St&&!on?St:void 0},Kt==null?void 0:Kt.style),nt),xt=Ye("tag",Dt),[tt,Re]=y(xt),Ne=Ke()(xt,Kt==null?void 0:Kt.className,{[`${xt}-${St}`]:on,[`${xt}-has-color`]:St&&!on,[`${xt}-hidden`]:!ct,[`${xt}-rtl`]:gt==="rtl",[`${xt}-borderless`]:!Bn},Bt,Me,Re),et=hn=>{hn.stopPropagation(),kt==null||kt(hn),!hn.defaultPrevented&&Nt(!1)},[,dt]=(0,we.Z)(bn,Sn,hn=>hn===null?ee.createElement(me.Z,{className:`${xt}-close-icon`,onClick:et}):ee.createElement("span",{className:`${xt}-close-icon`,onClick:et},hn),null,!1),$t=typeof De.onClick=="function"||ot&&ot.type==="a",Xt=rt||null,nn=Xt?ee.createElement(ee.Fragment,null,Xt,ot&&ee.createElement("span",null,ot)):ot,sn=ee.createElement("span",Object.assign({},De,{ref:lt,className:Ne,style:Tn}),nn,dt,ve&&ee.createElement(te,{key:"preset",prefixCls:xt}),yt&&ee.createElement(ge,{key:"status",prefixCls:xt}));return tt($t?ee.createElement(fe.Z,{component:"Tag"},sn):sn)},pe=ee.forwardRef(Ee);pe.CheckableTag=b;var We=pe},62661:function(Ue,st){"use strict";var ae;var ee=Symbol.for("react.element"),me=Symbol.for("react.portal"),Xe=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),fe=Symbol.for("react.context"),Ze=Symbol.for("react.server_context"),je=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Ve=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case ee:switch(E=E.type,E){case Xe:case se:case Ke:case Ae:case Ve:return E;default:switch(E=E&&E.$$typeof,E){case Ze:case fe:case je:case Be:case ke:case we:return E;default:return b}}case me:return b}}}ae=fe,ae=we,ae=ee,ae=je,ae=Xe,ae=Be,ae=ke,ae=me,ae=se,ae=Ke,ae=Ae,ae=Ve,ae=function(){return!1},ae=function(){return!1},ae=function(E){return a(E)===fe},ae=function(E){return a(E)===we},ae=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ee},ae=function(E){return a(E)===je},ae=function(E){return a(E)===Xe},ae=function(E){return a(E)===Be},st.isMemo=function(E){return a(E)===ke},ae=function(E){return a(E)===me},ae=function(E){return a(E)===se},ae=function(E){return a(E)===Ke},ae=function(E){return a(E)===Ae},ae=function(E){return a(E)===Ve},ae=function(E){return typeof E=="string"||typeof E=="function"||E===Xe||E===se||E===Ke||E===Ae||E===Ve||E===oe||typeof E=="object"&&E!==null&&(E.$$typeof===Be||E.$$typeof===ke||E.$$typeof===we||E.$$typeof===fe||E.$$typeof===je||E.$$typeof===y||E.getModuleId!==void 0)},ae=a},95845:function(Ue,st,ae){"use strict";Ue.exports=ae(62661)},72665:function(Ue,st){"use strict";var ae;var ee=typeof Symbol=="function"&&Symbol.for,me=ee?Symbol.for("react.element"):60103,Xe=ee?Symbol.for("react.portal"):60106,Ke=ee?Symbol.for("react.fragment"):60107,se=ee?Symbol.for("react.strict_mode"):60108,we=ee?Symbol.for("react.profiler"):60114,fe=ee?Symbol.for("react.provider"):60109,Ze=ee?Symbol.for("react.context"):60110,je=ee?Symbol.for("react.async_mode"):60111,Ae=ee?Symbol.for("react.concurrent_mode"):60111,Ve=ee?Symbol.for("react.forward_ref"):60112,ke=ee?Symbol.for("react.suspense"):60113,Be=ee?Symbol.for("react.suspense_list"):60120,oe=ee?Symbol.for("react.memo"):60115,y=ee?Symbol.for("react.lazy"):60116,a=ee?Symbol.for("react.block"):60121,E=ee?Symbol.for("react.fundamental"):60117,b=ee?Symbol.for("react.responder"):60118,x=ee?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case me:switch(ne=ne.type,ne){case je:case Ae:case Ke:case we:case se:case ke:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ze:case Ve:case y:case oe:case fe:return ne;default:return re}}case Xe:return re}}}function te(ne){return z(ne)===Ae}ae=je,ae=Ae,ae=Ze,ae=fe,ae=me,ae=Ve,ae=Ke,ae=y,ae=oe,ae=Xe,ae=we,ae=se,ae=ke,ae=function(ne){return te(ne)||z(ne)===je},ae=te,ae=function(ne){return z(ne)===Ze},ae=function(ne){return z(ne)===fe},ae=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===me},ae=function(ne){return z(ne)===Ve},ae=function(ne){return z(ne)===Ke},ae=function(ne){return z(ne)===y},st.isMemo=function(ne){return z(ne)===oe},ae=function(ne){return z(ne)===Xe},ae=function(ne){return z(ne)===we},ae=function(ne){return z(ne)===se},ae=function(ne){return z(ne)===ke},ae=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ke||ne===Ae||ne===we||ne===se||ne===ke||ne===Be||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===oe||ne.$$typeof===fe||ne.$$typeof===Ze||ne.$$typeof===Ve||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},ae=z},12060:function(Ue,st,ae){"use strict";Ue.exports=ae(72665)},26819:function(Ue,st){"use strict";var ae;var ee=typeof Symbol=="function"&&Symbol.for,me=ee?Symbol.for("react.element"):60103,Xe=ee?Symbol.for("react.portal"):60106,Ke=ee?Symbol.for("react.fragment"):60107,se=ee?Symbol.for("react.strict_mode"):60108,we=ee?Symbol.for("react.profiler"):60114,fe=ee?Symbol.for("react.provider"):60109,Ze=ee?Symbol.for("react.context"):60110,je=ee?Symbol.for("react.async_mode"):60111,Ae=ee?Symbol.for("react.concurrent_mode"):60111,Ve=ee?Symbol.for("react.forward_ref"):60112,ke=ee?Symbol.for("react.suspense"):60113,Be=ee?Symbol.for("react.suspense_list"):60120,oe=ee?Symbol.for("react.memo"):60115,y=ee?Symbol.for("react.lazy"):60116,a=ee?Symbol.for("react.block"):60121,E=ee?Symbol.for("react.fundamental"):60117,b=ee?Symbol.for("react.responder"):60118,x=ee?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case me:switch(ne=ne.type,ne){case je:case Ae:case Ke:case we:case se:case ke:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ze:case Ve:case y:case oe:case fe:return ne;default:return re}}case Xe:return re}}}function te(ne){return z(ne)===Ae}ae=je,ae=Ae,ae=Ze,ae=fe,ae=me,ae=Ve,ae=Ke,ae=y,ae=oe,ae=Xe,ae=we,ae=se,ae=ke,ae=function(ne){return te(ne)||z(ne)===je},ae=te,ae=function(ne){return z(ne)===Ze},ae=function(ne){return z(ne)===fe},ae=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===me},ae=function(ne){return z(ne)===Ve},ae=function(ne){return z(ne)===Ke},ae=function(ne){return z(ne)===y},st.isMemo=function(ne){return z(ne)===oe},ae=function(ne){return z(ne)===Xe},ae=function(ne){return z(ne)===we},ae=function(ne){return z(ne)===se},ae=function(ne){return z(ne)===ke},ae=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ke||ne===Ae||ne===we||ne===se||ne===ke||ne===Be||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===oe||ne.$$typeof===fe||ne.$$typeof===Ze||ne.$$typeof===Ve||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},ae=z},18459:function(Ue,st,ae){"use strict";Ue.exports=ae(26819)},16651:function(Ue,st){"use strict";var ae;var ee=Symbol.for("react.element"),me=Symbol.for("react.portal"),Xe=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),fe=Symbol.for("react.context"),Ze=Symbol.for("react.server_context"),je=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Ve=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case ee:switch(E=E.type,E){case Xe:case se:case Ke:case Ae:case Ve:return E;default:switch(E=E&&E.$$typeof,E){case Ze:case fe:case je:case Be:case ke:case we:return E;default:return b}}case me:return b}}}ae=fe,ae=we,ae=ee,ae=je,ae=Xe,ae=Be,ae=ke,ae=me,ae=se,ae=Ke,ae=Ae,ae=Ve,ae=function(){return!1},ae=function(){return!1},ae=function(E){return a(E)===fe},ae=function(E){return a(E)===we},ae=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ee},ae=function(E){return a(E)===je},ae=function(E){return a(E)===Xe},ae=function(E){return a(E)===Be},ae=function(E){return a(E)===ke},ae=function(E){return a(E)===me},ae=function(E){return a(E)===se},ae=function(E){return a(E)===Ke},ae=function(E){return a(E)===Ae},ae=function(E){return a(E)===Ve},ae=function(E){return typeof E=="string"||typeof E=="function"||E===Xe||E===se||E===Ke||E===Ae||E===Ve||E===oe||typeof E=="object"&&E!==null&&(E.$$typeof===Be||E.$$typeof===ke||E.$$typeof===we||E.$$typeof===fe||E.$$typeof===je||E.$$typeof===y||E.getModuleId!==void 0)},ae=a},33993:function(Ue,st,ae){"use strict";ae(16651)}}]);