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.
189 lines
478 KiB
189 lines
478 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[7043],{81893:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return me}});var ee=oe(87462),se=oe(67294),We={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"},je=We,de=oe(74643),Le=function(Ge,He){return se.createElement(de.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},me=se.forwardRef(Le)},22751:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return me}});var ee=oe(87462),se=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},je=We,de=oe(74643),Le=function(Ge,He){return se.createElement(de.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},me=se.forwardRef(Le)},40043:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return me}});var ee=oe(87462),se=oe(67294),We={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"},je=We,de=oe(74643),Le=function(Ge,He){return se.createElement(de.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},me=se.forwardRef(Le)},91034:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return me}});var ee=oe(87462),se=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},je=We,de=oe(74643),Le=function(Ge,He){return se.createElement(de.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},me=se.forwardRef(Le)},71736:function(ke,ot){"use strict";ot.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 ke(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ke.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(ke.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(ke.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(ke.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof ke))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var ot=[];function oe(ae,a){var y=ot.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ee(){var ae=ot.pop();return ae===void 0?new go.Point:ae}function se(ae){ot.push(ae)}function We(ae,a,y,E,b,x,z,te,ne){ne||(ne=new go.Point);var re=ae-y,ie=b-z,le=NaN,pe=NaN;if(re===0)if(ie===0)ae===y&&(le=ae,pe=a);else{var he=(x-te)/ie,_e=x-he*b;le=ae,pe=he*le+_e}else if(ie===0){var ve=(a-E)/re,rt=a-ve*ae;le=b,pe=ve*le+rt}else{var ve=(a-E)/re,he=(x-te)/ie,rt=a-ve*ae,_e=x-he*b;le=(_e-rt)/(ve-he),pe=ve*le+rt}return ne.x=le,ne.y=pe,ne}function je(ae,a,y,E,b,x,z,te,ne,re,ie,le,pe,he){var _e=1-ne,ve=ne,rt=ae*_e+y*ve,Ct=a*_e+E*ve,Pt=y*_e+b*ve,Fe=E*_e+x*ve,Qe=b*_e+z*ve,Je=x*_e+te*ve,et=rt*_e+Pt*ve,st=Ct*_e+Fe*ve,Tt=Pt*_e+Qe*ve,tn=Fe*_e+Je*ve,on=et*_e+Tt*ve,ln=st*_e+tn*ve;re.x=rt,re.y=Ct,ie.x=et,ie.y=st,le.x=on,le.y=ln,pe.x=Tt,pe.y=tn,he.x=Qe,he.y=Je}var de=new go.Spot(.156,.156),Le=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ke("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=de,b.spot2=Le,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ke("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ke("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ke("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ve=[];function Ge(){var ae=Ve.pop();return ae===void 0?[]:ae}function He(ae){ae.length=0,Ve.push(ae)}function Ze(ae){for(var a=Ge(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Re(ae){var a=xe(ae),y=Ge();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return He(a),y}function xe(ae){for(var a=Ze(ae),y=Ge(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var te=a[z],ne=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=te,y[z*2+1]=We(te.x,te.y,re.x,re.y,ne.x,ne.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],He(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ze(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ze(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ze(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ze(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ze(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ze(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ze(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=xe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=xe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=xe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=xe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=xe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=xe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ke("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ke("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ke("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var te=Math.max(b-E,0);return te>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+te,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,te,te).close())),x.spot1=de,x.spot2=Le,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ke("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ke("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,te=Math.min(a,y)/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(ae,a,y){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,te=Math.atan2(y,a),ne=E-Math.min(Math.cos(te)*E/2,x),re=E-Math.min(Math.sin(te)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(ne,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ke("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ke("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,te=0,ne=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*y,(.5-x+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*y,(.5+ne+z)*a,(.5+x+te)*y,(.5+x+z)*a,(.5+ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*y,(1-.5+x+z)*a,(.5-ne+te)*y,(.5+ne+z)*a,(.5-x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+te)*y,(.5-x+z+.05)*a,(.5-ne+te-.02)*y)),x=.2,z=0,te=-.3,ne=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*y,(.5+ne+z)*a,(.5+x+te)*y,(.5+x+z)*a,(.5+ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*y,(1-.5+x+z)*a,(.5-ne+te)*y,(.5+ne+z)*a,(.5-x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5-x+te)*y,(.5-x+z)*a,(.5-ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+te)*y,(.5-x+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+x+te)*y)),x=.2,z=-.3,te=0,ne=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*y,(1-.5+x+z-.05)*a,(.5-ne+te-.02)*y,(.5+ne+z)*a,(.5-x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5-x+te)*y,(.5-x+z)*a,(.5-ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*y,(.5-x+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+te)*y,(.5+x+z)*a,(.5+ne+te)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,te=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,te*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*te,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),te=.75,b=new go.PathFigure((z+x)*a,te*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*te,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure(z*a,(te-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),x=.4,b=me*.4;var re=ee(),ie=ee(),le=ee(),pe=ee();je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.42,re,ie,le,pe,pe);var he=ee(),_e=ee(),ve=ee();je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.58,pe,pe,ve,he,_e);var rt=ee(),Ct=ee(),Pt=ee();je(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.42,rt,Ct,Pt,pe,pe);var Fe=ee(),Qe=ee(),Je=ee();return je(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.58,pe,pe,Je,Fe,Qe),ne.add(new go.PathSegment(go.PathSegment.Move,Je.x*a,Je.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,Fe.x*a,Fe.y*y,Qe.x*a,Qe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,le.x*a,le.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Je.x*a,Je.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Pt.x*a,Pt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,ve.x*a,ve.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,he.x*a,he.y*y,_e.x*a,_e.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*a,Pt.y*y,rt.x*a,rt.y*y,Ct.x*a,Ct.y*y).close()),se(re),se(ie),se(le),se(pe),se(he),se(_e),se(ve),se(rt),se(Ct),se(Pt),se(Fe),se(Qe),se(Je),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ie=ee(),le=ee(),pe=new go.PathFigure((z-x)*a,te*y,!1);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.44,ie,le,re,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,le.x*a,le.y*y));var he=oe(re.x,re.y);je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.56,ne,ne,re,ie,le);var _e=oe(re.x,re.y);pe.add(new go.PathSegment(go.PathSegment.Line,(he.x*.1+.95*.9)*a,he.y*.1*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,he.y*.1*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),pe.add(new go.PathSegment(go.PathSegment.Line,(_e.x*.1+.9)*a,.15*y)),pe.add(new go.PathSegment(go.PathSegment.Line,(_e.x*.1+.9)*a,(_e.y*.1+.05*.9)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,_e.x*a,_e.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,ie.x*a,ie.y*y,le.x*a,le.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),x=.35,b=me*.35;var ve=new go.PathFigure(z*a,(te-x)*y,!1);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y));var rt=new go.PathFigure((z-x)*a,te*y,!1);return E.add(rt),se(ne),se(re),se(ie),se(le),se(he),se(_e),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,te=b*me,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+te+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-te+z)*y,(.5+te+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-te+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+te+z)*y,(.5-te+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,te=b*me;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+te+z)*y,(.5+te+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-te+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-te+z)*y,(.5-te+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+te+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-te+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ke("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ke("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,te=(.5+b/2)*y,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/y);var ie=We(0,te/y,1,te/y,x/a,1,1,.5,ee());return ne.spot2=new go.Spot(ie.x,ie.y),se(ie),ne}),go.Shape.setFigureParameter("Arrow2",0,new ke("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ke("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,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,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),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/y);var ie=We(0,te/y,1,te/y,x/a,1,1,.5,ee());return ne.spot2=new go.Spot(ie.x,ie.y),se(ie),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ke("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=We(0,.5,.3,0,0,b/y,.1,b/y,ee());return z.spot1=new go.Spot(ne.x,ne.y),ne=We(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ke("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ke("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,te=(y-b)/2,ne=te+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,te=0,ne=y):(x=0,z=y,te=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close());var le=We(0,.5,.3,te/y,0,x/y,1,x/y,ee());return re.spot1=new go.Spot(le.x,le.y),le=We(.7,ne/y,1,.5,0,z/y,1,z/y,le),re.spot2=new go.Spot(le.x,le.y),se(le),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ke("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ke("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ke("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,te=(y-b)/2,ne=te+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,te=0,ne=y):(x=0,z=y,te=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close()),re.spot1=new go.Spot(0,x/y);var le=We(.7,ne/y,1,.5,0,z/y,1,z/y,ee());return re.spot2=new go.Spot(le.x,le.y),se(le),re}),go.Shape.setFigureParameter("Pointer",0,new ke("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ke("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=We(0,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ke("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ke("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new ke("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var te=new go.PathFigure(a,E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var te=new go.PathFigure(0,y-E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*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*y,E+me*E,0,2*E,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var te=new go.PathFigure(a-E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,te=me*x,ne=.5,re=.1,ie=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-te)*y,(ne-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+te)*y,(ne+z)*a,(re+x)*y));var le=.05,pe=me*le;ne=.05,re=.25;var he=new go.PathFigure(.5*a,.2*y,!0);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,he.add(new go.PathSegment(go.PathSegment.Bezier,(ne+le)*a,re*y,(ne+pe)*a,(re-le)*y,(ne+le)*a,(re-pe)*y)),he.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),le=.025,pe=me*le,ne=.825,re=.35,he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne+le)*a,(re-pe)*y,(ne+pe)*a,(re-le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*a,re*y,(ne-pe)*a,(re-le)*y,(ne-le)*a,(re-pe)*y)),he.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),le=.05,pe=me*le,ne=.5,re=.7,he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne+le)*a,(re-pe)*y,(ne+pe)*a,(re-le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*a,re*y,(ne-pe)*a,(re-le)*y,(ne-le)*a,(re-pe)*y)),he.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),he.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),he.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),le=.025,pe=me*le,ne=.175,re=.35,he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne+le)*a,(re-pe)*y,(ne+pe)*a,(re-le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*a,re*y,(ne-pe)*a,(re-le)*y,(ne-le)*a,(re-pe)*y)),he.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),he.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),he.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),le=.05,pe=me*le,ne=.05,re=.25,he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne-le)*a,(re-pe)*y,(ne-pe)*a,(re-le)*y)),he.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ke("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var te=new go.PathFigure(a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var te=new go.PathFigure(a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var te=new go.PathFigure(0,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,te=.5,ne=new go.PathFigure(a,te*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,a,(te+z)*y,(te+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,te*y,(te-z)*a,y,0,(te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a,0,0,(te-z)*y,(te-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,te*y,(te+z)*a,0,a,(te-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var te=new go.PathFigure(.5*b*a,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var te=new go.PathFigure(a,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var te=new go.PathFigure(a,x*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,te=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,te*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te-x)*y,(z+x)*a,(te-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,te=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var le=new go.PathFigure((ne+te)*a,re*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+te)*y,(ne+te)*a,(re+z)*y,(ne+z)*a,(re+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a,re*y,(ne-z)*a,(re+te)*y,(ne-te)*a,(re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-te)*y,(ne-te)*a,(re-z)*y,(ne-z)*a,(re-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a,re*y,(ne+z)*a,(re-te)*y,(ne+te)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,te=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(te-b)*y,.7*a,(te-x)*y)),b=.1,x=me*.1,z=.9,te=.5;var re=new go.PathFigure((z-b)*a,te*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,te=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(te-b)*y,.8*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(te+x)*y,(z+x+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,te=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(te-b)*y,.7*a,(te-x)*y)),b=.1,x=me*.1,z=.9,te=.5;var ie=new go.PathFigure((z-b)*a,te*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,te=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(te-b)*y,.9*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,te=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure((z-x)*a,te*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te-x)*y,(z+x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,te*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,te*y,z*a,(te-x)*y,z*a,(te+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,te=.8,ne=0,re=.5,ie=(b-a)/2,le=(x-y)/2,pe=new go.PathFigure(ne*a+ie,(re+te)*y+le,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a+ie,re*y+le,(ne-z)*a+ie,(re+te)*y+le,(ne-te)*a+ie,(re+z)*y+le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+le,(ne-te)*a+ie,(re-z)*y+le,(ne-z)*a+ie,(re-te)*y+le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*a+ie,re*y+le,ne*a+ie,(re-te)*y+le,(ne-te+z*.5)*a+ie,(re-z)*y+le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+le,(ne-te+z*.5)*a+ie,(re+z)*y+le,ne*a+ie,(re+te)*y+le).close()),z=me*.4,te=.4,ne=.2,re=.5;var he=new go.PathFigure(ne*a+ie,(re+te)*y+le,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a+ie,re*y+le,(ne-z)*a+ie,(re+te)*y+le,(ne-te)*a+ie,(re+z)*y+le)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+le,(ne-te)*a+ie,(re-z)*y+le,(ne-z)*a+ie,(re-te)*y+le)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*a+ie,re*y+le,ne*a+ie,(re-te)*y+le,(ne-te+z*.5)*a+ie,(re-z)*y+le)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+le,(ne-te+z*.5)*a+ie,(re+z)*y+le,ne*a+ie,(re+te)*y+le).close()),z=me*.2,te=.2,ne=.5,re=.5;var _e=new go.PathFigure((ne-te)*a+ie,re*y+le,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+le,(ne-te)*a+ie,(re-z)*y+le,(ne-z)*a+ie,(re-te)*y+le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a+ie,re*y+le,(ne+z)*a+ie,(re-te)*y+le,(ne+te)*a+ie,(re-z)*y+le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+le,(ne+te)*a+ie,(re+z)*y+le,(ne+z)*a+ie,(re+te)*y+le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a+ie,re*y+le,(ne-z)*a+ie,(re+te)*y+le,(ne-te)*a+ie,(re+z)*y+le)),z=me*.4,te=.4,ne=.8,re=.5;var ve=new go.PathFigure(ne*a+ie,(re-te)*y+le,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a+ie,re*y+le,(ne+z)*a+ie,(re-te)*y+le,(ne+te)*a+ie,(re-z)*y+le)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+le,(ne+te)*a+ie,(re+z)*y+le,(ne+z)*a+ie,(re+te)*y+le)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*a+ie,re*y+le,ne*a+ie,(re+te)*y+le,(ne+te-z*.5)*a+ie,(re+z)*y+le)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+le,(ne+te-z*.5)*a+ie,(re-z)*y+le,ne*a+ie,(re-te)*y+le).close()),z=me*.8,te=.8,ne=1,re=.5;var rt=new go.PathFigure(ne*a+ie,(re-te)*y+le,!0);return E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a+ie,re*y+le,(ne+z)*a+ie,(re-te)*y+le,(ne+te)*a+ie,(re-z)*y+le)),rt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+le,(ne+te)*a+ie,(re+z)*y+le,(ne+z)*a+ie,(re+te)*y+le)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*a+ie,re*y+le,ne*a+ie,(re+te)*y+le,(ne+te-z*.5)*a+ie,(re+z)*y+le)),rt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+le,(ne+te-z*.5)*a+ie,(re-z)*y+le,ne*a+ie,(re-te)*y+le).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ie=ee(),le=ee();je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ie,le);var pe=oe(re.x,re.y),he=new go.PathFigure(re.x*a,re.y*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,ie.x*a,ie.y*y,le.x*a,le.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),je(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ie,le,re,ne,ne),he.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,le.x*a,le.y*y)),b=me*.3,x=.3,je(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ie,le,re,ne,ne),he.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,le.x*a,le.y*y,ie.x*a,ie.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ie,le),he.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,le.x*a,le.y*y,ie.x*a,ie.y*y).close());var he=new go.PathFigure(.45*a,0,!0);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),se(ne),se(re),se(ie),se(le),se(pe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,te,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,te=b*me,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,le=.5,pe=.5,he=0,_e=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,le*y,ie*a,.7*y,ie*a,le*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(pe+x)*a,(he+x)*y,(.5+b+x)*a,(.5-te+x)*y,(.5+te+x)*a,(.5-b+x)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-te+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-te+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+te+z)*y,(.5-te+x)*a,.9*y)),_e.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),_e.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),_e.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,te=.5,ne=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),le=ie*.5,pe=z,he=z,_e=ie*pe,ve=ie*he;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-pe)*a,ne*y,(te-(_e+pe)/2)*a,(ne+(he+ve)/2)*y,(te-pe)*a,(ne+ve)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-he)*y,(te-pe)*a,(ne-ve)*y,(te-_e)*a,(ne-he)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+pe)*a,ne*y,(te+_e)*a,(ne-he)*y,(te+pe)*a,(ne-ve)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(te+pe)*a,(ne+ve)*y,(te+(_e+pe)/2)*a,(ne+(he+ve)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var rt=new go.PathFigure(.2*a,y,!1);E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ct=new go.PathFigure(.8*a,y,!1);return E.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,te=me*.1,ne=.2,re=.9,ie=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-te)*y,(ne-te)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+te)*a,(re-z)*y,(ne+z)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+te)*y,(ne+te)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-te)*a,(re+z)*y,(ne-z)*a,(re+te)*y).close()),z=.1,te=me*.1,ne=.8,re=.9;var le=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-te)*y,(ne-te)*a,(re-z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+te)*a,(re-z)*y,(ne+z)*a,(re-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+te)*y,(ne+te)*a,(re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-te)*a,(re+z)*y,(ne-z)*a,(re+te)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var te=new go.PathFigure(.5*a,.7*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,re=me*.1,ie=.1,le=.9,pe=new go.PathFigure((ie-ne)*a,le*y,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ne)*y,(ie-ne)*a,(le-re)*y,(ie-re)*a,(le-ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,le*y,(ie+re)*a,(le-ne)*y,(ie+ne)*a,(le-re)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ne)*y,(ie+ne)*a,(le+re)*y,(ie+re)*a,(le+ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,le*y,(ie-re)*a,(le+ne)*y,(ie-ne)*a,(le+re)*y)),ne=.1,re=me*.1,ie=.4,le=.9;var he=new go.PathFigure((ie-ne)*a,le*y,!0);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ne)*y,(ie-ne)*a,(le-re)*y,(ie-re)*a,(le-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,le*y,(ie+re)*a,(le-ne)*y,(ie+ne)*a,(le-re)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ne)*y,(ie+ne)*a,(le+re)*y,(ie+re)*a,(le+ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,le*y,(ie-re)*a,(le+ne)*y,(ie-ne)*a,(le+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,le=me*.05,pe=.175,he=.95,te=new go.PathFigure((pe-ie)*a,he*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-ie)*y,(pe-ie)*a,(he-le)*y,(pe-le)*a,(he-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,he*y,(pe+le)*a,(he-ie)*y,(pe+ie)*a,(he-le)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+ie)*y,(pe+ie)*a,(he+le)*y,(pe+le)*a,(he+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,he*y,(pe-le)*a,(he+ie)*y,(pe-ie)*a,(he+le)*y));var ie=.05,le=me*.05,pe=.375,he=.95,ne=new go.PathFigure((pe-ie)*a,he*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-ie)*y,(pe-ie)*a,(he-le)*y,(pe-le)*a,(he-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,he*y,(pe+le)*a,(he-ie)*y,(pe+ie)*a,(he-le)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+ie)*y,(pe+ie)*a,(he+le)*y,(pe+le)*a,(he+ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,he*y,(pe-le)*a,(he+ie)*y,(pe-ie)*a,(he+le)*y));var ie=.05,le=me*.05,pe=.625,he=.95,re=new go.PathFigure((pe-ie)*a,he*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-ie)*y,(pe-ie)*a,(he-le)*y,(pe-le)*a,(he-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,he*y,(pe+le)*a,(he-ie)*y,(pe+ie)*a,(he-le)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+ie)*y,(pe+ie)*a,(he+le)*y,(pe+le)*a,(he+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,he*y,(pe-le)*a,(he+ie)*y,(pe-ie)*a,(he+le)*y));var ie=.05,le=me*.05,pe=.825,he=.95,_e=new go.PathFigure((pe-ie)*a,he*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-ie)*y,(pe-ie)*a,(he-le)*y,(pe-le)*a,(he-ie)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,he*y,(pe+le)*a,(he-ie)*y,(pe+ie)*a,(he-le)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+ie)*y,(pe+ie)*a,(he+le)*y,(pe+le)*a,(he+ie)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,he*y,(pe-le)*a,(he+ie)*y,(pe-ie)*a,(he+le)*y).close());var ve=new go.PathFigure(0,y,!1);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var te=.05,ne=me*.05,re=.35,ie=.775,le=new go.PathFigure((re-te)*a,ie*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-ne)*y,(re-ne)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+ne)*a,(ie-te)*y,(re+te)*a,(ie-ne)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+ne)*y,(re+ne)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-ne)*a,(ie+te)*y,(re-te)*a,(ie+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,te=.7,ne=new go.PathFigure((z-b)*a,te*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*a,te*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*a,te*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y).close()),b=.05,x=me*.05,z=.5,te=.8;var re=new go.PathFigure((z-b)*a,te*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var te=new go.PathFigure(.678*a,.85*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var te=new go.PathFigure(a*.612,y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var te=new go.PathFigure(a*.055,.18*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var te=new go.PathFigure(a*.83,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,te=new go.PathFigure(E,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),te.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),te.add(new go.PathSegment(go.PathSegment.Line,a*.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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ke={},ot="5.0",oe={},ee=null,se=!1,We=!1,je=null,de=!1,Le=null,me=null,Ve=0;Ve<arguments.length;Ve++){var Ge=arguments[Ve];if(Ge!==null)switch(typeof Ge){case"number":ot=Ge.toFixed(1);break;case"string":Ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=Ge:je=Ge;break;case"object":typeof Ge.is3D!="undefined"?ee=Ge:oe=Ge;break;case"boolean":se=Ge,We=!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},oe.material_id!==void 0&&!We&&(se=!0)),je!==null&&oe.id===void 0&&(oe.id=je);var He="",Ze="",Re=!1,xe=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,te=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(Oe){return parseFloat(Oe)>4?parseFloat(Oe):5};ke.setHTML5Codebase=function(Oe,Ue){me=Oe,tn(Oe,Ue)},ke.setJavaCodebase=ke.setJavaCodebaseVersion=ke.isCompiledInstalled=ke.setPreCompiledScriptPath=ke.setPreCompiledResourcePath=function(){},ke.setHTML5CodebaseVersion=function(Oe,Ue){var nt=parseFloat(Oe);if(nt!==NaN&&nt<5){console.log("The GeoGebra HTML5 codebase version "+nt+" is deprecated. Using version latest instead.");return}Le=Oe,Tt(Oe,Ue)},ke.getHTML5CodebaseVersion=function(){return ae},ke.getParameters=function(){return oe},ke.setFontsCSSURL=function(Oe){z=Oe},ke.setGiacJSURL=function(Oe){},ke.setJNLPFile=function(Oe){He=Oe},ke.setJNLPBaseDir=function(Oe){},ke.inject=function(){function Oe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",nt=oe.id,Dt,dt=!1,Lt=0;Lt<arguments.length;Lt++){var ce=arguments[Lt];typeof ce=="string"?(ce=ce.toLowerCase(),ce.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=ce:nt=arguments[Lt]):typeof ce=="boolean"?dt=ce:ce instanceof HTMLElement&&(Dt=ce)}ft();function ft(){if(!de){setTimeout(ft,200);return}Ue=et(Ue);var Kt=Dt||document.getElementById(nt);if(!Kt){console.log("possibly bug on ajax loading? ");return}if(ke.removeExistingApplet(Kt,!1),oe.width===void 0&&Kt.clientWidth&&(oe.width=Kt.clientWidth),oe.height===void 0&&Kt.clientHeight&&(oe.height=Kt.clientHeight),!(oe.width&&oe.height)&&Ue==="html5"&&(delete oe.width,delete oe.height),xe=Ue,Ue==="screenshot")Ct(Kt,oe);else{var rn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?rn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(rn=(!re()||Oe())&&ie()),rn?(xe="screenshot",Fe(Kt,oe,dt,Ue)):rt(Kt,oe,dt)}}};function re(){try{return window.self!==window.top}catch(Oe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ke.getViews=function(){return ee},ke.isJavaInstalled=function(){return!1};var le=function(Oe){var Ue=function(Lt){var ce=JSON.parse(Lt),ft=function(pt){return pt.type=="G"||pt.type=="E"},Kt=ce.elements?ce.elements.filter(ft)[0]:ce;if(!Kt||!Kt.url){nt();return}oe.fileName=Kt.url,pe(Kt.settings||{}),ee.is3D=!0;var rn="https://www.geogebra.org/images/";ke.setPreviewImage(E||Kt.previewUrl,rn+"GeoGebra_loading.png",rn+"applet_play.png"),Oe()},nt=function(){oe.onError&&oe.onError(),on("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Dt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",dt="/materials/"+oe.material_id+"?scope=basic";he("https://"+Dt+"/api/proxy.php?path="+encodeURIComponent(dt),Ue,nt)};function pe(Oe){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(nt){Oe[nt]=!!Oe[nt]}),Ue.forEach(function(nt){oe[nt]===void 0&&Oe[nt]!==void 0&&(oe[nt]=Oe[nt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function he(Oe,Ue,nt){var Dt=new XMLHttpRequest;Dt.open("GET",Oe),Dt.onload=function(){Ue(Dt.responseText)},Dt.onerror=nt,Dt.send()}ke.isHTML5Installed=function(){return!0},ke.getLoadedAppletType=function(){return xe},ke.setPreviewImage=function(Oe,Ue,nt){E=Oe,b=Ue,x=nt},ke.removeExistingApplet=function(Oe,Ue){var nt;typeof Oe=="string"&&(Oe=document.getElementById(Oe)),xe=null;var Dt=null;for(nt=0;nt<Oe.childNodes.length;nt++){var dt=Oe.childNodes[nt],Lt=dt.className;Lt==="applet_screenshot"?Ue?(dt.style.display="block",xe="screenshot"):dt.style.display="none":Lt!=="applet_scaler prerender"&&(Oe.removeChild(dt),Dt=Lt&&Lt.indexOf("appletParameters")!=-1?dt.id:null,nt--)}var ce=oe.id!==void 0?oe.id:Dt,ft=window[ce];ft&&typeof ft.getBase64=="function"&&(ft.remove(),window[ce]=null)},ke.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Oe=ke.getAppletObject();return Oe&&typeof Oe.recalculateEnvironments=="function"?(Oe.recalculateEnvironments(),!0):!1},ke.startAnimation=function(){var Oe=ke.getAppletObject();return Oe&&typeof Oe.startAnimation=="function"?(Oe.startAnimation(),!0):!1},ke.stopAnimation=function(){var Oe=ke.getAppletObject();return Oe&&typeof Oe.stopAnimation=="function"?(Oe.stopAnimation(),!0):!1},ke.getAppletObject=function(){var Oe=oe.id!==void 0?oe.id:"ggbApplet";return window[Oe]},ke.resize=function(){};var _e=function(Oe,Ue,nt){var Dt=document.createElement("param");Dt.setAttribute("name",Ue),Dt.setAttribute("value",nt),Oe.appendChild(Dt)},ve=function(Oe){return Oe&&Oe!=="false"},rt=function(Oe,Ue,nt){ne(ae)<=4.2&&(nt=!0);var Dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var dt=document.createElement("div");dt.classList.add("appletParameters","notranslate");var Lt=Ue.width,ce=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(ne(ae)<=4.4)ve(Ue.showToolBar)&&(Ue.height-=7),ve(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&ve(Ue.showToolBar)&&(Ue.width=605,Lt=605);else{var ft=100;(ve(Ue.showToolBar)||ve(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),ft=ve(Ue.showMenuBar)?245:155),Lt<ft&&(Ue.width=ft,Lt=ft)}dt.style.border="none",dt.style.display="inline-block";for(var Kt in Ue)Ue.hasOwnProperty(Kt)&&Kt!=="appletOnLoad"&&dt.setAttribute("data-param-"+Kt,Ue[Kt]);z&&dt.setAttribute("data-param-fontscssurl",z),ke.resize=function(){GGBAppletUtils.responsiveResize(Oe,Ue)},window.addEventListener("resize",function(Yt){ke.resize()});var rn=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!nt&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||dt.setAttribute("data-param-showSplash","false");var pt=Oe.querySelector(".applet_scaler.prerender"),Xe=pt!==null;if(Xe)var Te=pt.querySelector(".ggb_preview");else{var Te=Je(Lt,ce,Ue.borderColor,!1);pt=document.createElement("div"),pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.style.width=Lt+"px",pt.style.height=ce+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pt,"66%"),ne(ae)>=5?(Ue.appletOnLoad=function(Yt){var ue=Oe.querySelector(".ggb_preview");ue&&ue.parentNode.removeChild(ue),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pt),window.GGBT_wsf_view&&$(window).trigger("resize"),rn(Yt)},Xe||pt.appendChild(Te)):dt.appendChild(Te),pt.appendChild(dt),Xe||Oe.appendChild(pt),setTimeout(function(){ke.resize()},1)}else{var Ce=document.createElement("div");Ce.className="applet_scaler",Ce.style.position="relative",Ce.style.display="block",Ce.appendChild(dt),Oe.appendChild(Ce),Ue.appletOnLoad=function(Yt){ke.resize(),rn(Yt)}}function we(Yt,ue){ue&&typeof ue.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Yt,ue.appletOnLoad):renderGGBElement(Yt),on("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ue)}function ze(Yt,ue){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Yt,params:ue}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ee){we(Ee.article,Ee.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(Yt.className+=" geogebraweb")):we(Yt,ue)}if(Dt){scriptLoadStarted=!0;for(var Ye=0;Ye<dt.childNodes.length;Ye++){var mt=dt.childNodes[Ye].tagName;mt==="TABLE"&&(dt.removeChild(dt.childNodes[Ye]),Ye--)}if(ggbHTML5LoadedScript!==null){var Ft=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ft!=null&&Ft.parentNode.removeChild(Ft)}var Ot=document.createElement("script"),Rt=function(){ze(dt,Ue)};Ot.src=Ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Ot.src,on("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",Ue),!me&&(!Le||Le=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Rt()):Ze.requirejs?__webpack_require__.e(12).then(function(){var Yt=[__webpack_require__(12)];Rt.apply(null,Yt)}.bind(this)).catch(__webpack_require__.oe):(Ot.onload=Rt,Oe.appendChild(Ot))}else ze(dt,Ue);Ue.height=ce,Ue.width=Lt},Ct=function(Oe,Ue,nt){var Dt=Je(Ue.width,Ue.height,Ue.borderColor,nt),dt=document.createElement("div");dt.style.position="relative",dt.style.display="block",dt.style.width=Ue.width+"px",dt.style.height=Ue.height+"px",dt.className="applet_screenshot applet_scaler"+(nt?" applet_screenshot_play":""),dt.appendChild(Dt);var Lt=GGBAppletUtils.getScale(Ue,Oe,nt);nt?(Oe.appendChild(Qe()),window.GGBT_wsf_view||(Oe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(dt,"66%"),Oe.appendChild(dt),Lt!==1&&!isNaN(Lt)&&(GGBAppletUtils.scaleElement(dt,Lt),dt.style.width=Ue.width+"px",dt.style.height=Ue.height+"px",dt.parentNode.style.width=Ue.width*Lt+"px",dt.parentNode.style.height=Ue.height*Lt+"px"),ke.resize=function(){Pt(Oe,Dt,dt,nt)},window.addEventListener("resize",function(ce){ke.resize()}),ke.resize()};function Pt(Oe,Ue,nt,Dt){if(Oe.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}var dt=GGBAppletUtils.getScale(oe,Oe,Dt);nt.parentNode!==null&&(!isNaN(dt)&&dt!==1?(GGBAppletUtils.scaleElement(nt,dt),nt.parentNode.style.width=oe.width*dt+"px",nt.parentNode.style.height=oe.height*dt+"px"):(GGBAppletUtils.scaleElement(nt,1),nt.parentNode.style.width=oe.width+"px",nt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Oe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ke.onExitFullscreen=function(Oe,Ue){Ue.appendChild(Oe)};var Fe=function(Oe,Ue,nt,Dt){Ct(Oe,Ue,!0);for(var dt=function(){var ft=[];for(ce=0;ce<Oe.childNodes.length;ce++)ft.push(Oe.childNodes[ce]);if(window.GGBT_wsf_view){var Kt=window.GGBT_wsf_view.renderFullScreen(Oe,Ue.id),rn=document.getElementById("fullscreencontainer"),pt=jQuery(Oe).find(".fullscreencontent");pt.length>0?(Kt.remove(),pt.attr("id","fullscreencontent").show(),jQuery(rn).append(pt),window.dispatchEvent(new Event("resize"))):rt(Kt,Ue,!1),window.GGBT_wsf_view.launchFullScreen(rn)}else xe=Dt,rt(Oe,Ue,!1);if(!window.GGBT_wsf_view)for(ce=0;ce<ft.length;ce++)Oe.removeChild(ft[ce])},Lt=Oe.getElementsByClassName("ggb_preview_play"),ce=0;ce<Lt.length;ce++)Lt[ce].addEventListener("click",dt,!1),Lt[ce].addEventListener("ontouchstart",dt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Oe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var Oe=document.createElement("div");if(Oe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',nt=document.createElement("style");nt.styleSheet?nt.styleSheet.cssText=Ue:nt.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(nt)}return Oe},Je=function(Oe,Ue,nt,Dt){var dt=document.createElement("div");dt.className="ggb_preview",dt.style.position="absolute",dt.style.zIndex="90",dt.style.width=Oe-2+"px",dt.style.height=Ue-2+"px",dt.style.top="0px",dt.style.left="0px",dt.style.overflow="hidden",dt.style.backgroundColor="white";var Lt="lightgrey";nt!==void 0&&(nt==="none"?Lt="transparent":Lt=nt),dt.style.border="1px solid "+Lt;var ce=document.createElement("img");if(ce.style.position="relative",ce.style.zIndex="1000",ce.style.top="-1px",ce.style.left="-1px",E!==null&&ce.setAttribute("src",E),ce.style.opacity=.7,b!==null){var ft,Kt,rn;if(!Dt){ft=document.createElement("img"),ft.style.position="absolute",ft.style.zIndex="1001",ft.style.opacity=1,ce.style.opacity=.3,Kt=360,Kt>Oe/4*3&&(Kt=Oe/4*3),rn=Kt/5.8,ft.setAttribute("src",b),ft.setAttribute("width",Kt),ft.setAttribute("height",rn);var pt=(Oe-Kt)/2,Xe=(Ue-rn)/2;ft.style.left=pt+"px",ft.style.top=Xe+"px",dt.appendChild(ft)}}return dt.appendChild(ce),dt},et=function(Oe){return Oe=Oe.toLowerCase(),Oe==="html5"||Oe==="screenshot"?Oe:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],Tt=function(Oe,Ue){if(ae=Oe,Ue){tn(ae,!0);return}var nt=!se;if(nt){var Dt=ne(ae);!isNaN(Dt)&&Dt<4.4&&(nt=!1)}var dt,Lt;window.location.protocol.substr(0,4)==="http"?dt=window.location.protocol:dt="http:";var ce=ae.indexOf("//");ce>0?Lt=ae:ce===0?Lt=dt+ae:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var ft in st)if(ae.slice(st[ft].length*-1)===st[ft]||ae.slice((st[ft].length+1)*-1)===st[ft]+"/"){tn(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&nt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!ve(oe.showToolBar)&&!ve(oe.showMenuBar)&&!ve(oe.showAlgebraInput)&&!ve(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Lt+="webSimple/":Lt+="web3d/",tn(Lt,!1)},tn=function(Oe,Ue){if(Oe.requirejs){Ze=Oe;return}Oe.slice(-1)!=="/"&&(Oe+="/"),Ze=Oe,Ue===null&&(Ue=Oe.indexOf("http")===-1),Re=Ue,a="web.nocache.js",y=!1;var nt=Ze.split("/");nt.length>1&&(!Ue&&nt[nt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):st.indexOf(nt[nt.length-2])>=0&&(a=nt[nt.length-2]+".nocache.js")),nt=Oe.split("/"),ae=nt[nt.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Dt=parseFloat(ae);Dt!==NaN&&Dt<5&&Oe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead."),Tt("5.0",Ue))},on=function(Oe,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(Oe)};oe.material_id!==void 0?le(ln):ln();function ln(){var Oe=ot;Le!==null?Oe=Le:parseFloat(Oe)<5&&(Oe="5.0"),Tt(Oe,!1),me!==null&&tn(me,Re),de=!0}return ke},GGBAppletUtils=function(){"use strict";function ke(){return window.GGBT_wsf_edit!==void 0}function ot(de,Le){Le!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+Le+","+Le+")",de.style.webkitTransform="scale("+Le+","+Le+")",de.style.maxWidth="initial",de.querySelector(".ggb_preview")!==null&&(de.querySelector(".ggb_preview").style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[0]!==void 0&&(de.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[1]!==void 0&&(de.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(de.style.transform="none",de.style.webkitTransform="none")}function oe(de,Le,me,Ve,Ge,He){var Ze=null;if(He!=null&&He!="")for(var Re=de.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+He+" ")>-1){Ze=Re;break}else Re=Re.parentNode;var xe=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ze)xe=Ze.offsetWidth,ae=Math.max(Ve?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=xe):(xe=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),de){var z=de.getBoundingClientRect();z.left>0&&z.left<=xe&&(Ge===void 0||!Ge)&&(document.dir==="rtl"?(E=xe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=de.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return de&&((me===void 0||!me)&&Le>0&&Le+y<xe?xe=Le:xe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ae-=x)),{width:xe,height:ae}}function ee(de,Le,me,Ve,Ge){if(de.isScreenshoGenerator)return 1;var He=Ve!==void 0&&Ve,Ze=de.noScaleMargin!=null&&de.noScaleMargin,Re=function(te){return te&&te!=="false"},xe=Re(de.autoHeight),ae=oe(Le,de.width,me,xe,He&&window.GGBT_wsf_view||Ze,Ge),a=parseInt(ae.width),y=de.width,E=de.height;if(y===void 0){var b=Le.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=He?1:ae.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function se(de,Le,me){var Ve=1,Ge,He=!1;if(de.hasOwnProperty("allowUpscale")&&(He=de.allowUpscale),de.hasOwnProperty("scale")&&(Ve=parseFloat(de.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(He=!0)),Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))Ge=ee(de,Le,He,me,de.scaleContainerClass);else return Ve;return He&&(!de.hasOwnProperty("scale")||Ve===1)?Ge:Math.min(Ve,Ge)}function We(de){var Le=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=de.getBoundingClientRect(),Ge=(Le-Ve.width)/2,He=(me-Ve.height)/2;He<0&&(He=0),de.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge<40?de.style.left="40px":de.style.left=Ge+"px",de.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?de.style.top="40px":de.style.top=He+"px",de.style.left=Ge+"px")}function je(de,Le){var me=de.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ve=se(Le,de);ke()&&me.setAttribute("data-param-scale",Ve);for(var Ge=null,He=0;He<de.childNodes.length;He++)if(de.childNodes[He].className!==void 0&&de.childNodes[He].className.match(/^applet_scaler/)){Ge=de.childNodes[He];break}if(Ge!==null&&Ge.querySelector(".noscale")!==null)return;var Ze=Le.id!==void 0?Le.id:"ggbApplet",Re=window[Ze];(Re==null||!Re.recalculateEnvironments)&&Ge!==null&&!Ge.className.match(/fullscreen/)&&(Ge.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(Ge.parentNode.style.width=Le.width*Ve+"px",Ge.parentNode.style.height=Le.height*Ve+"px",ot(Ge,Ve)):(ot(Ge,1),Ge.parentNode.style.width=Le.width+"px",Ge.parentNode.style.height=Le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(de),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:ke,positionCenter:We,getScale:se,scaleElement:ot}}();__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 ke=n.location.search;return ke.indexOf(J)!=-1||ke.indexOf(K)!=-1}function q(ke,ot){}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(ke){var ot=s[L].bindings;s[L].bindings=function(){for(var oe=ot?ot():{},ee=ke[webModule.__softPermutationId],se=O;se<ee.length;se++){var We=ee[se];oe[We[O]]=We[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ke=o.createElement(Q);if(ke.id=L,ke.style.cssText=R+S,ke.tabIndex=-1,o.body.appendChild(ke),t=ke.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(ke){function ot(ee){function se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=se();if(We){ee();return}function je(){if(!We){if(!se())return;We=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,je,!1),de&&clearInterval(de)}}o.addEventListener&&o.addEventListener(Z,je,!1);var de=setInterval(function(){je()},$)}function oe(ee){var se=u(),We=se.body,je=se.createElement(_);je.language=ab,je.crossOrigin=W,je.src=ee,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),We.appendChild(je)}ot(function(){oe(ke)})}webModule.__startLoadingFragment=function(ke){return C(ke)},webModule.__installRunAsyncCode=function(ke){var ot=u(),oe=ot.body,ee=ot.createElement(_);ee.language=ab,ee.text=ke,oe.appendChild(ee),oe.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(ke){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ke){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ke){var ot=c[ke];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function ke(de){var Le=de.lastIndexOf(rb);Le==-1&&(Le=de.length);var me=de.indexOf(sb);me==-1&&(me=de.length);var Ve=de.lastIndexOf(tb,Math.min(me,Le));return Ve>=O?de.substring(O,Ve+P):W}function ot(de){if(!de.match(/^\w+:\/\//)){var Le=o.createElement(ub);Le.src=de+vb,de=ke(Le.src)}return de}function oe(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function ee(){for(var de=o.getElementsByTagName(_),Le=O;Le<de.length;++Le)if(de[Le].src.indexOf(xb)!=-1)return ke(de[Le].src);return W}function se(){var de=o.getElementsByTagName(yb);return de.length>O?de[de.length-P].href:W}function We(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var je=oe();return je==W&&(je=ee()),je==W&&(je=se()),je==W&&We()&&(je=ke(o.location.href)),je=ot(je),je}function C(ke){return ke.match(/^\//)||ke.match(/^[a-zA-Z]+:\/\//)?ke:webModule.__moduleBase+ke}function D(){var ke=[],ot=O,oe=[],ee=[];function se(de){var Le=ee[de](),me=oe[de];if(Le in me)return Le;var Ve=[];for(var Ge in me)Ve[me[Ge]]=Ge;throw r&&r(de,Ve,Le),null}if(__gwt_isKnownPropertyValue=function(de,Le){return Le in oe[de]},webModule.__getPropMap=function(){var de={};for(var Le in oe)oe.hasOwnProperty(Le)&&(de[Le]=se(Le));return de},webModule.__computePropValue=se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var je=We.indexOf(Db);je!=-1&&(ot=parseInt(We.substring(je+P),$),We=We.substring(O,je))}catch(de){}return webModule.__softPermutationId=ot,C(We+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(ke,ot,oe){"use strict";oe.d(ot,{Ax:function(){return je},Ds:function(){return de},KI:function(){return me},SI:function(){return We},f1:function(){return se}});var ee=oe(11320);function se(Ve){let Ge=!0;if(Ve.length>0){for(let He=0;He<Ve.length;He++)if(Ve[He].compile_success==0||!Ve[He].compile_success){Ge=!1;break}}else Ge=!1;return Ge}function We(Ve,Ge=""){let He=[];for(let Ze=0;Ze<Ve.length;Ze++){let Re=Ve[Ze],xe=Ge?`${Ge}/${Re.name}`:`${Re.name}`;He.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:xe})}return He}function je(Ve,Ge,He){for(let Ze=0;Ze<Ve.length;Ze++){let Re=Ve[Ze];if(Re.key===Ge){Re.children=He;break}Re.children&&je(Re.children,Ge,He)}return Ve}function de(Ve,Ge,He){let Ze;return function(){let Re=this,xe=arguments,ae=function(){Ze=null,He||Ve.apply(Re,xe)},a=He&&!Ze;clearTimeout(Ze),Ze=setTimeout(ae,Ge),a&&Ve.apply(Re,xe)}}const Le=!0,me=ee.Z.API_SERVER},73646:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ge}});var ee=oe(67294),se=oe(69677),We=oe(66309),je=oe(2453),de={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Le=oe(38308);const{TextArea:me}=se.default;class Ve extends ee.Component{constructor(Ze){super(Ze),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ze,onAnswerChange:Re,addChildAnswer:xe,exerciseIsPublish:ae,answers:a,activeOptionErrorIndex:y,flex:E="0 0 1000px"}=this.props;console.log("----",a);let{inputVisible:b,EditInputIndex:x}=this.state;return ee.createElement("div",{className:de.flex},ee.createElement("div",{className:`${de.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ze+1,"):"),ee.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},a==null?void 0:a.map((z,te)=>ee.createElement(ee.Fragment,null,x!==te?(z==null?void 0:z.length)>0?ee.createElement(We.default,{className:"edit-tag",key:z,closable:!((a==null?void 0:a.length)===1&&te===0),onClose:ne=>{ne.preventDefault(),(a==null?void 0:a.length)===1&&te===0?this.props.deleteChildAnswermain(Ze,te):this.props.deleteChildAnswer(Ze,te)}},ee.createElement("span",{onDoubleClick:ne=>{this.setState({EditInputIndex:te}),ne.preventDefault()}},z)):ee.createElement(se.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Re(Ze,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):ee.createElement(se.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Re(Ze,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!b&&ee.createElement(We.default,{className:"site-tag-plus",onClick:()=>{xe(Ze),this.setState({inputVisible:!0})}},ee.createElement(Le.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Ge=Ve},35566:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ae}});var ee=oe(67294),se=oe(35567),We=Object.defineProperty,je=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ge=(a,y,E)=>y in a?We(a,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):a[y]=E,He=(a,y)=>{for(var E in y||(y={}))me.call(y,E)&&Ge(a,E,y[E]);if(Le)for(var E of Le(y))Ve.call(y,E)&&Ge(a,E,y[E]);return a},Ze=(a,y)=>je(a,de(y)),Re=(a,y,E)=>Ge(a,typeof y!="symbol"?y+"":y,E);const xe="\u2581";class ae extends ee.Component{constructor(){super(...arguments),Re(this,"getChCountBeforeCursor",(y,E)=>{const b=E.line;let x=0;for(let te=0;te<b;te++)x+=y.getLine(te).split(xe).length-1;const z=y.getLine(b).substring(0,E.ch);return x+=z.split(xe).length-1,x}),Re(this,"onCMBeforeChange",(y,E)=>{const b=y.getRange(E.from,E.to);let x=0;if(E.text.forEach(z=>{x+=z.split(xe).length-1}),b&&b.indexOf(xe)!=-1){const z=b.split(xe).length-1,te=this.getChCountBeforeCursor(y,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(y,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(se.Z,Ze(He({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},63205:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ze}});var ee=oe(67294),se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=oe(94184),je=oe.n(We),de=oe(57953),Le=oe(15979),me=oe(33170),Ve=oe(28706),Ge=(Re,xe,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(te){y(te)}},b=z=>{try{x(ae.throw(z))}catch(te){y(te)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Re,xe)).next())}),Ze=({data:Re,className:xe,fullWidth:ae,style:a={},onClose:y,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),[ie,le]=(0,ee.useState)(!1),[pe,he]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&_e()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Re==null?void 0:Re.visible]);const _e=()=>Ge(void 0,null,function*(){le(!0),he("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,Ve.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=Fe,z.current.onload=function(){Pt()},le(!1),he("")}),ve=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},rt=Fe=>Ge(void 0,null,function*(){le(!0),he("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:Fe.dataUrl}});Qe!=null&&Qe.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Qe==null?void 0:Qe.id,settings:JSON.stringify(Fe.state)}})).status===0&&E():Qe!=null&&Qe.id&&E(Qe),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",le(!1),he("")}),Ct=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Je=>{const et=document.querySelector(Je.name);et&&et.setAttribute("title",Je.title)})},Pt=()=>{te.current=new Le.hP(z.current),te.current.targetRoot=re.current,te.current.addEventListener("render",rt),te.current.addEventListener("beforeclose",ve),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(),Re!=null&&Re.snapshotData&&te.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ct()},300)};return ee.createElement(ee.Fragment,null,(Re==null?void 0:Re.visible)&&ee.createElement(de.Z,{spinning:ie,tip:pe,style:{position:"absolute"}},ee.createElement("div",{ref:re,className:je()(se.imageDimensions,xe,ae?se.fullWidth:""),style:a},ee.createElement("img",{className:se.img,ref:z}))))}},36527:function(ke,ot,oe){"use strict";var ee=oe(67294),se=oe(71230),We=oe(15746),je=oe(66368),de=oe(71577),Le=oe(85725),me=oe(71736),Ve=oe(84279),Ge=oe(67294);const He=(0,ee.forwardRef)(({callback:Ze,showSaveButton:Re,value:xe=""},ae)=>{const a=(0,ee.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=te=>{a.current.setValue(a.current.getValue()+" "+te.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ge.createElement(se.Z,{className:me.Z.lists,gutter:[10,10]},y.map((te,ne)=>Ge.createElement(We.Z,{flex:"110px",className:me.Z.item},Ge.createElement("div",null,Ge.createElement(Le.Z,{value:`$$${te.value}$$`}),te.name),Ge.createElement("div",{className:me.Z.children},te.children.map((re,ie)=>Ge.createElement("div",{key:ie},Ge.createElement("h1",null,re.name),Ge.createElement(se.Z,{gutter:[10,10]},re.data.map((le,pe)=>Ge.createElement(We.Z,{key:pe,onClick:()=>b(le),className:me.Z.diamond},Ge.createElement(Le.Z,{value:"`$$"+le.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ge.createElement(se.Z,{className:me.Z.lists,gutter:[10,10]},E.map((te,ne)=>Ge.createElement(We.Z,{flex:"110px",className:me.Z.item},Ge.createElement("div",null,Ge.createElement(Le.Z,{value:"`$$"+te.value+"$$`"}),te.name),Ge.createElement("div",{className:me.Z.children},te.children.map((re,ie)=>Ge.createElement("div",{key:ie},re.name&&Ge.createElement("h1",null,re.name),Ge.createElement(se.Z,{gutter:[10,10]},re.data.map((le,pe)=>Ge.createElement(We.Z,{key:pe,onClick:()=>b(le),className:me.Z.diamond},Ge.createElement(Le.Z,{value:"`$$"+le.value+"$$`"}))))))))))}],z=()=>{var te=document.createElement("div");te.innerHTML=a.current.getValue();var ne=te.innerText;return Ze&&Ze(ne),ne};return(0,ee.useImperativeHandle)(ae,()=>({getData:z})),Ge.createElement("div",{className:me.Z.mathWrap},Ge.createElement(je.default,{defaultActiveKey:"1",items:x}),Ge.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},xe||""),Re&&Ge.createElement("div",{className:me.Z.button},Ge.createElement(de.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=He},57444:function(ke,ot,oe){"use strict";oe.d(ot,{h:function(){return te}});var ee=oe(67294),se=oe(11713),We=oe(22150),je=oe(71577),de=oe(4631),Le=oe.n(de),me=oe(71749),Ve=oe(30483),Ge=Object.defineProperty,He=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ie)=>re in ne?Ge(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ne[re]=ie,y=(ne,re)=>{for(var ie in re||(re={}))xe.call(re,ie)&&a(ne,ie,re[ie]);if(Re)for(var ie of Re(re))ae.call(re,ie)&&a(ne,ie,re[ie]);return ne},E=(ne,re)=>He(ne,Ze(re));const b=se.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"]};ot.Z=({callback:ne,onCancel:re})=>{const[ie,le]=(0,ee.useState)("python");function pe(_e){le(z[_e][1])}function he(_e){ne(_e)}return ee.createElement(We.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:he,style:{width:500}}),ee.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(se.default,{getPopupContainer:_e=>_e.parentNode,onChange:pe},Object.keys(z).map(_e=>ee.createElement(b,{key:_e,value:_e},z[_e][0])))),ee.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(te,{mode:ie})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(je.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function te({value:ne,onChange:re,mode:ie,options:le={}}){const pe=(0,ee.useRef)(),[he,_e]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(he){let ve=function(rt){const Ct=rt.getValue();re&&re(Ct)};return he.on("change",ve),()=>{he.off("change",ve)}}},[he,re]),(0,ee.useEffect)(()=>{he&&he.setOption("mode",ie)},[he,ie]),(0,ee.useEffect)(()=>{he&&(ne!==he.getValue()||ne==="")&&setTimeout(()=>{he.setValue(ne||"")},300)},[he,ne]),(0,ee.useEffect)(()=>{if(pe.current&&!he){const ve=Le().fromTextArea(pe.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},le));_e(ve)}},[pe.current,he]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:pe}))}},35567:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return la}});var ee=oe(67294),se=oe(4631),We=oe.n(se),je=oe(91033),de=oe(71749),Le=oe(57341),me=oe(82801),Ve=oe(88386),Ge=oe(49047),He=oe(80785),Ze=oe(85725),Re=({value:be="",className:Ae,showTextOnly:Be,showLines:it,style:_t={}})=>{const Wt=(0,ee.useMemo)(()=>"",[be]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:Wt}}))},xe=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(be,Ae,Be)=>Ae in be?ae(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[Ae]=Be,te=(be,Ae)=>{for(var Be in Ae||(Ae={}))b.call(Ae,Be)&&z(be,Be,Ae[Be]);if(E)for(var Be of E(Ae))x.call(Ae,Be)&&z(be,Be,Ae[Be]);return be},ne=(be,Ae)=>a(be,y(Ae));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 ie({onActionCallback:be,title:Ae,icon:Be,actionName:it,className:_t="",children:Wt}){function bn(){be(it)}return xe.createElement("a",{title:Ae,className:_t,onClick:bn},xe.createElement("i",{className:`${Be}`}),Wt)}var le=({watch:be,showNullButton:Ae,showNullProgramButton:Be,onActionCallback:it,fullScreen:_t,insertTemp:Wt,hidetoolBar:bn,extraUse:dn})=>{const yn=[...re,{title:`${be?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${be?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!bn&&yn.map((On,jn)=>xe.createElement("li",{key:jn},On.actionName?xe.createElement(ie,ne(te({},On),{onActionCallback:it})):xe.createElement("span",{className:"v-line"}))),Ae?xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Be?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Wt&&xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Wt}`,onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),dn&&xe.createElement("li",null,dn),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(ie,{icon:`${_t?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:_t?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:it})))},pe=oe(76621),he=oe(22150),_e=oe(69677),ve=oe(71577),rt=Object.defineProperty,Ct=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,et=(be,Ae,Be)=>Ae in be?rt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[Ae]=Be,st=(be,Ae)=>{for(var Be in Ae||(Ae={}))Qe.call(Ae,Be)&&et(be,Be,Ae[Be]);if(Fe)for(var Be of Fe(Ae))Je.call(Ae,Be)&&et(be,Be,Ae[Be]);return be},Tt=(be,Ae)=>Ct(be,Pt(Ae));const tn={labelCol:{span:4},wrapperCol:{span:20}};var on=({callback:be,onCancel:Ae})=>{function Be(it){be(it)}return ee.createElement(he.default,Tt(st({},tn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Be,style:{width:500}}),ee.createElement(he.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(_e.default,null)),ee.createElement(he.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(_e.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(ve.ZP,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))},ln=oe(57444),Oe=oe(70859),Ue=oe(14446),nt=oe(71230),Dt=oe(63205),dt=oe(67294),Lt=({callback:be,onCancel:Ae})=>{const Be=document.createElement("canvas"),it=Be.getContext("2d");Be.width=1e3,Be.height=800,it.fillStyle="#ffffff",it.fillRect(0,0,Be.width,Be.height);const _t=Be.toDataURL("image/png");return dt.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},dt.createElement(nt.Z,{style:{height:"100vh"}},dt.createElement(Dt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:_t,visible:!0,title:String(Date.now())},onOk:Wt=>{be({src:Wt.url})},onClose:Ae})))},ce=oe(23495);function ft(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ft,go.CommandHandler),ft.prototype.canAlignSelection=function(){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<2)},ft.prototype.alignLeft=function(){var be=this.diagram;be.startTransaction("aligning left");var Ae=1/0;be.selection.each(function(Be){Be instanceof go.Link||(Ae=Math.min(Be.position.x,Ae))}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Ae,Be.position.y))}),be.commitTransaction("aligning left")},ft.prototype.alignRight=function(){var be=this.diagram;be.startTransaction("aligning right");var Ae=-1/0;be.selection.each(function(Be){if(!(Be instanceof go.Link)){var it=Be.actualBounds.x+Be.actualBounds.width;Ae=Math.max(it,Ae)}}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Ae-Be.actualBounds.width,Be.position.y))}),be.commitTransaction("aligning right")},ft.prototype.alignTop=function(){var be=this.diagram;be.startTransaction("alignTop");var Ae=1/0;be.selection.each(function(Be){Be instanceof go.Link||(Ae=Math.min(Be.position.y,Ae))}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.position.x,Ae))}),be.commitTransaction("alignTop")},ft.prototype.alignBottom=function(){var be=this.diagram;be.startTransaction("aligning bottom");var Ae=-1/0;be.selection.each(function(Be){if(!(Be instanceof go.Link)){var it=Be.actualBounds.y+Be.actualBounds.height;Ae=Math.max(it,Ae)}}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.actualBounds.x,Ae-Be.actualBounds.height))}),be.commitTransaction("aligning bottom")},ft.prototype.alignCenterX=function(){var be=this.diagram,Ae=be.selection.first();if(Ae){be.startTransaction("aligning Center X");var Be=Ae.actualBounds.x+Ae.actualBounds.width/2;be.selection.each(function(it){it instanceof go.Link||it.move(new go.Point(Be-it.actualBounds.width/2,it.actualBounds.y))}),be.commitTransaction("aligning Center X")}},ft.prototype.alignCenterY=function(){var be=this.diagram,Ae=be.selection.first();if(Ae){be.startTransaction("aligning Center Y");var Be=Ae.actualBounds.y+Ae.actualBounds.height/2;be.selection.each(function(it){it instanceof go.Link||it.move(new go.Point(it.actualBounds.x,Be-it.actualBounds.height/2))}),be.commitTransaction("aligning Center Y")}},ft.prototype.alignColumn=function(be){var Ae=this.diagram;Ae.startTransaction("align Column"),be===void 0&&(be=0),be=parseFloat(be);var Be=new Array;Ae.selection.each(function(dn){dn instanceof go.Link||Be.push(dn)});for(var it=0;it<Be.length-1;it++){var _t=Be[it],Wt=_t.actualBounds.y+_t.actualBounds.height+be,bn=Be[it+1];bn.move(new go.Point(_t.actualBounds.x,Wt))}Ae.commitTransaction("align Column")},ft.prototype.alignRow=function(be){be===void 0&&(be=0),be=parseFloat(be);var Ae=this.diagram;Ae.startTransaction("align Row");var Be=new Array;Ae.selection.each(function(dn){dn instanceof go.Link||Be.push(dn)});for(var it=0;it<Be.length-1;it++){var _t=Be[it],Wt=_t.actualBounds.x+_t.actualBounds.width+be,bn=Be[it+1];bn.move(new go.Point(Wt,_t.actualBounds.y))}Ae.commitTransaction("align Row")},ft.prototype.canRotate=function(be){var Ae=this.diagram;return!(Ae===null||Ae.isReadOnly||Ae.isModelReadOnly||Ae.selection.count<1)},ft.prototype.rotate=function(be){be===void 0&&(be=90);var Ae=this.diagram;Ae.startTransaction("rotate "+be.toString());var Ae=this.diagram;Ae.selection.each(function(Be){Be instanceof go.Link||Be instanceof go.Group||(Be.angle+=be)}),Ae.commitTransaction("rotate "+be.toString())},ft.prototype.pullToFront=function(){var be=this.diagram;be.startTransaction("pullToFront");var Ae=new go.Map;be.selection.each(function(Be){Ae.set(Be.layer,0)}),Ae.iteratorKeys.each(function(Be){var it=0;Be.parts.each(function(_t){if(!_t.isSelected){var Wt=_t.zOrder;isNaN(Wt)?_t.zOrder=0:it=Math.max(it,Wt)}}),Ae.set(Be,it)}),be.selection.each(function(Be){ft._assignZOrder(Be,Ae.get(Be.layer)+1)}),be.commitTransaction("pullToFront")},ft.prototype.pushToBack=function(){var be=this.diagram;be.startTransaction("pushToBack");var Ae=new go.Map;be.selection.each(function(Be){Ae.set(Be.layer,0)}),Ae.iteratorKeys.each(function(Be){var it=0;Be.parts.each(function(_t){if(!_t.isSelected){var Wt=_t.zOrder;isNaN(Wt)?_t.zOrder=0:it=Math.min(it,Wt)}}),Ae.set(Be,it)}),be.selection.each(function(Be){ft._assignZOrder(Be,Ae.get(Be.layer)-1-ft._findGroupDepth(Be))}),be.commitTransaction("pushToBack")},ft._assignZOrder=function(be,Ae,Be){Be===void 0&&(Be=be),be.layer===Be.layer&&(be.zOrder=Ae),be instanceof go.Group&&be.memberParts.each(function(it){ft._assignZOrder(it,Ae+1,Be)})},ft._findGroupDepth=function(be){if(be instanceof go.Group){var Ae=0;return be.memberParts.each(function(Be){Ae=Math.max(Ae,ft._findGroupDepth(Be))}),Ae+1}else return 0},ft.prototype.doKeyDown=function(){var be=this.diagram;if(be!==null){var Ae=be.lastInput;if(Ae.key==="Up"||Ae.key==="Down"||Ae.key==="Left"||Ae.key==="Right"){var Be=this.arrowKeyBehavior;if(Be==="none")return;if(Be==="select"){this._arrowKeySelect();return}else if(Be==="move"){this._arrowKeyMove();return}else if(Be==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ft.prototype._getAllParts=function(){var be=new Array;return this.diagram.nodes.each(function(Ae){be.push(Ae)}),this.diagram.parts.each(function(Ae){be.push(Ae)}),be},ft.prototype._arrowKeyMove=function(){var be=this.diagram,Ae=be.lastInput,Be=0,it=0;if(Ae.control||Ae.meta)Be=1,it=1;else if(be.grid!==null){var _t=be.grid.gridCellSize;it=_t.width,Be=_t.height}be.startTransaction("arrowKeyMove"),be.selection.each(function(Wt){Ae.key==="Up"?Wt.move(new go.Point(Wt.actualBounds.x,Wt.actualBounds.y-Be)):Ae.key==="Down"?Wt.move(new go.Point(Wt.actualBounds.x,Wt.actualBounds.y+Be)):Ae.key==="Left"?Wt.move(new go.Point(Wt.actualBounds.x-it,Wt.actualBounds.y)):Ae.key==="Right"&&Wt.move(new go.Point(Wt.actualBounds.x+it,Wt.actualBounds.y))}),be.commitTransaction("arrowKeyMove")},ft.prototype._arrowKeySelect=function(){var be=this.diagram,Ae=be.lastInput,Be=null;Ae.key==="Up"?Be=this._findNearestPartTowards(270):Ae.key==="Down"?Be=this._findNearestPartTowards(90):Ae.key==="Left"?Be=this._findNearestPartTowards(180):Ae.key==="Right"&&(Be=this._findNearestPartTowards(0)),Be!==null&&(Ae.shift?Be.isSelected=!0:Ae.control||Ae.meta?Be.isSelected=!Be.isSelected:be.select(Be))},ft.prototype._findNearestPartTowards=function(be){var Ae=this.diagram.selection.first();if(Ae===null)return null;for(var Be=Ae.actualBounds.center,it=this._getAllParts(),_t=1/0,Wt=Ae,bn=0;bn<it.length;bn++){var dn=it[bn];if(dn!==Ae&&dn.canSelect()){var yn=dn.actualBounds.center,On=Be.directionPoint(yn),jn=this._angleCloseness(On,be);if(jn<=45){var ut=Be.distanceSquaredPoint(yn);ut*=1+Math.sin(jn*Math.PI/180),ut<_t&&(_t=ut,Wt=dn)}}}return Wt},ft.prototype._angleCloseness=function(be,Ae){return Math.min(Math.abs(Ae-be),Math.min(Math.abs(Ae+360-be),Math.abs(Ae-360-be)))},ft.prototype._arrowKeyTree=function(){var be=this.diagram,Ae=be.selection.first();if(Ae instanceof go.Node){var Be=be.lastInput;if(Be.key==="Right"){if(!Ae.isTreeLeaf)if(!Ae.isTreeExpanded)be.commandHandler.canExpandTree(Ae)&&be.commandHandler.expandTree(Ae);else{var it=this._sortTreeChildrenByY(Ae).first();it!==null&&be.select(it)}}else if(Be.key==="Left")if(!Ae.isTreeLeaf&&Ae.isTreeExpanded)be.commandHandler.canCollapseTree(Ae)&&be.commandHandler.collapseTree(Ae);else{var _t=Ae.findTreeParentNode();_t!==null&&be.select(_t)}else if(Be.key==="Up"){var _t=Ae.findTreeParentNode();if(_t!==null){var Wt=this._sortTreeChildrenByY(_t),bn=Wt.indexOf(Ae);if(bn>0){for(var dn=Wt.elt(bn-1);dn!==null&&dn.isTreeExpanded&&!dn.isTreeLeaf;){var yn=this._sortTreeChildrenByY(dn);dn=yn.last()}dn!==null&&be.select(dn)}else be.select(_t)}}else if(Be.key==="Down")if(Ae.isTreeExpanded&&!Ae.isTreeLeaf){var it=this._sortTreeChildrenByY(Ae).first();it!==null&&be.select(it)}else for(;Ae!==null;){var _t=Ae.findTreeParentNode();if(_t===null)break;var Wt=this._sortTreeChildrenByY(_t),bn=Wt.indexOf(Ae);if(bn<Wt.length-1){be.select(Wt.elt(bn+1));break}else Ae=_t}var On=be.selection.first();On!==null&&be.scrollToRect(On.actualBounds)}},ft.prototype._sortTreeChildrenByY=function(be){var Ae=new go.List().addAll(be.findTreeChildrenNodes());return Ae.sort(function(Be,it){var _t=Be.location,Wt=it.location;return _t.y<Wt.y?-1:_t.y>Wt.y?1:_t.x<Wt.x?-1:_t.x>Wt.x?1:0}),Ae},ft.prototype.copyToClipboard=function(be){go.CommandHandler.prototype.copyToClipboard.call(this,be),this._lastPasteOffset.set(this.pasteOffset)},ft.prototype.pasteFromClipboard=function(){var be=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(be,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),be},Object.defineProperty(ft.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(be){if(be!=="move"&&be!=="select"&&be!=="scroll"&&be!=="tree"&&be!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+be);this._arrowKeyBehavior=be}}),Object.defineProperty(ft.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(be){if(!(be instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+be);this._pasteOffset.set(be)}});var Kt=ft,rn=oe(18023),pt=oe(15746),Xe=oe(33170),Te={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ce=oe(67294),we=(be,Ae,Be)=>new Promise((it,_t)=>{var Wt=yn=>{try{dn(Be.next(yn))}catch(On){_t(On)}},bn=yn=>{try{dn(Be.throw(yn))}catch(On){_t(On)}},dn=yn=>yn.done?it(yn.value):Promise.resolve(yn.value).then(Wt,bn);dn((Be=Be.apply(be,Ae)).next())});function ze({onCancel:be,callback:Ae}){let Be=(0,ee.useRef)(),it=(0,ee.useRef)(),_t=(0,ee.useRef)(),Wt=(0,ee.useRef)(!1);const bn=(0,ee.useRef)(!1),[dn,yn]=(0,ee.useState)(0);function On(){const ut=ce.bx.make,Ln={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Be.current=new ce.S0(it.current,{padding:20,grid:ut(ce.s_,"Grid",ut(ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ut(ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:$e=>{var Pe=$e.diagram.commandHandler.addTopLevelParts($e.diagram.selection,!0);Pe||$e.diagram.currentTool.doCancel()},commandHandler:ut(Kt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:$e=>{var Pe=$e.subject;Pe.location=Pe.location.copy().snapToGridPoint($e.diagram.grid.gridOrigin,$e.diagram.grid.gridCellSize),setTimeout(()=>{$e.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:$e=>{var Pe=$e.subject;setTimeout(()=>{$e.diagram.commandHandler.editTextBlock()})},LinkRelinked:$e=>{var Pe=$e.parameter.part;Pe.invalidateConnectedLinks();var ct=$e.subject;$e.diagram.toolManager.linkingTool.isForwards?ct.toNode.invalidateConnectedLinks():ct.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Be.current.nodeTemplate=ut(ce.NB,"Auto",{locationSpot:ce.z6.Center,locationObjectName:"SHAPE",desiredSize:new ce.$u(120,60),minSize:new ce.$u(40,40),resizable:!0,resizeCellSize:new ce.$u(10,10),rotatable:!0},new ce.KX("location","loc",ce.E9.parse).makeTwoWay(ce.E9.stringify),new ce.KX("desiredSize","size",ce.$u.parse).makeTwoWay(ce.$u.stringify),ut(ce.bn,{name:"SHAPE",fill:Ln.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ce.z6.AllSides,toSpot:ce.z6.AllSides},new ce.KX("figure"),new ce.KX("fill"),new ce.KX("stroke","borderColor"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),ut(ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ut(ce.al,{margin:1,textAlign:"center",overflow:ce.al.OverflowEllipsis,editable:!0},new ce.KX("text").makeTwoWay(),new ce.KX("stroke","color"))),Be.current.nodeTemplate.toolTip=ut("ToolTip",ut(ce.s_,"Vertical",{maxSize:new ce.$u(200,NaN)},ut(ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ce.KX("text")),ut(ce.al,{font:"10pt sans-serif",textAlign:"center"},new ce.KX("text","details"))));function ta($e,Pe){var ct=(tt,qt)=>{tt.handled=!0,tt.diagram.model.commit(nn=>{var fn=qt.part.adornedPart,$t=new ce.E9().setRectSpot(fn.actualBounds,$e);$t.subtract(fn.location),$t.scale(2,2),$t.x+=Math.sign($t.x)*130,$t.y+=Math.sign($t.y)*130,$t.add(fn.location),$t.snapToGridPoint(tt.diagram.grid.gridOrigin,tt.diagram.grid.gridCellSize);var Pn=nn.copyNodeData(fn.data);nn.setGroupKeyForNodeData(Pn,nn.getGroupKeyForNodeData(fn.data)),nn.addNodeData(Pn);var Se={from:fn.key,to:nn.getKeyForNodeData(Pn)};nn.addLinkData(Se);var fe=tt.diagram.findNodeForData(Pn);fe.location=$t,tt.diagram.select(fe),setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()},20)})};return ut(ce.bn,{figure:Pe,alignment:$e,alignmentFocus:$e.opposite(),width:$e.equals(ce.z6.Top)||$e.equals(ce.z6.Bottom)?25:18,height:$e.equals(ce.z6.Top)||$e.equals(ce.z6.Bottom)?18:25,fill:"orange",stroke:Ln.white,strokeWidth:4,mouseEnter:(tt,qt)=>qt.fill="dodgerblue",mouseLeave:(tt,qt)=>qt.fill="orange",isActionable:!0,click:ct,contextClick:ct})}function ia($e){return ut(ce.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:(Pe,ct)=>ct.fill="dodgerblue",mouseLeave:(Pe,ct)=>ct.fill="orange",click:(Pe,ct)=>{Pe.diagram.commandHandler.showContextMenu(ct.part.adornedPart)}},$e||{})}Be.current.nodeTemplate.selectionAdornmentTemplate=ut(ce.uz,"Spot",ut(ce.Vm,{padding:10}),ta(ce.z6.Top,"TriangleUp"),ta(ce.z6.Left,"TriangleLeft"),ta(ce.z6.Right,"TriangleRight"),ta(ce.z6.Bottom,"TriangleDown"),ia({alignment:new ce.z6(.75,0)}));function Hn($e,Pe){return(ct,tt)=>{ct.handled=!0,ct.diagram.model.commit(qt=>{qt.set(tt.part.adornedPart.data,$e,Pe)})}}function Tn($e,Pe){return Pe||(Pe="color"),ut(ce.bn,{width:16,height:16,stroke:"lightgray",fill:$e,margin:1,background:"transparent",mouseEnter:(ct,tt)=>tt.stroke="dodgerblue",mouseLeave:(ct,tt)=>tt.stroke="lightgray",click:Hn(Pe,$e),contextClick:Hn(Pe,$e)})}function Sa(){return[ut("ContextMenuButton",ut(ce.s_,"Horizontal",Tn(Ln.white,"fill"),Tn(Ln.beige,"fill"),Tn(Ln.extralightblue,"fill"),Tn(Ln.extralightred,"fill"))),ut("ContextMenuButton",ut(ce.s_,"Horizontal",Tn(Ln.lightgray,"fill"),Tn(Ln.lightgreen,"fill"),Tn(Ln.lightblue,"fill"),Tn(Ln.lightred,"fill")))]}function ga(){return[ut("ContextMenuButton",ut(ce.s_,"Horizontal",Tn(Ln.black),Tn(Ln.green),Tn(Ln.blue),Tn(Ln.red))),ut("ContextMenuButton",ut(ce.s_,"Horizontal",Tn(Ln.white),Tn(Ln.magenta),Tn(Ln.purple),Tn(Ln.orange)))]}function La($e,Pe){return Pe||(Pe="thickness"),ut(ce.bn,"LineH",{width:16,height:16,strokeWidth:$e,margin:1,background:"transparent",mouseEnter:(ct,tt)=>tt.background="dodgerblue",mouseLeave:(ct,tt)=>tt.background="transparent",click:Hn(Pe,$e),contextClick:Hn(Pe,$e)})}function pa($e,Pe){return Pe||(Pe="dash"),ut(ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:$e,margin:1,background:"transparent",mouseEnter:(ct,tt)=>tt.background="dodgerblue",mouseLeave:(ct,tt)=>tt.background="transparent",click:Hn(Pe,$e),contextClick:Hn(Pe,$e)})}function ha(){return[ut("ContextMenuButton",ut(ce.s_,"Horizontal",La(1),La(2),La(3),La(4))),ut("ContextMenuButton",ut(ce.s_,"Horizontal",pa(null),pa([2,4]),pa([4,4])))]}function na($e,Pe){return Pe||(Pe="figure"),ut(ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:$e,margin:1,background:"transparent",mouseEnter:(ct,tt)=>tt.fill="dodgerblue",mouseLeave:(ct,tt)=>tt.fill="lightgray",click:Hn(Pe,$e),contextClick:Hn(Pe,$e)})}Be.current.nodeTemplate.contextMenu=ut("ContextMenu",ut("ContextMenuButton",ut(ce.s_,"Horizontal",na("Rectangle"),na("RoundedRectangle"),na("Ellipse"),na("Diamond"))),ut("ContextMenuButton",ut(ce.s_,"Horizontal",na("Parallelogram2"),na("ManualOperation"),na("Procedure"),na("Cylinder1"))),ut("ContextMenuButton",ut(ce.s_,"Horizontal",na("Terminator"),na("CreateRequest"),na("Document"),na("TriangleDown"))),Sa(),ga(),ha()),Be.current.groupTemplate=ut(ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:($e,Pe)=>{var ct=Pe.addMembers(Pe.diagram.selection,!0);ct||Pe.diagram.currentTool.doCancel()},avoidable:!1},new ce.KX("location","loc",ce.E9.parse).makeTwoWay(ce.E9.stringify),ut(ce.s_,"Auto",{name:"BODY"},ut(ce.bn,{parameter1:10,fill:Ln.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ce.z6.AllSides,toSpot:ce.z6.AllSides},new ce.KX("fill"),new ce.KX("stroke","color"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),ut(ce.Vm,{background:"transparent",margin:20})),ut(ce.al,{alignment:ce.z6.Top,alignmentFocus:ce.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ce.KX("text"),new ce.KX("stroke","color"))),Be.current.groupTemplate.selectionAdornmentTemplate=ut(ce.uz,"Spot",ut(ce.s_,"Auto",ut(ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ut(ce.Vm,{margin:1.5})),ia({alignment:ce.z6.TopRight,alignmentFocus:ce.z6.BottomRight})),Be.current.groupTemplate.contextMenu=ut("ContextMenu",Sa(),ga(),ha()),Be.current.linkTemplate=ut(ce.rU,{layerName:"Foreground",routing:ce.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ce.KX("fromSpot","fromSpot",ce.z6.parse),new ce.KX("toSpot","toSpot",ce.z6.parse),new ce.KX("fromShortLength","dir",$e=>$e>=1?10:0),new ce.KX("toShortLength","dir",$e=>$e>=1?10:0),new ce.KX("points").makeTwoWay(),ut(ce.bn,{strokeWidth:2},new ce.KX("stroke","color"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),ut(ce.bn,{segmentIndex:0,segmentOffset:new ce.E9(15,0),segmentOrientation:ce.rU.OrientAlong,alignmentFocus:ce.z6.Right,figure:"circle",width:10,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",$e=>$e===1)),ut(ce.bn,{segmentIndex:-1,segmentOffset:new ce.E9(-10,6),segmentOrientation:ce.rU.OrientPlus90,alignmentFocus:ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",$e=>$e>=1),new ce.KX("width","thickness",$e=>7+3*$e),new ce.KX("height","thickness",$e=>7+3*$e),new ce.KX("segmentOffset","thickness",$e=>new ce.E9(-15,4+1.5*$e))),ut(ce.bn,{segmentIndex:0,segmentOffset:new ce.E9(15,-6),segmentOrientation:ce.rU.OrientMinus90,alignmentFocus:ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",$e=>$e===2),new ce.KX("width","thickness",$e=>7+3*$e),new ce.KX("height","thickness",$e=>7+3*$e),new ce.KX("segmentOffset","thickness",$e=>new ce.E9(-15,4+1.5*$e))),ut(ce.al,{alignmentFocus:new ce.z6(0,1,-4,0),editable:!0},new ce.KX("text").makeTwoWay(),new ce.KX("stroke","color"))),Be.current.linkTemplate.selectionAdornmentTemplate=ut(ce.uz,ut(ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ba(2)},new ce.KX("pathPattern","thickness",ba)),ia({alignmentFocus:new ce.z6(0,0,-6,-4)}));function ba($e){return ut(ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+($e+4).toString()+" H3"})}function Ie($e){var Pe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return $e===0?Pe="M0 0 M16 16 M0 8 L16 8":$e===2&&(Pe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ut(ce.bn,{geometryString:Pe,margin:2,background:"transparent",mouseEnter:(ct,tt)=>tt.background="dodgerblue",mouseLeave:(ct,tt)=>tt.background="transparent",click:Hn("dir",$e),contextClick:Hn("dir",$e)})}function Me($e){var Pe=(ct,tt)=>{ct.handled=!0,ct.diagram.model.commit(qt=>{var nn=tt.part.adornedPart;qt.set(nn.data,$e?"toSpot":"fromSpot",ce.z6.stringify(ce.z6.AllSides)),($e?nn.toNode:nn.fromNode).invalidateConnectedLinks()})};return ut(ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ct,tt)=>tt.background="dodgerblue",mouseLeave:(ct,tt)=>tt.background="transparent",click:Pe,contextClick:Pe})}function ge($e,Pe){var ct=0,tt=ce.z6.RightSide;$e.equals(ce.z6.Top)?(ct=270,tt=ce.z6.TopSide):$e.equals(ce.z6.Left)?(ct=180,tt=ce.z6.LeftSide):$e.equals(ce.z6.Bottom)&&(ct=90,tt=ce.z6.BottomSide),Pe||(ct-=180);var qt=(nn,fn)=>{nn.handled=!0,nn.diagram.model.commit($t=>{var Pn=fn.part.adornedPart;$t.set(Pn.data,Pe?"toSpot":"fromSpot",ce.z6.stringify(tt)),(Pe?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return ut(ce.bn,{alignment:$e,alignmentFocus:$e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ct,background:"transparent",mouseEnter:(nn,fn)=>fn.background="dodgerblue",mouseLeave:(nn,fn)=>fn.background="transparent",click:qt,contextClick:qt})}Be.current.linkTemplate.contextMenu=ut("ContextMenu",ga(),ha(),ut("ContextMenuButton",ut(ce.s_,"Horizontal",Ie(0),Ie(1),Ie(2))),ut("ContextMenuButton",ut(ce.s_,"Horizontal",ut(ce.s_,"Spot",Me(!1),ge(ce.z6.Top,!1),ge(ce.z6.Left,!1),ge(ce.z6.Right,!1),ge(ce.z6.Bottom,!1)),ut(ce.s_,"Spot",{margin:new ce.Zt(0,0,0,2)},Me(!0),ge(ce.z6.Top,!0),ge(ce.z6.Left,!0),ge(ce.z6.Right,!0),ge(ce.z6.Bottom,!0)))));const lt=`{ "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 hn=["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 $n($e){return console.log("shapeName:",$e),hn.indexOf($e)>=0}var Jt=new ce.YI(_t.current,{maxSelectionCount:1,linkTemplate:ut(ce.rU,{locationSpot:ce.z6.Center,selectionAdornmentTemplate:ut(ce.uz,"Link",{locationSpot:ce.z6.Center},ut(ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ut(ce.bn,{toArrow:"Standard",stroke:null}))},{routing:ce.rU.AvoidsNodes,curve:ce.rU.JumpOver,corner:5,toShortLength:4},new ce.KX("points"),ut(ce.bn,{isPanelMain:!0,strokeWidth:2}),ut(ce.bn,{toArrow:"Standard",stroke:null})),model:new ce.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ce.bn.getFigureGenerators().toArray().map($e=>({text:"\u672A\u547D\u540D",size:"100 100",figure:$e.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Be.current.addDiagramListener("TextEdited",function($e){var Pe;const ct=$e.subject.part;var tt=(Pe=document.activeElement)==null?void 0:Pe.value;typeof tt=="string"&&tt.trim()===""&&Be.current.model.commit(function(qt){qt.set(ct.data,"text","\u672A\u547D\u540D"),Be.current.commandHandler.stopCommand()},"increment")}),Jt.nodeTemplate=ut(ce.NB,"Auto",{locationSpot:ce.z6.Center},new ce.KX("location","location",ce.E9.parse).makeTwoWay(ce.E9.stringify),ut(ce.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 ce.KX("stroke").makeTwoWay(),new ce.KX("fill").makeTwoWay(),new ce.KX("figure")),ut(ce.al,{margin:new ce.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ce.$u(16,16),maxSize:new ce.$u(10,NaN),textAlign:"center",editable:!0},new ce.KX("key").makeTwoWay())),setTimeout(()=>{Be.current.grid=ut(ce.s_,"Grid",ut(ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ut(ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Be.current.grid.visible=!0,Be.current.grid.gridCellStroke="darkgray",Be.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Be.current,Be.current}const jn=()=>we(this,null,function*(){var ut=Be.current.makeImage();const Ln=yield(0,Xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ut.src}});Ae({src:Ln.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{On()},500),yn(dn+1),()=>{Be.current=null}),[]),Ce.createElement("div",{ref:bn,className:Wt.current?`${Te.maxH60} body-overflow-initial`:"body-overflow-initial"},Ce.createElement(Ue.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!dn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ce.createElement(nt.Z,null,Ce.createElement(pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ce.createElement(pt.Z,{onClick:()=>{var ut,Ln,ta=Be.current.selection.first();if(Wt.current=!Wt.current,document.activeElement&&ta){let ia=(Ln=(ut=document.activeElement)==null?void 0:ut.value)==null?void 0:Ln.trim();typeof ia=="string"&&Be.current.model.commit(function(Hn){Hn.set(ta.data,"text",ia||"\u672A\u547D\u540D"),Be.current.commandHandler.stopCommand()},"increment")}yn(dn+1)}},Ce.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:be},Ce.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Te.flowChartWrp},Ce.createElement("div",{style:{display:"flex",height:"100%"}},Ce.createElement("div",{style:{width:"300px",height:"100%"}},Ce.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ce.createElement("div",{style:{height:"calc(100% - 50px)"},className:Te.myPaletteDiv,ref:_t})),Ce.createElement("div",{style:{flex:1,position:"relative"}},Ce.createElement("div",{ref:it,style:{height:"80vh"}}))),Ce.createElement("div",{className:"tr"},Ce.createElement(ve.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ye=ze,mt=oe(78045),Ft=oe(31795);const Ot=mt.ZP.Group,Rt={margin:"0 8px"};var Yt=({callback:be,onCancel:Ae})=>{function Be(it){be(it)}return ee.createElement(he.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Be},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:Rt},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:Rt},"\u884C\u6570"),ee.createElement(he.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Ft.Z,null)),ee.createElement("span",{style:Rt},"\u5217\u6570"),ee.createElement(he.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Ft.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:Rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(he.default.Item,{name:"align"},ee.createElement(Ot,null,ee.createElement(mt.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(mt.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(mt.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(mt.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(ve.ZP,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))},ue=oe(47897),Ee=oe(61016),jt=oe.n(Ee),ye=(0,ee.forwardRef)(({use3d:be,width:Ae,height:Be,callback:it,showSaveButton:_t},Wt)=>{const bn=(0,ee.useRef)(),dn=(0,ee.useRef)(),[yn,On]=(0,ee.useState)(!1),jn=(0,ee.useRef)({id:bn,appName:"graphing",width:Ae||1e3,height:Be||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)(()=>{dn.current=new(jt())(jn.current,!0),window.onload=function(){dn.current.inject("applet_container")}},[]);const ut=()=>{var Ln=window.ggbApplet.getPNGBase64(1,!0,72);return it&&it(Ln),Ln};return(0,ee.useEffect)(()=>{jn.current.appName=yn?"3D":"graphing",dn.current.inject("applet_container")},[yn]),(0,ee.useEffect)(()=>{On(be)},[be]),(0,ee.useImperativeHandle)(Wt,()=>({getImgData:ut})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bn}),ee.createElement(nt.Z,{align:"middle"},ee.createElement(pt.Z,{flex:1},ee.createElement(ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yn,onChange:Ln=>On(Ln)})),ee.createElement(pt.Z,null,ee.createElement(ve.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),gt=oe(36527),qe=oe(25934),Et=oe(2453);const Zt="link",vt="upload-image",wt="add-flowchart",It="draw-image",an="add-flowchart",Vt="code-block",Qt="add-table",pn="------------",cn={default:pn,left:`:${pn}`,center:`:${pn}:`,right:`${pn}:`};var Bn=oe(99914),xn=(be,Ae,Be)=>new Promise((it,_t)=>{var Wt=yn=>{try{dn(Be.next(yn))}catch(On){_t(On)}},bn=yn=>{try{dn(Be.throw(yn))}catch(On){_t(On)}},dn=yn=>yn.done?it(yn.value):Promise.resolve(yn.value).then(Wt,bn);dn((Be=Be.apply(be,Ae)).next())});function Un(){}let qn=0;const _n=1e4,Xn="\u2581",In="@\u2581\u2581@",Gn="@\u2581@",vn=`
|
|
**\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`,ea=["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 Kn(be){return/^\d+$/.test(be)?`${be}px`:be}const Cn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",fa={[Cn+"-B"]:"bold",[Cn+"-I"]:"italic"},Yn={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[Vt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[vt]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Qt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var la=({defaultValue:be="",onChange:Ae,width:Be="100%",height:it=400,miniToolbar:_t=!1,isFocus:Wt=!1,watch:bn,insertTemp:dn,mode:yn="markdown",id:On="markdown-editor-id",showResizeBar:jn=!1,noStorage:ut=!1,showNullButton:Ln=!1,showNullProgramButton:ta=!1,hidetoolBar:ia=!1,fullScreen:Hn=!1,onBlur:Tn,onCMBeforeChange:Sa,onFullScreen:ga,className:La="",disablePaste:pa=!1,disabled:ha=!1,disabledFill:na=!1,placeholder:ba="",values:Ie="",extraUse:Me})=>{const[ge,lt]=(0,ee.useState)(null),[hn,$n]=(0,ee.useState)(be),[Jt,$e]=(0,ee.useState)(bn),[Pe,ct]=(0,ee.useState)(Hn),[tt,qt]=(0,ee.useState)(""),[nn,fn]=(0,ee.useState)(0),[$t,Pn]=(0,ee.useState)(it),[Se,fe]=(0,ee.useState)(!1),Ne=(0,ee.useRef)((0,qe.Z)()),De=(0,ee.useRef)(!1),Ke=(0,ee.useRef)(),[yt,xt]=(0,ee.useState)(0),[At,Nt]=(0,ee.useState)(0),Mt=(0,ee.useRef)(),bt=(0,ee.useRef)(),gn=(0,ee.useRef)(),Gt=(0,ee.useRef)(),St=()=>xn(void 0,null,function*(){var kt;const ht=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ne.current}});(kt=ht==null?void 0:ht.attachments)!=null&&kt.length&&(console.log("cm:",ge,Mt),ht.attachments.map(Bt=>{Bt.content_type.indexOf("image")>-1?ge.replaceSelection(``):Bt.content_type.indexOf("video")>-1?ge.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Bt.content_type.indexOf("pdf")>-1?ge.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Bt.id}?type=${Bt.content_type}&disposition=inline" target="_blank">${Bt.name}</a>`):ge.replaceSelection(`[${Bt.name}](${ENV.API_SERVER}/api/attachments/${Bt.id}?type=${Bt.content_type})`)}))});(0,ee.useEffect)(()=>{const kt=window.scrollY||window.pageYOffset;$n(Ie),ge==null||ge.setValue(Ie),window.scrollTo(0,kt)},[Ie]),(0,ee.useEffect)(()=>{ga==null||ga(Pe)},[Pe]),(0,ee.useEffect)(()=>{if(Mt.current){let kt=function(Bt,zt){var wn;if(pa){zt.preventDefault();return}const Mn=zt.clipboardData;if(Mn){const Qn=Mn.types.toString(),Rn=Mn.items;if(Qn==="Files"||Mn.types.indexOf("Files")>-1){if(zt.preventDefault(),yn=="stex")return;try{let zn=Rn[1];((wn=Rn[0])==null?void 0:wn.kind)==="file"&&(zn=Rn[0]);const Dn=zn.getAsFile(),aa=Dn.name.split(".").pop();(0,Oe.I)(Dn,Jn=>{var wa,xa,Ea;Jn.id?((wa=Dn==null?void 0:Dn.type)==null?void 0:wa.indexOf("image"))>-1?ht.replaceSelection(`<img width="100%" src="/api/attachments/${Jn.id}?type=${Jn.content_type})" alt="" />`):((xa=Dn==null?void 0:Dn.type)==null?void 0:xa.indexOf("video"))>-1?ht.replaceSelection(`<video width="100%" controls src="/api/attachments/${Jn.id}"></video>`):((Ea=Dn==null?void 0:Dn.type)==null?void 0:Ea.indexOf("pdf"))>-1?ht.replaceSelection(`<a href="/api/attachments/${Jn.id}?type=${Dn.type}&disposition=inline" target="_blank">${Dn.name}</a>`):ea.includes(aa)?ht.replaceSelection(`<a href="/api/attachments/${Jn.id}?type=office&disposition=inline" target="_blank">${Dn.name}</a>`):ht.replaceSelection(`[${Dn.name}](/api/attachments/${Jn.id}?type=${Jn.content_type})`):(Jn==null?void 0:Jn.status)===401&&(Et.ZP.warning((Jn==null?void 0:Jn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(zn){Et.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ht=We().fromTextArea(Mt.current,{mode:yn,lineNumbers:!_t,lineWrapping:!0,value:be,autoCloseTags:!ta,autoCloseBrackets:!0});return ht.on("keyup",function(Bt,zt){zt.keyCode===8&&(Bt.getValue()==""?ht.setOption("placeholder",ba):ht.setOption("placeholder",null))}),ht.on("keydown",function(Bt,zt){if(zt.keyCode===8){var wn=Ut(Bt);wn&&zt.preventDefault()}}),Wt&&ht.focus(),ht.on("paste",kt),ht.on("dragleave",function(Bt,zt){bt.current.classList.remove("mouse-hover-md")}),ha&&ht.on("beforeChange",function(Bt,zt){(zt.origin==="paste"||zt.origin==="+input")&&zt.cancel()}),lt(ht),()=>{ht.off("paste",kt)}}},[]);const Ht=(0,ee.useCallback)(()=>{if(bt.current)try{}catch(kt){console.log(kt,"---- to set md editor body height")}},[$t,bt,Pe]);(0,ee.useEffect)(()=>{function kt(){let ht=new je.Z(Bt=>{for(let zt of Bt)(zt.target.offsetHeight>0||zt.target.offsetWidth>0)&&(Ht(),ge.setSize("100%","100%"),ge.refresh())});return ht.observe(Mt.current.parentElement),ht}if(ge){const ht=kt();return()=>{var Bt,zt;(Bt=Mt.current)!=null&&Bt.parentElement&&ht.unobserve((zt=Mt.current)==null?void 0:zt.parentElement)}}},[ge,Ht]),(0,ee.useEffect)(()=>{if(ge){let kt=[];for(const[ht,Bt]of Object.entries(fa)){let zt={[ht]:()=>{En(Bt)}};kt.push(zt),ge.addKeyMap(zt)}return Ke.current=setInterval(()=>{De.current&&St()},4e3),()=>{clearInterval(Ke.current);for(let ht of kt)ge.removeKeyMap(ht)}}},[ge]),(0,ee.useEffect)(()=>{Hn!==Pe&&ct(Hn)},[Hn]),(0,Bn.Z)(()=>{if(!ut&&nn>0){let kt=new Date().getTime(),ht=window.sessionStorage.getItem(On);kt>=nn+_n&&(!ht||ht!==hn)&&(window.sessionStorage.setItem(On,hn),fe(!0))}},_n),(0,ee.useEffect)(()=>{$e(bn)},[ge,bn]),(0,ee.useEffect)(()=>{ge&&Wt&&ge.focus()},[ge,Wt]),(0,ee.useEffect)(()=>{if(Jt&&ge){let kt=function(Bt){let zt=Bt.target;if(Gt.current){let wn=zt.scrollTop/zt.scrollHeight;Gt.current.scrollTop=Gt.current.scrollHeight*wn}};const ht=ge.getScrollerElement();return ht.addEventListener("scroll",kt),()=>{ht.removeEventListener("scroll",kt)}}},[ge,Jt]),(0,ee.useEffect)(()=>{if(ge&&Sa){let kt=function(ht,Bt){Sa(ht,Bt)};return ge.on("beforeChange",kt),()=>{ge.off("beforeChange",kt)}}},[ge,Sa]),(0,ee.useEffect)(()=>{if(ge&&Tn){let kt=function(){Tn(ge.getValue())};return ge.on("blur",kt),()=>{ge.off("blur",kt)}}},[ge,Tn]);function Ut(kt,ht){var Bt=kt.getDoc(),zt=Bt.getCursor(),wn=Bt.getLine(zt.line),Mn=wn.charAt(zt.ch-1),Qn=wn.lastIndexOf("@\u2581@",zt.ch),Rn=wn.lastIndexOf("@\u2581\u2581@",zt.ch),zn=Qn>Rn?Qn:Rn,Dn=Qn>Rn?3:4;if(In.indexOf(Mn)===-1)return null;if(console.log("change1:",ht,kt,wn,zt,zn,Qn,Rn,Mn),zn>=0&&zt.ch-zn<5){var aa=zn+Dn;return Bt.replaceRange("",{line:zt.line,ch:zn},{line:zt.line,ch:aa}),{line:zt.line,ch:aa}}return null}(0,ee.useEffect)(()=>{if(ge){let kt=function(ht,Bt){const zt=ht.getValue();$n(zt),fn(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ae&&(ta?Ae(zt,Vn(zt)):Ae(zt))};return ge.on("change",kt),()=>{ge.off("change",kt)}}},[ge,Ae]),(0,ee.useEffect)(()=>{if(ge)if(be==null)ge.setValue(""),$n("");else{const kt=window.scrollY||window.pageYOffset;be!==ge.getValue()&&(ge.setValue(be),$n(be),ge.setCursor(ha?1:ge.lineCount(),0),window.scrollTo(0,kt))}},[ge,be]);const En=(0,ee.useCallback)(kt=>{const ht=ge.getCursor(),Bt=ge.getSelection();let zt=Bt.split(`
|
|
`);switch(kt){case"bold":return ge.replaceSelection("**"+Bt+"**"),Bt===""&&ge.setCursor(ht.line,ht.ch+2),ge.focus();case"italic":return ge.replaceSelection("*"+Bt+"*"),Bt===""&&ge.setCursor(ht.line,ht.ch+1),ge.focus();case"code":return ge.replaceSelection("`"+Bt+"`"),Bt===""&&ge.setCursor(ht.line,ht.ch+1),ge.focus();case"inline-latex":return qt("inline-latex"),ge.focus();case"latex":return ge.replaceSelection("```latex\n"+Bt+"\n```"),ge.setCursor(ht.line+1,Bt.length+1),ge.focus();case"line-break":return ge.replaceSelection(`<br/>
|
|
`),ge.focus();case"list-ul":return Bt===""?ge.replaceSelection("- "+Bt):ge.replaceSelection(zt.map(wn=>wn===""?"":`- ${wn}`).join(`
|
|
`)),ge.focus();case"list-ol":return Bt===""?ge.replaceSelection("1. "+Bt):ge.replaceSelection(zt.map((wn,Mn)=>wn===""?"":`${Mn+1}. ${wn}`).join(`
|
|
`)),ge.focus();case"add-null-ch":return Bt===""&&ge.setCursor(ht.line,ht.ch),ge.replaceSelection(Xn),ge.focus();case"add-signal":return Bt===""&&ge.setCursor(ht.line,ht.ch),ge.replaceSelection(Gn),ge.focus();case"add-multiple":return Bt===""&&ge.setCursor(ht.line,ht.ch),ge.replaceSelection(In),ge.focus();case"inster-template-1":return Bt===""&&ge.setCursor(ht.line,ht.ch),ge.replaceSelection(vn),ge.focus();case"eraser":return ge.setValue(""),ge.focus();case"trigger-watch":return $e(!Jt),ge.focus();case"trigger-full-screen":return ct(!Pe),ge.focus();case Zt:qt(Zt);return;case Vt:qt(Vt);return;case vt:qt(vt);return;case It:qt(It);return;case"maths-latex":qt("maths-latex");return;case wt:qt(wt);return;case Qt:qt(Qt);return;default:throw new Error}},[ge,Jt,Pe]),mn=(0,ee.useCallback)((kt,ht)=>{var Bt,zt,wn,Mn,Qn,Rn;switch(qt(""),tt){case Zt:const{title:wa,link:xa}=kt;return ge.replaceSelection(`[${wa}](${xa})`),ge.focus();case Vt:const{language:Ea,content:$a}=kt;return ge.replaceSelection(["```"+Ea,$a,"```"].join(`
|
|
`)),ge.focus();case"maths-latex":for(var zn=atob(kt),Dn=new Uint8Array(zn.length),aa=0;aa<zn.length;aa++)Dn[aa]=zn.charCodeAt(aa);var Jn=new Blob([Dn],{type:"image/png"});(0,Oe.I)(Jn,ua=>{ua.id?ge.replaceSelection(``):(ua==null?void 0:ua.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ge.replaceSelection("`$$"+kt+"$$`");break;case vt:case It:case an:const{src:sa,alt:Wn}=kt,An=ht,ca=(wn=(zt=(Bt=An==null?void 0:An.name)==null?void 0:Bt.split("."))==null?void 0:zt.pop)==null?void 0:wn.call(zt);return((Mn=An==null?void 0:An.type)==null?void 0:Mn.indexOf("image"))>-1||!(An!=null&&An.type)?An.align||An.width?ge.replaceSelection(`<p style="text-align:${An.align||"initial"}"><img width="${An.width?An.width+"%":"initial"}" src="${sa}" alt="${Wn||""}" /></p>`):ge.replaceSelection(`<img width="100%" src="${sa}" alt="${Wn||""}" />`):((Qn=An==null?void 0:An.type)==null?void 0:Qn.indexOf("video"))>-1?ge.replaceSelection(`<video width="100%" controls src="${sa}"></video>`):((Rn=An==null?void 0:An.type)==null?void 0:Rn.indexOf("pdf"))>-1?ge.replaceSelection(`<a href="${sa}?type=${An.type}&disposition=inline" target="_blank">${An.name}</a>`):ea.includes(ca)?ge.replaceSelection(`<a href="${sa}?type=office&disposition=inline" target="_blank">${An.name}</a>`):ge.replaceSelection(`[${An.name}](${sa})`),ge.focus();case Qt:const{row:Ma,col:Ca,align:Ba}=kt;let ra=`
|
|
`;for(let ua=0;ua<Ma;ua++){let Aa=[],Fa=[];for(let kn=0;kn<Ca;kn++)ua===1&&Fa.push(cn[Ba]),Aa.push(" ");ua===1&&(ra+=`| ${Fa.join(" | ")} |
|
|
`),ra+=`| ${Aa.join(Ca===1?"":" | ")} |
|
|
`}return ge.replaceSelection(ra+`
|
|
`),ge.focus();default:throw new Error}},[ge,tt]),sn=(0,ee.useMemo)(()=>{switch(tt){case Zt:return ee.createElement(on,{callback:mn,onCancel:un});case Vt:return ee.createElement(ln.Z,{callback:mn,onCancel:un});case vt:return ee.createElement(Oe.Z,{callback:mn,onCancel:un});case wt:return ee.createElement(Ye,{callback:mn,onCancel:un});case Qt:return ee.createElement(Yt,{callback:mn,onCancel:un});case"maths-latex":return ee.createElement(ye,{showSaveButton:!0,callback:mn});case"inline-latex":return ee.createElement(gt.Z,{showSaveButton:!0,callback:mn});default:return null}},[tt]);function un(){qt("")}(0,ee.useEffect)(()=>{if(gn.current){let kt=function(Qn){wn=!0,Mn=Qn.pageY},ht=function(){wn=!1},Bt=function(Qn){if(wn){let Rn=Qn.pageY-Mn;Rn<0&&(Rn=0),Rn>300&&(Rn=300);let zn=it+Rn+"px";Pn(zn)}},zt=gn.current,wn=!1,Mn=0;return zt.addEventListener("mousedown",kt),document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",ht),()=>{zt.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",ht)}}},[ge,gn]),(0,ee.useEffect)(()=>{Pn(it)},[it]);const Xt=Kn(Be),en=Kn($t),Sn={width:Xt,height:en},Zn=(0,ee.useMemo)(()=>{if(nn){let kt=new Date(nn),ht=kt.getHours(),Bt=kt.getMinutes(),zt=kt.getSeconds();return ht=ht<10?"0"+ht:ht,Bt=Bt<10?"0"+Bt:Bt,zt=zt<10?"0"+zt:zt,`${ht}:${Bt}:${zt}`}return 0},[nn]),Vn=kt=>{const ht=[];if(ta){let Bt=-1;kt=kt.replace(/(@▁▁@|@▁@)/g,function(zt,wn,Mn){ht.push({multiLine:zt!==Gn})})}return ht};function da(){window.sessionStorage.removeItem(On),fe(!1),fn(0)}function va(){fe(!1),fn(0),ge.setValue(window.sessionStorage.getItem(On))}(0,ee.useEffect)(()=>{Yn[tt]&&tt!==It&&tt!==wt&&setTimeout(()=>{const kt=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth/2-kt.offsetWidth/2,Bt=window.innerHeight/2-kt.offsetHeight/2;xt(ht),Nt(Bt)},0)},[tt]);const Pa=kt=>{kt.preventDefault();const ht=kt.clientX-yt,Bt=kt.clientY-At;document.body.onmousemove=zt=>{let wn=zt.clientX-ht,Mn=zt.clientY-Bt;const Qn=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth-Qn.offsetWidth,zn=window.innerHeight-Qn.offsetHeight;wn=Math.max(0,Math.min(wn,Rn)),Mn=Math.max(0,Math.min(Mn,zn)),ma(zt.clientX,zt.clientY,ht,Bt)&&(xt(wn),Nt(Mn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ma=(kt,ht,Bt,zt)=>{const wn=document.body.clientHeight,Mn=document.body.clientWidth;return kt<20&&Bt>kt||kt>Mn-20&&Bt<kt||ht<20&&zt>ht||ht>wn-20&&zt<ht?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:bt},ee.createElement("div",{className:`markdown-editor-container ${La} ${Jt?"on-preview":""} ${_t?"mini":""} ${Pe?"full-screen":""}`,style:Sn},ee.createElement(le,{insertTemp:dn,watch:Jt,fullScreen:Pe,showNullButton:Ln,showNullProgramButton:ta,onActionCallback:En,hidetoolBar:ia,extraUse:Me}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:Mt,placeholder:ba})),Jt?ee.createElement("div",{ref:Gt,className:"preview-container"},yn==="stex"&&ee.createElement(Re,{value:hn}),yn!=="stex"&&ee.createElement(Ze.Z,{disabledFill:na,showProgramFill:ta,value:hn})):null))),jn?ee.createElement("a",{ref:gn,className:"editor-resize"}):null,tt===It&&ee.createElement(Lt,{callback:mn,onCancel:un}),tt===wt&&ee.createElement(Ye,{callback:mn,onCancel:un}),ee.createElement(pe.Z,null,Yn[tt]&&tt!==It&&tt!==wt?ee.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yt,top:At},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:Pa},Yn[tt]),open:!0,onCancel:un,footer:null,destroyOnClose:!0,width:tt===wt?"1200px":null,height:tt===wt?"80vh":null,className:"markdown-popup-form"},sn):null))}},70859:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ie},I:function(){return pe}});var ee=oe(22150),se=oe(2453),We=oe(69677),je=oe(93421),de=oe(31795),Le=oe(78045),me=oe(71577),Ve=oe(15476),Ge=oe(67294),He=oe(52262),Ze=oe(67294),Re=Object.defineProperty,xe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(he,_e,ve)=>_e in he?Re(he,_e,{enumerable:!0,configurable:!0,writable:!0,value:ve}):he[_e]=ve,x=(he,_e)=>{for(var ve in _e||(_e={}))y.call(_e,ve)&&b(he,ve,_e[ve]);if(a)for(var ve of a(_e))E.call(_e,ve)&&b(he,ve,_e[ve]);return he},z=(he,_e)=>xe(he,ae(_e));const{useForm:te}=ee.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:he,onCancel:_e})=>{const[ve]=te();let rt=(0,Ge.useRef)();function Ct(Qe){rt.current.width=ve.getFieldValue("width"),rt.current.align=ve.getFieldValue("align"),he(Qe,rt.current)}function Pt(Qe,Je){if(Qe.status===-1){se.ZP.error(Qe.message);return}ve.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:Je.type})}function Fe(Qe){let Je=Qe.target.files[0];rt.current=Je,pe(Je,Pt)}return Ze.createElement(ee.default,z(x({form:ve},re),{className:"upload-image-panel",onFinish:Ct,style:{width:470,overflow:"hidden"}}),Ze.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ze.createElement("div",{className:"flex-container"},Ze.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ze.createElement(We.default,{style:ne})),Ze.createElement(le,{onFileChange:Fe}))),Ze.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ze.createElement(We.default,{style:{width:264}})),Ze.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ze.createElement(je.Z,null,Ze.createElement(ee.default.Item,{name:"width",style:{margin:0}},Ze.createElement(de.Z,{style:{width:264}})),Ze.createElement("span",{className:"ml8"},"%"))),Ze.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ze.createElement(Le.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"}]})),Ze.createElement("aside",null,Ze.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ze.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(me.ZP,{type:"default",onClick:_e},"\u53D6\u6D88"))))};function le({onFileChange:he}){return Ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ze.createElement("input",{type:"file",onChange:he}))}function pe(he,_e){if(!he)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,He.bg)())throw se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ve=new FormData;ve.append("editormd-image-file",he),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(Ct){_e(JSON.parse(Ct.target.responseText),he)},!1),rt.addEventListener("error",function(Ct){console.error(Ct)},!1),rt.open("POST",`${Ve.KI}/api/attachments.json`),rt.send(ve)}},76621:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return We}});var ee=oe(67294),se=oe(73935);class We extends ee.Component{constructor(de){super(de);const Le=window.document;this.node=Le.createElement("div"),Le.body.appendChild(this.node)}render(){const{children:de}=this.props;return(0,se.createPortal)(de,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return se}});var ee=oe(67294);function se(We,je){const de=(0,ee.useRef)();(0,ee.useEffect)(()=>{de.current=We}),(0,ee.useEffect)(()=>{function Le(){de.current()}if(je!==null){let me=setInterval(Le,je);return()=>clearInterval(me)}},[je])}},79061:function(ke,ot,oe){"use strict";oe.r(ot),oe.d(ot,{default:function(){return ba}});var ee=oe(67294),se=oe(35973),We=oe(68508),je=oe(97183),de=oe(22150),Le=oe(2453),me=oe(96074),Ve=oe(85673),Ge=oe(71230),He=oe(15746),Ze=oe(83062),Re=oe(69677),xe=oe(71577),ae=oe(40043),a=oe(32027),y=oe(14446),E=oe(84567),b=oe(31795),x=oe(15835),z=oe(35567),te=oe(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,ie=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,he=(Ie,Me,ge)=>Me in Ie?re(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,_e=(Ie,Me)=>{for(var ge in Me||(Me={}))le.call(Me,ge)&&he(Ie,ge,Me[ge]);if(ie)for(var ge of ie(Me))pe.call(Me,ge)&&he(Ie,ge,Me[ge]);return Ie},ve=(Ie,Me)=>{var ge={};for(var lt in Ie)le.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&ie)for(var lt of ie(Ie))Me.indexOf(lt)<0&&pe.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},rt=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const Ct=["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"],Pt=(Ie,Me)=>{var ge=Ie,{problemset:lt,globalSetting:hn,loading:$n,dispatch:Jt,onRef:$e=()=>{},editData:Pe}=ge,ct=ve(ge,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[tt,qt]=(0,ee.useState)([]),[nn,fn]=(0,ee.useState)(),[$t,Pn]=(0,ee.useState)([]),[Se,fe]=(0,ee.useState)(""),[Ne,De]=(0,ee.useState)(5),[Ke,yt]=(0,ee.useState)(!1),xt=(0,se.useParams)();(0,ee.useEffect)(()=>{qt(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){yt(!0);return}fe(Pe==null?void 0:Pe.question_title),De(parseInt(Pe==null?void 0:Pe.question_score)),qt(Pe==null?void 0:Pe.question_choices.map(St=>St.choice_text));const Gt=[];Pe==null||Pe.standard_answer.map((St,Ht)=>{Gt.push(St-1)}),Pn(Gt)},[Pe]),(0,ee.useImperativeHandle)(Me,()=>({onSave:At,isEdit:Ke}));const At=()=>rt(void 0,null,function*(){if(!Se)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Gt=tt.findIndex(Ut=>!Ut);if(Gt>-1)return Le.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ct[Gt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!$t.length)return Le.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($t.length<1)return Le.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const St=tt.map((Ut,En)=>({choice_text:Ut,is_answer:$t.includes(En)?En+1:0}));let Ht;Pe.question_id?Ht=yield Jt({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Se,question_type:1,question_score:"5.0",question_choices:St.map(Ut=>Ut.choice_text),standard_answers:St.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}}):Ht=yield Jt({type:"exercise/addExerciseQuestion",payload:{categoryId:xt.categoryId,question_title:Se,question_type:1,question_score:"5.0",question_choices:St.map(Ut=>Ut.choice_text),standard_answers:St.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}}),Ht.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),yt(!1),Jt({type:"exercise/editExercise",payload:_e({},xt)}))}),Nt=[{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=Gt=>rt(void 0,null,function*(){switch(Gt.id){case"del":let St;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return rt(this,null,function*(){yield(0,x.Fl)({id:Pe.question_id}),Jt({type:"exercise/editExercise",payload:_e({},xt)})})}});break;case"up":case"down":yield Jt({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:Gt.id}}),Jt({type:"exercise/editExercise",payload:_e({},xt)});break;case"edit":yt(!0);break}}),bt=()=>{var Gt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&Nt.map(function(St,Ht){return St.id==="up"&&Pe.key===1||St.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:Ht,placement:"bottom",title:St.name},ee.createElement("span",{onClick:()=>Mt(St),className:St.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:Pe.question_title})),ee.createElement("div",{className:ne.questionChoices},(Gt=Pe==null?void 0:Pe.question_choices)==null?void 0:Gt.map(function(St,Ht){return ee.createElement(Ge.Z,null,ee.createElement(He.Z,null,ee.createElement(E.default,{key:Ht,checked:Pe.standard_answer.includes(Ht+1),disabled:!0},Ct[Ht],".")),ee.createElement(He.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:St.choice_text}))))})))},gn=()=>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:Se,onChange:Gt=>fe(Gt)}),tt.map((Gt,St)=>ee.createElement("div",{className:ne.choiceWrap,key:St},ee.createElement(Ze.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${$t.includes(St)?ne.activeAnswer:""}`,onClick:()=>{$t.includes(St)?Pn($t.filter(Ht=>Ht!==St)):Pn([...$t,St])}},Ct[St])),ee.createElement("div",{className:ne.editorWrap},nn===St?ee.createElement(z.Z,{id:`single-question-option-${St}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Gt,onChange:Ht=>{tt[St]=Ht,qt(tt)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>fn(St)},ee.createElement(te.Z,{value:Gt}))),St>1&&ee.createElement(Ze.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>qt(tt.filter((Ht,Ut)=>Ut!==St))})),St<7&&St===tt.length-1&&ee.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>qt([...tt,""])})))),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:Ne,max:1e4,min:-1,onChange:Gt=>{De(Gt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>yt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>At()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!Ke&&bt(),Ke&&gn())};var Fe=(0,se.connect)(({problemset:Ie,loading:Me,globalSetting:ge})=>({problemset:Ie,globalSetting:ge,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Pt)),Qe=oe(78045),Je=Object.defineProperty,et=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,tn=(Ie,Me,ge)=>Me in Ie?Je(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,on=(Ie,Me)=>{for(var ge in Me||(Me={}))st.call(Me,ge)&&tn(Ie,ge,Me[ge]);if(et)for(var ge of et(Me))Tt.call(Me,ge)&&tn(Ie,ge,Me[ge]);return Ie},ln=(Ie,Me)=>{var ge={};for(var lt in Ie)st.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&et)for(var lt of et(Ie))Me.indexOf(lt)<0&&Tt.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},Oe=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const Ue=["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"],nt=(Ie,Me)=>{var ge=Ie,{problemset:lt,globalSetting:hn,loading:$n,dispatch:Jt,onRef:$e=()=>{},editData:Pe}=ge,ct=ln(ge,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[tt,qt]=(0,ee.useState)([]),[nn,fn]=(0,ee.useState)(),[$t,Pn]=(0,ee.useState)([]),[Se,fe]=(0,ee.useState)(""),[Ne,De]=(0,ee.useState)(0),[Ke,yt]=(0,ee.useState)(!1),xt=(0,se.useParams)();(0,ee.useEffect)(()=>{qt(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){yt(!0);return}fe(Pe==null?void 0:Pe.question_title),De(parseInt(Pe==null?void 0:Pe.question_score)),qt(Pe==null?void 0:Pe.question_choices.map(St=>St.choice_text));const Gt=[];Pe==null||Pe.standard_answer.map((St,Ht)=>{Gt.push(St-1)}),Pn(Gt)},[Pe]),(0,ee.useImperativeHandle)(Me,()=>({onSave:At,isEdit:Ke}));const At=()=>Oe(void 0,null,function*(){if(!Se)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Gt=tt.findIndex(Ut=>!Ut);if(Gt>-1)return Le.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ue[Gt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!$t.length)return Le.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($t.length<1)return Le.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const St=tt.map((Ut,En)=>({choice_text:Ut,is_answer:$t.includes(En)?En+1:0}));let Ht;Pe.question_id?Ht=yield(0,a.Kc)({id:Pe.question_id,question_title:Se,question_type:1,question_score:Ne,question_choices:St.map(Ut=>Ut.choice_text),standard_answers:St.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}):Ht=yield(0,a.iV)({exercise_bank_id:xt.topicId,question_title:Se,question_type:1,question_score:"5.0",question_choices:St.map(Ut=>Ut.choice_text),standard_answers:St.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}),Ht.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),yt(!1)),yield Jt({type:"polls/getExerciseBanks",payload:on({},xt)})}),Nt=[{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=Gt=>Oe(void 0,null,function*(){switch(Gt.id){case"del":let St;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Oe(this,null,function*(){yield(0,a.x$)({pollsId:Pe.question_id}),Jt({type:"polls/getExerciseBanks",payload:on({},xt)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Pe==null?void 0:Pe.question_id,opr:Gt.id}),Jt({type:"polls/getExerciseBanks",payload:on({},xt)});break;case"edit":yt(!0);break}}),bt=()=>{var Gt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&Nt.map(function(St,Ht){return St.id==="up"&&Pe.key===1||St.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:Ht,placement:"bottom",title:St.name},ee.createElement("span",{onClick:()=>Mt(St),className:St.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:Pe.question_title})),ee.createElement("div",{className:ne.questionChoices},(Gt=Pe==null?void 0:Pe.question_choices)==null?void 0:Gt.map(function(St,Ht){return ee.createElement(Ge.Z,null,ee.createElement(He.Z,null,ee.createElement(Qe.ZP,{key:Ht,checked:Pe.standard_answer.includes(Ht+1),disabled:!0},Ue[Ht],".")),ee.createElement(He.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:St.choice_text}))))})))},gn=()=>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:Se,onChange:Gt=>fe(Gt)}),tt.map((Gt,St)=>ee.createElement("div",{className:ne.choiceWrap,key:St},ee.createElement(Ze.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${$t.includes(St)?ne.activeAnswer:""}`,onClick:()=>{$t.includes(St)?Pn($t.filter(Ht=>Ht!==St)):Pn([...$t,St])}},Ue[St])),ee.createElement("div",{className:ne.editorWrap},nn===St?ee.createElement(z.Z,{id:`single-question-option-${St}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Gt,onChange:Ht=>{tt[St]=Ht,qt(tt)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>fn(St)},ee.createElement(te.Z,{value:Gt}))),St>1&&ee.createElement(Ze.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>qt(tt.filter((Ht,Ut)=>Ut!==St))})),St<7&&St===tt.length-1&&ee.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>qt([...tt,""])})))),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:Ne,max:1e4,min:-1,onChange:Gt=>{De(Gt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>yt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>At()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!Ke&&bt(),Ke&&gn())};var Dt=(0,se.connect)(({problemset:Ie,loading:Me,globalSetting:ge})=>({problemset:Ie,globalSetting:ge,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(nt)),dt=Object.defineProperty,Lt=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Kt=(Ie,Me,ge)=>Me in Ie?dt(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,rn=(Ie,Me)=>{for(var ge in Me||(Me={}))ce.call(Me,ge)&&Kt(Ie,ge,Me[ge]);if(Lt)for(var ge of Lt(Me))ft.call(Me,ge)&&Kt(Ie,ge,Me[ge]);return Ie},pt=(Ie,Me)=>{var ge={};for(var lt in Ie)ce.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&Lt)for(var lt of Lt(Ie))Me.indexOf(lt)<0&&ft.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},Xe=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const Te=["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"],Ce=(Ie,Me)=>{var ge=Ie,{problemset:lt,globalSetting:hn,loading:$n,dispatch:Jt,onRef:$e=()=>{},editData:Pe}=ge,ct=pt(ge,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[tt,qt]=(0,ee.useState)(),[nn,fn]=(0,ee.useState)(""),[$t,Pn]=(0,ee.useState)(!1),[Se,fe]=(0,ee.useState)(5),Ne=(0,se.useParams)();(0,ee.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){Pn(!0);return}fn(Pe==null?void 0:Pe.question_title),fe(Pe==null?void 0:Pe.question_score),qt(Pe.standard_answer[0]+"")},[Pe]),(0,ee.useImperativeHandle)(Me,()=>({onSave:De,isEdit:$t}));const De=()=>Xe(void 0,null,function*(){if(!nn)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!tt)return Le.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Nt=[{choice_text:"\u6B63\u786E",is_answer:tt==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:tt==="2"?2:0}];let Mt;return Pe.question_id?Mt=yield(0,a.Kc)({id:Pe.question_id,question_title:nn,question_type:2,question_score:Se,question_choices:Nt.map(bt=>bt.choice_text),standard_answers:Nt.filter(bt=>bt.is_answer).map(bt=>bt.is_answer)}):Mt=yield(0,a.iV)({exercise_bank_id:Ne.topicId,question_title:nn,question_type:2,question_score:Se,question_choices:Nt.map(bt=>bt.choice_text),standard_answers:Nt.filter(bt=>bt.is_answer).map(bt=>bt.is_answer)}),Mt.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),Pn(!1)),Jt({type:"polls/getExerciseBanks",payload:rn({},Ne)}),{name:nn,choices:Nt}}),Ke=[{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"}],yt=Nt=>Xe(void 0,null,function*(){switch(Nt.id){case"del":let Mt;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Xe(this,null,function*(){yield(0,a.x$)({pollsId:Pe.question_id}),Jt({type:"polls/getExerciseBanks",payload:rn({},Ne)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Pe==null?void 0:Pe.question_id,opr:Nt.id}),Jt({type:"polls/getExerciseBanks",payload:rn({},Ne)});break;case"edit":Pn(!0);break}}),xt=()=>{var Nt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&Ke.map(function(Mt,bt){return Mt.id==="up"&&Pe.key===1||Mt.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:bt,placement:"bottom",title:Mt.name},ee.createElement("span",{onClick:()=>yt(Mt),className:Mt.icon}))})),ee.createElement("div",{className:"mt5"},Pe.question_title),ee.createElement("div",{className:ne.questionChoices},(Nt=Pe==null?void 0:Pe.question_choices)==null?void 0:Nt.map(function(Mt,bt){return ee.createElement(Qe.ZP,{key:bt,checked:Pe.standard_answer.includes(bt+1),disabled:!0},Te[bt],". ",ee.createElement("span",{className:"c-black font14"},Mt.choice_text))})))},At=()=>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:nn,onChange:Nt=>fn(Nt)}),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(Qe.ZP.Group,{buttonStyle:"solid",value:tt,onChange:Nt=>qt(Nt.target.value)},ee.createElement(Qe.ZP.Button,{value:"1",className:`${ne.radio} mr40`},"\u6B63\u786E"),ee.createElement(Qe.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:Se,max:1e4,min:-1,onChange:Nt=>{fe(Nt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>Pn(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>De()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!$t&&xt(),$t&&At())};var we=(0,se.connect)(({problemset:Ie,loading:Me,globalSetting:ge})=>({problemset:Ie,globalSetting:ge,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Ce)),ze=oe(35566),Ye=oe(73646),mt=oe(28706),Ft=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,ue=(Ie,Me,ge)=>Me in Ie?Ft(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,Ee=(Ie,Me)=>{for(var ge in Me||(Me={}))Rt.call(Me,ge)&&ue(Ie,ge,Me[ge]);if(Ot)for(var ge of Ot(Me))Yt.call(Me,ge)&&ue(Ie,ge,Me[ge]);return Ie},jt=(Ie,Me)=>{var ge={};for(var lt in Ie)Rt.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&Ot)for(var lt of Ot(Ie))Me.indexOf(lt)<0&&Yt.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},at=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const ye=null,gt=(Ie,Me)=>{var ge=Ie,{problemset:lt,globalSetting:hn,loading:$n,dispatch:Jt,editData:$e}=ge,Pe=jt(ge,["problemset","globalSetting","loading","dispatch","editData"]);const[ct,tt]=(0,ee.useState)(""),[qt,nn]=(0,ee.useState)(""),[fn,$t]=(0,ee.useState)([]),[Pn,Se]=(0,ee.useState)(""),[fe,Ne]=(0,ee.useState)(),[De,Ke]=(0,ee.useState)(!1),[yt,xt]=(0,ee.useState)(5),[At,Nt]=(0,ee.useState)(!1),Mt=(0,se.useParams)();(0,ee.useEffect)(()=>{if(!($e!=null&&$e.question_title)){Nt(!0);return}tt($e==null?void 0:$e.question_title),Ne($e==null?void 0:$e.is_ordered),xt($e==null?void 0:$e.question_score);const Xt=$e==null?void 0:$e.standard_answer.map(en=>en.answer_text);$t(Xt)},[lt.editData]),(0,ee.useEffect)(()=>{Ke(!1)},[At]),(0,ee.useImperativeHandle)(Me,()=>({onSave:bt,isEdit:At}));const bt=()=>at(void 0,null,function*(){let Xt=[],en=!1;if(fn.forEach((Zn,Vn)=>{Xt.push({choice_id:Vn+1,answer_text:[]}),Zn.forEach((da,va)=>{Xt[Vn].answer_text.push(da),(!da||!(0,mt.eR)(da,1e4))&&(Se(`${Vn}-${va}`),Le.ZP.info(da?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),en=!0)})}),en)return!1;let Sn;return $e.question_id?Sn=yield(0,a.Kc)({id:$e.question_id,question_title:ct,question_type:3,question_score:yt,is_ordered:fe,standard_answers:Xt}):Sn=yield(0,a.iV)({exercise_bank_id:Mt.topicId,question_title:ct,question_type:3,question_score:yt,is_ordered:fe,standard_answers:Xt}),Sn.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),Nt(!1)),Jt({type:"polls/getExerciseBanks",payload:Ee({},Mt)}),{name:ct,analysis:qt,standard_answers:Xt,is_ordered:fe}}),gn=(Xt,en,Sn)=>{const Zn=fn.slice();if(en&&Zn.splice(Xt,en),Sn&&De)for(let Vn=0;Vn<Sn;Vn++)Zn.splice(Xt+Vn,0,[""]);Ke(!0),$t(Zn)},Gt=(Xt,en,Sn)=>{Se("");let Zn=fn.slice();Zn[Xt][en]=Sn,$t(Zn)},St=Xt=>{let en=fn.slice();en[Xt]=[...en[Xt],""],$t(en)},Ht=(Xt,en)=>{let Sn=fn.slice();if(!Sn[Xt][en]){Sn[Xt]=Sn[Xt].filter((Zn,Vn)=>Vn!==en),$t(Sn);return}y.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:()=>{Sn[Xt]=Sn[Xt].filter((Zn,Vn)=>Vn!==en),$t(Sn)}})},Ut=Xt=>{y.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 en=fn.slice();en=fn.filter((Sn,Zn)=>Xt!==Zn),$t(en)}})},En=()=>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(ze.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:ct,onChange:Xt=>tt(Xt),showNullButton:!0,onPlaceholderChange:gn})),ee.createElement("div",{className:"mt20"},fn.map((Xt,en)=>ee.createElement(Ye.Z,{key:en,answers:Xt,index:en,is_md:!0,activeOptionErrorIndex:Pn,onAnswerChange:Gt,addChildAnswer:St,deleteChildAnswer:Ht,deleteChildAnswermain:Ut}))),ee.createElement("div",{className:"mt20"},fn.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:fe,onChange:Xt=>Ne(Xt.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:yt,max:1e4,min:-1,onChange:Xt=>{xt(Xt)}})," \u5206"),ee.createElement("aside",{className:"tr"},$e.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>Nt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>bt()},"\u4FDD\u5B58"))),mn=[{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"}],sn=Xt=>at(void 0,null,function*(){switch(Xt.id){case"del":let en;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return at(this,null,function*(){yield(0,a.x$)({pollsId:$e.question_id}),Jt({type:"polls/getExerciseBanks",payload:Ee({},Mt)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:$e==null?void 0:$e.question_id,opr:Xt.id}),Jt({type:"polls/getExerciseBanks",payload:Ee({},Mt)});break;case"edit":Nt(!0);break}}),un=()=>{var Xt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},$e.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",$e.question_score,"\u5206\uFF09"),!$e.hideAction&&mn.map(function(en,Sn){return en.id==="up"&&$e.key===1||en.id==="down"&&$e.key===$e.len?null:ee.createElement(Ze.Z,{key:Sn,placement:"bottom",title:en.name},ee.createElement("span",{onClick:()=>sn(en),className:en.icon}))})),ee.createElement("div",{className:"mt5"},$e.question_title),ee.createElement("div",{className:ne.questionChoices},(Xt=$e==null?void 0:$e.standard_answer)==null?void 0:Xt.map(function(en,Sn){return ee.createElement(Ge.Z,null,ee.createElement(He.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",en.choice_id,"\uFF09\uFF1A"),ee.createElement(He.Z,{flex:"1"},ee.createElement(Re.default,{key:Sn,checked:$e.standard_answer.includes(Sn),disabled:!0,value:en.answer_text})))})))};return ee.createElement("section",{className:ne.wrap},!At&&un(),At&&En())};var qe=(0,se.connect)(({problemset:Ie,loading:Me,globalSetting:ge})=>({problemset:Ie,globalSetting:ge,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(gt)),Et=Object.defineProperty,Zt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,It=(Ie,Me,ge)=>Me in Ie?Et(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,an=(Ie,Me)=>{for(var ge in Me||(Me={}))vt.call(Me,ge)&&It(Ie,ge,Me[ge]);if(Zt)for(var ge of Zt(Me))wt.call(Me,ge)&&It(Ie,ge,Me[ge]);return Ie},Vt=(Ie,Me)=>{var ge={};for(var lt in Ie)vt.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&Zt)for(var lt of Zt(Ie))Me.indexOf(lt)<0&&wt.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},Qt=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const pn=null,cn=(Ie,Me)=>{var ge=Ie,{problemset:lt,globalSetting:hn,loading:$n,dispatch:Jt,onRef:$e=()=>{},editData:Pe}=ge,ct=Vt(ge,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[tt,qt]=(0,ee.useState)(""),[nn,fn]=(0,ee.useState)(""),[$t,Pn]=(0,ee.useState)(""),[Se,fe]=(0,ee.useState)(5),[Ne,De]=(0,ee.useState)(!1),Ke=(0,se.useParams)();(0,ee.useEffect)(()=>{var bt;if(!(Pe!=null&&Pe.question_title)){De(!0);return}qt(Pe==null?void 0:Pe.question_title),Pn((bt=Pe==null?void 0:Pe.standard_answer)==null?void 0:bt[0]),fe(Pe==null?void 0:Pe.question_score)},[lt.editData]),(0,ee.useImperativeHandle)(Me,()=>({onSave:yt,isEdit:Ne}));const yt=()=>Qt(void 0,null,function*(){if(!tt)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let bt;return Pe.question_id?bt=yield(0,a.Kc)({id:Pe.question_id,question_title:tt,question_type:4,question_score:Se,standard_answers:[$t]}):bt=yield(0,a.iV)({exercise_bank_id:Ke.topicId,question_title:tt,question_type:4,question_score:Se,standard_answers:[$t]}),bt.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),De(!1),Jt({type:"polls/getExerciseBanks",payload:an({},Ke)})),{name:tt,answer_texts:[$t],analysis:nn}}),xt=()=>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:tt,onChange:bt=>qt(bt)}),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:$t,onChange:bt=>Pn(bt)}),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Se,max:1e4,min:-1,onChange:bt=>{fe(bt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>De(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>yt()},"\u4FDD\u5B58"))),At=[{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"}],Nt=bt=>Qt(void 0,null,function*(){switch(bt.id){case"del":let gn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Qt(this,null,function*(){yield(0,a.x$)({pollsId:Pe.question_id}),Jt({type:"polls/getExerciseBanks",payload:an({},Ke)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Pe==null?void 0:Pe.question_id,opr:bt.id}),Jt({type:"polls/getExerciseBanks",payload:an({},Ke)});break;case"edit":De(!0);break}}),Mt=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&At.map(function(bt,gn){return bt.id==="up"&&Pe.key===1||bt.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:gn,placement:"bottom",title:bt.name},ee.createElement("span",{onClick:()=>Nt(bt),className:bt.icon}))})),ee.createElement("div",{className:"mt5"},Pe.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:$t})));return ee.createElement("section",{className:ne.wrap},!Ne&&Mt(),Ne&&xt())};var Bn=(0,se.connect)(({problemset:Ie,loading:Me,globalSetting:ge})=>({problemset:Ie,globalSetting:ge,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(cn)),xn=Object.defineProperty,Un=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,Xn=(Ie,Me,ge)=>Me in Ie?xn(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,In=(Ie,Me)=>{for(var ge in Me||(Me={}))qn.call(Me,ge)&&Xn(Ie,ge,Me[ge]);if(Un)for(var ge of Un(Me))_n.call(Me,ge)&&Xn(Ie,ge,Me[ge]);return Ie},Gn=(Ie,Me)=>{var ge={};for(var lt in Ie)qn.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&Un)for(var lt of Un(Ie))Me.indexOf(lt)<0&&_n.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},vn=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const ea=null,Kn=(Ie,Me)=>{var ge=Ie,{problemset:lt,globalSetting:hn,loading:$n,dispatch:Jt,editData:$e}=ge,Pe=Gn(ge,["problemset","globalSetting","loading","dispatch","editData"]);const[ct,tt]=(0,ee.useState)(""),[qt,nn]=(0,ee.useState)(""),[fn,$t]=(0,ee.useState)(""),[Pn,Se]=(0,ee.useState)([]),[fe,Ne]=(0,ee.useState)(""),[De,Ke]=(0,ee.useState)(),[yt,xt]=(0,ee.useState)(!1),[At,Nt]=(0,ee.useState)([]),[Mt,bt]=(0,ee.useState)(!1),gn=(0,se.useParams)();(0,ee.useEffect)(()=>{var mn;$e.edit&&bt(!0),tt($e.shixun_name),nn($e.question_title);const sn=[];(mn=$e.shixun)==null||mn.map(un=>{sn.push(un.challenge_score)}),Nt(sn)},[$e]),(0,ee.useEffect)(()=>{xt(!1)},[Mt]),(0,ee.useImperativeHandle)(Me,()=>({onSave:Gt,isEdit:Mt}));const Gt=()=>vn(void 0,null,function*(){let mn=[];if(!1)return!1;let un;return $e.question_id?un=yield(0,a.Kc)({id:$e.question_id,question_title:qt,shixun_name:ct,shixun_id:$e.shixun_id,question_type:5,question_scores:At}):un=yield(0,a.iV)({exercise_bank_id:gn.topicId,question_title:qt,shixun_name:ct,shixun_id:$e.shixun_id,question_type:5,question_scores:At}),un.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),bt(!1)),yield Jt({type:"polls/getExerciseBanks",payload:In({},gn)}),{name:qt,analysis:fn,standard_answers:mn,is_ordered:De}}),St=()=>{var mn;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(Re.default,{defaultValue:ct,onChange:sn=>{tt(sn.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:qt,onChange:sn=>{nn(sn)}})),ee.createElement("div",{className:"mt20"},(mn=$e.shixun)==null?void 0:mn.map((sn,un)=>ee.createElement(Ge.Z,{gutter:[20,20]},ee.createElement(He.Z,{flex:"1"},un+1,".",sn.challenge_name),ee.createElement(He.Z,null,ee.createElement(b.Z,{defaultValue:At[un],onChange:Xt=>{At[un]=Xt,Nt(At),console.log("srore:L",At[un])}}))))),ee.createElement("div",{className:"mt20"},Pn.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:De,onChange:sn=>Ke(sn.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"},!($e!=null&&$e.edit)&&ee.createElement(xe.ZP,{type:"default",onClick:()=>bt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>Gt()},"\u4FDD\u5B58")))},Ht=[{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"}],Ut=mn=>vn(void 0,null,function*(){switch(mn.id){case"del":let sn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return vn(this,null,function*(){yield(0,a.x$)({pollsId:$e.question_id}),Jt({type:"polls/getExerciseBanks",payload:In({},gn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:$e==null?void 0:$e.question_id,opr:mn.id}),Jt({type:"polls/getExerciseBanks",payload:In({},gn)});break;case"edit":bt(!0);break}}),En=()=>{var mn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},$e.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",$e.question_score,"\u5206\uFF09"),ee.createElement("div",{className:"tr"},ee.createElement(se.Link,{target:"_blank",to:`/shixuns/${$e.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!$e.hideAction&&Ht.map(function(sn,un){return sn.id==="up"&&$e.key===1||sn.id==="down"&&$e.key===$e.len?null:ee.createElement(Ze.Z,{key:un,placement:"bottom",title:sn.name},ee.createElement("span",{onClick:()=>Ut(sn),className:sn.icon}))}))),ee.createElement("div",{className:"font16"},$e.shixun_name),ee.createElement("div",{className:"mt30"}),(mn=$e.shixun)==null?void 0:mn.map(function(sn,un){return ee.createElement("div",{key:un},"\u7B2C",un+1,"\u5173 ",ee.createElement("span",{className:"ml10"},sn.challenge_name)," ",ee.createElement("span",{className:"ml10"},sn.challenge_score))}))};return ee.createElement("section",{className:ne.wrap},!Mt&&En(),Mt&&St())};var Nn=(0,se.connect)(({problemset:Ie,loading:Me,globalSetting:ge})=>({problemset:Ie,globalSetting:ge,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Kn)),Cn=oe(72565),fa=oe(28452),Yn={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"},la=Object.defineProperty,be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,it=(Ie,Me,ge)=>Me in Ie?la(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,_t=(Ie,Me)=>{for(var ge in Me||(Me={}))Ae.call(Me,ge)&&it(Ie,ge,Me[ge]);if(be)for(var ge of be(Me))Be.call(Me,ge)&&it(Ie,ge,Me[ge]);return Ie},Wt=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const{Search:bn}=Re.default,dn=[{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"}]}],yn=({classroomList:Ie,loading:Me,dispatch:ge,callback:lt})=>{var hn;const $n=(0,se.useParams)(),Jt=(0,se.useLocation)(),{actionTabs:$e}=Ie,[Pe]=de.default.useForm(),{shixunLists:ct}=Ie,[tt,qt]=(0,ee.useState)([]),[nn,fn]=(0,ee.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1});return(0,ee.useEffect)(()=>{ge({type:"classroomList/getShixunLists",payload:_t({},nn)})},[$n.categoryId]),(0,ee.useEffect)(()=>{qt([])},[Ie.actionTabs.key]),Ie.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:ee.createElement(Cn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:Ie.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:Yn.drawer,footer:ee.createElement("div",{className:"tc"},ee.createElement(xe.ZP,{size:"middle",onClick:()=>{ge({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},"\u53D6\u6D88"),ee.createElement(xe.ZP,{size:"middle",onClick:()=>Wt(void 0,null,function*(){var $t;tt.length>1?Le.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):tt.length===0?Le.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(lt&<(($t=ct==null?void 0:ct.shixun_list)==null?void 0:$t.filter(Pn=>Pn.id===tt[0])[0]),ge({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},ee.createElement("section",{className:"tc"},ee.createElement(bn,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:Yn.search,onSearch:$t=>{nn.keyword=$t,ge({type:"classroomList/getShixunLists",payload:_t({},nn)})}})),ee.createElement("section",{className:"edu-container"},dn.map(function($t,Pn){var Se;return ee.createElement("ul",{className:Yn.menu,key:Pn},ee.createElement("li",null,$t.name),(Se=$t==null?void 0:$t.children)==null?void 0:Se.map(function(fe,Ne){return ee.createElement("li",{key:Ne,className:nn[$t.id]==fe.id?Yn.actived:"",onClick:()=>{nn[$t.id]=fe.id,fn(_t({},nn)),ge({type:"classroomList/getShixunLists",payload:_t({},nn)})}},ee.createElement("strong",null,fe.name))}))}),(hn=ct==null?void 0:ct.shixun_list)==null?void 0:hn.map(function($t,Pn){return ee.createElement("div",{className:Yn.listItem,key:Pn},ee.createElement(E.default,{checked:tt.includes($t.id),value:$t.id,onChange:Se=>{let fe=tt.indexOf($t.id);tt.indexOf($t.id)>-1?qt(tt.filter(Ne=>Ne!==$t.id)):qt(tt.concat($t.id))}}),ee.createElement("div",{className:Yn.info},ee.createElement("div",{className:Yn.title},ee.createElement("div",{className:Yn.titleLeft},ee.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:$t.title}}))),ee.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},ee.createElement("span",{className:Yn.description,dangerouslySetInnerHTML:{__html:$t.description}})),ee.createElement("div",{className:" mt15"},$t.challenge_names.map(function(Se,fe){return ee.createElement("span",{key:fe,className:"mr30"},"\u7B2C",fe+1,"\u5173 ",Se," ")})),ee.createElement(me.Z,{dashed:!0}),ee.createElement("div",{className:"c-light-black mt20"},ee.createElement("span",null,$t.author_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,$t.author_school_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",$t.level),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),ee.createElement("span",null,$t.study_count))))}),ee.createElement("p",null)),ee.createElement("div",{className:"tc"},ee.createElement(fa.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:ct==null?void 0:ct.shixuns_count,onChange:$t=>{nn.page=$t,qt([]),ge({type:"classroomList/getShixunLists",payload:_t({},nn)})}})))};var On=(0,se.connect)(({classroomList:Ie,loading:Me})=>({classroomList:Ie,loading:Me}))(yn),jn={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"},ut=Object.defineProperty,Ln=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Hn=(Ie,Me,ge)=>Me in Ie?ut(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Ie[Me]=ge,Tn=(Ie,Me)=>{for(var ge in Me||(Me={}))ta.call(Me,ge)&&Hn(Ie,ge,Me[ge]);if(Ln)for(var ge of Ln(Me))ia.call(Me,ge)&&Hn(Ie,ge,Me[ge]);return Ie},Sa=(Ie,Me)=>{var ge={};for(var lt in Ie)ta.call(Ie,lt)&&Me.indexOf(lt)<0&&(ge[lt]=Ie[lt]);if(Ie!=null&&Ln)for(var lt of Ln(Ie))Me.indexOf(lt)<0&&ia.call(Ie,lt)&&(ge[lt]=Ie[lt]);return ge},ga=(Ie,Me,ge)=>new Promise((lt,hn)=>{var $n=Pe=>{try{$e(ge.next(Pe))}catch(ct){hn(ct)}},Jt=Pe=>{try{$e(ge.throw(Pe))}catch(ct){hn(ct)}},$e=Pe=>Pe.done?lt(Pe.value):Promise.resolve(Pe.value).then($n,Jt);$e((ge=ge.apply(Ie,Me)).next())});const{SubMenu:La}=We.default,{Content:pa,Sider:ha}=je.default,na=Ie=>{var Me=Ie,{polls:ge,globalSetting:lt,loading:hn,user:$n,dispatch:Jt}=Me,$e=Sa(Me,["polls","globalSetting","loading","user","dispatch"]),Pe,ct,tt,qt,nn,fn,$t,Pn,Se,fe,Ne,De,Ke,yt,xt,At,Nt,Mt,bt,gn,Gt,St,Ht,Ut,En,mn,sn,un,Xt,en,Sn,Zn,Vn,da,va,Pa,ma,kt,ht,Bt,zt,wn,Mn,Qn,Rn,zn,Dn,aa,Jn,wa,xa,Ea,$a,sa,Wn,An;const ca=(0,se.useParams)(),Ma=(0,se.useLocation)(),{userInfo:Ca}=$n,[Ba]=de.default.useForm(),[ra,ua]=(0,ee.useState)([]),[Aa,Fa]=(0,ee.useState)(!1),kn=[{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}],oa=(0,ee.useRef)();(0,ee.useEffect)(()=>{var Fn,ya,Ia,za,Da,_a;(Fn=ge.exerciseBanks)!=null&&Fn.exercise_questions&&(ua([...(ya=ge.exerciseBanks)==null?void 0:ya.exercise_questions]),Ba.setFieldsValue({exercise_name:(za=(Ia=ge.exerciseBanks)==null?void 0:Ia.exercise)==null?void 0:za.exercise_name,exercise_description:(_a=(Da=ge.exerciseBanks)==null?void 0:Da.exercise)==null?void 0:_a.exercise_description}))},[ge.exerciseBanks]),(0,ee.useEffect)(()=>{Jt({type:"polls/getExerciseBanks",payload:Tn({},ca)})},[ca.categoryId]);const Na=()=>ga(void 0,null,function*(){var Fn,ya;yield Ba.validateFields();const Ia=Ba.getFieldValue();Ia.is_md=!0,Ia.topicId=(ya=(Fn=ge.exerciseBanks)==null?void 0:Fn.exercise)==null?void 0:ya.id,Fa(!1),yield(0,a.hO)(Tn({},Ia)),Jt({type:"polls/getExerciseBanks",payload:Tn({},ca)})}),Oa=Fn=>ga(void 0,null,function*(){const ya=yield oa==null?void 0:oa.current;if(ya!=null&&ya.isEdit){Le.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Fn===5?Jt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):ua([...ra,{question_type:Fn}])}),Ta=function(){return ra==null?void 0:ra.map(function(Fn,ya){if(Fn.key=ya+1,Fn.len=ra.length,Fn.question_type===0)return ee.createElement("aside",null,ee.createElement(Dt,{ref:oa,editData:Fn}),ee.createElement(me.Z,null));if(Fn.question_type===1)return ee.createElement("aside",null,ee.createElement(Fe,{ref:oa,editData:Fn}),ee.createElement(me.Z,null));if(Fn.question_type===2)return ee.createElement("aside",null,ee.createElement(we,{ref:oa,editData:Fn}),ee.createElement(me.Z,null));if(Fn.question_type===3)return ee.createElement("aside",null,ee.createElement(qe,{editData:Fn}),ee.createElement(me.Z,null));if(Fn.question_type===4)return ee.createElement("aside",null,ee.createElement(Bn,{editData:Fn}),ee.createElement(me.Z,null));if(Fn.question_type===5)return ee.createElement("aside",null,ee.createElement(Nn,{editData:Fn}),ee.createElement(me.Z,null))})};return ee.createElement("section",{className:"edu-container"},ee.createElement("section",{className:"animated fadeIn"},ee.createElement("aside",{className:"mt10"},Ca&&ee.createElement(Ve.Z,{separator:">"},ee.createElement(Ve.Z.Item,null,ee.createElement(se.Link,{to:`/users/${Ca.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),ee.createElement(Ve.Z.Item,null,ee.createElement(se.Link,{to:`/users/${Ca==null?void 0:Ca.login}/topics/${ca.topicId}/${ca.topictype}/exercise/detail`},"\u8BE6\u60C5")),ee.createElement(Ve.Z.Item,null,"\u7F16\u8F91"))),ee.createElement("aside",{className:[jn.title,"mt20"].join(" ")},ee.createElement(Ge.Z,{style:{width:"100%"},align:"middle"},ee.createElement(He.Z,{flex:"1"},ee.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u8BD5\u5377"),ee.createElement(mt.VV,{status:[(ct=(Pe=ge.exerciseBanks)==null?void 0:Pe.exercise)!=null&&ct.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),ee.createElement(He.Z,null,ee.createElement(se.Link,{className:"font16 c-light-black",to:`/users/${Ca.login}/topics/personal`},"\u8FD4\u56DE"))))),ee.createElement("section",{className:[jn.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!Aa&&ee.createElement("aside",null,ee.createElement("div",{className:jn.containerDesc},ee.createElement("div",null,(qt=(tt=ge.exerciseBanks)==null?void 0:tt.exercise)==null?void 0:qt.exercise_name),ee.createElement("div",null,ee.createElement(Ze.Z,{title:"\u7F16\u8F91"},ee.createElement("span",{onClick:()=>Fa(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),ee.createElement("div",{className:"c-light-black"},(fn=(nn=ge.exerciseBanks)==null?void 0:nn.exercise)==null?void 0:fn.exercise_description)),Aa&&ee.createElement(de.default,{layout:"vertical",form:Ba},ee.createElement(de.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},ee.createElement(Re.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ee.createElement(de.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},ee.createElement(Re.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(de.default.Item,{className:"tr"},ee.createElement(xe.ZP,{type:"primary",onClick:()=>{Na()}},"\u4FDD\u5B58")))),ee.createElement("p",{className:"mt10",style:{display:"flex"}},ee.createElement("span",{className:"fl",style:{flex:"1"}},!!((Pn=($t=ge.exerciseBanks)==null?void 0:$t.exercise_types)!=null&&Pn.q_singles)&&ee.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(fe=(Se=ge.exerciseBanks)==null?void 0:Se.exercise_types)==null?void 0:fe.q_singles,"\u9898\uFF0C\u5171",(De=(Ne=ge.exerciseBanks)==null?void 0:Ne.exercise_types)==null?void 0:De.q_singles_scores,"\u5206"),!!((yt=(Ke=ge.exerciseBanks)==null?void 0:Ke.exercise_types)!=null&&yt.q_doubles)&&ee.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(At=(xt=ge.exerciseBanks)==null?void 0:xt.exercise_types)==null?void 0:At.q_doubles,"\u9898\uFF0C\u5171",(Mt=(Nt=ge.exerciseBanks)==null?void 0:Nt.exercise_types)==null?void 0:Mt.q_doubles_scores,"\u5206"),!!((gn=(bt=ge.exerciseBanks)==null?void 0:bt.exercise_types)!=null&&gn.q_judges)&&ee.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(St=(Gt=ge.exerciseBanks)==null?void 0:Gt.exercise_types)==null?void 0:St.q_judges,"\u9898\uFF0C\u5171",(Ut=(Ht=ge.exerciseBanks)==null?void 0:Ht.exercise_types)==null?void 0:Ut.q_judges_scores,"\u5206"),!!((mn=(En=ge.exerciseBanks)==null?void 0:En.exercise_types)!=null&&mn.q_nulls)&&ee.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(un=(sn=ge.exerciseBanks)==null?void 0:sn.exercise_types)==null?void 0:un.q_nulls,"\u9898\uFF0C\u5171",(en=(Xt=ge.exerciseBanks)==null?void 0:Xt.exercise_types)==null?void 0:en.q_nulls_scores,"\u5206"),!!((Zn=(Sn=ge.exerciseBanks)==null?void 0:Sn.exercise_types)!=null&&Zn.q_mains)&&ee.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(da=(Vn=ge.exerciseBanks)==null?void 0:Vn.exercise_types)==null?void 0:da.q_mains,"\u9898\uFF0C\u5171",(Pa=(va=ge.exerciseBanks)==null?void 0:va.exercise_types)==null?void 0:Pa.q_mains_scores,"\u5206"),!!((kt=(ma=ge.exerciseBanks)==null?void 0:ma.exercise_types)!=null&&kt.q_shixuns)&&ee.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(Bt=(ht=ge.exerciseBanks)==null?void 0:ht.exercise_types)==null?void 0:Bt.q_shixuns,"\u9898\uFF0C\u5171",(wn=(zt=ge.exerciseBanks)==null?void 0:zt.exercise_types)==null?void 0:wn.q_shixuns_scores,"\u5206"),!!((Qn=(Mn=ge.exerciseBanks)==null?void 0:Mn.exercise_types)!=null&&Qn.q_pros)&&ee.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(zn=(Rn=ge.exerciseBanks)==null?void 0:Rn.exercise_types)==null?void 0:zn.q_pros,"\u9898\uFF0C\u5171",(aa=(Dn=ge.exerciseBanks)==null?void 0:Dn.exercise_types)==null?void 0:aa.q_pros_scores,"\u5206")),ee.createElement("span",{className:"fr"},!!((wa=(Jn=ge.exerciseBanks)==null?void 0:Jn.exercise_types)!=null&&wa.q_counts)&&ee.createElement("span",null,"\u5408\u8BA1 ",ee.createElement("span",{className:"color-blue"},(Ea=(xa=ge.exerciseBanks)==null?void 0:xa.exercise_types)==null?void 0:Ea.q_counts)," \u9898\uFF0C \u5171 ",ee.createElement("span",{className:`${((sa=($a=ge.exerciseBanks)==null?void 0:$a.exercise_types)==null?void 0:sa.q_scores)>100?"color-red font-bd":"color-orange"}`},(An=(Wn=ge.exerciseBanks)==null?void 0:Wn.exercise_types)==null?void 0:An.q_scores)," \u5206"))),ra!=""&&ee.createElement("section",{className:[jn.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Ta()),ee.createElement("section",{style:{display:"flex"},className:[jn.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ee.createElement("div",{style:{flex:"1"}},kn.map(function(Fn,ya){return ee.createElement(xe.ZP,{className:"mr20",type:"primary",onClick:()=>Oa(Fn.id)},ee.createElement(ae.Z,{className:"mr5"}),Fn.name)}))),ee.createElement(On,{callback:Fn=>{ra.push({shixun:Fn.challenge_names.map(ya=>({challenge_name:ya,challenge_score:5})),shixun_name:Fn.title,shixun_id:Fn.id,question_type:5,edit:!0}),ua([...ra])}}))};var ba=(0,se.connect)(({polls:Ie,loading:Me,user:ge,globalSetting:lt})=>({polls:Ie,globalSetting:lt,user:ge,loading:Me.effects}))(na)},57838:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return se}});var ee=oe(67294);function se(){const[,We]=ee.useReducer(je=>je+1,0);return We}},85673:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Pt}});var ee=oe(94184),se=oe.n(ee),We=oe(37419),je=oe(1337),de=oe(67294),Le=oe(96159),me=oe(53124),Ve=oe(42922),Ge=oe(35874);const He=Fe=>{let{children:Qe}=Fe;const{getPrefixCls:Je}=de.useContext(me.E_),et=Je("breadcrumb");return de.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Qe===""?Qe:Qe||"/")};He.__ANT_BREADCRUMB_SEPARATOR=!0;var Ze=He,Re=function(Fe,Qe){var Je={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&Qe.indexOf(et)<0&&(Je[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Fe);st<et.length;st++)Qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Fe,et[st])&&(Je[et[st]]=Fe[et[st]]);return Je};function xe(Fe,Qe){if(Fe.title===void 0||Fe.title===null)return null;const Je=Object.keys(Qe).join("|");return typeof Fe.title=="object"?Fe.title:String(Fe.title).replace(new RegExp(`:(${Je})`,"g"),(et,st)=>Qe[st]||et)}function ae(Fe,Qe,Je,et){if(Je==null)return null;const{className:st,onClick:Tt}=Qe,tn=Re(Qe,["className","onClick"]),on=Object.assign(Object.assign({},(0,je.Z)(tn,{data:!0,aria:!0})),{onClick:Tt});return et!==void 0?de.createElement("a",Object.assign({},on,{className:se()(`${Fe}-link`,st),href:et}),Je):de.createElement("span",Object.assign({},on,{className:se()(`${Fe}-link`,st)}),Je)}function a(Fe,Qe){return(et,st,Tt,tn,on)=>{if(Qe)return Qe(et,st,Tt,tn);const ln=xe(et,st);return ae(Fe,et,ln,on)}}var y=function(Fe,Qe){var Je={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&Qe.indexOf(et)<0&&(Je[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Fe);st<et.length;st++)Qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Fe,et[st])&&(Je[et[st]]=Fe[et[st]]);return Je};const E=Fe=>{const{prefixCls:Qe,separator:Je="/",children:et,menu:st,overlay:Tt,dropdownProps:tn,href:on}=Fe,Oe=(Ue=>{if(st||Tt){const nt=Object.assign({},tn);if(st){const Dt=st||{},{items:dt}=Dt,Lt=y(Dt,["items"]);nt.menu=Object.assign(Object.assign({},Lt),{items:dt==null?void 0:dt.map((ce,ft)=>{var{key:Kt,title:rn,label:pt,path:Xe}=ce,Te=y(ce,["key","title","label","path"]);let Ce=pt!=null?pt:rn;return Xe&&(Ce=de.createElement("a",{href:`${on}${Xe}`},Ce)),Object.assign(Object.assign({},Te),{key:Kt!=null?Kt:ft,label:Ce})})})}else Tt&&(nt.overlay=Tt);return de.createElement(Ge.Z,Object.assign({placement:"bottom"},nt),de.createElement("span",{className:`${Qe}-overlay-link`},Ue,de.createElement(Ve.Z,null)))}return Ue})(et);return Oe!=null?de.createElement(de.Fragment,null,de.createElement("li",null,Oe),Je&&de.createElement(Ze,null,Je)):null},b=Fe=>{const{prefixCls:Qe,children:Je,href:et}=Fe,st=y(Fe,["prefixCls","children","href"]),{getPrefixCls:Tt}=de.useContext(me.E_),tn=Tt("breadcrumb",Qe);return de.createElement(E,Object.assign({},st,{prefixCls:tn}),ae(tn,st,Je,et))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),te=oe(67968),ne=oe(45503);const re=Fe=>{const{componentCls:Qe,iconCls:Je}=Fe;return{[Qe]:Object.assign(Object.assign({},(0,z.Wf)(Fe)),{color:Fe.itemColor,fontSize:Fe.fontSize,[Je]:{fontSize:Fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Fe.linkColor,transition:`color ${Fe.motionDurationMid}`,padding:`0 ${Fe.paddingXXS}px`,borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",marginInline:-Fe.marginXXS,"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover}},(0,z.Qy)(Fe)),"li:last-child":{color:Fe.lastItemColor},[`${Qe}-separator`]:{marginInline:Fe.separatorMargin,color:Fe.separatorColor},[`${Qe}-link`]:{[`
|
|
> ${Je} + span,
|
|
> ${Je} + a
|
|
`]:{marginInlineStart:Fe.marginXXS}},[`${Qe}-overlay-link`]:{borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",padding:`0 ${Fe.paddingXXS}px`,marginInline:-Fe.marginXXS,[`> ${Je}`]:{marginInlineStart:Fe.marginXXS,fontSize:Fe.fontSizeIcon},"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover,a:{color:Fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,te.Z)("Breadcrumb",Fe=>{const Qe=(0,ne.TS)(Fe,{});return[re(Qe)]},Fe=>({itemColor:Fe.colorTextDescription,lastItemColor:Fe.colorText,iconFontSize:Fe.fontSize,linkColor:Fe.colorTextDescription,linkHoverColor:Fe.colorText,separatorColor:Fe.colorTextDescription,separatorMargin:Fe.marginXS})),le=function(Fe,Qe){var Je={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&Qe.indexOf(et)<0&&(Je[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Fe);st<et.length;st++)Qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Fe,et[st])&&(Je[et[st]]=Fe[et[st]]);return Je};function pe(Fe){const{breadcrumbName:Qe,children:Je}=Fe,et=le(Fe,["breadcrumbName","children"]),st=Object.assign({title:Qe},et);return Je&&(st.menu={items:Je.map(Tt=>{var{breadcrumbName:tn}=Tt,on=le(Tt,["breadcrumbName"]);return Object.assign(Object.assign({},on),{title:tn})})}),st}function he(Fe,Qe){return(0,de.useMemo)(()=>Fe||(Qe?Qe.map(pe):null),[Fe,Qe])}var _e=function(Fe,Qe){var Je={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&Qe.indexOf(et)<0&&(Je[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Fe);st<et.length;st++)Qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Fe,et[st])&&(Je[et[st]]=Fe[et[st]]);return Je};const ve=(Fe,Qe)=>{if(Qe===void 0)return Qe;let Je=(Qe||"").replace(/^\//,"");return Object.keys(Fe).forEach(et=>{Je=Je.replace(`:${et}`,Fe[et])}),Je},rt=Fe=>{const{prefixCls:Qe,separator:Je="/",style:et,className:st,rootClassName:Tt,routes:tn,items:on,children:ln,itemRender:Oe,params:Ue={}}=Fe,nt=_e(Fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Dt,direction:dt,breadcrumb:Lt}=de.useContext(me.E_);let ce;const ft=Dt("breadcrumb",Qe),[Kt,rn]=ie(ft),pt=he(on,tn),Xe=a(ft,Oe);if(pt&&pt.length>0){const we=[],ze=on||tn;ce=pt.map((Ye,mt)=>{const{path:Ft,key:Ot,type:Rt,menu:Yt,overlay:ue,onClick:Ee,className:jt,separator:at,dropdownProps:ye}=Ye,gt=ve(Ue,Ft);gt!==void 0&&we.push(gt);const qe=Ot!=null?Ot:mt;if(Rt==="separator")return de.createElement(Ze,{key:qe},at);const Et={},Zt=mt===pt.length-1;Yt?Et.menu=Yt:ue&&(Et.overlay=ue);let{href:vt}=Ye;return we.length&>!==void 0&&(vt=`#/${we.join("/")}`),de.createElement(E,Object.assign({key:qe},Et,(0,je.Z)(Ye,{data:!0,aria:!0}),{className:jt,dropdownProps:ye,href:vt,separator:Zt?"":Je,onClick:Ee,prefixCls:ft}),Xe(Ye,Ue,ze,we,vt))})}else if(ln){const we=(0,We.Z)(ln).length;ce=(0,We.Z)(ln).map((ze,Ye)=>{if(!ze)return ze;const mt=Ye===we-1;return(0,Le.Tm)(ze,{separator:mt?"":Je,key:Ye})})}const Te=se()(ft,Lt==null?void 0:Lt.className,{[`${ft}-rtl`]:dt==="rtl"},st,Tt,rn),Ce=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),et);return Kt(de.createElement("nav",Object.assign({className:Te,style:Ce},nt),de.createElement("ol",null,ce)))};rt.Item=x,rt.Separator=Ze;var Ct=rt,Pt=Ct},84567:function(ke,ot,oe){"use strict";oe.d(ot,{default:function(){return ie}});var ee=oe(94184),se=oe.n(ee),We=oe(95860),je=oe(67294),de=oe(53124),Le=oe(98866),me=oe(65223),Ge=je.createContext(null),He=oe(63185),Ze=oe(45353),Re=oe(92429),xe=function(le,pe){var he={};for(var _e in le)Object.prototype.hasOwnProperty.call(le,_e)&&pe.indexOf(_e)<0&&(he[_e]=le[_e]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(le);ve<_e.length;ve++)pe.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(le,_e[ve])&&(he[_e[ve]]=le[_e[ve]]);return he};const ae=(le,pe)=>{var he;const{prefixCls:_e,className:ve,rootClassName:rt,children:Ct,indeterminate:Pt=!1,style:Fe,onMouseEnter:Qe,onMouseLeave:Je,skipGroup:et=!1,disabled:st}=le,Tt=xe(le,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:tn,direction:on,checkbox:ln}=je.useContext(de.E_),Oe=je.useContext(Ge),{isFormItemInput:Ue}=je.useContext(me.aM),nt=je.useContext(Le.Z),Dt=(he=(Oe==null?void 0:Oe.disabled)||st)!==null&&he!==void 0?he:nt,dt=je.useRef(Tt.value);je.useEffect(()=>{Oe==null||Oe.registerValue(Tt.value)},[]),je.useEffect(()=>{if(!et)return Tt.value!==dt.current&&(Oe==null||Oe.cancelValue(dt.current),Oe==null||Oe.registerValue(Tt.value),dt.current=Tt.value),()=>Oe==null?void 0:Oe.cancelValue(Tt.value)},[Tt.value]);const Lt=tn("checkbox",_e),[ce,ft]=(0,He.ZP)(Lt),Kt=Object.assign({},Tt);Oe&&!et&&(Kt.onChange=function(){Tt.onChange&&Tt.onChange.apply(Tt,arguments),Oe.toggleOption&&Oe.toggleOption({label:Ct,value:Tt.value})},Kt.name=Oe.name,Kt.checked=Oe.value.includes(Tt.value));const rn=se()(`${Lt}-wrapper`,{[`${Lt}-rtl`]:on==="rtl",[`${Lt}-wrapper-checked`]:Kt.checked,[`${Lt}-wrapper-disabled`]:Dt,[`${Lt}-wrapper-in-form-item`]:Ue},ln==null?void 0:ln.className,ve,rt,ft),pt=se()({[`${Lt}-indeterminate`]:Pt},Re.A,ft),Xe=Pt?"mixed":void 0;return ce(je.createElement(Ze.Z,{component:"Checkbox",disabled:Dt},je.createElement("label",{className:rn,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Fe),onMouseEnter:Qe,onMouseLeave:Je},je.createElement(We.Z,Object.assign({"aria-checked":Xe},Kt,{prefixCls:Lt,className:pt,disabled:Dt,ref:pe})),Ct!==void 0&&je.createElement("span",null,Ct))))};var y=je.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(le,pe){var he={};for(var _e in le)Object.prototype.hasOwnProperty.call(le,_e)&&pe.indexOf(_e)<0&&(he[_e]=le[_e]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(le);ve<_e.length;ve++)pe.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(le,_e[ve])&&(he[_e[ve]]=le[_e[ve]]);return he};const z=(le,pe)=>{const{defaultValue:he,children:_e,options:ve=[],prefixCls:rt,className:Ct,rootClassName:Pt,style:Fe,onChange:Qe}=le,Je=x(le,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:et,direction:st}=je.useContext(de.E_),[Tt,tn]=je.useState(Je.value||he||[]),[on,ln]=je.useState([]);je.useEffect(()=>{"value"in Je&&tn(Je.value||[])},[Je.value]);const Oe=je.useMemo(()=>ve.map(Te=>typeof Te=="string"||typeof Te=="number"?{label:Te,value:Te}:Te),[ve]),Ue=Te=>{ln(Ce=>Ce.filter(we=>we!==Te))},nt=Te=>{ln(Ce=>[].concat((0,E.Z)(Ce),[Te]))},Dt=Te=>{const Ce=Tt.indexOf(Te.value),we=(0,E.Z)(Tt);Ce===-1?we.push(Te.value):we.splice(Ce,1),"value"in Je||tn(we),Qe==null||Qe(we.filter(ze=>on.includes(ze)).sort((ze,Ye)=>{const mt=Oe.findIndex(Ot=>Ot.value===ze),Ft=Oe.findIndex(Ot=>Ot.value===Ye);return mt-Ft}))},dt=et("checkbox",rt),Lt=`${dt}-group`,[ce,ft]=(0,He.ZP)(dt),Kt=(0,b.Z)(Je,["value","disabled"]),rn=ve.length?Oe.map(Te=>je.createElement(y,{prefixCls:dt,key:Te.value.toString(),disabled:"disabled"in Te?Te.disabled:Je.disabled,value:Te.value,checked:Tt.includes(Te.value),onChange:Te.onChange,className:`${Lt}-item`,style:Te.style,title:Te.title},Te.label)):_e,pt={toggleOption:Dt,value:Tt,disabled:Je.disabled,name:Je.name,registerValue:nt,cancelValue:Ue},Xe=se()(Lt,{[`${Lt}-rtl`]:st==="rtl"},Ct,Pt,ft);return ce(je.createElement("div",Object.assign({className:Xe,style:Fe},Kt,{ref:pe}),je.createElement(Ge.Provider,{value:pt},rn)))},te=je.forwardRef(z);var ne=je.memo(te);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(ke,ot,oe){"use strict";oe.d(ot,{C2:function(){return de}});var ee=oe(14747),se=oe(45503),We=oe(67968);const je=Le=>{const{checkboxCls:me}=Le,Ve=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(Le)),{display:"inline-flex",flexWrap:"wrap",columnGap:Le.marginXS,[`> ${Le.antCls}-row`]:{flex:1}}),[Ve]:Object.assign(Object.assign({},(0,ee.Wf)(Le)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ve}`]:{marginInlineStart:0},[`&${Ve}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,ee.Wf)(Le)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Le.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,ee.oN)(Le))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Le.checkboxSize,height:Le.checkboxSize,direction:"ltr",backgroundColor:Le.colorBgContainer,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,borderCollapse:"separate",transition:`all ${Le.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Le.checkboxSize/14*5,height:Le.checkboxSize/14*8,border:`${Le.lineWidthBold}px solid ${Le.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Le.motionDurationFast} ${Le.motionEaseInBack}, opacity ${Le.motionDurationFast}`}},"& + span":{paddingInlineStart:Le.paddingXS,paddingInlineEnd:Le.paddingXS}})},{[`
|
|
${Ve}:not(${Ve}-disabled),
|
|
${me}:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{borderColor:Le.colorPrimary}},[`${Ve}:not(${Ve}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:Le.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:Le.colorPrimary,borderColor:Le.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Le.motionDurationMid} ${Le.motionEaseOutBack} ${Le.motionDurationFast}`}}},[`
|
|
${Ve}-checked:not(${Ve}-disabled),
|
|
${me}-checked:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:Le.colorBgContainer,borderColor:Le.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Le.fontSizeLG/2,height:Le.fontSizeLG/2,backgroundColor:Le.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ve}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,"&:after":{borderColor:Le.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Le.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:Le.colorTextDisabled}}}]};function de(Le,me){const Ve=(0,se.TS)(me,{checkboxCls:`.${Le}`,checkboxSize:me.controlInteractiveSize});return[je(Ve)]}ot.ZP=(0,We.Z)("Checkbox",(Le,me)=>{let{prefixCls:Ve}=me;return[de(Ve,Le)]})},96074:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Re}});var ee=oe(94184),se=oe.n(ee),We=oe(67294),je=oe(53124),de=oe(14747),Le=oe(67968),me=oe(45503);const Ve=xe=>{const{componentCls:ae,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=xe;return{[ae]:Object.assign(Object.assign({},(0,de.Wf)(xe)),{borderBlockStart:`${E}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${xe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${xe.dividerHorizontalWithTextGutterMargin}px 0`,color:xe.colorTextHeading,fontWeight:500,fontSize:xe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ae}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ae}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ae}-with-text${ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ae}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ae}-with-text`]:{color:xe.colorText,fontWeight:"normal",fontSize:xe.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:a}}})}};var Ge=(0,Le.Z)("Divider",xe=>{const ae=(0,me.TS)(xe,{dividerHorizontalWithTextGutterMargin:xe.margin,dividerHorizontalGutterMargin:xe.marginLG,sizePaddingEdgeHorizontal:0});return[Ve(ae)]},xe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:xe.marginXS})),He=function(xe,ae){var a={};for(var y in xe)Object.prototype.hasOwnProperty.call(xe,y)&&ae.indexOf(y)<0&&(a[y]=xe[y]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,y=Object.getOwnPropertySymbols(xe);E<y.length;E++)ae.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(xe,y[E])&&(a[y[E]]=xe[y[E]]);return a},Re=xe=>{const{getPrefixCls:ae,direction:a,divider:y}=We.useContext(je.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:te,rootClassName:ne,children:re,dashed:ie,plain:le,style:pe}=xe,he=He(xe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),_e=ae("divider",E),[ve,rt]=Ge(_e),Ct=x.length>0?`-${x}`:x,Pt=!!re,Fe=x==="left"&&z!=null,Qe=x==="right"&&z!=null,Je=se()(_e,y==null?void 0:y.className,rt,`${_e}-${b}`,{[`${_e}-with-text`]:Pt,[`${_e}-with-text${Ct}`]:Pt,[`${_e}-dashed`]:!!ie,[`${_e}-plain`]:!!le,[`${_e}-rtl`]:a==="rtl",[`${_e}-no-default-orientation-margin-left`]:Fe,[`${_e}-no-default-orientation-margin-right`]:Qe},te,ne),et=We.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),st=Object.assign(Object.assign({},Fe&&{marginLeft:et}),Qe&&{marginRight:et});return ve(We.createElement("div",Object.assign({className:Je,style:Object.assign(Object.assign({},y==null?void 0:y.style),pe)},he,{role:"separator"}),re&&b!=="vertical"&&We.createElement("span",{className:`${_e}-inner-text`,style:st},re)))}},72565:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Pn}});var ee=oe(94184),se=oe.n(ee),We=oe(1413),je=oe(97685),de=oe(67294),Le=oe(73935);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ve={};function Ge(Se,fe){}function He(Se,fe){}function Ze(){Ve={}}function Re(Se,fe,Ne){!fe&&!Ve[Ne]&&(Se(!1,Ne),Ve[Ne]=!0)}function xe(Se,fe){Re(Ge,Se,fe)}function ae(Se,fe){Re(He,Se,fe)}var a=null,y=oe(71002),E=oe(18459);function b(Se,fe,Ne){var De=de.useRef({});return(!("value"in De.current)||Ne(De.current.condition,fe))&&(De.current.value=Se(),De.current.condition=fe),De.current.value}function x(Se,fe){typeof Se=="function"?Se(fe):(0,y.Z)(Se)==="object"&&Se&&"current"in Se&&(Se.current=fe)}function z(){for(var Se=arguments.length,fe=new Array(Se),Ne=0;Ne<Se;Ne++)fe[Ne]=arguments[Ne];var De=fe.filter(function(Ke){return Ke});return De.length<=1?De[0]:function(Ke){fe.forEach(function(yt){x(yt,Ke)})}}function te(){for(var Se=arguments.length,fe=new Array(Se),Ne=0;Ne<Se;Ne++)fe[Ne]=arguments[Ne];return b(function(){return z.apply(void 0,fe)},fe,function(De,Ke){return De.length===Ke.length&&De.every(function(yt,xt){return yt===Ke[xt]})})}function ne(Se){var fe,Ne,De=(0,E.isMemo)(Se)?Se.type.type:Se.type;return!(typeof De=="function"&&!((fe=De.prototype)!==null&&fe!==void 0&&fe.render)||typeof Se=="function"&&!((Ne=Se.prototype)!==null&&Ne!==void 0&&Ne.render))}var re=de.createContext(null),ie=re,le=oe(74902),pe=me()?de.useLayoutEffect:de.useEffect,he=pe,_e=function(fe,Ne){var De=React.useRef(!0);pe(function(){if(!De.current)return fe()},Ne),pe(function(){return De.current=!1,function(){De.current=!0}},[])},ve=[];function rt(Se,fe){var Ne=de.useState(function(){if(!me())return null;var Ht=document.createElement("div");return Ht}),De=(0,je.Z)(Ne,1),Ke=De[0],yt=de.useRef(!1),xt=de.useContext(ie),At=de.useState(ve),Nt=(0,je.Z)(At,2),Mt=Nt[0],bt=Nt[1],gn=xt||(yt.current?void 0:function(Ht){bt(function(Ut){var En=[Ht].concat((0,le.Z)(Ut));return En})});function Gt(){Ke.parentElement||document.body.appendChild(Ke),yt.current=!0}function St(){var Ht;(Ht=Ke.parentElement)===null||Ht===void 0||Ht.removeChild(Ke),yt.current=!1}return he(function(){return Se?xt?xt(Gt):Gt():St(),St},[Se]),he(function(){Mt.length&&(Mt.forEach(function(Ht){return Ht()}),bt(ve))},[Mt]),[Ke,gn]}function Ct(Se,fe){if(!Se)return!1;if(Se.contains)return Se.contains(fe);for(var Ne=fe;Ne;){if(Ne===Se)return!0;Ne=Ne.parentNode}return!1}var Pt="data-rc-order",Fe="rc-util-key",Qe=new Map;function Je(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=Se.mark;return fe?fe.startsWith("data-")?fe:"data-".concat(fe):Fe}function et(Se){if(Se.attachTo)return Se.attachTo;var fe=document.querySelector("head");return fe||document.body}function st(Se){return Se==="queue"?"prependQueue":Se?"prepend":"append"}function Tt(Se){return Array.from((Qe.get(Se)||Se).children).filter(function(fe){return fe.tagName==="STYLE"})}function tn(Se){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var Ne=fe.csp,De=fe.prepend,Ke=document.createElement("style");Ke.setAttribute(Pt,st(De)),Ne!=null&&Ne.nonce&&(Ke.nonce=Ne==null?void 0:Ne.nonce),Ke.innerHTML=Se;var yt=et(fe),xt=yt.firstChild;if(De){if(De==="queue"){var At=Tt(yt).filter(function(Nt){return["prepend","prependQueue"].includes(Nt.getAttribute(Pt))});if(At.length)return yt.insertBefore(Ke,At[At.length-1].nextSibling),Ke}yt.insertBefore(Ke,xt)}else yt.appendChild(Ke);return Ke}function on(Se){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=et(fe);return Tt(Ne).find(function(De){return De.getAttribute(Je(fe))===Se})}function ln(Se){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=on(Se,fe);if(Ne){var De=et(fe);De.removeChild(Ne)}}function Oe(Se,fe){var Ne=Qe.get(Se);if(!Ne||!Ct(document,Ne)){var De=tn("",fe),Ke=De.parentNode;Qe.set(Se,Ke),Se.removeChild(De)}}function Ue(){Qe.clear()}function nt(Se,fe){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=et(Ne);Oe(De,Ne);var Ke=on(fe,Ne);if(Ke){var yt,xt;if((yt=Ne.csp)!==null&&yt!==void 0&&yt.nonce&&Ke.nonce!==((xt=Ne.csp)===null||xt===void 0?void 0:xt.nonce)){var At;Ke.nonce=(At=Ne.csp)===null||At===void 0?void 0:At.nonce}return Ke.innerHTML!==Se&&(Ke.innerHTML=Se),Ke}var Nt=tn(Se,Ne);return Nt.setAttribute(Je(Ne),fe),Nt}var Dt;function dt(Se){if(typeof document=="undefined")return 0;if(Se||Dt===void 0){var fe=document.createElement("div");fe.style.width="100%",fe.style.height="200px";var Ne=document.createElement("div"),De=Ne.style;De.position="absolute",De.top="0",De.left="0",De.pointerEvents="none",De.visibility="hidden",De.width="200px",De.height="150px",De.overflow="hidden",Ne.appendChild(fe),document.body.appendChild(Ne);var Ke=fe.offsetWidth;Ne.style.overflow="scroll";var yt=fe.offsetWidth;Ke===yt&&(yt=Ne.clientWidth),document.body.removeChild(Ne),Dt=Ke-yt}return Dt}function Lt(Se){var fe=Se.match(/^(.*)px$/),Ne=Number(fe==null?void 0:fe[1]);return Number.isNaN(Ne)?dt():Ne}function ce(Se){if(typeof document=="undefined"||!Se||!(Se instanceof Element))return{width:0,height:0};var fe=getComputedStyle(Se,"::-webkit-scrollbar"),Ne=fe.width,De=fe.height;return{width:Lt(Ne),height:Lt(De)}}function ft(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Kt="rc-util-locker-".concat(Date.now()),rn=0;function pt(Se){var fe=!!Se,Ne=de.useState(function(){return rn+=1,"".concat(Kt,"_").concat(rn)}),De=(0,je.Z)(Ne,1),Ke=De[0];he(function(){if(fe){var yt=ce(document.body).width,xt=ft();nt(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(xt?"width: calc(100% - ".concat(yt,"px);"):"",`
|
|
}`),Ke)}else ln(Ke);return function(){ln(Ke)}},[fe,Ke])}var Xe=!1;function Te(Se){return typeof Se=="boolean"&&(Xe=Se),Xe}var Ce=function(fe){return fe===!1?!1:!me()||!fe?null:typeof fe=="string"?document.querySelector(fe):typeof fe=="function"?fe():fe},we=de.forwardRef(function(Se,fe){var Ne=Se.open,De=Se.autoLock,Ke=Se.getContainer,yt=Se.debug,xt=Se.autoDestroy,At=xt===void 0?!0:xt,Nt=Se.children,Mt=de.useState(Ne),bt=(0,je.Z)(Mt,2),gn=bt[0],Gt=bt[1],St=gn||Ne;de.useEffect(function(){(At||Ne)&&Gt(Ne)},[Ne,At]);var Ht=de.useState(function(){return Ce(Ke)}),Ut=(0,je.Z)(Ht,2),En=Ut[0],mn=Ut[1];de.useEffect(function(){var ma=Ce(Ke);mn(ma!=null?ma:null)});var sn=rt(St&&!En,yt),un=(0,je.Z)(sn,2),Xt=un[0],en=un[1],Sn=En!=null?En:Xt;pt(De&&Ne&&me()&&(Sn===Xt||Sn===document.body));var Zn=null;if(Nt&&ne(Nt)&&fe){var Vn=Nt;Zn=Vn.ref}var da=te(Zn,fe);if(!St||!me()||En===void 0)return null;var va=Sn===!1||Te(),Pa=Nt;return fe&&(Pa=de.cloneElement(Nt,{ref:da})),de.createElement(ie.Provider,{value:en},va?Pa:(0,Le.createPortal)(Pa,Sn))}),ze=we,Ye=ze;function mt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ft=mt()?de.useLayoutEffect:de.useEffect,Ot=function(fe,Ne){var De=de.useRef(!0);Ft(function(){return fe(De.current)},Ne),Ft(function(){return De.current=!1,function(){De.current=!0}},[])},Rt=function(fe,Ne){Ot(function(De){if(!De)return fe()},Ne)},Yt=Ot,ue=de.createContext(null),Ee=de.createContext({}),jt=ue,at=oe(4942),ye=oe(87462),gt=oe(62874),qe={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(fe){var Ne=fe.keyCode;if(fe.altKey&&!fe.ctrlKey||fe.metaKey||Ne>=qe.F1&&Ne<=qe.F12)return!1;switch(Ne){case qe.ALT:case qe.CAPS_LOCK:case qe.CONTEXT_MENU:case qe.CTRL:case qe.DOWN:case qe.END:case qe.ESC:case qe.HOME:case qe.INSERT:case qe.LEFT:case qe.MAC_FF_META:case qe.META:case qe.NUMLOCK:case qe.NUM_CENTER:case qe.PAGE_DOWN:case qe.PAGE_UP:case qe.PAUSE:case qe.PRINT_SCREEN:case qe.RIGHT:case qe.SHIFT:case qe.UP:case qe.WIN_KEY:case qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(fe){if(fe>=qe.ZERO&&fe<=qe.NINE||fe>=qe.NUM_ZERO&&fe<=qe.NUM_MULTIPLY||fe>=qe.A&&fe<=qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&fe===0)return!0;switch(fe){case qe.SPACE:case qe.QUESTION_MARK:case qe.NUM_PLUS:case qe.NUM_MINUS:case qe.NUM_PERIOD:case qe.NUM_DIVISION:case qe.SEMICOLON:case qe.DASH:case qe.EQUALS:case qe.COMMA:case qe.PERIOD:case qe.SLASH:case qe.APOSTROPHE:case qe.SINGLE_QUOTE:case qe.OPEN_SQUARE_BRACKET:case qe.BACKSLASH:case qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Et=qe,Zt=`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`,vt=`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`,wt="".concat(Zt," ").concat(vt).split(/[\s\n]+/),It="aria-",an="data-";function Vt(Se,fe){return Se.indexOf(fe)===0}function Qt(Se){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne;fe===!1?Ne={aria:!0,data:!0,attr:!0}:fe===!0?Ne={aria:!0}:Ne=(0,We.Z)({},fe);var De={};return Object.keys(Se).forEach(function(Ke){(Ne.aria&&(Ke==="role"||Vt(Ke,It))||Ne.data&&Vt(Ke,an)||Ne.attr&&wt.includes(Ke))&&(De[Ke]=Se[Ke])}),De}function pn(Se){var fe=React.useRef();fe.current=Se;var Ne=React.useCallback(function(){for(var De,Ke=arguments.length,yt=new Array(Ke),xt=0;xt<Ke;xt++)yt[xt]=arguments[xt];return(De=fe.current)===null||De===void 0?void 0:De.call.apply(De,[fe].concat(yt))},[]);return Ne}function cn(Se){var fe=React.useRef(!1),Ne=React.useState(Se),De=_slicedToArray(Ne,2),Ke=De[0],yt=De[1];React.useEffect(function(){return fe.current=!1,function(){fe.current=!0}},[]);function xt(At,Nt){Nt&&fe.current||yt(At)}return[Ke,xt]}function Bn(Se){return Se!==void 0}function xn(Se,fe){var Ne=fe||{},De=Ne.defaultValue,Ke=Ne.value,yt=Ne.onChange,xt=Ne.postState,At=useState(function(){return Bn(Ke)?Ke:Bn(De)?typeof De=="function"?De():De:typeof Se=="function"?Se():Se}),Nt=_slicedToArray(At,2),Mt=Nt[0],bt=Nt[1],gn=Ke!==void 0?Ke:Mt,Gt=xt?xt(gn):gn,St=useEvent(yt),Ht=useState([gn]),Ut=_slicedToArray(Ht,2),En=Ut[0],mn=Ut[1];useLayoutUpdateEffect(function(){var un=En[0];Mt!==un&&St(Mt,un)},[En]),useLayoutUpdateEffect(function(){Bn(Ke)||bt(Ke)},[Ke]);var sn=useEvent(function(un,Xt){bt(un,Xt),mn([gn],Xt)});return[Gt,sn]}var Un=oe(33993);function qn(Se,fe,Ne){var De=de.useRef({});return(!("value"in De.current)||Ne(De.current.condition,fe))&&(De.current.value=Se(),De.current.condition=fe),De.current.value}function _n(Se,fe){typeof Se=="function"?Se(fe):(0,y.Z)(Se)==="object"&&Se&&"current"in Se&&(Se.current=fe)}function Xn(){for(var Se=arguments.length,fe=new Array(Se),Ne=0;Ne<Se;Ne++)fe[Ne]=arguments[Ne];var De=fe.filter(function(Ke){return Ke});return De.length<=1?De[0]:function(Ke){fe.forEach(function(yt){_n(yt,Ke)})}}function In(){for(var Se=arguments.length,fe=new Array(Se),Ne=0;Ne<Se;Ne++)fe[Ne]=arguments[Ne];return qn(function(){return Xn.apply(void 0,fe)},fe,function(De,Ke){return De.length!==Ke.length||De.every(function(yt,xt){return yt!==Ke[xt]})})}function Gn(Se){var fe,Ne,De=isMemo(Se)?Se.type.type:Se.type;return!(typeof De=="function"&&!((fe=De.prototype)!==null&&fe!==void 0&&fe.render)||typeof Se=="function"&&!((Ne=Se.prototype)!==null&&Ne!==void 0&&Ne.render))}function vn(Se){return!isValidElement(Se)||isFragment(Se)?!1:Gn(Se)}function ea(Se,fe,Ne,De){if(!fe.length)return Ne;var Ke=_toArray(fe),yt=Ke[0],xt=Ke.slice(1),At;return!Se&&typeof yt=="number"?At=[]:Array.isArray(Se)?At=_toConsumableArray(Se):At=_objectSpread({},Se),De&&Ne===void 0&&xt.length===1?delete At[yt][xt[0]]:At[yt]=ea(At[yt],xt,Ne,De),At}function Kn(Se,fe,Ne){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return fe.length&&De&&Ne===void 0&&!get(Se,fe.slice(0,-1))?Se:ea(Se,fe,Ne,De)}function Nn(Se){return _typeof(Se)==="object"&&Se!==null&&Object.getPrototypeOf(Se)===Object.prototype}function Cn(Se){return Array.isArray(Se)?[]:{}}var fa=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Yn(){for(var Se=arguments.length,fe=new Array(Se),Ne=0;Ne<Se;Ne++)fe[Ne]=arguments[Ne];var De=Cn(fe[0]);return fe.forEach(function(Ke){function yt(xt,At){var Nt=new Set(At),Mt=get(Ke,xt),bt=Array.isArray(Mt);if(bt||Nn(Mt)){if(!Nt.has(Mt)){Nt.add(Mt);var gn=get(De,xt);bt?De=Kn(De,xt,[]):(!gn||_typeof(gn)!=="object")&&(De=Kn(De,xt,Cn(Mt))),fa(Mt).forEach(function(Gt){yt([].concat(_toConsumableArray(xt),[Gt]),Nt)})}}else De=Kn(De,xt,Mt)}yt([])}),De}var la={},be=[],Ae=function(fe){be.push(fe)};function Be(Se,fe){if(0)var Ne}function it(Se,fe){if(0)var Ne}function _t(){la={}}function Wt(Se,fe,Ne){!fe&&!la[Ne]&&(Se(!1,Ne),la[Ne]=!0)}function bn(Se,fe){Wt(Be,Se,fe)}function dn(Se,fe){Wt(it,Se,fe)}bn.preMessage=Ae,bn.resetWarned=_t,bn.noteOnce=dn;var yn=bn,On=function(fe){var Ne=fe.prefixCls,De=fe.className,Ke=fe.style,yt=fe.children,xt=fe.containerRef,At=fe.id,Nt=fe.onMouseEnter,Mt=fe.onMouseOver,bt=fe.onMouseLeave,gn=fe.onClick,Gt=fe.onKeyDown,St=fe.onKeyUp,Ht={onMouseEnter:Nt,onMouseOver:Mt,onMouseLeave:bt,onClick:gn,onKeyDown:Gt,onKeyUp:St},Ut=de.useContext(Ee),En=Ut.panel,mn=In(En,xt);return de.createElement(de.Fragment,null,de.createElement("div",(0,ye.Z)({id:At,className:se()("".concat(Ne,"-content"),De),style:(0,We.Z)({},Ke),"aria-modal":"true",role:"dialog",ref:mn},Ht),yt))},jn=On;function ut(Se){return typeof Se=="string"&&String(Number(Se))===Se?(yn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Se)):Se}function Ln(Se){warning(!("wrapperClassName"in Se),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Se.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 ia(Se,fe){var Ne,De,Ke,yt,xt=Se.prefixCls,At=Se.open,Nt=Se.placement,Mt=Se.inline,bt=Se.push,gn=Se.forceRender,Gt=Se.autoFocus,St=Se.keyboard,Ht=Se.rootClassName,Ut=Se.rootStyle,En=Se.zIndex,mn=Se.className,sn=Se.id,un=Se.style,Xt=Se.motion,en=Se.width,Sn=Se.height,Zn=Se.children,Vn=Se.contentWrapperStyle,da=Se.mask,va=Se.maskClosable,Pa=Se.maskMotion,ma=Se.maskClassName,kt=Se.maskStyle,ht=Se.afterOpenChange,Bt=Se.onClose,zt=Se.onMouseEnter,wn=Se.onMouseOver,Mn=Se.onMouseLeave,Qn=Se.onClick,Rn=Se.onKeyDown,zn=Se.onKeyUp,Dn=de.useRef(),aa=de.useRef(),Jn=de.useRef();de.useImperativeHandle(fe,function(){return Dn.current});var wa=function(oa){var Na=oa.keyCode,Oa=oa.shiftKey;switch(Na){case Et.TAB:{if(Na===Et.TAB){if(!Oa&&document.activeElement===Jn.current){var Ta;(Ta=aa.current)===null||Ta===void 0||Ta.focus({preventScroll:!0})}else if(Oa&&document.activeElement===aa.current){var Fn;(Fn=Jn.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}}break}case Et.ESC:{Bt&&St&&(oa.stopPropagation(),Bt(oa));break}}};de.useEffect(function(){if(At&&Gt){var kn;(kn=Dn.current)===null||kn===void 0||kn.focus({preventScroll:!0})}},[At]);var xa=de.useState(!1),Ea=(0,je.Z)(xa,2),$a=Ea[0],sa=Ea[1],Wn=de.useContext(jt),An;bt===!1?An={distance:0}:bt===!0?An={}:An=bt||{};var ca=(Ne=(De=(Ke=An)===null||Ke===void 0?void 0:Ke.distance)!==null&&De!==void 0?De:Wn==null?void 0:Wn.pushDistance)!==null&&Ne!==void 0?Ne:180,Ma=de.useMemo(function(){return{pushDistance:ca,push:function(){sa(!0)},pull:function(){sa(!1)}}},[ca]);de.useEffect(function(){if(At){var kn;Wn==null||(kn=Wn.push)===null||kn===void 0||kn.call(Wn)}else{var oa;Wn==null||(oa=Wn.pull)===null||oa===void 0||oa.call(Wn)}},[At]),de.useEffect(function(){return function(){var kn;Wn==null||(kn=Wn.pull)===null||kn===void 0||kn.call(Wn)}},[]);var Ca=da&&de.createElement(gt.Z,(0,ye.Z)({key:"mask"},Pa,{visible:At}),function(kn,oa){var Na=kn.className,Oa=kn.style;return de.createElement("div",{className:se()("".concat(xt,"-mask"),Na,ma),style:(0,We.Z)((0,We.Z)({},Oa),kt),onClick:va&&At?Bt:void 0,ref:oa})}),Ba=typeof Xt=="function"?Xt(Nt):Xt,ra={};if($a&&ca)switch(Nt){case"top":ra.transform="translateY(".concat(ca,"px)");break;case"bottom":ra.transform="translateY(".concat(-ca,"px)");break;case"left":ra.transform="translateX(".concat(ca,"px)");break;default:ra.transform="translateX(".concat(-ca,"px)");break}Nt==="left"||Nt==="right"?ra.width=ut(en):ra.height=ut(Sn);var ua={onMouseEnter:zt,onMouseOver:wn,onMouseLeave:Mn,onClick:Qn,onKeyDown:Rn,onKeyUp:zn},Aa=de.createElement(gt.Z,(0,ye.Z)({key:"panel"},Ba,{visible:At,forceRender:gn,onVisibleChanged:function(oa){ht==null||ht(oa)},removeOnLeave:!1,leavedClassName:"".concat(xt,"-content-wrapper-hidden")}),function(kn,oa){var Na=kn.className,Oa=kn.style;return de.createElement("div",(0,ye.Z)({className:se()("".concat(xt,"-content-wrapper"),Na),style:(0,We.Z)((0,We.Z)((0,We.Z)({},ra),Oa),Vn)},Qt(Se,{data:!0})),de.createElement(jn,(0,ye.Z)({id:sn,containerRef:oa,prefixCls:xt,className:mn,style:un},ua),Zn))}),Fa=(0,We.Z)({},Ut);return En&&(Fa.zIndex=En),de.createElement(jt.Provider,{value:Ma},de.createElement("div",{className:se()(xt,"".concat(xt,"-").concat(Nt),Ht,(yt={},(0,at.Z)(yt,"".concat(xt,"-open"),At),(0,at.Z)(yt,"".concat(xt,"-inline"),Mt),yt)),style:Fa,tabIndex:-1,ref:Dn,onKeyDown:wa},Ca,de.createElement("div",{tabIndex:0,ref:aa,style:ta,"aria-hidden":"true","data-sentinel":"start"}),Aa,de.createElement("div",{tabIndex:0,ref:Jn,style:ta,"aria-hidden":"true","data-sentinel":"end"})))}var Hn=de.forwardRef(ia),Tn=Hn,Sa=function(fe){var Ne=fe.open,De=Ne===void 0?!1:Ne,Ke=fe.prefixCls,yt=Ke===void 0?"rc-drawer":Ke,xt=fe.placement,At=xt===void 0?"right":xt,Nt=fe.autoFocus,Mt=Nt===void 0?!0:Nt,bt=fe.keyboard,gn=bt===void 0?!0:bt,Gt=fe.width,St=Gt===void 0?378:Gt,Ht=fe.mask,Ut=Ht===void 0?!0:Ht,En=fe.maskClosable,mn=En===void 0?!0:En,sn=fe.getContainer,un=fe.forceRender,Xt=fe.afterOpenChange,en=fe.destroyOnClose,Sn=fe.onMouseEnter,Zn=fe.onMouseOver,Vn=fe.onMouseLeave,da=fe.onClick,va=fe.onKeyDown,Pa=fe.onKeyUp,ma=fe.panelRef,kt=de.useState(!1),ht=(0,je.Z)(kt,2),Bt=ht[0],zt=ht[1],wn=de.useState(!1),Mn=(0,je.Z)(wn,2),Qn=Mn[0],Rn=Mn[1];Yt(function(){Rn(!0)},[]);var zn=Qn?De:!1,Dn=de.useRef(),aa=de.useRef();Yt(function(){zn&&(aa.current=document.activeElement)},[zn]);var Jn=function(sa){var Wn;if(zt(sa),Xt==null||Xt(sa),!sa&&aa.current&&!((Wn=Dn.current)!==null&&Wn!==void 0&&Wn.contains(aa.current))){var An;(An=aa.current)===null||An===void 0||An.focus({preventScroll:!0})}},wa=de.useMemo(function(){return{panel:ma}},[ma]);if(!un&&!Bt&&!zn&&en)return null;var xa={onMouseEnter:Sn,onMouseOver:Zn,onMouseLeave:Vn,onClick:da,onKeyDown:va,onKeyUp:Pa},Ea=(0,We.Z)((0,We.Z)({},fe),{},{open:zn,prefixCls:yt,placement:At,autoFocus:Mt,keyboard:gn,width:St,mask:Ut,maskClosable:mn,inline:sn===!1,afterOpenChange:Jn,ref:Dn},xa);return de.createElement(Ee.Provider,{value:wa},de.createElement(Ye,{open:zn||un||Bt,autoDestroy:!1,getContainer:sn,autoLock:Ut&&(zn||Bt)},de.createElement(Tn,Ea)))},ga=Sa,La=ga,pa=oe(33603),ha=oe(53124),na=oe(65223),ba=oe(69760),Me=Se=>{const{prefixCls:fe,title:Ne,footer:De,extra:Ke,closeIcon:yt,closable:xt,onClose:At,headerStyle:Nt,drawerStyle:Mt,bodyStyle:bt,footerStyle:gn,children:Gt}=Se,St=de.useCallback(sn=>de.createElement("button",{type:"button",onClick:At,"aria-label":"Close",className:`${fe}-close`},sn),[At]),[Ht,Ut]=(0,ba.Z)(xt,yt,St,void 0,!0),En=de.useMemo(()=>!Ne&&!Ht?null:de.createElement("div",{style:Nt,className:se()(`${fe}-header`,{[`${fe}-header-close-only`]:Ht&&!Ne&&!Ke})},de.createElement("div",{className:`${fe}-header-title`},Ut,Ne&&de.createElement("div",{className:`${fe}-title`},Ne)),Ke&&de.createElement("div",{className:`${fe}-extra`},Ke)),[Ht,Ut,Ke,Nt,fe,Ne]),mn=de.useMemo(()=>{if(!De)return null;const sn=`${fe}-footer`;return de.createElement("div",{className:sn,style:gn},De)},[De,gn,fe]);return de.createElement("div",{className:`${fe}-wrapper-body`,style:Mt},En,de.createElement("div",{className:`${fe}-body`,style:bt},Gt),mn)},ge=oe(4173),lt=oe(67968),hn=oe(45503),Jt=Se=>{const{componentCls:fe,motionDurationSlow:Ne}=Se,De={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ne}`}}};return{[fe]:{[`${fe}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Ne}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${fe}-panel-motion`]:{"&-left":[De,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[De,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[De,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[De,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const $e=Se=>{const{componentCls:fe,zIndexPopup:Ne,colorBgMask:De,colorBgElevated:Ke,motionDurationSlow:yt,motionDurationMid:xt,padding:At,paddingLG:Nt,fontSizeLG:Mt,lineHeightLG:bt,lineWidth:gn,lineType:Gt,colorSplit:St,marginSM:Ht,colorIcon:Ut,colorIconHover:En,colorText:mn,fontWeightStrong:sn,footerPaddingBlock:un,footerPaddingInline:Xt}=Se,en=`${fe}-content-wrapper`;return{[fe]:{position:"fixed",inset:0,zIndex:Ne,pointerEvents:"none","&-pure":{position:"relative",background:Ke,[`&${fe}-left`]:{boxShadow:Se.boxShadowDrawerLeft},[`&${fe}-right`]:{boxShadow:Se.boxShadowDrawerRight},[`&${fe}-top`]:{boxShadow:Se.boxShadowDrawerUp},[`&${fe}-bottom`]:{boxShadow:Se.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${fe}-mask`]:{position:"absolute",inset:0,zIndex:Ne,background:De,pointerEvents:"auto"},[en]:{position:"absolute",zIndex:Ne,maxWidth:"100vw",transition:`all ${yt}`,"&-hidden":{display:"none"}},[`&-left > ${en}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Se.boxShadowDrawerLeft},[`&-right > ${en}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Se.boxShadowDrawerRight},[`&-top > ${en}`]:{top:0,insetInline:0,boxShadow:Se.boxShadowDrawerUp},[`&-bottom > ${en}`]:{bottom:0,insetInline:0,boxShadow:Se.boxShadowDrawerDown},[`${fe}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Ke,pointerEvents:"auto"},[`${fe}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${fe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${At}px ${Nt}px`,fontSize:Mt,lineHeight:bt,borderBottom:`${gn}px ${Gt} ${St}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${fe}-extra`]:{flex:"none"},[`${fe}-close`]:{display:"inline-block",marginInlineEnd:Ht,color:Ut,fontWeight:sn,fontSize:Mt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${xt}`,textRendering:"auto","&:focus, &:hover":{color:En,textDecoration:"none"}},[`${fe}-title`]:{flex:1,margin:0,color:mn,fontWeight:Se.fontWeightStrong,fontSize:Mt,lineHeight:bt},[`${fe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Nt,overflow:"auto"},[`${fe}-footer`]:{flexShrink:0,padding:`${un}px ${Xt}px`,borderTop:`${gn}px ${Gt} ${St}`},"&-rtl":{direction:"rtl"}}}};var Pe=(0,lt.Z)("Drawer",Se=>{const fe=(0,hn.TS)(Se,{});return[$e(fe),Jt(fe)]},Se=>({zIndexPopup:Se.zIndexPopupBase,footerPaddingBlock:Se.paddingXS,footerPaddingInline:Se.padding})),ct=oe(16569),tt=function(Se,fe){var Ne={};for(var De in Se)Object.prototype.hasOwnProperty.call(Se,De)&&fe.indexOf(De)<0&&(Ne[De]=Se[De]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,De=Object.getOwnPropertySymbols(Se);Ke<De.length;Ke++)fe.indexOf(De[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Se,De[Ke])&&(Ne[De[Ke]]=Se[De[Ke]]);return Ne};const qt=null,nn={distance:180},fn=Se=>{var fe;const{rootClassName:Ne,width:De,height:Ke,size:yt="default",mask:xt=!0,push:At=nn,open:Nt,afterOpenChange:Mt,onClose:bt,prefixCls:gn,getContainer:Gt,style:St,className:Ht,visible:Ut,afterVisibleChange:En}=Se,mn=tt(Se,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:sn,getPrefixCls:un,direction:Xt,drawer:en}=de.useContext(ha.E_),Sn=un("drawer",gn),[Zn,Vn]=Pe(Sn),da=Gt===void 0&&sn?()=>sn(document.body):Gt,va=se()({"no-mask":!xt,[`${Sn}-rtl`]:Xt==="rtl"},Ne,Vn),Pa=de.useMemo(()=>De!=null?De:yt==="large"?736:378,[De,yt]),ma=de.useMemo(()=>Ke!=null?Ke:yt==="large"?736:378,[Ke,yt]),kt={motionName:(0,pa.m)(Sn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ht=zt=>({motionName:(0,pa.m)(Sn,`panel-motion-${zt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Bt=(0,ct.H)();return Zn(de.createElement(ge.BR,null,de.createElement(na.Ux,{status:!0,override:!0},de.createElement(La,Object.assign({prefixCls:Sn,onClose:bt,maskMotion:kt,motion:ht},mn,{open:Nt!=null?Nt:Ut,mask:xt,push:At,width:Pa,height:ma,style:Object.assign(Object.assign({},en==null?void 0:en.style),St),className:se()(en==null?void 0:en.className,Ht),rootClassName:va,getContainer:da,afterOpenChange:Mt!=null?Mt:En,panelRef:Bt}),de.createElement(Me,Object.assign({prefixCls:Sn},mn,{onClose:bt}))))))},$t=Se=>{const{prefixCls:fe,style:Ne,className:De,placement:Ke="right"}=Se,yt=tt(Se,["prefixCls","style","className","placement"]),{getPrefixCls:xt}=de.useContext(ha.E_),At=xt("drawer",fe),[Nt,Mt]=Pe(At),bt=se()(At,`${At}-pure`,`${At}-${Ke}`,Mt,De);return Nt(de.createElement("div",{className:bt,style:Ne},de.createElement(Me,Object.assign({prefixCls:At},yt))))};fn._InternalPanelDoNotUseOrYouWillBeFired=$t;var Pn=fn},35874:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ce}});var ee=oe(67294),se=oe(91034),We=oe(94184),je=oe.n(We),de=oe(87462),Le=oe(4942),me=oe(97685),Ve=oe(45987),Ge=oe(62709),He=oe(71002),Ze=oe(12060);function Re(we,ze,Ye){var mt=React.useRef({});return(!("value"in mt.current)||Ye(mt.current.condition,ze))&&(mt.current.value=we(),mt.current.condition=ze),mt.current.value}function xe(we,ze){typeof we=="function"?we(ze):(0,He.Z)(we)==="object"&&we&&"current"in we&&(we.current=ze)}function ae(){for(var we=arguments.length,ze=new Array(we),Ye=0;Ye<we;Ye++)ze[Ye]=arguments[Ye];var mt=ze.filter(function(Ft){return Ft});return mt.length<=1?mt[0]:function(Ft){ze.forEach(function(Ot){xe(Ot,Ft)})}}function a(){for(var we=arguments.length,ze=new Array(we),Ye=0;Ye<we;Ye++)ze[Ye]=arguments[Ye];return useMemo(function(){return ae.apply(void 0,ze)},ze,function(mt,Ft){return mt.length===Ft.length&&mt.every(function(Ot,Rt){return Ot===Ft[Rt]})})}function y(we){var ze,Ye,mt=(0,Ze.isMemo)(we)?we.type.type:we.type;return!(typeof mt=="function"&&!((ze=mt.prototype)!==null&&ze!==void 0&&ze.render)||typeof we=="function"&&!((Ye=we.prototype)!==null&&Ye!==void 0&&Ye.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ze){var Ye=ze.keyCode;if(ze.altKey&&!ze.ctrlKey||ze.metaKey||Ye>=E.F1&&Ye<=E.F12)return!1;switch(Ye){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=E.ZERO&&ze<=E.NINE||ze>=E.NUM_ZERO&&ze<=E.NUM_MULTIPLY||ze>=E.A&&ze<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(ze){return+setTimeout(ze,16)},z=function(ze){return clearTimeout(ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(ze){return window.requestAnimationFrame(ze)},z=function(ze){return window.cancelAnimationFrame(ze)});var te=0,ne=new Map;function re(we){ne.delete(we)}var ie=function(ze){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var mt=te;function Ft(Ot){if(Ot===0)re(mt),ze();else{var Rt=x(function(){Ft(Ot-1)});ne.set(mt,Rt)}}return Ft(Ye),mt};ie.cancel=function(we){var ze=ne.get(we);return re(ze),z(ze)};var le=ie,pe=b.ESC,he=b.TAB;function _e(we){var ze=we.visible,Ye=we.triggerRef,mt=we.onVisibleChange,Ft=we.autoFocus,Ot=we.overlayRef,Rt=ee.useRef(!1),Yt=function(){if(ze){var at,ye;(at=Ye.current)===null||at===void 0||(ye=at.focus)===null||ye===void 0||ye.call(at),mt==null||mt(!1)}},ue=function(){var at;return(at=Ot.current)!==null&&at!==void 0&&at.focus?(Ot.current.focus(),Rt.current=!0,!0):!1},Ee=function(at){switch(at.keyCode){case pe:Yt();break;case he:{var ye=!1;Rt.current||(ye=ue()),ye?at.preventDefault():Yt();break}}};ee.useEffect(function(){return ze?(window.addEventListener("keydown",Ee),Ft&&le(ue,3),function(){window.removeEventListener("keydown",Ee),Rt.current=!1}):function(){Rt.current=!1}},[ze])}var ve=(0,ee.forwardRef)(function(we,ze){var Ye=we.overlay,mt=we.arrow,Ft=we.prefixCls,Ot=(0,ee.useMemo)(function(){var Yt;return typeof Ye=="function"?Yt=Ye():Yt=Ye,Yt},[Ye]),Rt=ae(ze,Ot==null?void 0:Ot.ref);return ee.createElement(ee.Fragment,null,mt&&ee.createElement("div",{className:"".concat(Ft,"-arrow")}),ee.cloneElement(Ot,{ref:y(Ot)?Rt:void 0}))}),rt=ve,Ct={adjustX:1,adjustY:1},Pt=[0,0],Fe={topLeft:{points:["bl","tl"],overflow:Ct,offset:[0,-4],targetOffset:Pt},top:{points:["bc","tc"],overflow:Ct,offset:[0,-4],targetOffset:Pt},topRight:{points:["br","tr"],overflow:Ct,offset:[0,-4],targetOffset:Pt},bottomLeft:{points:["tl","bl"],overflow:Ct,offset:[0,4],targetOffset:Pt},bottom:{points:["tc","bc"],overflow:Ct,offset:[0,4],targetOffset:Pt},bottomRight:{points:["tr","br"],overflow:Ct,offset:[0,4],targetOffset:Pt}},Qe=Fe,Je=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function et(we,ze){var Ye,mt=we.arrow,Ft=mt===void 0?!1:mt,Ot=we.prefixCls,Rt=Ot===void 0?"rc-dropdown":Ot,Yt=we.transitionName,ue=we.animation,Ee=we.align,jt=we.placement,at=jt===void 0?"bottomLeft":jt,ye=we.placements,gt=ye===void 0?Qe:ye,qe=we.getPopupContainer,Et=we.showAction,Zt=we.hideAction,vt=we.overlayClassName,wt=we.overlayStyle,It=we.visible,an=we.trigger,Vt=an===void 0?["hover"]:an,Qt=we.autoFocus,pn=we.overlay,cn=we.children,Bn=we.onVisibleChange,xn=(0,Ve.Z)(we,Je),Un=ee.useState(),qn=(0,me.Z)(Un,2),_n=qn[0],Xn=qn[1],In="visible"in we?It:_n,Gn=ee.useRef(null),vn=ee.useRef(null),ea=ee.useRef(null);ee.useImperativeHandle(ze,function(){return Gn.current});var Kn=function(it){Xn(it),Bn==null||Bn(it)};_e({visible:In,triggerRef:ea,onVisibleChange:Kn,autoFocus:Qt,overlayRef:vn});var Nn=function(it){var _t=we.onOverlayClick;Xn(!1),_t&&_t(it)},Cn=function(){return ee.createElement(rt,{ref:vn,overlay:pn,prefixCls:Rt,arrow:Ft})},fa=function(){return typeof pn=="function"?Cn:Cn()},Yn=function(){var it=we.minOverlayWidthMatchTrigger,_t=we.alignPoint;return"minOverlayWidthMatchTrigger"in we?it:!_t},la=function(){var it=we.openClassName;return it!==void 0?it:"".concat(Rt,"-open")},be=ee.cloneElement(cn,{className:je()((Ye=cn.props)===null||Ye===void 0?void 0:Ye.className,In&&la()),ref:y(cn)?ae(ea,cn.ref):void 0}),Ae=Zt;return!Ae&&Vt.indexOf("contextMenu")!==-1&&(Ae=["click"]),ee.createElement(Ge.Z,(0,de.Z)({builtinPlacements:gt},xn,{prefixCls:Rt,ref:Gn,popupClassName:je()(vt,(0,Le.Z)({},"".concat(Rt,"-show-arrow"),Ft)),popupStyle:wt,action:Vt,showAction:Et,hideAction:Ae,popupPlacement:at,popupAlign:Ee,popupTransitionName:Yt,popupAnimation:ue,popupVisible:In,stretch:Yn()?"minWidth":"",popup:fa(),onPopupVisibleChange:Kn,onPopupClick:Nn,getPopupContainer:qe}),be)}var st=ee.forwardRef(et),Tt=st,tn=oe(60276),on=oe(5663),ln=oe(10366),Oe=oe(80636),Ue=oe(8745),nt=oe(96159),Dt=oe(53124),dt=oe(68508),Lt=oe(76529),ce=oe(46605),ft=oe(66748);const Kt=null,rn=we=>{const{menu:ze,arrow:Ye,prefixCls:mt,children:Ft,trigger:Ot,disabled:Rt,dropdownRender:Yt,getPopupContainer:ue,overlayClassName:Ee,rootClassName:jt,open:at,onOpenChange:ye,visible:gt,onVisibleChange:qe,mouseEnterDelay:Et=.15,mouseLeaveDelay:Zt=.1,autoAdjustOverflow:vt=!0,placement:wt="",overlay:It,transitionName:an}=we,{getPopupContainer:Vt,getPrefixCls:Qt,direction:pn}=ee.useContext(Dt.E_),cn=ee.useMemo(()=>{const be=Qt();return an!==void 0?an:wt.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[Qt,wt,an]),Bn=ee.useMemo(()=>wt?wt.includes("Center")?wt.slice(0,wt.indexOf("Center")):wt:pn==="rtl"?"bottomRight":"bottomLeft",[wt,pn]),xn=Qt("dropdown",mt),[Un,qn]=(0,ft.Z)(xn),[,_n]=(0,ce.Z)(),Xn=ee.Children.only(Ft),In=(0,nt.Tm)(Xn,{className:je()(`${xn}-trigger`,{[`${xn}-rtl`]:pn==="rtl"},Xn.props.className),disabled:Rt}),Gn=Rt?[]:Ot;let vn;Gn&&Gn.includes("contextMenu")&&(vn=!0);const[ea,Kn]=(0,on.Z)(!1,{value:at!=null?at:gt}),Nn=(0,tn.useEvent)(be=>{ye==null||ye(be),qe==null||qe(be),Kn(be)}),Cn=je()(Ee,jt,qn,{[`${xn}-rtl`]:pn==="rtl"}),fa=(0,Oe.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:vt,offset:_n.marginXXS,arrowWidth:Ye?_n.sizePopupArrow:0,borderRadius:_n.borderRadius}),Yn=ee.useCallback(()=>{Kn(!1)},[]),la=()=>{let be;return ze!=null&&ze.items?be=ee.createElement(dt.default,Object.assign({},ze)):typeof It=="function"?be=It():be=It,Yt&&(be=Yt(be)),be=ee.Children.only(typeof be=="string"?ee.createElement("span",null,be):be),ee.createElement(Lt.J,{prefixCls:`${xn}-menu`,expandIcon:ee.createElement("span",{className:`${xn}-menu-submenu-arrow`},ee.createElement(se.Z,{className:`${xn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Yn,validator:Ae=>{let{mode:Be}=Ae}},be)};return Un(ee.createElement(Tt,Object.assign({alignPoint:vn},(0,ln.Z)(we,["rootClassName"]),{mouseEnterDelay:Et,mouseLeaveDelay:Zt,visible:ea,builtinPlacements:fa,arrow:!!Ye,overlayClassName:Cn,prefixCls:xn,getPopupContainer:ue||Vt,transitionName:cn,trigger:Gn,overlay:la,placement:Bn,onVisibleChange:Nn}),In))};function pt(we){return Object.assign(Object.assign({},we),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Xe=(0,Ue.Z)(rn,"dropdown",we=>we,pt),Te=we=>ee.createElement(Xe,Object.assign({},we),ee.createElement("span",null));rn._InternalPanelDoNotUseOrYouWillBeFired=Te;var Ce=rn},66748:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ze}});var ee=oe(14747),se=oe(67771),We=oe(33297),je=oe(50438),de=oe(97414),Le=oe(67968),me=oe(45503),Ge=Re=>{const{componentCls:xe,menuCls:ae,colorError:a,colorTextLightSolid:y}=Re,E=`${ae}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const He=Re=>{const{componentCls:xe,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:te,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:le,controlPaddingHorizontal:pe,colorBgElevated:he}=Re;return[{[xe]:Object.assign(Object.assign({},(0,ee.Wf)(Re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:le}},[`${xe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:le},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${xe}-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${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:se.ly}})},(0,de.ZP)(Re,{colorBg:he,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,ee.Qy)(Re)),{[`${ae}-item-group-title`]:{padding:`${te}px ${pe}px`,color:Re.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Re.marginXS,fontSize:Re.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${te}px ${pe}px`,color:Re.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,ee.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:le,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:pe+Re.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:he,cursor:"not-allowed"}},[`${ae}-submenu-selected ${xe}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,se.oN)(Re,"slide-up"),(0,se.oN)(Re,"slide-down"),(0,We.Fm)(Re,"move-up"),(0,We.Fm)(Re,"move-down"),(0,je._y)(Re,"zoom-big")]]};var Ze=(0,Le.Z)("Dropdown",(Re,xe)=>{let{rootPrefixCls:ae}=xe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:te,borderRadiusLG:ne}=Re,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,de.fS)({contentRadius:ne}),le=(0,me.TS)(Re,{menuCls:`${te}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[He(le),Ge(le)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},25378:function(ke,ot,oe){"use strict";var ee=oe(67294),se=oe(14075),We=oe(57838),je=oe(74443);function de(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const me=(0,ee.useRef)({}),Ve=(0,We.Z)(),Ge=(0,je.ZP)();return(0,se.Z)(()=>{const He=Ge.subscribe(Ze=>{me.current=Ze,Le&&Ve()});return()=>Ge.unsubscribe(He)},[]),me.current}ot.Z=de},71322:function(ke,ot,oe){"use strict";oe.d(ot,{D:function(){return x},Z:function(){return ne}});var ee=oe(87462),se=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},je=We,de=oe(74643),Le=function(ie,le){return se.createElement(de.Z,(0,ee.Z)({},ie,{ref:le,icon:je}))},me=se.forwardRef(Le),Ve=oe(22751),Ge=oe(91034),He=oe(94184),Ze=oe.n(He),Re=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var le={};for(var pe in re)Object.prototype.hasOwnProperty.call(re,pe)&&ie.indexOf(pe)<0&&(le[pe]=re[pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,pe=Object.getOwnPropertySymbols(re);he<pe.length;he++)ie.indexOf(pe[he])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[he])&&(le[pe[he]]=re[pe[he]]);return le};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=se.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var ne=se.forwardRef((re,ie)=>{const{prefixCls:le,className:pe,trigger:he,children:_e,defaultCollapsed:ve=!1,theme:rt="dark",style:Ct={},collapsible:Pt=!1,reverseArrow:Fe=!1,width:Qe=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:et,breakpoint:st,onCollapse:Tt,onBreakpoint:tn}=re,on=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ln}=(0,se.useContext)(y.Gs),[Oe,Ue]=(0,se.useState)("collapsed"in re?re.collapsed:ve),[nt,Dt]=(0,se.useState)(!1);(0,se.useEffect)(()=>{"collapsed"in re&&Ue(re.collapsed)},[re.collapsed]);const dt=(pt,Xe)=>{"collapsed"in re||Ue(pt),Tt==null||Tt(pt,Xe)},Lt=(0,se.useRef)();Lt.current=pt=>{Dt(pt.matches),tn==null||tn(pt.matches),Oe!==pt.matches&&dt(pt.matches,"responsive")},(0,se.useEffect)(()=>{function pt(Te){return Lt.current(Te)}let Xe;if(typeof window!="undefined"){const{matchMedia:Te}=window;if(Te&&st&&st in b){Xe=Te(`(max-width: ${b[st]})`);try{Xe.addEventListener("change",pt)}catch(Ce){Xe.addListener(pt)}pt(Xe)}}return()=>{try{Xe==null||Xe.removeEventListener("change",pt)}catch(Te){Xe==null||Xe.removeListener(pt)}}},[st]),(0,se.useEffect)(()=>{const pt=z("ant-sider-");return ln.addSider(pt),()=>ln.removeSider(pt)},[]);const ce=()=>{dt(!Oe,"clickTrigger")},{getPrefixCls:ft}=(0,se.useContext)(a.E_),Kt=()=>{const pt=ft("layout-sider",le),Xe=(0,Re.Z)(on,["collapsed"]),Te=Oe?Je:Qe,Ce=ae(Te)?`${Te}px`:String(Te),we=parseFloat(String(Je||0))===0?se.createElement("span",{onClick:ce,className:Ze()(`${pt}-zero-width-trigger`,`${pt}-zero-width-trigger-${Fe?"right":"left"}`),style:et},he||se.createElement(me,null)):null,mt={expanded:Fe?se.createElement(Ge.Z,null):se.createElement(Ve.Z,null),collapsed:Fe?se.createElement(Ve.Z,null):se.createElement(Ge.Z,null)}[Oe?"collapsed":"expanded"],Ft=he!==null?we||se.createElement("div",{className:`${pt}-trigger`,onClick:ce,style:{width:Ce}},he||mt):null,Ot=Object.assign(Object.assign({},Ct),{flex:`0 0 ${Ce}`,maxWidth:Ce,minWidth:Ce,width:Ce}),Rt=Ze()(pt,`${pt}-${rt}`,{[`${pt}-collapsed`]:!!Oe,[`${pt}-has-trigger`]:Pt&&he!==null&&!we,[`${pt}-below`]:!!nt,[`${pt}-zero-width`]:parseFloat(Ce)===0},pe);return se.createElement("aside",Object.assign({className:Rt},Xe,{style:Ot,ref:ie}),se.createElement("div",{className:`${pt}-children`},_e),Pt||nt&&we?Ft:null)},rn=se.useMemo(()=>({siderCollapsed:Oe}),[Oe]);return se.createElement(x.Provider,{value:rn},Kt())})},97183:function(ke,ot,oe){"use strict";var ee=oe(84321),se=oe(71322);const We=ee.ZP;We.Header=ee.h4,We.Footer=ee.$_,We.Content=ee.VY,We.Sider=se.Z,ot.default=We},84321:function(ke,ot,oe){"use strict";oe.d(ot,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return xe},ZP:function(){return te}});var ee=oe(74902),se=oe(94184),We=oe.n(se),je=oe(10366),de=oe(67294),Le=oe(53124),me=oe(67968),Ge=ne=>{const{componentCls:re,bodyBg:ie,lightSiderBg:le,lightTriggerBg:pe,lightTriggerColor:he}=ne;return{[`${re}-sider-light`]:{background:le,[`${re}-sider-trigger`]:{color:he,background:pe},[`${re}-sider-zero-width-trigger`]:{color:he,background:pe,border:`1px solid ${ie}`,borderInlineStart:0}}}};const He=ne=>{const{antCls:re,componentCls:ie,colorText:le,triggerColor:pe,footerBg:he,triggerBg:_e,headerHeight:ve,headerPadding:rt,headerColor:Ct,footerPadding:Pt,triggerHeight:Fe,zeroTriggerHeight:Qe,zeroTriggerWidth:Je,motionDurationMid:et,motionDurationSlow:st,fontSize:Tt,borderRadius:tn,bodyBg:on,headerBg:ln,siderBg:Oe}=ne;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:on,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:Oe,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Fe,color:pe,lineHeight:`${Fe}px`,textAlign:"center",background:_e,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ve,insetInlineEnd:-Je,zIndex:1,width:Je,height:Qe,color:pe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Oe,borderStartStartRadius:0,borderStartEndRadius:tn,borderEndEndRadius:tn,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:-Je,borderStartStartRadius:tn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:tn}}}}},Ge(ne)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:ve,padding:rt,color:Ct,lineHeight:`${ve}px`,background:ln,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Pt,color:le,fontSize:Tt,background:he},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ze=(0,me.Z)("Layout",ne=>[He(ne)],ne=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:le,colorText:pe,controlHeightSM:he,marginXXS:_e,colorTextLightSolid:ve,colorBgContainer:rt}=ne,Ct=le*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Ct}px`,headerColor:pe,footerPadding:`${he}px ${Ct}px`,footerBg:re,siderBg:"#001529",triggerHeight:le+_e*2,triggerBg:"#002140",triggerColor:ve,zeroTriggerWidth:le,zeroTriggerHeight:le,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=function(ne,re){var ie={};for(var le in ne)Object.prototype.hasOwnProperty.call(ne,le)&&re.indexOf(le)<0&&(ie[le]=ne[le]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,le=Object.getOwnPropertySymbols(ne);pe<le.length;pe++)re.indexOf(le[pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,le[pe])&&(ie[le[pe]]=ne[le[pe]]);return ie};const xe=de.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ie,displayName:le}=ne;return pe=>de.forwardRef((_e,ve)=>de.createElement(pe,Object.assign({ref:ve,suffixCls:re,tagName:ie},_e)))}const a=de.forwardRef((ne,re)=>{const{prefixCls:ie,suffixCls:le,className:pe,tagName:he}=ne,_e=Re(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ve}=de.useContext(Le.E_),rt=ve("layout",ie),[Ct,Pt]=Ze(rt),Fe=le?`${rt}-${le}`:rt;return Ct(de.createElement(he,Object.assign({className:We()(ie||Fe,pe,Pt),ref:re},_e)))}),y=de.forwardRef((ne,re)=>{const{direction:ie}=de.useContext(Le.E_),[le,pe]=de.useState([]),{prefixCls:he,className:_e,rootClassName:ve,children:rt,hasSider:Ct,tagName:Pt,style:Fe}=ne,Qe=Re(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Je=(0,je.Z)(Qe,["suffixCls"]),{getPrefixCls:et,layout:st}=de.useContext(Le.E_),Tt=et("layout",he),[tn,on]=Ze(Tt),ln=We()(Tt,{[`${Tt}-has-sider`]:typeof Ct=="boolean"?Ct:le.length>0,[`${Tt}-rtl`]:ie==="rtl"},st==null?void 0:st.className,_e,ve,on),Oe=de.useMemo(()=>({siderHook:{addSider:Ue=>{pe(nt=>[].concat((0,ee.Z)(nt),[Ue]))},removeSider:Ue=>{pe(nt=>nt.filter(Dt=>Dt!==Ue))}}}),[]);return tn(de.createElement(xe.Provider,{value:Oe},de.createElement(Pt,Object.assign({ref:re,className:ln,style:Object.assign(Object.assign({},st==null?void 0:st.style),Fe)},Je),rt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var te=E},76529:function(ke,ot,oe){"use strict";oe.d(ot,{J:function(){return Le}});var ee=oe(67294),se=oe(4173),We=oe(60276),je=function(me,Ve){var Ge={};for(var He in me)Object.prototype.hasOwnProperty.call(me,He)&&Ve.indexOf(He)<0&&(Ge[He]=me[He]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,He=Object.getOwnPropertySymbols(me);Ze<He.length;Ze++)Ve.indexOf(He[Ze])<0&&Object.prototype.propertyIsEnumerable.call(me,He[Ze])&&(Ge[He[Ze]]=me[He[Ze]]);return Ge};const de=ee.createContext(null),Le=ee.forwardRef((me,Ve)=>{const{children:Ge}=me,He=je(me,["children"]),Ze=ee.useContext(de),Re=ee.useMemo(()=>Object.assign(Object.assign({},Ze),He),[Ze,He.prefixCls,He.mode,He.selectable]);return ee.createElement(de.Provider,{value:Re},ee.createElement(se.BR,null,(0,We.supportNodeRef)(Ge)?ee.cloneElement(Ge,{ref:Ve}):Ge))});ot.Z=de},68508:function(ke,ot,oe){"use strict";oe.d(ot,{default:function(){return pt}});var ee=oe(78595),se=oe(67294),We=oe(71322),je=oe(94184),de=oe.n(je),Le=oe(53124),me=function(Xe,Te){var Ce={};for(var we in Xe)Object.prototype.hasOwnProperty.call(Xe,we)&&Te.indexOf(we)<0&&(Ce[we]=Xe[we]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,we=Object.getOwnPropertySymbols(Xe);ze<we.length;ze++)Te.indexOf(we[ze])<0&&Object.prototype.propertyIsEnumerable.call(Xe,we[ze])&&(Ce[we[ze]]=Xe[we[ze]]);return Ce},Ge=Xe=>{const{prefixCls:Te,className:Ce,dashed:we}=Xe,ze=me(Xe,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=se.useContext(Le.E_),mt=Ye("menu",Te),Ft=de()({[`${mt}-item-divider-dashed`]:!!we},Ce);return se.createElement(ee.iz,Object.assign({className:Ft},ze))},He=oe(37419),Ze=oe(10366),Re=oe(83062),xe=oe(96159),a=(0,se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Xe=>{var Te;const{className:Ce,children:we,icon:ze,title:Ye,danger:mt}=Xe,{prefixCls:Ft,firstLevel:Ot,direction:Rt,disableMenuItemTitleTooltip:Yt,inlineCollapsed:ue}=se.useContext(a),Ee=Et=>{const Zt=se.createElement("span",{className:`${Ft}-title-content`},we);return(!ze||(0,xe.l$)(we)&&we.type==="span")&&we&&Et&&Ot&&typeof we=="string"?se.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},we.charAt(0)):Zt},{siderCollapsed:jt}=se.useContext(We.D);let at=Ye;typeof Ye=="undefined"?at=Ot?we:"":Ye===!1&&(at="");const ye={title:at};!jt&&!ue&&(ye.title=null,ye.open=!1);const gt=(0,He.Z)(we).length;let qe=se.createElement(ee.ck,Object.assign({},(0,Ze.Z)(Xe,["title","icon","danger"]),{className:de()({[`${Ft}-item-danger`]:mt,[`${Ft}-item-only-child`]:(ze?gt+1:gt)===1},Ce),title:typeof Ye=="string"?Ye:void 0}),(0,xe.Tm)(ze,{className:de()((0,xe.l$)(ze)?(Te=ze.props)===null||Te===void 0?void 0:Te.className:"",`${Ft}-item-icon`)}),Ee(ue));return Yt||(qe=se.createElement(Re.Z,Object.assign({},ye,{placement:Rt==="rtl"?"left":"right",overlayClassName:`${Ft}-inline-collapsed-tooltip`}),qe)),qe},x=Xe=>{var Te;const{popupClassName:Ce,icon:we,title:ze,theme:Ye}=Xe,mt=se.useContext(a),{prefixCls:Ft,inlineCollapsed:Ot,theme:Rt}=mt,Yt=(0,ee.Xl)();let ue;if(!we)ue=Ot&&!Yt.length&&ze&&typeof ze=="string"?se.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},ze.charAt(0)):se.createElement("span",{className:`${Ft}-title-content`},ze);else{const jt=(0,xe.l$)(ze)&&ze.type==="span";ue=se.createElement(se.Fragment,null,(0,xe.Tm)(we,{className:de()((0,xe.l$)(we)?(Te=we.props)===null||Te===void 0?void 0:Te.className:"",`${Ft}-item-icon`)}),jt?ze:se.createElement("span",{className:`${Ft}-title-content`},ze))}const Ee=se.useMemo(()=>Object.assign(Object.assign({},mt),{firstLevel:!1}),[mt]);return se.createElement(a.Provider,{value:Ee},se.createElement(ee.Wd,Object.assign({},(0,Ze.Z)(Xe,["icon"]),{title:ue,popupClassName:de()(Ft,Ce,`${Ft}-${Ye||Rt}`)})))},z=oe(25877),te=oe(60276),ne=oe(33603),re=oe(76529),ie=function(Xe,Te){var Ce={};for(var we in Xe)Object.prototype.hasOwnProperty.call(Xe,we)&&Te.indexOf(we)<0&&(Ce[we]=Xe[we]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,we=Object.getOwnPropertySymbols(Xe);ze<we.length;ze++)Te.indexOf(we[ze])<0&&Object.prototype.propertyIsEnumerable.call(Xe,we[ze])&&(Ce[we[ze]]=Xe[we[ze]]);return Ce};function le(Xe){return(Xe||[]).map((Te,Ce)=>{if(Te&&typeof Te=="object"){const we=Te,{label:ze,children:Ye,key:mt,type:Ft}=we,Ot=ie(we,["label","children","key","type"]),Rt=mt!=null?mt:`tmp-${Ce}`;return Ye||Ft==="group"?Ft==="group"?se.createElement(ee.BW,Object.assign({key:Rt},Ot,{title:ze}),le(Ye)):se.createElement(x,Object.assign({key:Rt},Ot,{title:ze}),le(Ye)):Ft==="divider"?se.createElement(Ge,Object.assign({key:Rt},Ot)):se.createElement(E,Object.assign({key:Rt},Ot),ze)}return null}).filter(Te=>Te)}function pe(Xe){return se.useMemo(()=>Xe&&le(Xe),[Xe])}var he=oe(84780),_e=oe(14747),ve=oe(33507),rt=oe(67771),Ct=oe(50438),Pt=oe(67968),Fe=oe(45503),Je=Xe=>{const{componentCls:Te,motionDurationSlow:Ce,horizontalLineHeight:we,colorSplit:ze,lineWidth:Ye,lineType:mt,itemPaddingInline:Ft}=Xe;return{[`${Te}-horizontal`]:{lineHeight:we,border:0,borderBottom:`${Ye}px ${mt} ${ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Te}-item, ${Te}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ft},[`> ${Te}-item:hover,
|
|
> ${Te}-item-active,
|
|
> ${Te}-submenu ${Te}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Te}-item, ${Te}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${Te}-submenu-arrow`]:{display:"none"}}}},st=Xe=>{let{componentCls:Te,menuArrowOffset:Ce}=Xe;return{[`${Te}-rtl`]:{direction:"rtl"},[`${Te}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Te}-rtl${Te}-vertical,
|
|
${Te}-submenu-rtl ${Te}-vertical`]:{[`${Te}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ce})`},"&::after":{transform:`rotate(45deg) translateY(${Ce})`}}}}};const Tt=Xe=>Object.assign({},(0,_e.oN)(Xe));var on=(Xe,Te)=>{const{componentCls:Ce,itemColor:we,itemSelectedColor:ze,groupTitleColor:Ye,itemBg:mt,subMenuItemBg:Ft,itemSelectedBg:Ot,activeBarHeight:Rt,activeBarWidth:Yt,activeBarBorderWidth:ue,motionDurationSlow:Ee,motionEaseInOut:jt,motionEaseOut:at,itemPaddingInline:ye,motionDurationMid:gt,itemHoverColor:qe,lineType:Et,colorSplit:Zt,itemDisabledColor:vt,dangerItemColor:wt,dangerItemHoverColor:It,dangerItemSelectedColor:an,dangerItemActiveBg:Vt,dangerItemSelectedBg:Qt,itemHoverBg:pn,itemActiveBg:cn,menuSubMenuBg:Bn,horizontalItemSelectedColor:xn,horizontalItemSelectedBg:Un,horizontalItemBorderRadius:qn,horizontalItemHoverBg:_n,popupBg:Xn}=Xe;return{[`${Ce}-${Te}, ${Ce}-${Te} > ${Ce}`]:{color:we,background:mt,[`&${Ce}-root:focus-visible`]:Object.assign({},Tt(Xe)),[`${Ce}-item-group-title`]:{color:Ye},[`${Ce}-submenu-selected`]:{[`> ${Ce}-submenu-title`]:{color:ze}},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${vt} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:qe}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:cn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:cn}}},[`${Ce}-item-danger`]:{color:wt,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:It}},[`&${Ce}-item:active`]:{background:Vt}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:ze,[`&${Ce}-item-danger`]:{color:an},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:Ot,[`&${Ce}-item-danger`]:{backgroundColor:Qt}},[`${Ce}-item, ${Ce}-submenu-title`]:{[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},Tt(Xe))},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:Bn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:Xn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},Te==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:ue,marginTop:-ue,marginBottom:0,borderRadius:qn,"&::after":{position:"absolute",insetInline:ye,bottom:0,borderBottom:`${Rt}px solid transparent`,transition:`border-color ${Ee} ${jt}`,content:'""'},"&:hover, &-active, &-open":{background:_n,"&::after":{borderBottomWidth:Rt,borderBottomColor:xn}},"&-selected":{color:xn,backgroundColor:Un,"&:hover":{backgroundColor:Un},"&::after":{borderBottomWidth:Rt,borderBottomColor:xn}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${ue}px ${Et} ${Zt}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:Ft},[`${Ce}-item, ${Ce}-submenu-title`]:ue&&Yt?{width:`calc(100% + ${ue}px)`}:{},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Yt}px solid ${ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${gt} ${at}`,`opacity ${gt} ${at}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:an}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${gt} ${jt}`,`opacity ${gt} ${jt}`].join(",")}}}}}};const ln=Xe=>{const{componentCls:Te,itemHeight:Ce,itemMarginInline:we,padding:ze,menuArrowSize:Ye,marginXS:mt,itemMarginBlock:Ft}=Xe,Ot=ze+Ye+mt;return{[`${Te}-item`]:{position:"relative",overflow:"hidden"},[`${Te}-item, ${Te}-submenu-title`]:{height:Ce,lineHeight:`${Ce}px`,paddingInline:ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:we,marginBlock:Ft,width:`calc(100% - ${we*2}px)`},[`> ${Te}-item,
|
|
> ${Te}-submenu > ${Te}-submenu-title`]:{height:Ce,lineHeight:`${Ce}px`},[`${Te}-item-group-list ${Te}-submenu-title,
|
|
${Te}-submenu-title`]:{paddingInlineEnd:Ot}}};var Ue=Xe=>{const{componentCls:Te,iconCls:Ce,itemHeight:we,colorTextLightSolid:ze,dropdownWidth:Ye,controlHeightLG:mt,motionDurationMid:Ft,motionEaseOut:Ot,paddingXL:Rt,itemMarginInline:Yt,fontSizeLG:ue,motionDurationSlow:Ee,paddingXS:jt,boxShadowSecondary:at,collapsedWidth:ye,collapsedIconSize:gt}=Xe,qe={height:we,lineHeight:`${we}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Te]:{"&-inline, &-vertical":Object.assign({[`&${Te}-root`]:{boxShadow:"none"}},ln(Xe))},[`${Te}-submenu-popup`]:{[`${Te}-vertical`]:Object.assign(Object.assign({},ln(Xe)),{boxShadow:at})}},{[`${Te}-submenu-popup ${Te}-vertical${Te}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${mt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Te}-inline`]:{width:"100%",[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ee}`,`background ${Ee}`,`padding ${Ft} ${Ot}`].join(","),[`> ${Te}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Te}-sub${Te}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Te}-submenu > ${Te}-submenu-title`]:qe,[`& ${Te}-item-group-title`]:{paddingInlineStart:Rt}},[`${Te}-item`]:qe}},{[`${Te}-inline-collapsed`]:{width:ye,[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu ${Te}-submenu-title`]:{[`> ${Te}-inline-collapsed-noicon`]:{fontSize:ue,textAlign:"center"}}},[`> ${Te}-item,
|
|
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-item,
|
|
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-submenu > ${Te}-submenu-title,
|
|
> ${Te}-submenu > ${Te}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ue/2}px - ${Yt}px)`,textOverflow:"clip",[`
|
|
${Te}-submenu-arrow,
|
|
${Te}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Te}-item-icon, ${Ce}`]:{margin:0,fontSize:gt,lineHeight:`${we}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Te}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Te}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:ze}},[`${Te}-item-group-title`]:Object.assign(Object.assign({},_e.vS),{paddingInline:jt})}}]};const nt=Xe=>{const{componentCls:Te,motionDurationSlow:Ce,motionDurationMid:we,motionEaseInOut:ze,motionEaseOut:Ye,iconCls:mt,iconSize:Ft,iconMarginInlineEnd:Ot}=Xe;return{[`${Te}-item, ${Te}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding ${Ce} ${ze}`].join(","),[`${Te}-item-icon, ${mt}`]:{minWidth:Ft,fontSize:Ft,transition:[`font-size ${we} ${Ye}`,`margin ${Ce} ${ze}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:Ot,opacity:1,transition:[`opacity ${Ce} ${ze}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${Te}-item-icon`]:Object.assign({},(0,_e.Ro)()),[`&${Te}-item-only-child`]:{[`> ${mt}, > ${Te}-item-icon`]:{marginInlineEnd:0}}},[`${Te}-item-disabled, ${Te}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Te}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Dt=Xe=>{const{componentCls:Te,motionDurationSlow:Ce,motionEaseInOut:we,borderRadius:ze,menuArrowSize:Ye,menuArrowOffset:mt}=Xe;return{[`${Te}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Xe.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${we}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ye*.6,height:Ye*.15,backgroundColor:"currentcolor",borderRadius:ze,transition:[`background ${Ce} ${we}`,`transform ${Ce} ${we}`,`top ${Ce} ${we}`,`color ${Ce} ${we}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${mt})`},"&::after":{transform:`rotate(-45deg) translateY(${mt})`}}}}},dt=Xe=>{const{antCls:Te,componentCls:Ce,fontSize:we,motionDurationSlow:ze,motionDurationMid:Ye,motionEaseInOut:mt,paddingXS:Ft,padding:Ot,colorSplit:Rt,lineWidth:Yt,zIndexPopup:ue,borderRadiusLG:Ee,subMenuItemBorderRadius:jt,menuArrowSize:at,menuArrowOffset:ye,lineType:gt,menuPanelMaskInset:qe,groupTitleLineHeight:Et,groupTitleFontSize:Zt}=Xe;return[{"":{[`${Ce}`]:Object.assign(Object.assign({},(0,_e.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Xe)),(0,_e.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:we,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:Xe.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${Ft}px ${Ot}px`,fontSize:Zt,lineHeight:Et,transition:`all ${ze}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${ze} ${mt}`,`background ${ze} ${mt}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${ze} ${mt}`,`background ${ze} ${mt}`,`padding ${Ye} ${mt}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${ze} ${mt}`,`padding ${ze} ${mt}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${ze}`},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Rt,borderStyle:gt,borderWidth:0,borderTopWidth:Yt,marginBlock:Yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),nt(Xe)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${we*2}px ${Ot}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ue,borderRadius:Ee,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${qe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:qe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Xe.paddingXS},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ee},nt(Xe)),Dt(Xe)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:jt},[`${Ce}-submenu-title::after`]:{transition:`transform ${ze} ${mt}`}})}}),Dt(Xe)),{[`&-inline-collapsed ${Ce}-submenu-arrow,
|
|
&-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ye})`},"&::after":{transform:`rotate(45deg) translateX(-${ye})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(-${at*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ye})`},"&::before":{transform:`rotate(45deg) translateX(${ye})`}}})},{[`${Te}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]};var Lt=(Xe,Te)=>(0,Pt.Z)("Menu",we=>{if(Te===!1)return[];const{colorBgElevated:ze,colorPrimary:Ye,colorTextLightSolid:mt,controlHeightLG:Ft,fontSize:Ot,darkItemColor:Rt,darkDangerItemColor:Yt,darkItemBg:ue,darkSubMenuItemBg:Ee,darkItemSelectedColor:jt,darkItemSelectedBg:at,darkDangerItemSelectedBg:ye,darkItemHoverBg:gt,darkGroupTitleColor:qe,darkItemHoverColor:Et,darkItemDisabledColor:Zt,darkDangerItemHoverColor:vt,darkDangerItemSelectedColor:wt,darkDangerItemActiveBg:It}=we,an=Ot/7*5,Vt=(0,Fe.TS)(we,{menuArrowSize:an,menuHorizontalHeight:Ft*1.15,menuArrowOffset:`${an*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ze}),Qt=(0,Fe.TS)(Vt,{itemColor:Rt,itemHoverColor:Et,groupTitleColor:qe,itemSelectedColor:jt,itemBg:ue,popupBg:ue,subMenuItemBg:Ee,itemActiveBg:"transparent",itemSelectedBg:at,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:gt,itemDisabledColor:Zt,dangerItemColor:Yt,dangerItemHoverColor:vt,dangerItemSelectedColor:wt,dangerItemActiveBg:It,dangerItemSelectedBg:ye,menuSubMenuBg:Ee,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:Ye});return[dt(Vt),Je(Vt),Ue(Vt),on(Vt,"light"),on(Qt,"dark"),st(Vt),(0,ve.Z)(Vt),(0,rt.oN)(Vt,"slide-up"),(0,rt.oN)(Vt,"slide-down"),(0,Ct._y)(Vt,"zoom-big")]},we=>{const{colorPrimary:ze,colorError:Ye,colorTextDisabled:mt,colorErrorBg:Ft,colorText:Ot,colorTextDescription:Rt,colorBgContainer:Yt,colorFillAlter:ue,colorFillContent:Ee,lineWidth:jt,lineWidthBold:at,controlItemBgActive:ye,colorBgTextHover:gt,controlHeightLG:qe,lineHeight:Et,colorBgElevated:Zt,marginXXS:vt,padding:wt,fontSize:It,controlHeightSM:an,fontSizeLG:Vt,colorTextLightSolid:Qt,colorErrorHover:pn}=we,cn=new he.C(Qt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:we.zIndexPopupBase+50,radiusItem:we.borderRadiusLG,itemBorderRadius:we.borderRadiusLG,radiusSubMenuItem:we.borderRadiusSM,subMenuItemBorderRadius:we.borderRadiusSM,colorItemText:Ot,itemColor:Ot,colorItemTextHover:Ot,itemHoverColor:Ot,colorItemTextHoverHorizontal:ze,horizontalItemHoverColor:ze,colorGroupTitle:Rt,groupTitleColor:Rt,colorItemTextSelected:ze,itemSelectedColor:ze,colorItemTextSelectedHorizontal:ze,horizontalItemSelectedColor:ze,colorItemBg:Yt,itemBg:Yt,colorItemBgHover:gt,itemHoverBg:gt,colorItemBgActive:Ee,itemActiveBg:ye,colorSubItemBg:ue,subMenuItemBg:ue,colorItemBgSelected:ye,itemSelectedBg:ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:at,activeBarHeight:at,colorActiveBarBorderSize:jt,activeBarBorderWidth:jt,colorItemTextDisabled:mt,itemDisabledColor:mt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:Ft,dangerItemActiveBg:Ft,colorDangerItemBgSelected:Ft,dangerItemSelectedBg:Ft,itemMarginInline:we.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:qe,groupTitleLineHeight:Et,collapsedWidth:qe*2,popupBg:Zt,itemMarginBlock:vt,itemPaddingInline:wt,horizontalLineHeight:`${qe*1.15}px`,iconSize:It,iconMarginInlineEnd:an-It,collapsedIconSize:Vt,groupTitleFontSize:It,darkItemDisabledColor:new he.C(Qt).setAlpha(.25).toRgbString(),darkItemColor:cn,darkDangerItemColor:Ye,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Qt,darkItemSelectedBg:ze,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:cn,darkItemHoverColor:Qt,darkDangerItemHoverColor:pn,darkDangerItemSelectedColor:Qt,darkDangerItemActiveBg:Ye}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Xe),ce=function(Xe,Te){var Ce={};for(var we in Xe)Object.prototype.hasOwnProperty.call(Xe,we)&&Te.indexOf(we)<0&&(Ce[we]=Xe[we]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,we=Object.getOwnPropertySymbols(Xe);ze<we.length;ze++)Te.indexOf(we[ze])<0&&Object.prototype.propertyIsEnumerable.call(Xe,we[ze])&&(Ce[we[ze]]=Xe[we[ze]]);return Ce},Kt=(0,se.forwardRef)((Xe,Te)=>{var Ce,we;const ze=se.useContext(re.Z),Ye=ze||{},{getPrefixCls:mt,getPopupContainer:Ft,direction:Ot,menu:Rt}=se.useContext(Le.E_),Yt=mt(),{prefixCls:ue,className:Ee,style:jt,theme:at="light",expandIcon:ye,_internalDisableMenuItemTitleTooltip:gt,inlineCollapsed:qe,siderCollapsed:Et,items:Zt,children:vt,rootClassName:wt,mode:It,selectable:an,onClick:Vt,overflowedIndicatorPopupClassName:Qt}=Xe,pn=ce(Xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),cn=(0,Ze.Z)(pn,["collapsedWidth"]),Bn=pe(Zt)||vt;(Ce=Ye.validator)===null||Ce===void 0||Ce.call(Ye,{mode:It});const xn=(0,te.useEvent)(function(){var Cn;Vt==null||Vt.apply(void 0,arguments),(Cn=Ye.onClick)===null||Cn===void 0||Cn.call(Ye)}),Un=Ye.mode||It,qn=an!=null?an:Ye.selectable,_n=se.useMemo(()=>Et!==void 0?Et:qe,[qe,Et]),Xn={horizontal:{motionName:`${Yt}-slide-up`},inline:(0,ne.Z)(Yt),other:{motionName:`${Yt}-zoom-big`}},In=mt("menu",ue||Ye.prefixCls),[Gn,vn]=Lt(In,!ze),ea=de()(`${In}-${at}`,Rt==null?void 0:Rt.className,Ee);let Kn;if(typeof ye=="function")Kn=ye;else if(ye===null||ye===!1)Kn=null;else if(Ye.expandIcon===null||Ye.expandIcon===!1)Kn=null;else{const Cn=ye!=null?ye:Ye.expandIcon;Kn=(0,xe.Tm)(Cn,{className:de()(`${In}-submenu-expand-icon`,(0,xe.l$)(Cn)?(we=Cn.props)===null||we===void 0?void 0:we.className:"")})}const Nn=se.useMemo(()=>({prefixCls:In,inlineCollapsed:_n||!1,direction:Ot,firstLevel:!0,theme:at,mode:Un,disableMenuItemTitleTooltip:gt}),[In,_n,Ot,gt,at]);return Gn(se.createElement(re.Z.Provider,{value:null},se.createElement(a.Provider,{value:Nn},se.createElement(ee.ZP,Object.assign({getPopupContainer:Ft,overflowedIndicator:se.createElement(z.Z,null),overflowedIndicatorPopupClassName:de()(In,`${In}-${at}`,Qt),mode:Un,selectable:qn,onClick:xn},cn,{inlineCollapsed:_n,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),jt),className:ea,prefixCls:In,direction:Ot,defaultMotions:Xn,expandIcon:Kn,ref:Te,rootClassName:de()(wt,vn)}),Bn))))});const rn=(0,se.forwardRef)((Xe,Te)=>{const Ce=(0,se.useRef)(null),we=se.useContext(We.D);return(0,se.useImperativeHandle)(Te,()=>({menu:Ce.current,focus:ze=>{var Ye;(Ye=Ce.current)===null||Ye===void 0||Ye.focus(ze)}})),se.createElement(Kt,Object.assign({ref:Ce},Xe,we))});rn.Item=E,rn.SubMenu=x,rn.Divider=Ge,rn.ItemGroup=ee.BW;var pt=rn},28452:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Yt}});var ee=oe(87462),se=oe(67294),We={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"},je=We,de=oe(74643),Le=function(Ee,jt){return se.createElement(de.Z,(0,ee.Z)({},Ee,{ref:jt,icon:je}))},me=se.forwardRef(Le),Ve=oe(81893),Ge=oe(22751),He=oe(91034),Ze=oe(94184),Re=oe.n(Ze),xe=oe(4942),ae=oe(1413),a=oe(15671),y=oe(43144),E=oe(60136),b=oe(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 ie(ue,Ee){return ue.indexOf(Ee)===0}function le(ue){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt;Ee===!1?jt={aria:!0,data:!0,attr:!0}:Ee===!0?jt={aria:!0}:jt=(0,ae.Z)({},Ee);var at={};return Object.keys(ue).forEach(function(ye){(jt.aria&&(ye==="role"||ie(ye,ne))||jt.data&&ie(ye,re)||jt.attr&&te.includes(ye))&&(at[ye]=ue[ye])}),at}var pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},he=pe,_e=oe(81626),ve=function(ue){(0,E.Z)(jt,ue);var Ee=(0,b.Z)(jt);function jt(){var at;(0,a.Z)(this,jt);for(var ye=arguments.length,gt=new Array(ye),qe=0;qe<ye;qe++)gt[qe]=arguments[qe];return at=Ee.call.apply(Ee,[this].concat(gt)),at.state={goInputText:""},at.getValidValue=function(){var Et=at.state.goInputText;return!Et||Number.isNaN(Et)?void 0:Number(Et)},at.buildOptionText=function(Et){return"".concat(Et," ").concat(at.props.locale.items_per_page)},at.changeSize=function(Et){at.props.changeSize(Number(Et))},at.handleChange=function(Et){at.setState({goInputText:Et.target.value})},at.handleBlur=function(Et){var Zt=at.props,vt=Zt.goButton,wt=Zt.quickGo,It=Zt.rootPrefixCls,an=at.state.goInputText;vt||an===""||(at.setState({goInputText:""}),!(Et.relatedTarget&&(Et.relatedTarget.className.indexOf("".concat(It,"-item-link"))>=0||Et.relatedTarget.className.indexOf("".concat(It,"-item"))>=0))&&wt(at.getValidValue()))},at.go=function(Et){var Zt=at.state.goInputText;Zt!==""&&(Et.keyCode===he.ENTER||Et.type==="click")&&(at.setState({goInputText:""}),at.props.quickGo(at.getValidValue()))},at}return(0,y.Z)(jt,[{key:"getPageSizeOptions",value:function(){var ye=this.props,gt=ye.pageSize,qe=ye.pageSizeOptions;return qe.some(function(Et){return Et.toString()===gt.toString()})?qe:qe.concat([gt.toString()]).sort(function(Et,Zt){var vt=Number.isNaN(Number(Et))?0:Number(Et),wt=Number.isNaN(Number(Zt))?0:Number(Zt);return vt-wt})}},{key:"render",value:function(){var ye=this,gt=this.props,qe=gt.pageSize,Et=gt.locale,Zt=gt.rootPrefixCls,vt=gt.changeSize,wt=gt.quickGo,It=gt.goButton,an=gt.selectComponentClass,Vt=gt.buildOptionText,Qt=gt.selectPrefixCls,pn=gt.disabled,cn=this.state.goInputText,Bn="".concat(Zt,"-options"),xn=an,Un=null,qn=null,_n=null;if(!vt&&!wt)return null;var Xn=this.getPageSizeOptions();if(vt&&xn){var In=Xn.map(function(Gn,vn){return se.createElement(xn.Option,{key:vn,value:Gn.toString()},(Vt||ye.buildOptionText)(Gn))});Un=se.createElement(xn,{disabled:pn,prefixCls:Qt,showSearch:!1,className:"".concat(Bn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(qe||Xn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(vn){return vn.parentNode},"aria-label":Et.page_size,defaultOpen:!1},In)}return wt&&(It&&(_n=typeof It=="boolean"?se.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:pn,className:"".concat(Bn,"-quick-jumper-button")},Et.jump_to_confirm):se.createElement("span",{onClick:this.go,onKeyUp:this.go},It)),qn=se.createElement("div",{className:"".concat(Bn,"-quick-jumper")},Et.jump_to,se.createElement("input",{disabled:pn,type:"text",value:cn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Et.page}),Et.page,_n)),se.createElement("li",{className:"".concat(Bn)},Un,qn)}}]),jt}(se.Component);ve.defaultProps={pageSizeOptions:["10","20","50","100"]};var rt=ve,Ct=function(Ee){var jt,at=Ee.rootPrefixCls,ye=Ee.page,gt=Ee.active,qe=Ee.className,Et=Ee.showTitle,Zt=Ee.onClick,vt=Ee.onKeyPress,wt=Ee.itemRender,It="".concat(at,"-item"),an=Re()(It,"".concat(It,"-").concat(ye),(jt={},(0,xe.Z)(jt,"".concat(It,"-active"),gt),(0,xe.Z)(jt,"".concat(It,"-disabled"),!ye),(0,xe.Z)(jt,Ee.className,qe),jt)),Vt=function(){Zt(ye)},Qt=function(Bn){vt(Bn,Zt,ye)},pn=wt(ye,"page",se.createElement("a",{rel:"nofollow"},ye));return pn?se.createElement("li",{title:Et?ye.toString():null,className:an,onClick:Vt,onKeyPress:Qt,tabIndex:0},pn):null},Pt=Ct;function Fe(){}function Qe(ue){var Ee=Number(ue);return typeof Ee=="number"&&!Number.isNaN(Ee)&&isFinite(Ee)&&Math.floor(Ee)===Ee}var Je=function(Ee,jt,at){return at};function et(ue,Ee,jt){var at=typeof ue=="undefined"?Ee.pageSize:ue;return Math.floor((jt.total-1)/at)+1}var st=function(ue){(0,E.Z)(jt,ue);var Ee=(0,b.Z)(jt);function jt(at){var ye;(0,a.Z)(this,jt),ye=Ee.call(this,at),ye.paginationNode=se.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(et(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(vt,wt){var It=ye.props.prefixCls,an=vt||se.createElement("button",{type:"button","aria-label":wt,className:"".concat(It,"-item-link")});return typeof vt=="function"&&(an=se.createElement(vt,(0,ae.Z)({},ye.props))),an},ye.isValid=function(vt){var wt=ye.props.total;return Qe(vt)&&vt!==ye.state.current&&Qe(wt)&&wt>0},ye.shouldDisplayQuickJumper=function(){var vt=ye.props,wt=vt.showQuickJumper,It=vt.total,an=ye.state.pageSize;return It<=an?!1:wt},ye.handleKeyDown=function(vt){(vt.keyCode===he.ARROW_UP||vt.keyCode===he.ARROW_DOWN)&&vt.preventDefault()},ye.handleKeyUp=function(vt){var wt=ye.getValidValue(vt),It=ye.state.currentInputValue;wt!==It&&ye.setState({currentInputValue:wt}),vt.keyCode===he.ENTER?ye.handleChange(wt):vt.keyCode===he.ARROW_UP?ye.handleChange(wt-1):vt.keyCode===he.ARROW_DOWN&&ye.handleChange(wt+1)},ye.handleBlur=function(vt){var wt=ye.getValidValue(vt);ye.handleChange(wt)},ye.changePageSize=function(vt){var wt=ye.state.current,It=et(vt,ye.state,ye.props);wt=wt>It?It:wt,It===0&&(wt=ye.state.current),typeof vt=="number"&&("pageSize"in ye.props||ye.setState({pageSize:vt}),"current"in ye.props||ye.setState({current:wt,currentInputValue:wt})),ye.props.onShowSizeChange(wt,vt),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(wt,vt)},ye.handleChange=function(vt){var wt=ye.props,It=wt.disabled,an=wt.onChange,Vt=ye.state,Qt=Vt.pageSize,pn=Vt.current,cn=Vt.currentInputValue;if(ye.isValid(vt)&&!It){var Bn=et(void 0,ye.state,ye.props),xn=vt;return vt>Bn?xn=Bn:vt<1&&(xn=1),"current"in ye.props||ye.setState({current:xn}),xn!==cn&&ye.setState({currentInputValue:xn}),an(xn,Qt),xn}return pn},ye.prev=function(){ye.hasPrev()&&ye.handleChange(ye.state.current-1)},ye.next=function(){ye.hasNext()&&ye.handleChange(ye.state.current+1)},ye.jumpPrev=function(){ye.handleChange(ye.getJumpPrevPage())},ye.jumpNext=function(){ye.handleChange(ye.getJumpNextPage())},ye.hasPrev=function(){return ye.state.current>1},ye.hasNext=function(){return ye.state.current<et(void 0,ye.state,ye.props)},ye.runIfEnter=function(vt,wt){if(vt.key==="Enter"||vt.charCode===13){for(var It=arguments.length,an=new Array(It>2?It-2:0),Vt=2;Vt<It;Vt++)an[Vt-2]=arguments[Vt];wt.apply(void 0,an)}},ye.runIfEnterPrev=function(vt){ye.runIfEnter(vt,ye.prev)},ye.runIfEnterNext=function(vt){ye.runIfEnter(vt,ye.next)},ye.runIfEnterJumpPrev=function(vt){ye.runIfEnter(vt,ye.jumpPrev)},ye.runIfEnterJumpNext=function(vt){ye.runIfEnter(vt,ye.jumpNext)},ye.handleGoTO=function(vt){(vt.keyCode===he.ENTER||vt.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(vt){var wt=ye.props,It=wt.prevIcon,an=wt.itemRender,Vt=an(vt,"prev",ye.getItemIcon(It,"prev page")),Qt=!ye.hasPrev();return(0,se.isValidElement)(Vt)?(0,se.cloneElement)(Vt,{disabled:Qt}):Vt},ye.renderNext=function(vt){var wt=ye.props,It=wt.nextIcon,an=wt.itemRender,Vt=an(vt,"next",ye.getItemIcon(It,"next page")),Qt=!ye.hasNext();return(0,se.isValidElement)(Vt)?(0,se.cloneElement)(Vt,{disabled:Qt}):Vt};var gt=at.onChange!==Fe,qe="current"in at;qe&&!gt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Et=at.defaultCurrent;"current"in at&&(Et=at.current);var Zt=at.defaultPageSize;return"pageSize"in at&&(Zt=at.pageSize),Et=Math.min(Et,et(Zt,void 0,at)),ye.state={current:Et,currentInputValue:Et,pageSize:Zt},ye}return(0,y.Z)(jt,[{key:"componentDidUpdate",value:function(ye,gt){var qe=this.props.prefixCls;if(gt.current!==this.state.current&&this.paginationNode.current){var Et=this.paginationNode.current.querySelector(".".concat(qe,"-item-").concat(gt.current));if(Et&&document.activeElement===Et){var Zt;Et==null||(Zt=Et.blur)===null||Zt===void 0||Zt.call(Et)}}}},{key:"getValidValue",value:function(ye){var gt=ye.target.value,qe=et(void 0,this.state,this.props),Et=this.state.currentInputValue,Zt;return gt===""?Zt=gt:Number.isNaN(Number(gt))?Zt=Et:gt>=qe?Zt=qe:Zt=Number(gt),Zt}},{key:"getShowSizeChanger",value:function(){var ye=this.props,gt=ye.showSizeChanger,qe=ye.total,Et=ye.totalBoundaryShowSizeChanger;return typeof gt!="undefined"?gt:qe>Et}},{key:"render",value:function(){var ye=this.props,gt=ye.prefixCls,qe=ye.className,Et=ye.style,Zt=ye.disabled,vt=ye.hideOnSinglePage,wt=ye.total,It=ye.locale,an=ye.showQuickJumper,Vt=ye.showLessItems,Qt=ye.showTitle,pn=ye.showTotal,cn=ye.simple,Bn=ye.itemRender,xn=ye.showPrevNextJumpers,Un=ye.jumpPrevIcon,qn=ye.jumpNextIcon,_n=ye.selectComponentClass,Xn=ye.selectPrefixCls,In=ye.pageSizeOptions,Gn=this.state,vn=Gn.current,ea=Gn.pageSize,Kn=Gn.currentInputValue;if(vt===!0&&wt<=ea)return null;var Nn=et(void 0,this.state,this.props),Cn=[],fa=null,Yn=null,la=null,be=null,Ae=null,Be=an&&an.goButton,it=Vt?1:2,_t=vn-1>0?vn-1:0,Wt=vn+1<Nn?vn+1:Nn,bn=le(this.props,{aria:!0,data:!0}),dn=pn&&se.createElement("li",{className:"".concat(gt,"-total-text")},pn(wt,[wt===0?0:(vn-1)*ea+1,vn*ea>wt?wt:vn*ea]));if(cn){Be&&(typeof Be=="boolean"?Ae=se.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},It.jump_to_confirm):Ae=se.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Be),Ae=se.createElement("li",{title:Qt?"".concat(It.jump_to).concat(vn,"/").concat(Nn):null,className:"".concat(gt,"-simple-pager")},Ae));var yn=this.renderPrev(_t);return se.createElement("ul",(0,ee.Z)({className:Re()(gt,"".concat(gt,"-simple"),(0,xe.Z)({},"".concat(gt,"-disabled"),Zt),qe),style:Et,ref:this.paginationNode},bn),dn,yn?se.createElement("li",{title:Qt?It.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(gt,"-prev"),(0,xe.Z)({},"".concat(gt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},yn):null,se.createElement("li",{title:Qt?"".concat(vn,"/").concat(Nn):null,className:"".concat(gt,"-simple-pager")},se.createElement("input",{type:"text",value:Kn,disabled:Zt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),se.createElement("span",{className:"".concat(gt,"-slash")},"/"),Nn),se.createElement("li",{title:Qt?It.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Re()("".concat(gt,"-next"),(0,xe.Z)({},"".concat(gt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Wt)),Ae)}if(Nn<=3+it*2){var On={locale:It,rootPrefixCls:gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Qt,itemRender:Bn};Nn||Cn.push(se.createElement(Pt,(0,ee.Z)({},On,{key:"noPager",page:1,className:"".concat(gt,"-item-disabled")})));for(var jn=1;jn<=Nn;jn+=1){var ut=vn===jn;Cn.push(se.createElement(Pt,(0,ee.Z)({},On,{key:jn,page:jn,active:ut})))}}else{var Ln=Vt?It.prev_3:It.prev_5,ta=Vt?It.next_3:It.next_5,ia=Bn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Un,"prev page")),Hn=Bn(this.getJumpNextPage(),"jump-next",this.getItemIcon(qn,"next page"));xn&&(fa=ia?se.createElement("li",{title:Qt?Ln:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Re()("".concat(gt,"-jump-prev"),(0,xe.Z)({},"".concat(gt,"-jump-prev-custom-icon"),!!Un))},ia):null,Yn=Hn?se.createElement("li",{title:Qt?ta:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Re()("".concat(gt,"-jump-next"),(0,xe.Z)({},"".concat(gt,"-jump-next-custom-icon"),!!qn))},Hn):null),be=se.createElement(Pt,{locale:It,last:!0,rootPrefixCls:gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Nn,page:Nn,active:!1,showTitle:Qt,itemRender:Bn}),la=se.createElement(Pt,{locale:It,rootPrefixCls:gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Qt,itemRender:Bn});var Tn=Math.max(1,vn-it),Sa=Math.min(vn+it,Nn);vn-1<=it&&(Sa=1+it*2),Nn-vn<=it&&(Tn=Nn-it*2);for(var ga=Tn;ga<=Sa;ga+=1){var La=vn===ga;Cn.push(se.createElement(Pt,{locale:It,rootPrefixCls:gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ga,page:ga,active:La,showTitle:Qt,itemRender:Bn}))}vn-1>=it*2&&vn!==3&&(Cn[0]=(0,se.cloneElement)(Cn[0],{className:"".concat(gt,"-item-after-jump-prev")}),Cn.unshift(fa)),Nn-vn>=it*2&&vn!==Nn-2&&(Cn[Cn.length-1]=(0,se.cloneElement)(Cn[Cn.length-1],{className:"".concat(gt,"-item-before-jump-next")}),Cn.push(Yn)),Tn!==1&&Cn.unshift(la),Sa!==Nn&&Cn.push(be)}var pa=!this.hasPrev()||!Nn,ha=!this.hasNext()||!Nn,na=this.renderPrev(_t),ba=this.renderNext(Wt);return se.createElement("ul",(0,ee.Z)({className:Re()(gt,qe,(0,xe.Z)({},"".concat(gt,"-disabled"),Zt)),style:Et,ref:this.paginationNode},bn),dn,na?se.createElement("li",{title:Qt?It.prev_page:null,onClick:this.prev,tabIndex:pa?null:0,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(gt,"-prev"),(0,xe.Z)({},"".concat(gt,"-disabled"),pa)),"aria-disabled":pa},na):null,Cn,ba?se.createElement("li",{title:Qt?It.next_page:null,onClick:this.next,tabIndex:ha?null:0,onKeyPress:this.runIfEnterNext,className:Re()("".concat(gt,"-next"),(0,xe.Z)({},"".concat(gt,"-disabled"),ha)),"aria-disabled":ha},ba):null,se.createElement(rt,{disabled:Zt,locale:It,rootPrefixCls:gt,selectComponentClass:_n,selectPrefixCls:Xn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:vn,pageSize:ea,pageSizeOptions:In,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Be}))}}],[{key:"getDerivedStateFromProps",value:function(ye,gt){var qe={};if("current"in ye&&(qe.current=ye.current,ye.current!==gt.current&&(qe.currentInputValue=qe.current)),"pageSize"in ye&&ye.pageSize!==gt.pageSize){var Et=gt.current,Zt=et(ye.pageSize,gt,ye);Et=Et>Zt?Zt:Et,"current"in ye||(qe.current=Et,qe.currentInputValue=Et),qe.pageSize=ye.pageSize}return qe}}]),jt}(se.Component);st.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Fe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Fe,locale:_e.Z,style:{},itemRender:Je,totalBoundaryShowSizeChanger:50};var Tt=st,tn=oe(62906),on=oe(53124),ln=oe(98675),Oe=oe(25378),Ue=oe(10110),nt=oe(11713);const Dt=ue=>se.createElement(nt.default,Object.assign({},ue,{showSearch:!0,size:"small"})),dt=ue=>se.createElement(nt.default,Object.assign({},ue,{showSearch:!0,size:"middle"}));Dt.Option=nt.default.Option,dt.Option=nt.default.Option;var Lt=oe(47673),ce=oe(14747),ft=oe(67968),Kt=oe(45503);const rn=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ee}-item-link`]:{color:ue.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ee}-item-link`]:{color:ue.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ee}-disabled`]:{cursor:"not-allowed",[`${Ee}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ue.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ue.colorBorder,backgroundColor:ue.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ue.itemActiveBgDisabled},a:{color:ue.itemActiveColorDisabled}}},[`${Ee}-item-link`]:{color:ue.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ee}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ee}-simple-pager`]:{color:ue.colorTextDisabled},[`${Ee}-jump-prev, ${Ee}-jump-next`]:{[`${Ee}-item-link-icon`]:{opacity:0},[`${Ee}-item-ellipsis`]:{opacity:1}}},[`&${Ee}-simple`]:{[`${Ee}-prev, ${Ee}-next`]:{[`&${Ee}-disabled ${Ee}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},pt=ue=>{const{componentCls:Ee}=ue;return{[`&${Ee}-mini ${Ee}-total-text, &${Ee}-mini ${Ee}-simple-pager`]:{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`},[`&${Ee}-mini ${Ee}-item`]:{minWidth:ue.itemSizeSM,height:ue.itemSizeSM,margin:0,lineHeight:`${ue.itemSizeSM-2}px`},[`&${Ee}-mini:not(${Ee}-disabled) ${Ee}-item:not(${Ee}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ue.colorBgTextHover},"&:active":{backgroundColor:ue.colorBgTextActive}},[`&${Ee}-mini ${Ee}-prev, &${Ee}-mini ${Ee}-next`]:{minWidth:ue.itemSizeSM,height:ue.itemSizeSM,margin:0,lineHeight:`${ue.itemSizeSM}px`},[`&${Ee}-mini:not(${Ee}-disabled)`]:{[`${Ee}-prev, ${Ee}-next`]:{[`&:hover ${Ee}-item-link`]:{backgroundColor:ue.colorBgTextHover},[`&:active ${Ee}-item-link`]:{backgroundColor:ue.colorBgTextActive},[`&${Ee}-disabled:hover ${Ee}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${Ee}-mini ${Ee}-prev ${Ee}-item-link,
|
|
&${Ee}-mini ${Ee}-next ${Ee}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`}},[`&${Ee}-mini ${Ee}-jump-prev, &${Ee}-mini ${Ee}-jump-next`]:{height:ue.itemSizeSM,marginInlineEnd:0,lineHeight:`${ue.itemSizeSM}px`},[`&${Ee}-mini ${Ee}-options`]:{marginInlineStart:ue.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ue.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Lt.x0)(ue)),{width:ue.paginationMiniQuickJumperInputWidth,height:ue.controlHeightSM})}}}},Xe=ue=>{const{componentCls:Ee}=ue;return{[`
|
|
&${Ee}-simple ${Ee}-prev,
|
|
&${Ee}-simple ${Ee}-next
|
|
`]:{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`,verticalAlign:"top",[`${Ee}-item-link`]:{height:ue.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ue.colorBgTextHover},"&:active":{backgroundColor:ue.colorBgTextActive},"&::after":{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`}}},[`&${Ee}-simple ${Ee}-simple-pager`]:{display:"inline-block",height:ue.itemSizeSM,marginInlineEnd:ue.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ue.marginXS,padding:`0 ${ue.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ue.itemInputBg,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadius,outline:"none",transition:`border-color ${ue.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ue.colorPrimary},"&:focus":{borderColor:ue.colorPrimaryHover,boxShadow:`${ue.inputOutlineOffset}px 0 ${ue.controlOutlineWidth}px ${ue.controlOutline}`},"&[disabled]":{color:ue.colorTextDisabled,backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,cursor:"not-allowed"}}}}},Te=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}-jump-prev, ${Ee}-jump-next`]:{outline:0,[`${Ee}-item-container`]:{position:"relative",[`${Ee}-item-link-icon`]:{color:ue.colorPrimary,fontSize:ue.fontSizeSM,opacity:0,transition:`all ${ue.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ee}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ue.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ue.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ue.paginationEllipsisTextIndent,opacity:1,transition:`all ${ue.motionDurationMid}`}},"&:hover":{[`${Ee}-item-link-icon`]:{opacity:1},[`${Ee}-item-ellipsis`]:{opacity:0}}},[`
|
|
${Ee}-prev,
|
|
${Ee}-jump-prev,
|
|
${Ee}-jump-next
|
|
`]:{marginInlineEnd:ue.marginXS},[`
|
|
${Ee}-prev,
|
|
${Ee}-next,
|
|
${Ee}-jump-prev,
|
|
${Ee}-jump-next
|
|
`]:{display:"inline-block",minWidth:ue.itemSize,height:ue.itemSize,color:ue.colorText,fontFamily:ue.fontFamily,lineHeight:`${ue.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ue.borderRadius,cursor:"pointer",transition:`all ${ue.motionDurationMid}`},[`${Ee}-prev, ${Ee}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ue.colorText,cursor:"pointer",userSelect:"none"},[`${Ee}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ue.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ue.lineWidth}px ${ue.lineType} transparent`,borderRadius:ue.borderRadius,outline:"none",transition:`all ${ue.motionDurationMid}`},[`&:hover ${Ee}-item-link`]:{backgroundColor:ue.colorBgTextHover},[`&:active ${Ee}-item-link`]:{backgroundColor:ue.colorBgTextActive},[`&${Ee}-disabled:hover`]:{[`${Ee}-item-link`]:{backgroundColor:"transparent"}}},[`${Ee}-slash`]:{marginInlineEnd:ue.paginationSlashMarginInlineEnd,marginInlineStart:ue.paginationSlashMarginInlineStart},[`${Ee}-options`]:{display:"inline-block",marginInlineStart:ue.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ue.controlHeight,marginInlineStart:ue.marginXS,lineHeight:`${ue.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Lt.ik)(ue)),{width:ue.controlHeightLG*1.25,height:ue.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ue.marginXS,marginInlineEnd:ue.marginXS})}}}},Ce=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}-item`]:{display:"inline-block",minWidth:ue.itemSize,height:ue.itemSize,marginInlineEnd:ue.marginXS,fontFamily:ue.fontFamily,lineHeight:`${ue.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ue.lineWidth}px ${ue.lineType} transparent`,borderRadius:ue.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ue.paginationItemPaddingInline}px`,color:ue.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ee}-item-active)`]:{"&:hover":{transition:`all ${ue.motionDurationMid}`,backgroundColor:ue.colorBgTextHover},"&:active":{backgroundColor:ue.colorBgTextActive}},"&-active":{fontWeight:ue.fontWeightStrong,backgroundColor:ue.itemActiveBg,borderColor:ue.colorPrimary,a:{color:ue.colorPrimary},"&:hover":{borderColor:ue.colorPrimaryHover},"&:hover a":{color:ue.colorPrimaryHover}}}}},we=ue=>{const{componentCls:Ee}=ue;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(ue)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ee}-total-text`]:{display:"inline-block",height:ue.itemSize,marginInlineEnd:ue.marginXS,lineHeight:`${ue.itemSize-2}px`,verticalAlign:"middle"}}),Ce(ue)),Te(ue)),Xe(ue)),pt(ue)),rn(ue)),{[`@media only screen and (max-width: ${ue.screenLG}px)`]:{[`${Ee}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ue.screenSM}px)`]:{[`${Ee}-options`]:{display:"none"}}}),[`&${ue.componentCls}-rtl`]:{direction:"rtl"}}},ze=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}${Ee}-disabled:not(${Ee}-mini)`]:{"&, &:hover":{[`${Ee}-item-link`]:{borderColor:ue.colorBorder}},"&:focus-visible":{[`${Ee}-item-link`]:{borderColor:ue.colorBorder}},[`${Ee}-item, ${Ee}-item-link`]:{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,[`&:hover:not(${Ee}-item-active)`]:{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,a:{color:ue.colorTextDisabled}},[`&${Ee}-item-active`]:{backgroundColor:ue.itemActiveBgDisabled}},[`${Ee}-prev, ${Ee}-next`]:{"&:hover button":{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,color:ue.colorTextDisabled},[`${Ee}-item-link`]:{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder}}},[`${Ee}:not(${Ee}-mini)`]:{[`${Ee}-prev, ${Ee}-next`]:{"&:hover button":{borderColor:ue.colorPrimaryHover,backgroundColor:ue.itemBg},[`${Ee}-item-link`]:{backgroundColor:ue.itemLinkBg,borderColor:ue.colorBorder},[`&:hover ${Ee}-item-link`]:{borderColor:ue.colorPrimary,backgroundColor:ue.itemBg,color:ue.colorPrimary},[`&${Ee}-disabled`]:{[`${Ee}-item-link`]:{borderColor:ue.colorBorder,color:ue.colorTextDisabled}}},[`${Ee}-item`]:{backgroundColor:ue.itemBg,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,[`&:hover:not(${Ee}-item-active)`]:{borderColor:ue.colorPrimary,backgroundColor:ue.itemBg,a:{color:ue.colorPrimary}},"&-active":{borderColor:ue.colorPrimary}}}}},Ye=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}:not(${Ee}-disabled)`]:{[`${Ee}-item`]:Object.assign({},(0,ce.Qy)(ue)),[`${Ee}-jump-prev, ${Ee}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ee}-item-link-icon`]:{opacity:1},[`${Ee}-item-ellipsis`]:{opacity:0}},(0,ce.oN)(ue))},[`${Ee}-prev, ${Ee}-next`]:{[`&:focus-visible ${Ee}-item-link`]:Object.assign({},(0,ce.oN)(ue))}}}};var mt=(0,ft.Z)("Pagination",ue=>{const Ee=(0,Kt.TS)(ue,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ue.marginXXS/2,paginationMiniQuickJumperInputWidth:ue.controlHeightLG*1.1,paginationItemPaddingInline:ue.marginXXS*1.5,paginationEllipsisLetterSpacing:ue.marginXXS/2,paginationSlashMarginInlineStart:ue.marginXXS,paginationSlashMarginInlineEnd:ue.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Lt.e5)(ue),(0,Lt.TM)(ue));return[we(Ee),Ye(Ee),ue.wireframe&&ze(Ee)]},ue=>({itemBg:ue.colorBgContainer,itemSize:ue.controlHeight,itemSizeSM:ue.controlHeightSM,itemActiveBg:ue.colorBgContainer,itemLinkBg:ue.colorBgContainer,itemActiveColorDisabled:ue.colorTextDisabled,itemActiveBgDisabled:ue.controlItemBgActiveDisabled,itemInputBg:ue.colorBgContainer,miniOptionsSizeChangerTop:0})),Ft=function(ue,Ee){var jt={};for(var at in ue)Object.prototype.hasOwnProperty.call(ue,at)&&Ee.indexOf(at)<0&&(jt[at]=ue[at]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,at=Object.getOwnPropertySymbols(ue);ye<at.length;ye++)Ee.indexOf(at[ye])<0&&Object.prototype.propertyIsEnumerable.call(ue,at[ye])&&(jt[at[ye]]=ue[at[ye]]);return jt},Rt=ue=>{const{prefixCls:Ee,selectPrefixCls:jt,className:at,rootClassName:ye,style:gt,size:qe,locale:Et,selectComponentClass:Zt,responsive:vt,showSizeChanger:wt}=ue,It=Ft(ue,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:an}=(0,Oe.Z)(vt),{getPrefixCls:Vt,direction:Qt,pagination:pn={}}=se.useContext(on.E_),cn=Vt("pagination",Ee),[Bn,xn]=mt(cn),Un=wt!=null?wt:pn.showSizeChanger,qn=se.useMemo(()=>{const Nn=se.createElement("span",{className:`${cn}-item-ellipsis`},"\u2022\u2022\u2022"),Cn=se.createElement("button",{className:`${cn}-item-link`,type:"button",tabIndex:-1},Qt==="rtl"?se.createElement(He.Z,null):se.createElement(Ge.Z,null)),fa=se.createElement("button",{className:`${cn}-item-link`,type:"button",tabIndex:-1},Qt==="rtl"?se.createElement(Ge.Z,null):se.createElement(He.Z,null)),Yn=se.createElement("a",{className:`${cn}-item-link`},se.createElement("div",{className:`${cn}-item-container`},Qt==="rtl"?se.createElement(Ve.Z,{className:`${cn}-item-link-icon`}):se.createElement(me,{className:`${cn}-item-link-icon`}),Nn)),la=se.createElement("a",{className:`${cn}-item-link`},se.createElement("div",{className:`${cn}-item-container`},Qt==="rtl"?se.createElement(me,{className:`${cn}-item-link-icon`}):se.createElement(Ve.Z,{className:`${cn}-item-link-icon`}),Nn));return{prevIcon:Cn,nextIcon:fa,jumpPrevIcon:Yn,jumpNextIcon:la}},[Qt,cn]),[_n]=(0,Ue.Z)("Pagination",tn.Z),Xn=Object.assign(Object.assign({},_n),Et),In=(0,ln.Z)(qe),Gn=In==="small"||!!(an&&!In&&vt),vn=Vt("select",jt),ea=Re()({[`${cn}-mini`]:Gn,[`${cn}-rtl`]:Qt==="rtl"},pn==null?void 0:pn.className,at,ye,xn),Kn=Object.assign(Object.assign({},pn==null?void 0:pn.style),gt);return Bn(se.createElement(Tt,Object.assign({},qn,It,{style:Kn,prefixCls:cn,selectPrefixCls:vn,className:ea,selectComponentClass:Zt||(Gn?Dt:dt),locale:Xn,showSizeChanger:Un})))},Yt=Rt},66309:function(ke,ot,oe){"use strict";oe.d(ot,{default:function(){return _e}});var ee=oe(67294),se=oe(73475),We=oe(94184),je=oe.n(We),de=oe(98787),Le=oe(69760),me=oe(45353),Ve=oe(53124),Ge=oe(14747),He=oe(45503),Ze=oe(67968);const Re=ve=>{const{paddingXXS:rt,lineWidth:Ct,tagPaddingHorizontal:Pt,componentCls:Fe}=ve,Qe=Pt-Ct,Je=rt-Ct;return{[Fe]:Object.assign(Object.assign({},(0,Ge.Wf)(ve)),{display:"inline-block",height:"auto",marginInlineEnd:ve.marginXS,paddingInline:Qe,fontSize:ve.tagFontSize,lineHeight:ve.tagLineHeight,whiteSpace:"nowrap",background:ve.defaultBg,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,opacity:1,transition:`all ${ve.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Fe}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ve.defaultColor},[`${Fe}-close-icon`]:{marginInlineStart:Je,color:ve.colorTextDescription,fontSize:ve.tagIconSize,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,"&:hover":{color:ve.colorTextHeading}},[`&${Fe}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ve.iconCls}-close, ${ve.iconCls}-close:hover`]:{color:ve.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Fe}-checkable-checked):hover`]:{color:ve.colorPrimary,backgroundColor:ve.colorFillSecondary},"&:active, &-checked":{color:ve.colorTextLightSolid},"&-checked":{backgroundColor:ve.colorPrimary,"&:hover":{backgroundColor:ve.colorPrimaryHover}},"&:active":{backgroundColor:ve.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ve.iconCls} + span, > span + ${ve.iconCls}`]:{marginInlineStart:Qe}}),[`${Fe}-borderless`]:{borderColor:"transparent",background:ve.tagBorderlessBg}}},xe=ve=>{const{lineWidth:rt,fontSizeIcon:Ct}=ve,Pt=ve.fontSizeSM,Fe=`${ve.lineHeightSM*Pt}px`;return(0,He.TS)(ve,{tagFontSize:Pt,tagLineHeight:Fe,tagIconSize:Ct-2*rt,tagPaddingHorizontal:8,tagBorderlessBg:ve.colorFillTertiary})},ae=ve=>({defaultBg:ve.colorFillQuaternary,defaultColor:ve.colorText});var a=(0,Ze.Z)("Tag",ve=>{const rt=xe(ve);return Re(rt)},ae),y=function(ve,rt){var Ct={};for(var Pt in ve)Object.prototype.hasOwnProperty.call(ve,Pt)&&rt.indexOf(Pt)<0&&(Ct[Pt]=ve[Pt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Pt=Object.getOwnPropertySymbols(ve);Fe<Pt.length;Fe++)rt.indexOf(Pt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pt[Fe])&&(Ct[Pt[Fe]]=ve[Pt[Fe]]);return Ct},b=ve=>{const{prefixCls:rt,style:Ct,className:Pt,checked:Fe,onChange:Qe,onClick:Je}=ve,et=y(ve,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:st,tag:Tt}=ee.useContext(Ve.E_),tn=nt=>{Qe==null||Qe(!Fe),Je==null||Je(nt)},on=st("tag",rt),[ln,Oe]=a(on),Ue=je()(on,`${on}-checkable`,{[`${on}-checkable-checked`]:Fe},Tt==null?void 0:Tt.className,Pt,Oe);return ln(ee.createElement("span",Object.assign({},et,{style:Object.assign(Object.assign({},Ct),Tt==null?void 0:Tt.style),className:Ue,onClick:tn})))},x=oe(98719);const z=ve=>(0,x.Z)(ve,(rt,Ct)=>{let{textColor:Pt,lightBorderColor:Fe,lightColor:Qe,darkColor:Je}=Ct;return{[`${ve.componentCls}-${rt}`]:{color:Pt,background:Qe,borderColor:Fe,"&-inverse":{color:ve.colorTextLightSolid,background:Je,borderColor:Je},[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}});var te=(0,Ze.b)(["Tag","preset"],ve=>{const rt=xe(ve);return z(rt)},ae);function ne(ve){return typeof ve!="string"?ve:ve.charAt(0).toUpperCase()+ve.slice(1)}const re=(ve,rt,Ct)=>{const Pt=ne(Ct);return{[`${ve.componentCls}-${rt}`]:{color:ve[`color${Ct}`],background:ve[`color${Pt}Bg`],borderColor:ve[`color${Pt}Border`],[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ie=(0,Ze.b)(["Tag","status"],ve=>{const rt=xe(ve);return[re(rt,"success","Success"),re(rt,"processing","Info"),re(rt,"error","Error"),re(rt,"warning","Warning")]},ae),le=function(ve,rt){var Ct={};for(var Pt in ve)Object.prototype.hasOwnProperty.call(ve,Pt)&&rt.indexOf(Pt)<0&&(Ct[Pt]=ve[Pt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Pt=Object.getOwnPropertySymbols(ve);Fe<Pt.length;Fe++)rt.indexOf(Pt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pt[Fe])&&(Ct[Pt[Fe]]=ve[Pt[Fe]]);return Ct};const pe=(ve,rt)=>{const{prefixCls:Ct,className:Pt,rootClassName:Fe,style:Qe,children:Je,icon:et,color:st,onClose:Tt,closeIcon:tn,closable:on,bordered:ln=!0}=ve,Oe=le(ve,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Ue,direction:nt,tag:Dt}=ee.useContext(Ve.E_),[dt,Lt]=ee.useState(!0);ee.useEffect(()=>{"visible"in Oe&&Lt(Oe.visible)},[Oe.visible]);const ce=(0,de.o2)(st),ft=(0,de.yT)(st),Kt=ce||ft,rn=Object.assign(Object.assign({backgroundColor:st&&!Kt?st:void 0},Dt==null?void 0:Dt.style),Qe),pt=Ue("tag",Ct),[Xe,Te]=a(pt),Ce=je()(pt,Dt==null?void 0:Dt.className,{[`${pt}-${st}`]:Kt,[`${pt}-has-color`]:st&&!Kt,[`${pt}-hidden`]:!dt,[`${pt}-rtl`]:nt==="rtl",[`${pt}-borderless`]:!ln},Pt,Fe,Te),we=Rt=>{Rt.stopPropagation(),Tt==null||Tt(Rt),!Rt.defaultPrevented&&Lt(!1)},[,ze]=(0,Le.Z)(on,tn,Rt=>Rt===null?ee.createElement(se.Z,{className:`${pt}-close-icon`,onClick:we}):ee.createElement("span",{className:`${pt}-close-icon`,onClick:we},Rt),null,!1),Ye=typeof Oe.onClick=="function"||Je&&Je.type==="a",mt=et||null,Ft=mt?ee.createElement(ee.Fragment,null,mt,Je&&ee.createElement("span",null,Je)):Je,Ot=ee.createElement("span",Object.assign({},Oe,{ref:rt,className:Ce,style:rn}),Ft,ze,ce&&ee.createElement(te,{key:"preset",prefixCls:pt}),ft&&ee.createElement(ie,{key:"status",prefixCls:pt}));return Xe(Ye?ee.createElement(me.Z,{component:"Tag"},Ot):Ot)},he=ee.forwardRef(pe);he.CheckableTag=b;var _e=he},72665:function(ke,ot){"use strict";var oe;var ee=typeof Symbol=="function"&&Symbol.for,se=ee?Symbol.for("react.element"):60103,We=ee?Symbol.for("react.portal"):60106,je=ee?Symbol.for("react.fragment"):60107,de=ee?Symbol.for("react.strict_mode"):60108,Le=ee?Symbol.for("react.profiler"):60114,me=ee?Symbol.for("react.provider"):60109,Ve=ee?Symbol.for("react.context"):60110,Ge=ee?Symbol.for("react.async_mode"):60111,He=ee?Symbol.for("react.concurrent_mode"):60111,Ze=ee?Symbol.for("react.forward_ref"):60112,Re=ee?Symbol.for("react.suspense"):60113,xe=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,a=ee?Symbol.for("react.lazy"):60116,y=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 se:switch(ne=ne.type,ne){case Ge:case He:case je:case Le:case de:case Re:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ve:case Ze:case a:case ae:case me:return ne;default:return re}}case We:return re}}}function te(ne){return z(ne)===He}oe=Ge,oe=He,oe=Ve,oe=me,oe=se,oe=Ze,oe=je,oe=a,oe=ae,oe=We,oe=Le,oe=de,oe=Re,oe=function(ne){return te(ne)||z(ne)===Ge},oe=te,oe=function(ne){return z(ne)===Ve},oe=function(ne){return z(ne)===me},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===se},oe=function(ne){return z(ne)===Ze},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===a},ot.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===We},oe=function(ne){return z(ne)===Le},oe=function(ne){return z(ne)===de},oe=function(ne){return z(ne)===Re},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===je||ne===He||ne===Le||ne===de||ne===Re||ne===xe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===me||ne.$$typeof===Ve||ne.$$typeof===Ze||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(ke,ot,oe){"use strict";ke.exports=oe(72665)},26819:function(ke,ot){"use strict";var oe;var ee=typeof Symbol=="function"&&Symbol.for,se=ee?Symbol.for("react.element"):60103,We=ee?Symbol.for("react.portal"):60106,je=ee?Symbol.for("react.fragment"):60107,de=ee?Symbol.for("react.strict_mode"):60108,Le=ee?Symbol.for("react.profiler"):60114,me=ee?Symbol.for("react.provider"):60109,Ve=ee?Symbol.for("react.context"):60110,Ge=ee?Symbol.for("react.async_mode"):60111,He=ee?Symbol.for("react.concurrent_mode"):60111,Ze=ee?Symbol.for("react.forward_ref"):60112,Re=ee?Symbol.for("react.suspense"):60113,xe=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,a=ee?Symbol.for("react.lazy"):60116,y=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 se:switch(ne=ne.type,ne){case Ge:case He:case je:case Le:case de:case Re:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ve:case Ze:case a:case ae:case me:return ne;default:return re}}case We:return re}}}function te(ne){return z(ne)===He}oe=Ge,oe=He,oe=Ve,oe=me,oe=se,oe=Ze,oe=je,oe=a,oe=ae,oe=We,oe=Le,oe=de,oe=Re,oe=function(ne){return te(ne)||z(ne)===Ge},oe=te,oe=function(ne){return z(ne)===Ve},oe=function(ne){return z(ne)===me},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===se},oe=function(ne){return z(ne)===Ze},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===a},ot.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===We},oe=function(ne){return z(ne)===Le},oe=function(ne){return z(ne)===de},oe=function(ne){return z(ne)===Re},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===je||ne===He||ne===Le||ne===de||ne===Re||ne===xe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===me||ne.$$typeof===Ve||ne.$$typeof===Ze||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},18459:function(ke,ot,oe){"use strict";ke.exports=oe(26819)},16651:function(ke,ot){"use strict";var oe;var ee=Symbol.for("react.element"),se=Symbol.for("react.portal"),We=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),me=Symbol.for("react.context"),Ve=Symbol.for("react.server_context"),Ge=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case ee:switch(E=E.type,E){case We:case de:case je:case He:case Ze:return E;default:switch(E=E&&E.$$typeof,E){case Ve:case me:case Ge:case xe:case Re:case Le:return E;default:return b}}case se:return b}}}oe=me,oe=Le,oe=ee,oe=Ge,oe=We,oe=xe,oe=Re,oe=se,oe=de,oe=je,oe=He,oe=Ze,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===me},oe=function(E){return y(E)===Le},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ee},oe=function(E){return y(E)===Ge},oe=function(E){return y(E)===We},oe=function(E){return y(E)===xe},oe=function(E){return y(E)===Re},oe=function(E){return y(E)===se},oe=function(E){return y(E)===de},oe=function(E){return y(E)===je},oe=function(E){return y(E)===He},oe=function(E){return y(E)===Ze},oe=function(E){return typeof E=="string"||typeof E=="function"||E===We||E===de||E===je||E===He||E===Ze||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===xe||E.$$typeof===Re||E.$$typeof===Le||E.$$typeof===me||E.$$typeof===Ge||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},33993:function(ke,ot,oe){"use strict";oe(16651)},81626:function(ke,ot){"use strict";ot.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}}}]);
|