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

189 lines
491 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[7043],{81893:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return me}});var ee=oe(87462),de=oe(67294),je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},ke=je,se=oe(74643),Ee=function(We,Ae){return de.createElement(se.Z,(0,ee.Z)({},We,{ref:Ae,icon:ke}))},me=de.forwardRef(Ee)},22751:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return me}});var ee=oe(87462),de=oe(67294),je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ke=je,se=oe(74643),Ee=function(We,Ae){return de.createElement(se.Z,(0,ee.Z)({},We,{ref:Ae,icon:ke}))},me=de.forwardRef(Ee)},40043:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return me}});var ee=oe(87462),de=oe(67294),je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},ke=je,se=oe(74643),Ee=function(We,Ae){return de.createElement(se.Z,(0,ee.Z)({},We,{ref:Ae,icon:ke}))},me=de.forwardRef(Ee)},91034:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return me}});var ee=oe(87462),de=oe(67294),je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ke=je,se=oe(74643),Ee=function(We,Ae){return de.createElement(se.Z,(0,ee.Z)({},We,{ref:Ae,icon:ke}))},me=de.forwardRef(Ee)},71736:function(Re,gt){"use strict";gt.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 Re(ae,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(Re.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(Re.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(Re.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(Re.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,y){var a=go.Shape._FigureParameters[ae];return a?a[y]:null},go.Shape.setFigureParameter=function(ae,y,a){if(!(a instanceof Re))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[y]=a};var gt=[];function oe(ae,y){var a=gt.pop();return a===void 0?new go.Point(ae,y):(a.x=ae,a.y=y,a)}function ee(){var ae=gt.pop();return ae===void 0?new go.Point:ae}function de(ae){gt.push(ae)}function je(ae,y,a,E,b,x,z,te,ne){ne||(ne=new go.Point);var re=ae-a,ie=b-z,ge=NaN,ve=NaN;if(re===0)if(ie===0)ae===a&&(ge=ae,ve=y);else{var Pe=(x-te)/ie,ze=x-Pe*b;ge=ae,ve=Pe*ge+ze}else if(ie===0){var pe=(y-E)/re,Ke=y-pe*ae;ge=b,ve=pe*ge+Ke}else{var pe=(y-E)/re,Pe=(x-te)/ie,Ke=y-pe*ae,ze=x-Pe*b;ge=(ze-Ke)/(pe-Pe),ve=pe*ge+Ke}return ne.x=ge,ne.y=ve,ne}function ke(ae,y,a,E,b,x,z,te,ne,re,ie,ge,ve,Pe){var ze=1-ne,pe=ne,Ke=ae*ze+a*pe,vt=y*ze+E*pe,lt=a*ze+b*pe,$e=E*ze+x*pe,it=b*ze+z*pe,et=x*ze+te*pe,Ve=Ke*ze+lt*pe,at=vt*ze+$e*pe,At=lt*ze+it*pe,an=$e*ze+et*pe,dn=Ve*ze+At*pe,Sn=at*ze+an*pe;re.x=Ke,re.y=vt,ie.x=Ve,ie.y=at,ge.x=dn,ge.y=Sn,ve.x=At,ve.y=an,Pe.x=it,Pe.y=et}var se=new go.Spot(.156,.156),Ee=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Re("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=se,b.spot2=Ee,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,me*y,0,y,(1-me)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,me*a,(1-me)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,me*a,me*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-me)*y,0,0,(1-me)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Re("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Re("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Re("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Re("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Re("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var Qe=[];function We(){var ae=Qe.pop();return ae===void 0?[]:ae}function Ae(ae){ae.length=0,Qe.push(ae)}function Ye(ae){for(var y=We(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function _e(ae){var y=Fe(ae),a=We();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return Ae(y),a}function Fe(ae){for(var y=Ye(ae),a=We(),E=Math.floor(y.length/2),b=y.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var te=y[z],ne=y[z+1],re=y[(E+z-1)%b],ie=y[(E+z+x)%b];a[z*2]=te,a[z*2+1]=je(te.x,te.y,re.x,re.y,ne.x,ne.y,ie.x,ie.y,new go.Point)}return a[a.length]=a[0],Ae(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ae,y,a){var E=Ye(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,y,a){var E=Ye(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,y,a){var E=Ye(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,y,a){var E=Ye(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,y,a){var E=Ye(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,y,a){var E=Ye(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,y,a){var E=Ye(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,y,a){var E=Fe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,y,a){var E=Fe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,y,a){var E=Fe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,y,a){var E=Fe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,y,a){var E=Fe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,y,a){var E=Fe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ae(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,y,a){var E=_e(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,y,a){var E=_e(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,y,a){var E=_e(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,y,a){var E=_e(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,y,a){var E=_e(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,y,a){var E=_e(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Re("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Re("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Re("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var te=Math.max(b-E,0);return te>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+te,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,te,te).close())),x.spot1=se,x.spot2=Ee,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Re("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Re("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,y,a){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(y,a)/2;return new go.Geometry().add(new go.PathFigure(te,te).add(new go.PathSegment(go.PathSegment.Arc,x,z,te,te,te,te).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,y,a){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Re("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Re("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Re("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,y,a){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,te=Math.atan2(a,y),ne=E-Math.min(Math.cos(te)*E/2,x),re=E-Math.min(Math.sin(te)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(ne,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ie.add(new go.PathSegment(go.PathSegment.Line,y-ne,0)),ie.add(new go.PathSegment(go.PathSegment.Line,y,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,y,a-re)),ie.add(new go.PathSegment(go.PathSegment.Line,y-ne,a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ie.add(new go.PathSegment(go.PathSegment.Line,ne,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,a-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Re("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Re("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Re("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,me*y,0,y,(.5-me/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+me/2)*a,me*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,te=0,ne=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+te)*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z)*y,(.5-ne+te)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z+.05)*y,(.5-ne+te-.02)*a)),x=.2,z=0,te=-.3,ne=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+te)*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z)*y,(.5-ne+te)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+te)*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z)*y,(.5-ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),x=.2,z=-.3,te=0,ne=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z-.05)*y,(.5-ne+te-.02)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+te)*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z)*y,(.5-ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,te=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,te*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*te,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),te=.75,b=new go.PathFigure((z+x)*y,te*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*te,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure(z*y,(te-x)*a);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),x=.4,b=me*.4;var re=ee(),ie=ee(),ge=ee(),ve=ee();ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.42,re,ie,ge,ve,ve);var Pe=ee(),ze=ee(),pe=ee();ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.58,ve,ve,pe,Pe,ze);var Ke=ee(),vt=ee(),lt=ee();ke(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.42,Ke,vt,lt,ve,ve);var $e=ee(),it=ee(),et=ee();return ke(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.58,ve,ve,et,$e,it),ne.add(new go.PathSegment(go.PathSegment.Move,et.x*y,et.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,$e.x*y,$e.y*a,it.x*y,it.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,re.x*y,re.y*a,ie.x*y,ie.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,et.x*y,et.y*a).close()),ne.add(new go.PathSegment(go.PathSegment.Move,lt.x*y,lt.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,pe.x*y,pe.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,Pe.x*y,Pe.y*a,ze.x*y,ze.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,lt.x*y,lt.y*a,Ke.x*y,Ke.y*a,vt.x*y,vt.y*a).close()),de(re),de(ie),de(ge),de(ve),de(Pe),de(ze),de(pe),de(Ke),de(vt),de(lt),de($e),de(it),de(et),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Re("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,y,a){var E=new go.Geometry,b=me*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ie=ee(),ge=ee(),ve=new go.PathFigure((z-x)*y,te*a,!1);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.44,ie,ge,re,ne,ne),ve.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a));var Pe=oe(re.x,re.y);ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.56,ne,ne,re,ie,ge);var ze=oe(re.x,re.y);ve.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.95*.9)*y,Pe.y*.1*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*y,Pe.y*.1*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),ve.add(new go.PathSegment(go.PathSegment.Line,y,0)),ve.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),ve.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*y,.15*a)),ve.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*y,(ze.y*.1+.05*.9)*a)),ve.add(new go.PathSegment(go.PathSegment.Line,ze.x*y,ze.y*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),x=.35,b=me*.35;var pe=new go.PathFigure(z*y,(te-x)*a,!1);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a));var Ke=new go.PathFigure((z-x)*y,te*a,!1);return E.add(Ke),de(ne),de(re),de(ie),de(ge),de(Pe),de(ze),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,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,te=b*me,ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+te+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-te+z)*a,(.5+te+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+te+z)*a,(.5-te+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,te=b*me;var ne=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+te+z)*a,(.5+te+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a,(.5-te+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+te+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-te+z)*a));var ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Re("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Re("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,te=(.5+b/2)*a,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/a);var ie=je(0,te/a,1,te/a,x/y,1,1,.5,ee());return ne.spot2=new go.Spot(ie.x,ie.y),de(ie),ne}),go.Shape.setFigureParameter("Arrow2",0,new Re("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Re("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,te=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/a);var ie=je(0,te/a,1,te/a,x/y,1,1,.5,ee());return ne.spot2=new go.Spot(ie.x,ie.y),de(ie),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Re("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var ne=je(0,.5,.3,0,0,b/a,.1,b/a,ee());return z.spot1=new go.Spot(ne.x,ne.y),ne=je(.7,1,1,.5,0,x/a,1,x/a,ne),z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Re("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Re("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,te=(a-b)/2,ne=te+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,te=0,ne=a):(x=0,z=a,te=0,ne=a));var re=new go.Geometry,ie=new go.PathFigure(y,.5*a,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,te).close());var ge=je(0,.5,.3,te/a,0,x/a,1,x/a,ee());return re.spot1=new go.Spot(ge.x,ge.y),ge=je(.7,ne/a,1,.5,0,z/a,1,z/a,ge),re.spot2=new go.Spot(ge.x,ge.y),de(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Re("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var ne=je(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Re("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Re("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,te=(a-b)/2,ne=te+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,te=0,ne=a):(x=0,z=a,te=0,ne=a));var re=new go.Geometry,ie=new go.PathFigure(y,.5*a,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,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*y,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,te).close()),re.spot1=new go.Spot(0,x/a);var ge=je(.7,ne/a,1,.5,0,z/a,1,z/a,ee());return re.spot2=new go.Spot(ge.x,ge.y),de(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Re("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=je(.2,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),de(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Re("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=je(0,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),de(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Re("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var ne=je(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Re("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var ne=je(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Re("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,y,a){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(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,me*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-me*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var te=new go.PathFigure(y,E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-me*E,(.5+x)*y,2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,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,y,a){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(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,me*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-me*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-me*E));var te=new go.PathFigure(0,a-E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-me*E,(.5-x)*y,a-2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-E-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,y,a){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(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-me*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-me*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,me*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,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*a,E+me*E,0,2*E,(.5-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+me*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,y,a){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(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-me*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-me*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,me*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var te=new go.PathFigure(y-E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-me*E,0,y-2*E,(.5-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-me*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,y,a){var E=new go.Geometry,b=.2,x=.1,z=me*b,te=me*x,ne=.5,re=.1,ie=new go.PathFigure(ne*y,(re+x)*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*y,re*a,(ne-z)*y,(re+x)*a,(ne-b)*y,(re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-x)*a,(ne-b)*y,(re-te)*a,(ne-z)*y,(re-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*y,re*a,(ne+z)*y,(re-x)*a,(ne+b)*y,(re-te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+x)*a,(ne+b)*y,(re+te)*a,(ne+z)*y,(re+x)*a));var ge=.05,ve=me*ge;ne=.05,re=.25;var Pe=new go.PathFigure(.5*y,.2*a,!0);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),ne=.95,re=.25,Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ge)*y,re*a,(ne+ve)*y,(re-ge)*a,(ne+ge)*y,(re-ve)*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),ge=.025,ve=me*ge,ne=.825,re=.35,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-ge)*a,(ne+ge)*y,(re-ve)*a,(ne+ve)*y,(re-ge)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*y,re*a,(ne-ve)*y,(re-ge)*a,(ne-ge)*y,(re-ve)*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),ge=.05,ve=me*ge,ne=.5,re=.7,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-ge)*a,(ne+ge)*y,(re-ve)*a,(ne+ve)*y,(re-ge)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*y,re*a,(ne-ve)*y,(re-ge)*a,(ne-ge)*y,(re-ve)*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),ge=.025,ve=me*ge,ne=.175,re=.35,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-ge)*a,(ne+ge)*y,(re-ve)*a,(ne+ve)*y,(re-ge)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*y,re*a,(ne-ve)*y,(re-ge)*a,(ne-ge)*y,(re-ve)*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ge=.05,ve=me*ge,ne=.05,re=.25,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-ge)*a,(ne-ge)*y,(re-ve)*a,(ne-ve)*y,(re-ge)*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Re("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var te=new go.PathFigure(y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var te=new go.PathFigure(y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,y,a){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*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var te=new go.PathFigure(0,b*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(b*y,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),te.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,te=.5,ne=new go.PathFigure(y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*y,a,y,(te+z)*a,(te+z)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,te*a,(te-z)*y,a,0,(te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*y,0,0,(te-z)*a,(te-z)*y,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,te*a,(te+z)*y,0,y,(te-z)*a));var re=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),re.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,y,a){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*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var te=new go.PathFigure(.5*b*y,b*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var te=new go.PathFigure(y,.5*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),te.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,y,a){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)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,y,a){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*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var te=new go.PathFigure(y,x*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var ne=new go.PathFigure(.8*y,.75*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,y,a){var E=new go.Geometry,b=me*.1,x=.1,z=.9,te=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var re=new go.PathFigure((z+x)*y,te*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te-x)*a,(z+x)*y,(te-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,y,a){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*y,.5*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var ge=new go.PathFigure((ne+te)*y,re*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+te)*a,(ne+te)*y,(re+z)*a,(ne+z)*y,(re+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y,re*a,(ne-z)*y,(re+te)*a,(ne-te)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-te)*a,(ne-te)*y,(re-z)*a,(ne-z)*y,(re-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y,re*a,(ne+z)*y,(re-te)*a,(ne+te)*y,(re-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=me*b,z=0,te=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(te-b)*a,.7*y,(te-x)*a)),b=.1,x=me*.1,z=.9,te=.5;var re=new go.PathFigure((z-b)*y,te*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,y,a){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,y,.5*a,(z+x+x)*y,(te-b)*a,.8*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(te+x)*a,(z+x+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=me*b,z=.2,te=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.8*y,.5*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(te-b)*a,.7*y,(te-x)*a)),b=.1,x=me*.1,z=.9,te=.5;var ie=new go.PathFigure((z-b)*y,te*a,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=me*b,z=.2,te=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.2*y,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(te-b)*a,.9*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,y,a){var E=new go.Geometry,b=me*.1,x=.1,z=.1,te=.5,ne=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,y,a){var E=new go.Geometry,b=me*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure((z-x)*y,te*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te-x)*a,(z+x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,te*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,te*a,z*y,(te-x)*a,z*y,(te+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=me*.8,te=.8,ne=0,re=.5,ie=(b-y)/2,ge=(x-a)/2,ve=new go.PathFigure(ne*y+ie,(re+te)*a+ge,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ie,re*a+ge,(ne-z)*y+ie,(re+te)*a+ge,(ne-te)*y+ie,(re+z)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-te)*a+ge,(ne-te)*y+ie,(re-z)*a+ge,(ne-z)*y+ie,(re-te)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*y+ie,re*a+ge,ne*y+ie,(re-te)*a+ge,(ne-te+z*.5)*y+ie,(re-z)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+te)*a+ge,(ne-te+z*.5)*y+ie,(re+z)*a+ge,ne*y+ie,(re+te)*a+ge).close()),z=me*.4,te=.4,ne=.2,re=.5;var Pe=new go.PathFigure(ne*y+ie,(re+te)*a+ge,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ie,re*a+ge,(ne-z)*y+ie,(re+te)*a+ge,(ne-te)*y+ie,(re+z)*a+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-te)*a+ge,(ne-te)*y+ie,(re-z)*a+ge,(ne-z)*y+ie,(re-te)*a+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*y+ie,re*a+ge,ne*y+ie,(re-te)*a+ge,(ne-te+z*.5)*y+ie,(re-z)*a+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+te)*a+ge,(ne-te+z*.5)*y+ie,(re+z)*a+ge,ne*y+ie,(re+te)*a+ge).close()),z=me*.2,te=.2,ne=.5,re=.5;var ze=new go.PathFigure((ne-te)*y+ie,re*a+ge,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-te)*a+ge,(ne-te)*y+ie,(re-z)*a+ge,(ne-z)*y+ie,(re-te)*a+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ie,re*a+ge,(ne+z)*y+ie,(re-te)*a+ge,(ne+te)*y+ie,(re-z)*a+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+te)*a+ge,(ne+te)*y+ie,(re+z)*a+ge,(ne+z)*y+ie,(re+te)*a+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ie,re*a+ge,(ne-z)*y+ie,(re+te)*a+ge,(ne-te)*y+ie,(re+z)*a+ge)),z=me*.4,te=.4,ne=.8,re=.5;var pe=new go.PathFigure(ne*y+ie,(re-te)*a+ge,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ie,re*a+ge,(ne+z)*y+ie,(re-te)*a+ge,(ne+te)*y+ie,(re-z)*a+ge)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+te)*a+ge,(ne+te)*y+ie,(re+z)*a+ge,(ne+z)*y+ie,(re+te)*a+ge)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*y+ie,re*a+ge,ne*y+ie,(re+te)*a+ge,(ne+te-z*.5)*y+ie,(re+z)*a+ge)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-te)*a+ge,(ne+te-z*.5)*y+ie,(re-z)*a+ge,ne*y+ie,(re-te)*a+ge).close()),z=me*.8,te=.8,ne=1,re=.5;var Ke=new go.PathFigure(ne*y+ie,(re-te)*a+ge,!0);return E.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ie,re*a+ge,(ne+z)*y+ie,(re-te)*a+ge,(ne+te)*y+ie,(re-z)*a+ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+te)*a+ge,(ne+te)*y+ie,(re+z)*a+ge,(ne+z)*y+ie,(re+te)*a+ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*y+ie,re*a+ge,ne*y+ie,(re+te)*a+ge,(ne+te-z*.5)*y+ie,(re+z)*a+ge)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-te)*a+ge,(ne+te-z*.5)*y+ie,(re-z)*a+ge,ne*y+ie,(re-te)*a+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var te=new go.PathFigure(0,.5*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),te.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),te.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ae,y,a){var E=new go.Geometry,b=me*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ie=ee(),ge=ee();ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ie,ge);var ve=oe(re.x,re.y),Pe=new go.PathFigure(re.x*y,re.y*a,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),ke(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ie,ge,re,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),b=me*.3,x=.3,ke(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ie,ge,re,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Line,re.x*y,re.y*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ke(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ie,ge),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a).close());var Pe=new go.PathFigure(.45*y,0,!0);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),de(ne),de(re),de(ie),de(ge),de(ve),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,te,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*y,(.8+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*y,(.8+ne)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,y,a){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,ge=.5,ve=.5,Pe=0,ze=new go.PathFigure(ne*y,(1-re)*a,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,ge*a,ie*y,.7*a,ie*y,ge*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve+x)*y,(Pe+x)*a,(.5+b+x)*y,(.5-te+x)*a,(.5+te+x)*y,(.5-b+x)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+te+z)*a,(.5-te+x)*y,.9*a)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,te=.5,ne=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ve=z,Pe=z,ze=ie*ve,pe=ie*Pe;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-ve)*y,ne*a,(te-(ze+ve)/2)*y,(ne+(Pe+pe)/2)*a,(te-ve)*y,(ne+pe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ne-Pe)*a,(te-ve)*y,(ne-pe)*a,(te-ze)*y,(ne-Pe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+ve)*y,ne*a,(te+ze)*y,(ne-Pe)*a,(te+ve)*y,(ne-pe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(te+ve)*y,(ne+pe)*a,(te+(ze+ve)/2)*y,(ne+(Pe+pe)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var Ke=new go.PathFigure(.2*y,a,!1);E.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var vt=new go.PathFigure(.8*y,a,!1);return E.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,y,a){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var te=new go.PathFigure(b*y,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,te=me*.1,ne=.2,re=.9,ie=new go.PathFigure((ne-z)*y,re*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-te)*a,(ne-te)*y,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+te)*y,(re-z)*a,(ne+z)*y,(re-te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+te)*a,(ne+te)*y,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-te)*y,(re+z)*a,(ne-z)*y,(re+te)*a).close()),z=.1,te=me*.1,ne=.8,re=.9;var ge=new go.PathFigure((ne-z)*y,re*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-te)*a,(ne-te)*y,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+te)*y,(re-z)*a,(ne+z)*y,(re-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+te)*a,(ne+te)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-te)*y,(re+z)*a,(ne-z)*y,(re+te)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var te=new go.PathFigure(.5*y,.7*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var ne=.1,re=me*.1,ie=.1,ge=.9,ve=new go.PathFigure((ie-ne)*y,ge*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge-ne)*a,(ie-ne)*y,(ge-re)*a,(ie-re)*y,(ge-ne)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*y,ge*a,(ie+re)*y,(ge-ne)*a,(ie+ne)*y,(ge-re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge+ne)*a,(ie+ne)*y,(ge+re)*a,(ie+re)*y,(ge+ne)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*y,ge*a,(ie-re)*y,(ge+ne)*a,(ie-ne)*y,(ge+re)*a)),ne=.1,re=me*.1,ie=.4,ge=.9;var Pe=new go.PathFigure((ie-ne)*y,ge*a,!0);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge-ne)*a,(ie-ne)*y,(ge-re)*a,(ie-re)*y,(ge-ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*y,ge*a,(ie+re)*y,(ge-ne)*a,(ie+ne)*y,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge+ne)*a,(ie+ne)*y,(ge+re)*a,(ie+re)*y,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*y,ge*a,(ie-re)*y,(ge+ne)*a,(ie-ne)*y,(ge+re)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ie=.05,ge=me*.05,ve=.175,Pe=.95,te=new go.PathFigure((ve-ie)*y,Pe*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe-ie)*a,(ve-ie)*y,(Pe-ge)*a,(ve-ge)*y,(Pe-ie)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*y,Pe*a,(ve+ge)*y,(Pe-ie)*a,(ve+ie)*y,(Pe-ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe+ie)*a,(ve+ie)*y,(Pe+ge)*a,(ve+ge)*y,(Pe+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*y,Pe*a,(ve-ge)*y,(Pe+ie)*a,(ve-ie)*y,(Pe+ge)*a));var ie=.05,ge=me*.05,ve=.375,Pe=.95,ne=new go.PathFigure((ve-ie)*y,Pe*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe-ie)*a,(ve-ie)*y,(Pe-ge)*a,(ve-ge)*y,(Pe-ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*y,Pe*a,(ve+ge)*y,(Pe-ie)*a,(ve+ie)*y,(Pe-ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe+ie)*a,(ve+ie)*y,(Pe+ge)*a,(ve+ge)*y,(Pe+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*y,Pe*a,(ve-ge)*y,(Pe+ie)*a,(ve-ie)*y,(Pe+ge)*a));var ie=.05,ge=me*.05,ve=.625,Pe=.95,re=new go.PathFigure((ve-ie)*y,Pe*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe-ie)*a,(ve-ie)*y,(Pe-ge)*a,(ve-ge)*y,(Pe-ie)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*y,Pe*a,(ve+ge)*y,(Pe-ie)*a,(ve+ie)*y,(Pe-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe+ie)*a,(ve+ie)*y,(Pe+ge)*a,(ve+ge)*y,(Pe+ie)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*y,Pe*a,(ve-ge)*y,(Pe+ie)*a,(ve-ie)*y,(Pe+ge)*a));var ie=.05,ge=me*.05,ve=.825,Pe=.95,ze=new go.PathFigure((ve-ie)*y,Pe*a,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe-ie)*a,(ve-ie)*y,(Pe-ge)*a,(ve-ge)*y,(Pe-ie)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*y,Pe*a,(ve+ge)*y,(Pe-ie)*a,(ve+ie)*y,(Pe-ge)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Pe+ie)*a,(ve+ie)*y,(Pe+ge)*a,(ve+ge)*y,(Pe+ie)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*y,Pe*a,(ve-ge)*y,(Pe+ie)*a,(ve-ie)*y,(Pe+ge)*a).close());var pe=new go.PathFigure(0,a,!1);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var te=.05,ne=me*.05,re=.35,ie=.775,ge=new go.PathFigure((re-te)*y,ie*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ie-te)*a,(re-te)*y,(ie-ne)*a,(re-ne)*y,(ie-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*y,ie*a,(re+ne)*y,(ie-te)*a,(re+te)*y,(ie-ne)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ie+te)*a,(re+te)*y,(ie+ne)*a,(re+ne)*y,(ie+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*y,ie*a,(re-ne)*y,(ie+te)*a,(re-te)*y,(ie+ne)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,y,a){var E=new go.Geometry,b=.3,x=me*.3,z=.5,te=.7,ne=new go.PathFigure((z-b)*y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a));var re=new go.PathFigure(0,.7*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,y,a){var E=new go.Geometry,b=.5,x=me*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a));var re=new go.PathFigure(.15*y,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,y,a){var E=new go.Geometry,b=.5,x=me*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*y,te*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a).close()),b=.05,x=me*.05,z=.5,te=.8;var re=new go.PathFigure((z-b)*y,te*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var te=new go.PathFigure(.678*y,.85*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var ne=new go.PathFigure(.5*y,.1*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var te=new go.PathFigure(y*.612,a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var ne=new go.PathFigure(y*.816,a,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var te=new go.PathFigure(y*.055,.18*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),te.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),te.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var ne=new go.PathFigure(y*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var ne=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,y,a){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,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var te=new go.PathFigure(y*.83,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var ne=new go.PathFigure(y*.83,a*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var re=new go.PathFigure(y*.78,a*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),re.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*me,x=a*.8,z=new go.Geometry,te=new go.PathFigure(E,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),te.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),te.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),te.add(new go.PathSegment(go.PathSegment.Line,y*.55,x)),te.add(new go.PathSegment(go.PathSegment.Line,E,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,y,a){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Re={},gt="5.0",oe={},ee=null,de=!1,je=!1,ke=null,se=!1,Ee=null,me=null,Qe=0;Qe<arguments.length;Qe++){var We=arguments[Qe];if(We!==null)switch(typeof We){case"number":gt=We.toFixed(1);break;case"string":We.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=We:ke=We;break;case"object":typeof We.is3D!="undefined"?ee=We:oe=We;break;case"boolean":de=We,je=!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&&!je&&(de=!0)),ke!==null&&oe.id===void 0&&(oe.id=ke);var Ae="",Ye="",_e=!1,Fe=null,ae=null,y=null,a=!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(Ne){return parseFloat(Ne)>4?parseFloat(Ne):5};Re.setHTML5Codebase=function(Ne,He){me=Ne,an(Ne,He)},Re.setJavaCodebase=Re.setJavaCodebaseVersion=Re.isCompiledInstalled=Re.setPreCompiledScriptPath=Re.setPreCompiledResourcePath=function(){},Re.setHTML5CodebaseVersion=function(Ne,He){var ot=parseFloat(Ne);if(ot!==NaN&&ot<5){console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead.");return}Ee=Ne,At(Ne,He)},Re.getHTML5CodebaseVersion=function(){return ae},Re.getParameters=function(){return oe},Re.setFontsCSSURL=function(Ne){z=Ne},Re.setGiacJSURL=function(Ne){},Re.setJNLPFile=function(Ne){Ae=Ne},Re.setJNLPBaseDir=function(Ne){},Re.inject=function(){function Ne(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var He="auto",ot=oe.id,Gt,mt=!1,Ct=0;Ct<arguments.length;Ct++){var Se=arguments[Ct];typeof Se=="string"?(Se=Se.toLowerCase(),Se.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?He=Se:ot=arguments[Ct]):typeof Se=="boolean"?mt=Se:Se instanceof HTMLElement&&(Gt=Se)}St();function St(){if(!se){setTimeout(St,200);return}He=Ve(He);var Kt=Gt||document.getElementById(ot);if(!Kt){console.log("possibly bug on ajax loading? ");return}if(Re.removeExistingApplet(Kt,!1),oe.width===void 0&&Kt.clientWidth&&(oe.width=Kt.clientWidth),oe.height===void 0&&Kt.clientHeight&&(oe.height=Kt.clientHeight),!(oe.width&&oe.height)&&He==="html5"&&(delete oe.width,delete oe.height),Fe=He,He==="screenshot")vt(Kt,oe);else{var mn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?mn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(mn=(!re()||Ne())&&ie()),mn?(Fe="screenshot",$e(Kt,oe,mt,He)):Ke(Kt,oe,mt)}}};function re(){try{return window.self!==window.top}catch(Ne){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Re.getViews=function(){return ee},Re.isJavaInstalled=function(){return!1};var ge=function(Ne){var He=function(Ct){var Se=JSON.parse(Ct),St=function(yt){return yt.type=="G"||yt.type=="E"},Kt=Se.elements?Se.elements.filter(St)[0]:Se;if(!Kt||!Kt.url){ot();return}oe.fileName=Kt.url,ve(Kt.settings||{}),ee.is3D=!0;var mn="https://www.geogebra.org/images/";Re.setPreviewImage(E||Kt.previewUrl,mn+"GeoGebra_loading.png",mn+"applet_play.png"),Ne()},ot=function(){oe.onError&&oe.onError(),dn("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",mt="/materials/"+oe.material_id+"?scope=basic";Pe("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(mt),He,ot)};function ve(Ne){var He=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ot){Ne[ot]=!!Ne[ot]}),He.forEach(function(ot){oe[ot]===void 0&&Ne[ot]!==void 0&&(oe[ot]=Ne[ot])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function Pe(Ne,He,ot){var Gt=new XMLHttpRequest;Gt.open("GET",Ne),Gt.onload=function(){He(Gt.responseText)},Gt.onerror=ot,Gt.send()}Re.isHTML5Installed=function(){return!0},Re.getLoadedAppletType=function(){return Fe},Re.setPreviewImage=function(Ne,He,ot){E=Ne,b=He,x=ot},Re.removeExistingApplet=function(Ne,He){var ot;typeof Ne=="string"&&(Ne=document.getElementById(Ne)),Fe=null;var Gt=null;for(ot=0;ot<Ne.childNodes.length;ot++){var mt=Ne.childNodes[ot],Ct=mt.className;Ct==="applet_screenshot"?He?(mt.style.display="block",Fe="screenshot"):mt.style.display="none":Ct!=="applet_scaler prerender"&&(Ne.removeChild(mt),Gt=Ct&&Ct.indexOf("appletParameters")!=-1?mt.id:null,ot--)}var Se=oe.id!==void 0?oe.id:Gt,St=window[Se];St&&typeof St.getBase64=="function"&&(St.remove(),window[Se]=null)},Re.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ne=Re.getAppletObject();return Ne&&typeof Ne.recalculateEnvironments=="function"?(Ne.recalculateEnvironments(),!0):!1},Re.startAnimation=function(){var Ne=Re.getAppletObject();return Ne&&typeof Ne.startAnimation=="function"?(Ne.startAnimation(),!0):!1},Re.stopAnimation=function(){var Ne=Re.getAppletObject();return Ne&&typeof Ne.stopAnimation=="function"?(Ne.stopAnimation(),!0):!1},Re.getAppletObject=function(){var Ne=oe.id!==void 0?oe.id:"ggbApplet";return window[Ne]},Re.resize=function(){};var ze=function(Ne,He,ot){var Gt=document.createElement("param");Gt.setAttribute("name",He),Gt.setAttribute("value",ot),Ne.appendChild(Gt)},pe=function(Ne){return Ne&&Ne!=="false"},Ke=function(Ne,He,ot){ne(ae)<=4.2&&(ot=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var mt=document.createElement("div");mt.classList.add("appletParameters","notranslate");var Ct=He.width,Se=He.height;if(He.disableAutoScale=He.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():He.disableAutoScale,He.width!==void 0)if(ne(ae)<=4.4)pe(He.showToolBar)&&(He.height-=7),pe(He.showAlgebraInput)&&(He.height-=37),He.width<605&&pe(He.showToolBar)&&(He.width=605,Ct=605);else{var St=100;(pe(He.showToolBar)||pe(He.showMenuBar))&&(He.hasOwnProperty("customToolBar")&&(He.customToolbar=He.customToolBar),St=pe(He.showMenuBar)?245:155),Ct<St&&(He.width=St,Ct=St)}mt.style.border="none",mt.style.display="inline-block";for(var Kt in He)He.hasOwnProperty(Kt)&&Kt!=="appletOnLoad"&&mt.setAttribute("data-param-"+Kt,He[Kt]);z&&mt.setAttribute("data-param-fontscssurl",z),Re.resize=function(){GGBAppletUtils.responsiveResize(Ne,He)},window.addEventListener("resize",function(Jt){Re.resize()});var mn=typeof He.appletOnLoad=="function"?He.appletOnLoad:function(){};if(!ot&&He.width!==void 0){He.hasOwnProperty("showSplash")||mt.setAttribute("data-param-showSplash","false");var yt=Ne.querySelector(".applet_scaler.prerender"),Je=yt!==null;if(Je)var Ie=yt.querySelector(".ggb_preview");else{var Ie=et(Ct,Se,He.borderColor,!1);yt=document.createElement("div"),yt.className="applet_scaler",yt.style.position="relative",yt.style.display="block",yt.style.width=Ct+"px",yt.style.height=Se+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),ne(ae)>=5?(He.appletOnLoad=function(Jt){var ue=Ne.querySelector(".ggb_preview");ue&&ue.parentNode.removeChild(ue),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(yt),window.GGBT_wsf_view&&$(window).trigger("resize"),mn(Jt)},Je||yt.appendChild(Ie)):mt.appendChild(Ie),yt.appendChild(mt),Je||Ne.appendChild(yt),setTimeout(function(){Re.resize()},1)}else{var xe=document.createElement("div");xe.className="applet_scaler",xe.style.position="relative",xe.style.display="block",xe.appendChild(mt),Ne.appendChild(xe),He.appletOnLoad=function(Jt){Re.resize(),mn(Jt)}}function Le(Jt,ue){ue&&typeof ue.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Jt,ue.appletOnLoad):renderGGBElement(Jt),dn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ue)}function De(Jt,ue){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Jt,params:ue}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(be){Le(be.article,be.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(Jt.className+=" geogebraweb")):Le(Jt,ue)}if(Gt){scriptLoadStarted=!0;for(var qe=0;qe<mt.childNodes.length;qe++){var ft=mt.childNodes[qe].tagName;ft==="TABLE"&&(mt.removeChild(mt.childNodes[qe]),qe--)}if(ggbHTML5LoadedScript!==null){var Nt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Nt!=null&&Nt.parentNode.removeChild(Nt)}var $t=document.createElement("script"),_t=function(){De(mt,He)};$t.src=Ye+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=$t.src,dn("GeoGebra HTML5 codebase loaded: '"+Ye+"'.",He),!me&&(!Ee||Ee=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),_t()):Ye.requirejs?__webpack_require__.e(12).then(function(){var Jt=[__webpack_require__(12)];_t.apply(null,Jt)}.bind(this)).catch(__webpack_require__.oe):($t.onload=_t,Ne.appendChild($t))}else De(mt,He);He.height=Se,He.width=Ct},vt=function(Ne,He,ot){var Gt=et(He.width,He.height,He.borderColor,ot),mt=document.createElement("div");mt.style.position="relative",mt.style.display="block",mt.style.width=He.width+"px",mt.style.height=He.height+"px",mt.className="applet_screenshot applet_scaler"+(ot?" applet_screenshot_play":""),mt.appendChild(Gt);var Ct=GGBAppletUtils.getScale(He,Ne,ot);ot?(Ne.appendChild(it()),window.GGBT_wsf_view||(Ne.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(mt,"66%"),Ne.appendChild(mt),Ct!==1&&!isNaN(Ct)&&(GGBAppletUtils.scaleElement(mt,Ct),mt.style.width=He.width+"px",mt.style.height=He.height+"px",mt.parentNode.style.width=He.width*Ct+"px",mt.parentNode.style.height=He.height*Ct+"px"),Re.resize=function(){lt(Ne,Gt,mt,ot)},window.addEventListener("resize",function(Se){Re.resize()}),Re.resize()};function lt(Ne,He,ot,Gt){if(Ne.contains(He)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ne.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ne)}var mt=GGBAppletUtils.getScale(oe,Ne,Gt);ot.parentNode!==null&&(!isNaN(mt)&&mt!==1?(GGBAppletUtils.scaleElement(ot,mt),ot.parentNode.style.width=oe.width*mt+"px",ot.parentNode.style.height=oe.height*mt+"px"):(GGBAppletUtils.scaleElement(ot,1),ot.parentNode.style.width=oe.width+"px",ot.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ne),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Re.onExitFullscreen=function(Ne,He){He.appendChild(Ne)};var $e=function(Ne,He,ot,Gt){vt(Ne,He,!0);for(var mt=function(){var St=[];for(Se=0;Se<Ne.childNodes.length;Se++)St.push(Ne.childNodes[Se]);if(window.GGBT_wsf_view){var Kt=window.GGBT_wsf_view.renderFullScreen(Ne,He.id),mn=document.getElementById("fullscreencontainer"),yt=jQuery(Ne).find(".fullscreencontent");yt.length>0?(Kt.remove(),yt.attr("id","fullscreencontent").show(),jQuery(mn).append(yt),window.dispatchEvent(new Event("resize"))):Ke(Kt,He,!1),window.GGBT_wsf_view.launchFullScreen(mn)}else Fe=Gt,Ke(Ne,He,!1);if(!window.GGBT_wsf_view)for(Se=0;Se<St.length;Se++)Ne.removeChild(St[Se])},Ct=Ne.getElementsByClassName("ggb_preview_play"),Se=0;Se<Ct.length;Se++)Ct[Se].addEventListener("click",mt,!1),Ct[Se].addEventListener("ontouchstart",mt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ne),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var Ne=document.createElement("div");if(Ne.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var He='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',ot=document.createElement("style");ot.styleSheet?ot.styleSheet.cssText=He:ot.appendChild(document.createTextNode(He)),document.getElementsByTagName("head")[0].appendChild(ot)}return Ne},et=function(Ne,He,ot,Gt){var mt=document.createElement("div");mt.className="ggb_preview",mt.style.position="absolute",mt.style.zIndex="90",mt.style.width=Ne-2+"px",mt.style.height=He-2+"px",mt.style.top="0px",mt.style.left="0px",mt.style.overflow="hidden",mt.style.backgroundColor="white";var Ct="lightgrey";ot!==void 0&&(ot==="none"?Ct="transparent":Ct=ot),mt.style.border="1px solid "+Ct;var Se=document.createElement("img");if(Se.style.position="relative",Se.style.zIndex="1000",Se.style.top="-1px",Se.style.left="-1px",E!==null&&Se.setAttribute("src",E),Se.style.opacity=.7,b!==null){var St,Kt,mn;if(!Gt){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,Se.style.opacity=.3,Kt=360,Kt>Ne/4*3&&(Kt=Ne/4*3),mn=Kt/5.8,St.setAttribute("src",b),St.setAttribute("width",Kt),St.setAttribute("height",mn);var yt=(Ne-Kt)/2,Je=(He-mn)/2;St.style.left=yt+"px",St.style.top=Je+"px",mt.appendChild(St)}}return mt.appendChild(Se),mt},Ve=function(Ne){return Ne=Ne.toLowerCase(),Ne==="html5"||Ne==="screenshot"?Ne:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],At=function(Ne,He){if(ae=Ne,He){an(ae,!0);return}var ot=!de;if(ot){var Gt=ne(ae);!isNaN(Gt)&&Gt<4.4&&(ot=!1)}var mt,Ct;window.location.protocol.substr(0,4)==="http"?mt=window.location.protocol:mt="http:";var Se=ae.indexOf("//");Se>0?Ct=ae:Se===0?Ct=mt+ae:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var St in at)if(ae.slice(at[St].length*-1)===at[St]||ae.slice((at[St].length+1)*-1)===at[St]+"/"){an(Ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ot&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!pe(oe.showToolBar)&&!pe(oe.showMenuBar)&&!pe(oe.showAlgebraInput)&&!pe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",an(Ct,!1)},an=function(Ne,He){if(Ne.requirejs){Ye=Ne;return}Ne.slice(-1)!=="/"&&(Ne+="/"),Ye=Ne,He===null&&(He=Ne.indexOf("http")===-1),_e=He,y="web.nocache.js",a=!1;var ot=Ye.split("/");ot.length>1&&(!He&&ot[ot.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):at.indexOf(ot[ot.length-2])>=0&&(y=ot[ot.length-2]+".nocache.js")),ot=Ne.split("/"),ae=ot[ot.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 Gt=parseFloat(ae);Gt!==NaN&&Gt<5&&Ne.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),At("5.0",He))},dn=function(Ne,He){window.console&&window.console.log&&(!He||typeof He.showLogging=="undefined"||He.showLogging&&He.showLogging!=="false")&&console.log(Ne)};oe.material_id!==void 0?ge(Sn):Sn();function Sn(){var Ne=gt;Ee!==null?Ne=Ee:parseFloat(Ne)<5&&(Ne="5.0"),At(Ne,!1),me!==null&&an(me,_e),se=!0}return Re},GGBAppletUtils=function(){"use strict";function Re(){return window.GGBT_wsf_edit!==void 0}function gt(se,Ee){Ee!=1?(se.style.transformOrigin="0% 0% 0px",se.style.webkitTransformOrigin="0% 0% 0px",se.style.transform="scale("+Ee+","+Ee+")",se.style.webkitTransform="scale("+Ee+","+Ee+")",se.style.maxWidth="initial",se.querySelector(".ggb_preview")!==null&&(se.querySelector(".ggb_preview").style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(se.style.transform="none",se.style.webkitTransform="none")}function oe(se,Ee,me,Qe,We,Ae){var Ye=null;if(Ae!=null&&Ae!="")for(var _e=se.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+Ae+" ")>-1){Ye=_e;break}else _e=_e.parentNode;var Fe=0,ae=0,y=0,a=0,E=0,b=0,x=0;if(Ye)Fe=Ye.offsetWidth,ae=Math.max(Qe?Ye.offsetWidth:0,Ye.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),y=Fe):(Fe=window.innerWidth,ae=window.innerHeight,y=window.innerWidth),se){var z=se.getBoundingClientRect();z.left>0&&z.left<=Fe&&(We===void 0||!We)&&(document.dir==="rtl"?(E=Fe-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return se&&((me===void 0||!me)&&Ee>0&&Ee+a<Fe?Fe=Ee:Fe-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ae-=x)),{width:Fe,height:ae}}function ee(se,Ee,me,Qe,We){if(se.isScreenshoGenerator)return 1;var Ae=Qe!==void 0&&Qe,Ye=se.noScaleMargin!=null&&se.noScaleMargin,_e=function(te){return te&&te!=="false"},Fe=_e(se.autoHeight),ae=oe(Ee,se.width,me,Fe,Ae&&window.GGBT_wsf_view||Ye,We),y=parseInt(ae.width),a=se.width,E=se.height;if(a===void 0){var b=Ee.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=Ae?1:ae.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function de(se,Ee,me){var Qe=1,We,Ae=!1;if(se.hasOwnProperty("allowUpscale")&&(Ae=se.allowUpscale),se.hasOwnProperty("scale")&&(Qe=parseFloat(se.scale),(isNaN(Qe)||Qe===null||Qe===0)&&(Qe=1),Qe>1&&(Ae=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(se.hasOwnProperty("disableAutoScale")&&se.disableAutoScale))We=ee(se,Ee,Ae,me,se.scaleContainerClass);else return Qe;return Ae&&(!se.hasOwnProperty("scale")||Qe===1)?We:Math.min(Qe,We)}function je(se){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Qe=se.getBoundingClientRect(),We=(Ee-Qe.width)/2,Ae=(me-Qe.height)/2;Ae<0&&(Ae=0),se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We<40?se.style.left="40px":se.style.left=We+"px",se.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?se.style.top="40px":se.style.top=Ae+"px",se.style.left=We+"px")}function ke(se,Ee){var me=se.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(se)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Qe=de(Ee,se);Re()&&me.setAttribute("data-param-scale",Qe);for(var We=null,Ae=0;Ae<se.childNodes.length;Ae++)if(se.childNodes[Ae].className!==void 0&&se.childNodes[Ae].className.match(/^applet_scaler/)){We=se.childNodes[Ae];break}if(We!==null&&We.querySelector(".noscale")!==null)return;var Ye=Ee.id!==void 0?Ee.id:"ggbApplet",_e=window[Ye];(_e==null||!_e.recalculateEnvironments)&&We!==null&&!We.className.match(/fullscreen/)&&(We.parentNode.style.transform="",!isNaN(Qe)&&Qe!==1?(We.parentNode.style.width=Ee.width*Qe+"px",We.parentNode.style.height=Ee.height*Qe+"px",gt(We,Qe)):(gt(We,1),We.parentNode.style.width=Ee.width+"px",We.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&je(se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:Re,positionCenter:je,getScale:de,scaleElement:gt}}();__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 Re=n.location.search;return Re.indexOf(J)!=-1||Re.indexOf(K)!=-1}function q(Re,gt){}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(Re){var gt=s[L].bindings;s[L].bindings=function(){for(var oe=gt?gt():{},ee=Re[webModule.__softPermutationId],de=O;de<ee.length;de++){var je=ee[de];oe[je[O]]=je[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Re=o.createElement(Q);if(Re.id=L,Re.style.cssText=R+S,Re.tabIndex=-1,o.body.appendChild(Re),t=Re.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Re){function gt(ee){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var je=de();if(je){ee();return}function ke(){if(!je){if(!de())return;je=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),se&&clearInterval(se)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var se=setInterval(function(){ke()},$)}function oe(ee){var de=u(),je=de.body,ke=de.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=ee,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),je.appendChild(ke)}gt(function(){oe(Re)})}webModule.__startLoadingFragment=function(Re){return C(Re)},webModule.__installRunAsyncCode=function(Re){var gt=u(),oe=gt.body,ee=gt.createElement(_);ee.language=ab,ee.text=Re,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(Re){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Re){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Re){var gt=c[Re];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Re(se){var Ee=se.lastIndexOf(rb);Ee==-1&&(Ee=se.length);var me=se.indexOf(sb);me==-1&&(me=se.length);var Qe=se.lastIndexOf(tb,Math.min(me,Ee));return Qe>=O?se.substring(O,Qe+P):W}function gt(se){if(!se.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=se+vb,se=Re(Ee.src)}return se}function oe(){var se=__gwt_getMetaProperty(wb);return se!=null?se:W}function ee(){for(var se=o.getElementsByTagName(_),Ee=O;Ee<se.length;++Ee)if(se[Ee].src.indexOf(xb)!=-1)return Re(se[Ee].src);return W}function de(){var se=o.getElementsByTagName(yb);return se.length>O?se[se.length-P].href:W}function je(){var se=o.location;return se.href==se.protocol+zb+se.host+se.pathname+se.search+se.hash}var ke=oe();return ke==W&&(ke=ee()),ke==W&&(ke=de()),ke==W&&je()&&(ke=Re(o.location.href)),ke=gt(ke),ke}function C(Re){return Re.match(/^\//)||Re.match(/^[a-zA-Z]+:\/\//)?Re:webModule.__moduleBase+Re}function D(){var Re=[],gt=O,oe=[],ee=[];function de(se){var Ee=ee[se](),me=oe[se];if(Ee in me)return Ee;var Qe=[];for(var We in me)Qe[me[We]]=We;throw r&&r(se,Qe,Ee),null}if(__gwt_isKnownPropertyValue=function(se,Ee){return Ee in oe[se]},webModule.__getPropMap=function(){var se={};for(var Ee in oe)oe.hasOwnProperty(Ee)&&(se[Ee]=de(Ee));return se},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var je;try{je=Cb;var ke=je.indexOf(Db);ke!=-1&&(gt=parseInt(je.substring(ke+P),$),je=je.substring(O,ke))}catch(se){}return webModule.__softPermutationId=gt,C(je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Re,gt,oe){"use strict";oe.d(gt,{Ax:function(){return ke},Ds:function(){return se},KI:function(){return me},SI:function(){return je},f1:function(){return de}});var ee=oe(11320);function de(Qe){let We=!0;if(Qe.length>0){for(let Ae=0;Ae<Qe.length;Ae++)if(Qe[Ae].compile_success==0||!Qe[Ae].compile_success){We=!1;break}}else We=!1;return We}function je(Qe,We=""){let Ae=[];for(let Ye=0;Ye<Qe.length;Ye++){let _e=Qe[Ye],Fe=We?`${We}/${_e.name}`:`${_e.name}`;Ae.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:Fe})}return Ae}function ke(Qe,We,Ae){for(let Ye=0;Ye<Qe.length;Ye++){let _e=Qe[Ye];if(_e.key===We){_e.children=Ae;break}_e.children&&ke(_e.children,We,Ae)}return Qe}function se(Qe,We,Ae){let Ye;return function(){let _e=this,Fe=arguments,ae=function(){Ye=null,Ae||Qe.apply(_e,Fe)},y=Ae&&!Ye;clearTimeout(Ye),Ye=setTimeout(ae,We),y&&Qe.apply(_e,Fe)}}const Ee=!0,me=ee.Z.API_SERVER},73646:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return We}});var ee=oe(67294),de=oe(69677),je=oe(66309),ke=oe(2453),se={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Ee=oe(38308);const{TextArea:me}=de.default;class Qe extends ee.Component{constructor(Ye){super(Ye),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ye,onAnswerChange:_e,addChildAnswer:Fe,exerciseIsPublish:ae,answers:y,activeOptionErrorIndex:a,flex:E="0 0 1000px"}=this.props;console.log("----",y);let{inputVisible:b,EditInputIndex:x}=this.state;return ee.createElement("div",{className:se.flex},ee.createElement("div",{className:`${se.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ye+1,"):"),ee.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},y==null?void 0:y.map((z,te)=>ee.createElement(ee.Fragment,null,x!==te?(z==null?void 0:z.length)>0?ee.createElement(je.default,{className:"edit-tag",key:z,closable:!((y==null?void 0:y.length)===1&&te===0),onClose:ne=>{ne.preventDefault(),(y==null?void 0:y.length)===1&&te===0?this.props.deleteChildAnswermain(Ye,te):this.props.deleteChildAnswer(Ye,te)}},ee.createElement("span",{onDoubleClick:ne=>{this.setState({EditInputIndex:te}),ne.preventDefault()}},z)):ee.createElement(de.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){ke.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}_e(Ye,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):ee.createElement(de.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){ke.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}_e(Ye,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!b&&ee.createElement(je.default,{className:"site-tag-plus",onClick:()=>{Fe(Ye),this.setState({inputVisible:!0})}},ee.createElement(Ee.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var We=Qe},35566:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return ae}});var ee=oe(67294),de=oe(35567),je=Object.defineProperty,ke=Object.defineProperties,se=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,We=(y,a,E)=>a in y?je(y,a,{enumerable:!0,configurable:!0,writable:!0,value:E}):y[a]=E,Ae=(y,a)=>{for(var E in a||(a={}))me.call(a,E)&&We(y,E,a[E]);if(Ee)for(var E of Ee(a))Qe.call(a,E)&&We(y,E,a[E]);return y},Ye=(y,a)=>ke(y,se(a)),_e=(y,a,E)=>We(y,typeof a!="symbol"?a+"":a,E);const Fe="\u2581";class ae extends ee.Component{constructor(){super(...arguments),_e(this,"getChCountBeforeCursor",(a,E)=>{const b=E.line;let x=0;for(let te=0;te<b;te++)x+=a.getLine(te).split(Fe).length-1;const z=a.getLine(b).substring(0,E.ch);return x+=z.split(Fe).length-1,x}),_e(this,"onCMBeforeChange",(a,E)=>{const b=a.getRange(E.from,E.to);let x=0;if(E.text.forEach(z=>{x+=z.split(Fe).length-1}),b&&b.indexOf(Fe)!=-1){const z=b.split(Fe).length-1,te=this.getChCountBeforeCursor(a,E.from);console.log(`\u5220\u9664${z}\u4E2A\uFF0C \u4E4B\u524D\u6709${te}\u4E2A\uFF0C\u65B0\u589E${x}\u4E2A`),this.props.deleteEmptyDisabled?E.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(te,z,x)}else if(x){const z=this.getChCountBeforeCursor(a,E.from);console.log(`\u65B0\u589E${x}\u4E2A\uFF0C\u4E4B\u524D\u6709${z}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(z,0,x)}})}render(){return ee.createElement(de.Z,Ye(Ae({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},63205:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return _e}});var ee=oe(67294),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},je=oe(94184),ke=oe.n(je),se=oe(57953),Ee=oe(15979),me=oe(33170),Qe=oe(28706),We=oe(35973),Ae=(Fe,ae,y)=>new Promise((a,E)=>{var b=te=>{try{z(y.next(te))}catch(ne){E(ne)}},x=te=>{try{z(y.throw(te))}catch(ne){E(ne)}},z=te=>te.done?a(te.value):Promise.resolve(te.value).then(b,x);z((y=y.apply(Fe,ae)).next())}),_e=({data:Fe,className:ae,fullWidth:y,style:a={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const te=(0,We.useIntl)(),ne=(0,ee.useRef)(null),re=(0,ee.useRef)(null),ie=(0,ee.useRef)(null),ge=(0,ee.useRef)(null),[ve,Pe]=(0,ee.useState)(!1),[ze,pe]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),Fe!=null&&Fe.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",Fe!=null&&Fe.src&&Ke()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[Fe==null?void 0:Fe.visible]);const Ke=()=>Ae(void 0,null,function*(){Pe(!0),pe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const et=yield(0,Qe.ZJ)(Fe==null?void 0:Fe.src);ne.current.src="",ne.current.src=et,ne.current.onload=function(){it()},Pe(!1),pe("")}),vt=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",E()},lt=et=>Ae(void 0,null,function*(){Pe(!0),pe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ve=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Fe.title,file:et.dataUrl}});Ve!=null&&Ve.id&&!z?(yield(0,me.ZP)(`/api/attachments/${Fe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ve==null?void 0:Ve.id,settings:JSON.stringify(et.state)}})).status===0&&b():Ve!=null&&Ve.id&&b(Ve),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",Pe(!1),pe("")}),$e=()=>{const et=document.querySelector('a[href="https://markerjs.com/"]');et&&et.parentNode&&(et.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:te.formatMessage({id:"shixuns.text",defaultMessage:"\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:te.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(at=>{const At=document.querySelector(at.name);At&&At.setAttribute("title",at.title)})},it=()=>{re.current=new Ee.hP(ne.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",lt),re.current.addEventListener("beforeclose",vt),x&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),Fe!=null&&Fe.snapshotData&&re.current.restoreState(Fe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),$e()},300)};return ee.createElement(ee.Fragment,null,(Fe==null?void 0:Fe.visible)&&ee.createElement(se.Z,{spinning:ve,tip:ze,style:{position:"absolute"}},ee.createElement("div",{ref:ge,className:ke()(de.imageDimensions,ae,y?de.fullWidth:""),style:a},ee.createElement("img",{className:de.img,ref:ne}))))}},36527:function(Re,gt,oe){"use strict";var ee=oe(67294),de=oe(71230),je=oe(15746),ke=oe(66368),se=oe(71577),Ee=oe(85725),me=oe(71736),Qe=oe(84279),We=oe(35973),Ae=oe(67294);const Ye=(0,ee.forwardRef)(({callback:_e,showSaveButton:Fe,value:ae=""},y)=>{const a=(0,ee.useRef)(),E=(0,We.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=re=>{a.current.setValue(a.current.getValue()+" "+re.value+" ")},te=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ae.createElement(de.Z,{className:me.Z.lists,gutter:[10,10]},b.map((re,ie)=>Ae.createElement(je.Z,{flex:"110px",className:me.Z.item},Ae.createElement("div",null,Ae.createElement(Ee.Z,{value:`$$${re.value}$$`}),re.name),Ae.createElement("div",{className:me.Z.children},re.children.map((ge,ve)=>Ae.createElement("div",{key:ve},Ae.createElement("h1",null,ge.name),Ae.createElement(de.Z,{gutter:[10,10]},ge.data.map((Pe,ze)=>Ae.createElement(je.Z,{key:ze,onClick:()=>z(Pe),className:me.Z.diamond},Ae.createElement(Ee.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ae.createElement(de.Z,{className:me.Z.lists,gutter:[10,10]},x.map((re,ie)=>Ae.createElement(je.Z,{flex:"110px",className:me.Z.item},Ae.createElement("div",null,Ae.createElement(Ee.Z,{value:"`$$"+re.value+"$$`"}),re.name),Ae.createElement("div",{className:me.Z.children},re.children.map((ge,ve)=>Ae.createElement("div",{key:ve},ge.name&&Ae.createElement("h1",null,ge.name),Ae.createElement(de.Z,{gutter:[10,10]},ge.data.map((Pe,ze)=>Ae.createElement(je.Z,{key:ze,onClick:()=>z(Pe),className:me.Z.diamond},Ae.createElement(Ee.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],ne=()=>{var re=document.createElement("div");re.innerHTML=a.current.getValue();var ie=re.innerText;return _e&&_e(ie),ie};return(0,ee.useImperativeHandle)(y,()=>({getData:ne})),Ae.createElement("div",{className:me.Z.mathWrap},Ae.createElement(ke.default,{defaultActiveKey:"1",items:te}),Ae.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:a,style:{width:800,marginTop:30,fontSize:18}},ae||""),Fe&&Ae.createElement("div",{className:me.Z.button},Ae.createElement(se.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});gt.Z=Ye},57444:function(Re,gt,oe){"use strict";oe.d(gt,{h:function(){return ne}});var ee=oe(67294),de=oe(11713),je=oe(22150),ke=oe(71577),se=oe(4631),Ee=oe.n(se),me=oe(71749),Qe=oe(30483),We=oe(35973),Ae=Object.defineProperty,Ye=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(re,ie,ge)=>ie in re?Ae(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))ae.call(ie,ge)&&a(re,ge,ie[ge]);if(Fe)for(var ge of Fe(ie))y.call(ie,ge)&&a(re,ge,ie[ge]);return re},b=(re,ie)=>Ye(re,_e(ie));const x=de.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};gt.Z=({callback:re,onCancel:ie})=>{const[ge,ve]=(0,ee.useState)("python");function Pe(Ke){ve(te[Ke][1])}function ze(Ke){re(Ke)}const pe=(0,We.useIntl)();return ee.createElement(je.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ze,style:{width:500}}),ee.createElement(je.default.Item,{label:pe.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ee.createElement(de.default,{getPopupContainer:Ke=>Ke.parentNode,onChange:Pe},Object.keys(te).map(Ke=>ee.createElement(x,{key:Ke,value:Ke},te[Ke][0])))),ee.createElement(je.default.Item,{label:pe.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(ne,{mode:ge})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},pe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ee.createElement(ke.ZP,{type:"ghost",onClick:ie},pe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:re,onChange:ie,mode:ge,options:ve={}}){const Pe=(0,ee.useRef)(),[ze,pe]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(ze){let Ke=function(vt){const lt=vt.getValue();ie&&ie(lt)};return ze.on("change",Ke),()=>{ze.off("change",Ke)}}},[ze,ie]),(0,ee.useEffect)(()=>{ze&&ze.setOption("mode",ge)},[ze,ge]),(0,ee.useEffect)(()=>{ze&&(re!==ze.getValue()||re==="")&&setTimeout(()=>{ze.setValue(re||"")},300)},[ze,re]),(0,ee.useEffect)(()=>{if(Pe.current&&!ze){const Ke=Ee().fromTextArea(Pe.current,E({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ve));pe(Ke)}},[Pe.current,ze]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Pe}))}},35567:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return oa}});var ee=oe(67294),de=oe(4631),je=oe.n(de),ke=oe(91033),se=oe(71749),Ee=oe(57341),me=oe(82801),Qe=oe(88386),We=oe(49047),Ae=oe(80785),Ye=oe(85725),_e=({value:we="",className:Be,showTextOnly:Ce,showLines:st,style:Ft={}})=>{const zt=(0,ee.useMemo)(()=>"",[we]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:zt}}))},Fe=oe(35973),ae=oe(67294),y=Object.defineProperty,a=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(we,Be,Ce)=>Be in we?y(we,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):we[Be]=Ce,ne=(we,Be)=>{for(var Ce in Be||(Be={}))x.call(Be,Ce)&&te(we,Ce,Be[Ce]);if(b)for(var Ce of b(Be))z.call(Be,Ce)&&te(we,Ce,Be[Ce]);return we},re=(we,Be)=>a(we,E(Be));function ie({onActionCallback:we,title:Be,icon:Ce,actionName:st,className:Ft="",children:zt}){function Cn(){we(st)}return ae.createElement("a",{title:Be,className:Ft,onClick:Cn},ae.createElement("i",{className:`${Ce}`}),zt)}var ge=({watch:we,showNullButton:Be,showNullProgramButton:Ce,onActionCallback:st,fullScreen:Ft,insertTemp:zt,hidetoolBar:Cn,extraUse:un})=>{const Qt=(0,Fe.useIntl)(),ta=[...[{title:Qt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Qt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Qt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Qt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Qt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Qt.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Qt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Qt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Qt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Qt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Qt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Qt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Qt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Qt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Qt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Qt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${we?Qt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Qt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${we?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ae.createElement("ul",{className:"markdown-toolbar-container"},!Cn&&ta.map((Xn,ct)=>ae.createElement("li",{key:ct},Xn.actionName?ae.createElement(ie,re(ne({},Xn),{onActionCallback:st})):ae.createElement("span",{className:"v-line"}))),Be?ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:st},ae.createElement("span",{className:"fill-tip"},Qt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Qt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Ce?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:st},ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:st},ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,zt&&ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:Qt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${zt}`,onActionCallback:st},ae.createElement("span",{className:"fill-tip"},Qt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),un&&ae.createElement("li",null,un),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(ie,{icon:`${Ft?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ft?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:st})))},ve=oe(76621),Pe=oe(22150),ze=oe(69677),pe=oe(71577),Ke=Object.defineProperty,vt=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ve=(we,Be,Ce)=>Be in we?Ke(we,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):we[Be]=Ce,at=(we,Be)=>{for(var Ce in Be||(Be={}))it.call(Be,Ce)&&Ve(we,Ce,Be[Ce]);if($e)for(var Ce of $e(Be))et.call(Be,Ce)&&Ve(we,Ce,Be[Ce]);return we},At=(we,Be)=>vt(we,lt(Be));const an={labelCol:{span:4},wrapperCol:{span:20}};var dn=({callback:we,onCancel:Be})=>{function Ce(Ft){we(Ft)}const st=(0,Fe.useIntl)();return ee.createElement(Pe.default,At(at({},an),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ce,style:{width:500}}),ee.createElement(Pe.default.Item,{label:st.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(ze.default,null)),ee.createElement(Pe.default.Item,{label:st.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(ze.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},st.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ee.createElement(pe.ZP,{type:"ghost",onClick:Be},st.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Sn=oe(57444),Ne=oe(70859),He=oe(14446),ot=oe(71230),Gt=oe(63205),mt=oe(67294),Ct=({callback:we,onCancel:Be})=>{const Ce=document.createElement("canvas"),st=Ce.getContext("2d");Ce.width=1e3,Ce.height=800,st.fillStyle="#ffffff",st.fillRect(0,0,Ce.width,Ce.height);const Ft=Ce.toDataURL("image/png");return mt.createElement(He.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},mt.createElement(ot.Z,{style:{height:"100vh"}},mt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ft,visible:!0,title:String(Date.now())},onOk:zt=>{we({src:zt.url})},onClose:Be})))},Se=oe(23495);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<2)},St.prototype.alignLeft=function(){var we=this.diagram;we.startTransaction("aligning left");var Be=1/0;we.selection.each(function(Ce){Ce instanceof go.Link||(Be=Math.min(Ce.position.x,Be))}),we.selection.each(function(Ce){Ce instanceof go.Link||Ce.move(new go.Point(Be,Ce.position.y))}),we.commitTransaction("aligning left")},St.prototype.alignRight=function(){var we=this.diagram;we.startTransaction("aligning right");var Be=-1/0;we.selection.each(function(Ce){if(!(Ce instanceof go.Link)){var st=Ce.actualBounds.x+Ce.actualBounds.width;Be=Math.max(st,Be)}}),we.selection.each(function(Ce){Ce instanceof go.Link||Ce.move(new go.Point(Be-Ce.actualBounds.width,Ce.position.y))}),we.commitTransaction("aligning right")},St.prototype.alignTop=function(){var we=this.diagram;we.startTransaction("alignTop");var Be=1/0;we.selection.each(function(Ce){Ce instanceof go.Link||(Be=Math.min(Ce.position.y,Be))}),we.selection.each(function(Ce){Ce instanceof go.Link||Ce.move(new go.Point(Ce.position.x,Be))}),we.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var we=this.diagram;we.startTransaction("aligning bottom");var Be=-1/0;we.selection.each(function(Ce){if(!(Ce instanceof go.Link)){var st=Ce.actualBounds.y+Ce.actualBounds.height;Be=Math.max(st,Be)}}),we.selection.each(function(Ce){Ce instanceof go.Link||Ce.move(new go.Point(Ce.actualBounds.x,Be-Ce.actualBounds.height))}),we.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var we=this.diagram,Be=we.selection.first();if(Be){we.startTransaction("aligning Center X");var Ce=Be.actualBounds.x+Be.actualBounds.width/2;we.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(Ce-st.actualBounds.width/2,st.actualBounds.y))}),we.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var we=this.diagram,Be=we.selection.first();if(Be){we.startTransaction("aligning Center Y");var Ce=Be.actualBounds.y+Be.actualBounds.height/2;we.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(st.actualBounds.x,Ce-st.actualBounds.height/2))}),we.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function(we){var Be=this.diagram;Be.startTransaction("align Column"),we===void 0&&(we=0),we=parseFloat(we);var Ce=new Array;Be.selection.each(function(un){un instanceof go.Link||Ce.push(un)});for(var st=0;st<Ce.length-1;st++){var Ft=Ce[st],zt=Ft.actualBounds.y+Ft.actualBounds.height+we,Cn=Ce[st+1];Cn.move(new go.Point(Ft.actualBounds.x,zt))}Be.commitTransaction("align Column")},St.prototype.alignRow=function(we){we===void 0&&(we=0),we=parseFloat(we);var Be=this.diagram;Be.startTransaction("align Row");var Ce=new Array;Be.selection.each(function(un){un instanceof go.Link||Ce.push(un)});for(var st=0;st<Ce.length-1;st++){var Ft=Ce[st],zt=Ft.actualBounds.x+Ft.actualBounds.width+we,Cn=Ce[st+1];Cn.move(new go.Point(zt,Ft.actualBounds.y))}Be.commitTransaction("align Row")},St.prototype.canRotate=function(we){var Be=this.diagram;return!(Be===null||Be.isReadOnly||Be.isModelReadOnly||Be.selection.count<1)},St.prototype.rotate=function(we){we===void 0&&(we=90);var Be=this.diagram;Be.startTransaction("rotate "+we.toString());var Be=this.diagram;Be.selection.each(function(Ce){Ce instanceof go.Link||Ce instanceof go.Group||(Ce.angle+=we)}),Be.commitTransaction("rotate "+we.toString())},St.prototype.pullToFront=function(){var we=this.diagram;we.startTransaction("pullToFront");var Be=new go.Map;we.selection.each(function(Ce){Be.set(Ce.layer,0)}),Be.iteratorKeys.each(function(Ce){var st=0;Ce.parts.each(function(Ft){if(!Ft.isSelected){var zt=Ft.zOrder;isNaN(zt)?Ft.zOrder=0:st=Math.max(st,zt)}}),Be.set(Ce,st)}),we.selection.each(function(Ce){St._assignZOrder(Ce,Be.get(Ce.layer)+1)}),we.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var we=this.diagram;we.startTransaction("pushToBack");var Be=new go.Map;we.selection.each(function(Ce){Be.set(Ce.layer,0)}),Be.iteratorKeys.each(function(Ce){var st=0;Ce.parts.each(function(Ft){if(!Ft.isSelected){var zt=Ft.zOrder;isNaN(zt)?Ft.zOrder=0:st=Math.min(st,zt)}}),Be.set(Ce,st)}),we.selection.each(function(Ce){St._assignZOrder(Ce,Be.get(Ce.layer)-1-St._findGroupDepth(Ce))}),we.commitTransaction("pushToBack")},St._assignZOrder=function(we,Be,Ce){Ce===void 0&&(Ce=we),we.layer===Ce.layer&&(we.zOrder=Be),we instanceof go.Group&&we.memberParts.each(function(st){St._assignZOrder(st,Be+1,Ce)})},St._findGroupDepth=function(we){if(we instanceof go.Group){var Be=0;return we.memberParts.each(function(Ce){Be=Math.max(Be,St._findGroupDepth(Ce))}),Be+1}else return 0},St.prototype.doKeyDown=function(){var we=this.diagram;if(we!==null){var Be=we.lastInput;if(Be.key==="Up"||Be.key==="Down"||Be.key==="Left"||Be.key==="Right"){var Ce=this.arrowKeyBehavior;if(Ce==="none")return;if(Ce==="select"){this._arrowKeySelect();return}else if(Ce==="move"){this._arrowKeyMove();return}else if(Ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var we=new Array;return this.diagram.nodes.each(function(Be){we.push(Be)}),this.diagram.parts.each(function(Be){we.push(Be)}),we},St.prototype._arrowKeyMove=function(){var we=this.diagram,Be=we.lastInput,Ce=0,st=0;if(Be.control||Be.meta)Ce=1,st=1;else if(we.grid!==null){var Ft=we.grid.gridCellSize;st=Ft.width,Ce=Ft.height}we.startTransaction("arrowKeyMove"),we.selection.each(function(zt){Be.key==="Up"?zt.move(new go.Point(zt.actualBounds.x,zt.actualBounds.y-Ce)):Be.key==="Down"?zt.move(new go.Point(zt.actualBounds.x,zt.actualBounds.y+Ce)):Be.key==="Left"?zt.move(new go.Point(zt.actualBounds.x-st,zt.actualBounds.y)):Be.key==="Right"&&zt.move(new go.Point(zt.actualBounds.x+st,zt.actualBounds.y))}),we.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var we=this.diagram,Be=we.lastInput,Ce=null;Be.key==="Up"?Ce=this._findNearestPartTowards(270):Be.key==="Down"?Ce=this._findNearestPartTowards(90):Be.key==="Left"?Ce=this._findNearestPartTowards(180):Be.key==="Right"&&(Ce=this._findNearestPartTowards(0)),Ce!==null&&(Be.shift?Ce.isSelected=!0:Be.control||Be.meta?Ce.isSelected=!Ce.isSelected:we.select(Ce))},St.prototype._findNearestPartTowards=function(we){var Be=this.diagram.selection.first();if(Be===null)return null;for(var Ce=Be.actualBounds.center,st=this._getAllParts(),Ft=1/0,zt=Be,Cn=0;Cn<st.length;Cn++){var un=st[Cn];if(un!==Be&&un.canSelect()){var Qt=un.actualBounds.center,In=Ce.directionPoint(Qt),ta=this._angleCloseness(In,we);if(ta<=45){var Xn=Ce.distanceSquaredPoint(Qt);Xn*=1+Math.sin(ta*Math.PI/180),Xn<Ft&&(Ft=Xn,zt=un)}}}return zt},St.prototype._angleCloseness=function(we,Be){return Math.min(Math.abs(Be-we),Math.min(Math.abs(Be+360-we),Math.abs(Be-360-we)))},St.prototype._arrowKeyTree=function(){var we=this.diagram,Be=we.selection.first();if(Be instanceof go.Node){var Ce=we.lastInput;if(Ce.key==="Right"){if(!Be.isTreeLeaf)if(!Be.isTreeExpanded)we.commandHandler.canExpandTree(Be)&&we.commandHandler.expandTree(Be);else{var st=this._sortTreeChildrenByY(Be).first();st!==null&&we.select(st)}}else if(Ce.key==="Left")if(!Be.isTreeLeaf&&Be.isTreeExpanded)we.commandHandler.canCollapseTree(Be)&&we.commandHandler.collapseTree(Be);else{var Ft=Be.findTreeParentNode();Ft!==null&&we.select(Ft)}else if(Ce.key==="Up"){var Ft=Be.findTreeParentNode();if(Ft!==null){var zt=this._sortTreeChildrenByY(Ft),Cn=zt.indexOf(Be);if(Cn>0){for(var un=zt.elt(Cn-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var Qt=this._sortTreeChildrenByY(un);un=Qt.last()}un!==null&&we.select(un)}else we.select(Ft)}}else if(Ce.key==="Down")if(Be.isTreeExpanded&&!Be.isTreeLeaf){var st=this._sortTreeChildrenByY(Be).first();st!==null&&we.select(st)}else for(;Be!==null;){var Ft=Be.findTreeParentNode();if(Ft===null)break;var zt=this._sortTreeChildrenByY(Ft),Cn=zt.indexOf(Be);if(Cn<zt.length-1){we.select(zt.elt(Cn+1));break}else Be=Ft}var In=we.selection.first();In!==null&&we.scrollToRect(In.actualBounds)}},St.prototype._sortTreeChildrenByY=function(we){var Be=new go.List().addAll(we.findTreeChildrenNodes());return Be.sort(function(Ce,st){var Ft=Ce.location,zt=st.location;return Ft.y<zt.y?-1:Ft.y>zt.y?1:Ft.x<zt.x?-1:Ft.x>zt.x?1:0}),Be},St.prototype.copyToClipboard=function(we){go.CommandHandler.prototype.copyToClipboard.call(this,we),this._lastPasteOffset.set(this.pasteOffset)},St.prototype.pasteFromClipboard=function(){var we=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(we,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),we},Object.defineProperty(St.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(we){if(we!=="move"&&we!=="select"&&we!=="scroll"&&we!=="tree"&&we!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+we);this._arrowKeyBehavior=we}}),Object.defineProperty(St.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(we){if(!(we instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+we);this._pasteOffset.set(we)}});var Kt=St,mn=oe(18023),yt=oe(15746),Je=oe(33170),Ie={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},xe=oe(67294),Le=(we,Be,Ce)=>new Promise((st,Ft)=>{var zt=Qt=>{try{un(Ce.next(Qt))}catch(In){Ft(In)}},Cn=Qt=>{try{un(Ce.throw(Qt))}catch(In){Ft(In)}},un=Qt=>Qt.done?st(Qt.value):Promise.resolve(Qt.value).then(zt,Cn);un((Ce=Ce.apply(we,Be)).next())});function De({onCancel:we,callback:Be}){let Ce=(0,ee.useRef)(),st=(0,ee.useRef)(),Ft=(0,ee.useRef)(),zt=(0,ee.useRef)(!1);const Cn=(0,ee.useRef)(!1),[un,Qt]=(0,ee.useState)(0);function In(){const ct=Se.bx.make,En={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"};Ce.current=new Se.S0(st.current,{padding:20,grid:ct(Se.s_,"Grid",ct(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ct(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ce=>{var Ue=ce.diagram.commandHandler.addTopLevelParts(ce.diagram.selection,!0);Ue||ce.diagram.currentTool.doCancel()},commandHandler:ct(Kt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ce=>{var Ue=ce.subject;Ue.location=Ue.location.copy().snapToGridPoint(ce.diagram.grid.gridOrigin,ce.diagram.grid.gridCellSize),setTimeout(()=>{ce.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ce=>{var Ue=ce.subject;setTimeout(()=>{ce.diagram.commandHandler.editTextBlock()})},LinkRelinked:ce=>{var Ue=ce.parameter.part;Ue.invalidateConnectedLinks();var Ze=ce.subject;ce.diagram.toolManager.linkingTool.isForwards?Ze.toNode.invalidateConnectedLinks():Ze.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ce.current.nodeTemplate=ct(Se.NB,"Auto",{locationSpot:Se.z6.Center,locationObjectName:"SHAPE",desiredSize:new Se.$u(120,60),minSize:new Se.$u(40,40),resizable:!0,resizeCellSize:new Se.$u(10,10),rotatable:!0},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),new Se.KX("desiredSize","size",Se.$u.parse).makeTwoWay(Se.$u.stringify),ct(Se.bn,{name:"SHAPE",fill:En.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("figure"),new Se.KX("fill"),new Se.KX("stroke","borderColor"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),ct(Se.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ct(Se.al,{margin:1,textAlign:"center",overflow:Se.al.OverflowEllipsis,editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),Ce.current.nodeTemplate.toolTip=ct("ToolTip",ct(Se.s_,"Vertical",{maxSize:new Se.$u(200,NaN)},ct(Se.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Se.KX("text")),ct(Se.al,{font:"10pt sans-serif",textAlign:"center"},new Se.KX("text","details"))));function da(ce,Ue){var Ze=(dt,on)=>{dt.handled=!0,dt.diagram.model.commit(sn=>{var pn=on.part.adornedPart,nn=new Se.E9().setRectSpot(pn.actualBounds,ce);nn.subtract(pn.location),nn.scale(2,2),nn.x+=Math.sign(nn.x)*130,nn.y+=Math.sign(nn.y)*130,nn.add(pn.location),nn.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var Yt=sn.copyNodeData(pn.data);sn.setGroupKeyForNodeData(Yt,sn.getGroupKeyForNodeData(pn.data)),sn.addNodeData(Yt);var fe={from:pn.key,to:sn.getKeyForNodeData(Yt)};sn.addLinkData(fe);var he=dt.diagram.findNodeForData(Yt);he.location=nn,dt.diagram.select(he),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return ct(Se.bn,{figure:Ue,alignment:ce,alignmentFocus:ce.opposite(),width:ce.equals(Se.z6.Top)||ce.equals(Se.z6.Bottom)?25:18,height:ce.equals(Se.z6.Top)||ce.equals(Se.z6.Bottom)?18:25,fill:"orange",stroke:En.white,strokeWidth:4,mouseEnter:(dt,on)=>on.fill="dodgerblue",mouseLeave:(dt,on)=>on.fill="orange",isActionable:!0,click:Ze,contextClick:Ze})}function ia(ce){return ct(Se.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:(Ue,Ze)=>Ze.fill="dodgerblue",mouseLeave:(Ue,Ze)=>Ze.fill="orange",click:(Ue,Ze)=>{Ue.diagram.commandHandler.showContextMenu(Ze.part.adornedPart)}},ce||{})}Ce.current.nodeTemplate.selectionAdornmentTemplate=ct(Se.uz,"Spot",ct(Se.Vm,{padding:10}),da(Se.z6.Top,"TriangleUp"),da(Se.z6.Left,"TriangleLeft"),da(Se.z6.Right,"TriangleRight"),da(Se.z6.Bottom,"TriangleDown"),ia({alignment:new Se.z6(.75,0)}));function Un(ce,Ue){return(Ze,dt)=>{Ze.handled=!0,Ze.diagram.model.commit(on=>{on.set(dt.part.adornedPart.data,ce,Ue)})}}function Rn(ce,Ue){return Ue||(Ue="color"),ct(Se.bn,{width:16,height:16,stroke:"lightgray",fill:ce,margin:1,background:"transparent",mouseEnter:(Ze,dt)=>dt.stroke="dodgerblue",mouseLeave:(Ze,dt)=>dt.stroke="lightgray",click:Un(Ue,ce),contextClick:Un(Ue,ce)})}function ha(){return[ct("ContextMenuButton",ct(Se.s_,"Horizontal",Rn(En.white,"fill"),Rn(En.beige,"fill"),Rn(En.extralightblue,"fill"),Rn(En.extralightred,"fill"))),ct("ContextMenuButton",ct(Se.s_,"Horizontal",Rn(En.lightgray,"fill"),Rn(En.lightgreen,"fill"),Rn(En.lightblue,"fill"),Rn(En.lightred,"fill")))]}function Pa(){return[ct("ContextMenuButton",ct(Se.s_,"Horizontal",Rn(En.black),Rn(En.green),Rn(En.blue),Rn(En.red))),ct("ContextMenuButton",ct(Se.s_,"Horizontal",Rn(En.white),Rn(En.magenta),Rn(En.purple),Rn(En.orange)))]}function Ea(ce,Ue){return Ue||(Ue="thickness"),ct(Se.bn,"LineH",{width:16,height:16,strokeWidth:ce,margin:1,background:"transparent",mouseEnter:(Ze,dt)=>dt.background="dodgerblue",mouseLeave:(Ze,dt)=>dt.background="transparent",click:Un(Ue,ce),contextClick:Un(Ue,ce)})}function pa(ce,Ue){return Ue||(Ue="dash"),ct(Se.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ce,margin:1,background:"transparent",mouseEnter:(Ze,dt)=>dt.background="dodgerblue",mouseLeave:(Ze,dt)=>dt.background="transparent",click:Un(Ue,ce),contextClick:Un(Ue,ce)})}function va(){return[ct("ContextMenuButton",ct(Se.s_,"Horizontal",Ea(1),Ea(2),Ea(3),Ea(4))),ct("ContextMenuButton",ct(Se.s_,"Horizontal",pa(null),pa([2,4]),pa([4,4])))]}function na(ce,Ue){return Ue||(Ue="figure"),ct(Se.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ce,margin:1,background:"transparent",mouseEnter:(Ze,dt)=>dt.fill="dodgerblue",mouseLeave:(Ze,dt)=>dt.fill="lightgray",click:Un(Ue,ce),contextClick:Un(Ue,ce)})}Ce.current.nodeTemplate.contextMenu=ct("ContextMenu",ct("ContextMenuButton",ct(Se.s_,"Horizontal",na("Rectangle"),na("RoundedRectangle"),na("Ellipse"),na("Diamond"))),ct("ContextMenuButton",ct(Se.s_,"Horizontal",na("Parallelogram2"),na("ManualOperation"),na("Procedure"),na("Cylinder1"))),ct("ContextMenuButton",ct(Se.s_,"Horizontal",na("Terminator"),na("CreateRequest"),na("Document"),na("TriangleDown"))),ha(),Pa(),va()),Ce.current.groupTemplate=ct(Se.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Se.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ce,Ue)=>{var Ze=Ue.addMembers(Ue.diagram.selection,!0);Ze||Ue.diagram.currentTool.doCancel()},avoidable:!1},new Se.KX("location","loc",Se.E9.parse).makeTwoWay(Se.E9.stringify),ct(Se.s_,"Auto",{name:"BODY"},ct(Se.bn,{parameter1:10,fill:En.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Se.z6.AllSides,toSpot:Se.z6.AllSides},new Se.KX("fill"),new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),ct(Se.Vm,{background:"transparent",margin:20})),ct(Se.al,{alignment:Se.z6.Top,alignmentFocus:Se.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Se.KX("text"),new Se.KX("stroke","color"))),Ce.current.groupTemplate.selectionAdornmentTemplate=ct(Se.uz,"Spot",ct(Se.s_,"Auto",ct(Se.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ct(Se.Vm,{margin:1.5})),ia({alignment:Se.z6.TopRight,alignmentFocus:Se.z6.BottomRight})),Ce.current.groupTemplate.contextMenu=ct("ContextMenu",ha(),Pa(),va()),Ce.current.linkTemplate=ct(Se.rU,{layerName:"Foreground",routing:Se.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Se.KX("fromSpot","fromSpot",Se.z6.parse),new Se.KX("toSpot","toSpot",Se.z6.parse),new Se.KX("fromShortLength","dir",ce=>ce>=1?10:0),new Se.KX("toShortLength","dir",ce=>ce>=1?10:0),new Se.KX("points").makeTwoWay(),ct(Se.bn,{strokeWidth:2},new Se.KX("stroke","color"),new Se.KX("strokeWidth","thickness"),new Se.KX("strokeDashArray","dash")),ct(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,0),segmentOrientation:Se.rU.OrientAlong,alignmentFocus:Se.z6.Right,figure:"circle",width:10,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",ce=>ce===1)),ct(Se.bn,{segmentIndex:-1,segmentOffset:new Se.E9(-10,6),segmentOrientation:Se.rU.OrientPlus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",ce=>ce>=1),new Se.KX("width","thickness",ce=>7+3*ce),new Se.KX("height","thickness",ce=>7+3*ce),new Se.KX("segmentOffset","thickness",ce=>new Se.E9(-15,4+1.5*ce))),ct(Se.bn,{segmentIndex:0,segmentOffset:new Se.E9(15,-6),segmentOrientation:Se.rU.OrientMinus90,alignmentFocus:Se.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Se.KX("fill","color"),new Se.KX("visible","dir",ce=>ce===2),new Se.KX("width","thickness",ce=>7+3*ce),new Se.KX("height","thickness",ce=>7+3*ce),new Se.KX("segmentOffset","thickness",ce=>new Se.E9(-15,4+1.5*ce))),ct(Se.al,{alignmentFocus:new Se.z6(0,1,-4,0),editable:!0},new Se.KX("text").makeTwoWay(),new Se.KX("stroke","color"))),Ce.current.linkTemplate.selectionAdornmentTemplate=ct(Se.uz,ct(Se.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Oe(2)},new Se.KX("pathPattern","thickness",Oe)),ia({alignmentFocus:new Se.z6(0,0,-6,-4)}));function Oe(ce){return ct(Se.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ce+4).toString()+" H3"})}function Te(ce){var Ue="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ce===0?Ue="M0 0 M16 16 M0 8 L16 8":ce===2&&(Ue="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ct(Se.bn,{geometryString:Ue,margin:2,background:"transparent",mouseEnter:(Ze,dt)=>dt.background="dodgerblue",mouseLeave:(Ze,dt)=>dt.background="transparent",click:Un("dir",ce),contextClick:Un("dir",ce)})}function le(ce){var Ue=(Ze,dt)=>{Ze.handled=!0,Ze.diagram.model.commit(on=>{var sn=dt.part.adornedPart;on.set(sn.data,ce?"toSpot":"fromSpot",Se.z6.stringify(Se.z6.AllSides)),(ce?sn.toNode:sn.fromNode).invalidateConnectedLinks()})};return ct(Se.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ze,dt)=>dt.background="dodgerblue",mouseLeave:(Ze,dt)=>dt.background="transparent",click:Ue,contextClick:Ue})}function nt(ce,Ue){var Ze=0,dt=Se.z6.RightSide;ce.equals(Se.z6.Top)?(Ze=270,dt=Se.z6.TopSide):ce.equals(Se.z6.Left)?(Ze=180,dt=Se.z6.LeftSide):ce.equals(Se.z6.Bottom)&&(Ze=90,dt=Se.z6.BottomSide),Ue||(Ze-=180);var on=(sn,pn)=>{sn.handled=!0,sn.diagram.model.commit(nn=>{var Yt=pn.part.adornedPart;nn.set(Yt.data,Ue?"toSpot":"fromSpot",Se.z6.stringify(dt)),(Ue?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return ct(Se.bn,{alignment:ce,alignmentFocus:ce.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ze,background:"transparent",mouseEnter:(sn,pn)=>pn.background="dodgerblue",mouseLeave:(sn,pn)=>pn.background="transparent",click:on,contextClick:on})}Ce.current.linkTemplate.contextMenu=ct("ContextMenu",Pa(),va(),ct("ContextMenuButton",ct(Se.s_,"Horizontal",Te(0),Te(1),Te(2))),ct("ContextMenuButton",ct(Se.s_,"Horizontal",ct(Se.s_,"Spot",le(!1),nt(Se.z6.Top,!1),nt(Se.z6.Left,!1),nt(Se.z6.Right,!1),nt(Se.z6.Bottom,!1)),ct(Se.s_,"Spot",{margin:new Se.Zt(0,0,0,2)},le(!0),nt(Se.z6.Top,!0),nt(Se.z6.Left,!0),nt(Se.z6.Right,!0),nt(Se.z6.Bottom,!0)))));const Ln=`{ "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 Pn=["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 en(ce){return console.log("shapeName:",ce),Pn.indexOf(ce)>=0}var ht=new Se.YI(Ft.current,{maxSelectionCount:1,linkTemplate:ct(Se.rU,{locationSpot:Se.z6.Center,selectionAdornmentTemplate:ct(Se.uz,"Link",{locationSpot:Se.z6.Center},ct(Se.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ct(Se.bn,{toArrow:"Standard",stroke:null}))},{routing:Se.rU.AvoidsNodes,curve:Se.rU.JumpOver,corner:5,toShortLength:4},new Se.KX("points"),ct(Se.bn,{isPanelMain:!0,strokeWidth:2}),ct(Se.bn,{toArrow:"Standard",stroke:null})),model:new Se.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Se.bn.getFigureGenerators().toArray().map(ce=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ce.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ce.current.addDiagramListener("TextEdited",function(ce){var Ue;const Ze=ce.subject.part;var dt=(Ue=document.activeElement)==null?void 0:Ue.value;typeof dt=="string"&&dt.trim()===""&&Ce.current.model.commit(function(on){on.set(Ze.data,"text","\u672A\u547D\u540D"),Ce.current.commandHandler.stopCommand()},"increment")}),ht.nodeTemplate=ct(Se.NB,"Auto",{locationSpot:Se.z6.Center},new Se.KX("location","location",Se.E9.parse).makeTwoWay(Se.E9.stringify),ct(Se.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 Se.KX("stroke").makeTwoWay(),new Se.KX("fill").makeTwoWay(),new Se.KX("figure")),ct(Se.al,{margin:new Se.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Se.$u(16,16),maxSize:new Se.$u(10,NaN),textAlign:"center",editable:!0},new Se.KX("key").makeTwoWay())),setTimeout(()=>{Ce.current.grid=ct(Se.s_,"Grid",ct(Se.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ct(Se.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ce.current.grid.visible=!0,Ce.current.grid.gridCellStroke="darkgray",Ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ce.current,Ce.current}const ta=()=>Le(this,null,function*(){var ct=Ce.current.makeImage();const En=yield(0,Je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ct.src}});Be({src:En.url})});(0,ee.useEffect)(()=>(setTimeout(()=>{In()},500),Qt(un+1),()=>{Ce.current=null}),[]);const Xn=(0,Fe.useIntl)();return xe.createElement("div",{ref:Cn,className:zt.current?`${Ie.maxH60} body-overflow-initial`:"body-overflow-initial"},xe.createElement(He.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:xe.createElement(ot.Z,null,xe.createElement(yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),xe.createElement(yt.Z,{onClick:()=>{var ct,En,da=Ce.current.selection.first();if(zt.current=!zt.current,document.activeElement&&da){let ia=(En=(ct=document.activeElement)==null?void 0:ct.value)==null?void 0:En.trim();typeof ia=="string"&&Ce.current.model.commit(function(Un){Un.set(da.data,"text",ia||"\u672A\u547D\u540D"),Ce.current.commandHandler.stopCommand()},"increment")}Qt(un+1)}},xe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",Xn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:we},xe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ie.flowChartWrp},xe.createElement("div",{style:{display:"flex",height:"100%"}},xe.createElement("div",{style:{width:"300px",height:"100%"}},xe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),xe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ie.myPaletteDiv,ref:Ft})),xe.createElement("div",{style:{flex:1,position:"relative"}},xe.createElement("div",{ref:st,style:{height:"80vh"}}))),xe.createElement("div",{className:"tr"},xe.createElement(pe.ZP,{size:"large",onClick:ta,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Xn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var qe=De,ft=oe(78045),Nt=oe(31795);const $t=ft.ZP.Group,_t={margin:"0 8px"};var Jt=({callback:we,onCancel:Be})=>{function Ce(Ft){we(Ft)}const st=(0,Fe.useIntl)();return ee.createElement(Pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ce},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:_t},st.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ee.createElement("span",{style:_t},st.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ee.createElement(Pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Nt.Z,null)),ee.createElement("span",{style:_t},st.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ee.createElement(Pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Nt.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:_t},st.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ee.createElement(Pe.default.Item,{name:"align"},ee.createElement($t,null,ee.createElement(ft.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(ft.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(ft.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(ft.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},st.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ee.createElement(pe.ZP,{type:"ghost",onClick:Be},st.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},ue=oe(47897),be=oe(61016),jt=oe.n(be),ye=(0,ee.forwardRef)(({use3d:we,width:Be,height:Ce,callback:st,showSaveButton:Ft},zt)=>{const Cn=(0,ee.useRef)(),un=(0,ee.useRef)(),Qt=(0,Fe.useIntl)(),[In,ta]=(0,ee.useState)(!1),Xn=(0,ee.useRef)({id:Cn,appName:"graphing",width:Be||1e3,height:Ce||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)(()=>{un.current=new(jt())(Xn.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const ct=()=>{var En=window.ggbApplet.getPNGBase64(1,!0,72);return st&&st(En),En};return(0,ee.useEffect)(()=>{Xn.current.appName=In?"3D":"graphing",un.current.inject("applet_container")},[In]),(0,ee.useEffect)(()=>{ta(we)},[we]),(0,ee.useImperativeHandle)(zt,()=>({getImgData:ct})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Cn}),ee.createElement(ot.Z,{align:"middle"},ee.createElement(yt.Z,{flex:1},ee.createElement(ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Qt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:In,onChange:En=>ta(En)})),ee.createElement(yt.Z,null,ee.createElement(pe.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},Qt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),ut=oe(36527),tt=oe(25934),wt=oe(2453);const Wt="link",bt="upload-image",Bt="add-flowchart",Tt="draw-image",ln="add-flowchart",Vt="code-block",qt="add-table",yn="------------",hn={default:yn,left:`:${yn}`,center:`:${yn}:`,right:`${yn}:`};var Nn=oe(99914),Bn=(we,Be,Ce)=>new Promise((st,Ft)=>{var zt=Qt=>{try{un(Ce.next(Qt))}catch(In){Ft(In)}},Cn=Qt=>{try{un(Ce.throw(Qt))}catch(In){Ft(In)}},un=Qt=>Qt.done?st(Qt.value):Promise.resolve(Qt.value).then(zt,Cn);un((Ce=Ce.apply(we,Be)).next())});function Kn(){}let ea=0;const jn=1e4,Qn="\u2581",zn="@\u2581\u2581@",Hn="@\u2581@",bn=`
**\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`,aa=["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 Vn(we){return/^\d+$/.test(we)?`${we}px`:we}const Fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Sa={[Fn+"-B"]:"bold",[Fn+"-I"]:"italic"};var oa=({defaultValue:we="",onChange:Be,width:Ce="100%",height:st=400,miniToolbar:Ft=!1,isFocus:zt=!1,watch:Cn,insertTemp:un,mode:Qt="markdown",id:In="markdown-editor-id",showResizeBar:ta=!1,noStorage:Xn=!1,showNullButton:ct=!1,showNullProgramButton:En=!1,hidetoolBar:da=!1,fullScreen:ia=!1,onBlur:Un,onCMBeforeChange:Rn,onFullScreen:ha,className:Pa="",disablePaste:Ea=!1,disabled:pa=!1,disabledFill:va=!1,placeholder:na="",values:Oe="",extraUse:Te})=>{const[le,nt]=(0,ee.useState)(null),[Ln,Pn]=(0,ee.useState)(we),[en,ht]=(0,ee.useState)(Cn),[ce,Ue]=(0,ee.useState)(ia),[Ze,dt]=(0,ee.useState)(""),[on,sn]=(0,ee.useState)(0),[pn,nn]=(0,ee.useState)(st),[Yt,fe]=(0,ee.useState)(!1),he=(0,ee.useRef)((0,tt.Z)()),Me=(0,ee.useRef)(!1),Ge=(0,ee.useRef)(),[Xe,Et]=(0,ee.useState)(0),[Mt,It]=(0,ee.useState)(0),xt=(0,ee.useRef)(),kt=(0,ee.useRef)(),Lt=(0,ee.useRef)(),cn=(0,ee.useRef)(),Ht=()=>Bn(void 0,null,function*(){var Dt;const pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:he.current}});(Dt=pt==null?void 0:pt.attachments)!=null&&Dt.length&&(console.log("cm:",le,xt),pt.attachments.map(Ot=>{Ot.content_type.indexOf("image")>-1?le.replaceSelection(`![,](/api/attachments/${Ot.id}?type=${Ot.content_type})`):Ot.content_type.indexOf("video")>-1?le.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ot.content_type.indexOf("pdf")>-1?le.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ot.id}?type=${Ot.content_type}&disposition=inline" target="_blank">${Ot.name}</a>`):le.replaceSelection(`[${Ot.name}](${ENV.API_SERVER}/api/attachments/${Ot.id}?type=${Ot.content_type})`)}))});(0,ee.useEffect)(()=>{const Dt=window.scrollY||window.pageYOffset;Pn(Oe),le==null||le.setValue(Oe),window.scrollTo(0,Dt)},[Oe]),(0,ee.useEffect)(()=>{ha==null||ha(ce)},[ce]),(0,ee.useEffect)(()=>{if(xt.current){let Dt=function(Ot,Rt){var xn;if(Ea){Rt.preventDefault();return}const Dn=Rt.clipboardData;if(Dn){const Jn=Dn.types.toString(),Tn=Dn.items;if(Jn==="Files"||Dn.types.indexOf("Files")>-1){if(Rt.preventDefault(),Qt=="stex")return;try{let kn=Tn[1];((xn=Tn[0])==null?void 0:xn.kind)==="file"&&(kn=Tn[0]);const Gn=kn.getAsFile(),la=Gn.name.split(".").pop();(0,Ne.I)(Gn,ra=>{var La,ba,Ca;ra.id?((La=Gn==null?void 0:Gn.type)==null?void 0:La.indexOf("image"))>-1?pt.replaceSelection(`<img width="100%" src="/api/attachments/${ra.id}?type=${ra.content_type})" alt="" />`):((ba=Gn==null?void 0:Gn.type)==null?void 0:ba.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${ra.id}"></video>`):((Ca=Gn==null?void 0:Gn.type)==null?void 0:Ca.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="/api/attachments/${ra.id}?type=${Gn.type}&disposition=inline" target="_blank">${Gn.name}</a>`):aa.includes(la)?pt.replaceSelection(`<a href="/api/attachments/${ra.id}?type=office&disposition=inline" target="_blank">${Gn.name}</a>`):pt.replaceSelection(`[${Gn.name}](/api/attachments/${ra.id}?type=${ra.content_type})`):(ra==null?void 0:ra.status)===401&&(wt.ZP.warning((ra==null?void 0:ra.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(kn){wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pt=je().fromTextArea(xt.current,{mode:Qt,lineNumbers:!Ft,lineWrapping:!0,value:we,autoCloseTags:!En,autoCloseBrackets:!0});return pt.on("keyup",function(Ot,Rt){Rt.keyCode===8&&(Ot.getValue()==""?pt.setOption("placeholder",na):pt.setOption("placeholder",null))}),pt.on("keydown",function(Ot,Rt){if(Rt.keyCode===8){var xn=Zt(Ot);xn&&Rt.preventDefault()}}),zt&&pt.focus(),pt.on("paste",Dt),pt.on("dragleave",function(Ot,Rt){kt.current.classList.remove("mouse-hover-md")}),pa&&pt.on("beforeChange",function(Ot,Rt){(Rt.origin==="paste"||Rt.origin==="+input")&&Rt.cancel()}),nt(pt),()=>{pt.off("paste",Dt)}}},[]);const Pt=(0,ee.useCallback)(()=>{if(kt.current)try{}catch(Dt){console.log(Dt,"---- to set md editor body height")}},[pn,kt,ce]);(0,ee.useEffect)(()=>{function Dt(){let pt=new ke.Z(Ot=>{for(let Rt of Ot)(Rt.target.offsetHeight>0||Rt.target.offsetWidth>0)&&(Pt(),le.setSize("100%","100%"),le.refresh())});return pt.observe(xt.current.parentElement),pt}if(le){const pt=Dt();return()=>{var Ot,Rt;(Ot=xt.current)!=null&&Ot.parentElement&&pt.unobserve((Rt=xt.current)==null?void 0:Rt.parentElement)}}},[le,Pt]),(0,ee.useEffect)(()=>{if(le){let Dt=[];for(const[pt,Ot]of Object.entries(Sa)){let Rt={[pt]:()=>{Ut(Ot)}};Dt.push(Rt),le.addKeyMap(Rt)}return Ge.current=setInterval(()=>{Me.current&&Ht()},4e3),()=>{clearInterval(Ge.current);for(let pt of Dt)le.removeKeyMap(pt)}}},[le]),(0,ee.useEffect)(()=>{ia!==ce&&Ue(ia)},[ia]),(0,Nn.Z)(()=>{if(!Xn&&on>0){let Dt=new Date().getTime(),pt=window.sessionStorage.getItem(In);Dt>=on+jn&&(!pt||pt!==Ln)&&(window.sessionStorage.setItem(In,Ln),fe(!0))}},jn),(0,ee.useEffect)(()=>{ht(Cn)},[le,Cn]),(0,ee.useEffect)(()=>{le&&zt&&le.focus()},[le,zt]),(0,ee.useEffect)(()=>{if(en&&le){let Dt=function(Ot){let Rt=Ot.target;if(cn.current){let xn=Rt.scrollTop/Rt.scrollHeight;cn.current.scrollTop=cn.current.scrollHeight*xn}};const pt=le.getScrollerElement();return pt.addEventListener("scroll",Dt),()=>{pt.removeEventListener("scroll",Dt)}}},[le,en]),(0,ee.useEffect)(()=>{if(le&&Rn){let Dt=function(pt,Ot){Rn(pt,Ot)};return le.on("beforeChange",Dt),()=>{le.off("beforeChange",Dt)}}},[le,Rn]),(0,ee.useEffect)(()=>{if(le&&Un){let Dt=function(){Un(le.getValue())};return le.on("blur",Dt),()=>{le.off("blur",Dt)}}},[le,Un]);function Zt(Dt,pt){var Ot=Dt.getDoc(),Rt=Ot.getCursor(),xn=Ot.getLine(Rt.line),Dn=xn.charAt(Rt.ch-1),Jn=xn.lastIndexOf("@\u2581@",Rt.ch),Tn=xn.lastIndexOf("@\u2581\u2581@",Rt.ch),kn=Jn>Tn?Jn:Tn,Gn=Jn>Tn?3:4;if(zn.indexOf(Dn)===-1)return null;if(console.log("change1:",pt,Dt,xn,Rt,kn,Jn,Tn,Dn),kn>=0&&Rt.ch-kn<5){var la=kn+Gn;return Ot.replaceRange("",{line:Rt.line,ch:kn},{line:Rt.line,ch:la}),{line:Rt.line,ch:la}}return null}(0,ee.useEffect)(()=>{if(le){let Dt=function(pt,Ot){const Rt=pt.getValue();Pn(Rt),sn(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Be&&(En?Be(Rt,Zn(Rt)):Be(Rt))};return le.on("change",Dt),()=>{le.off("change",Dt)}}},[le,Be]),(0,ee.useEffect)(()=>{if(le)if(we==null)le.setValue(""),Pn("");else{const Dt=window.scrollY||window.pageYOffset;we!==le.getValue()&&(le.setValue(we),Pn(we),le.setCursor(pa?1:le.lineCount(),0),window.scrollTo(0,Dt))}},[le,we]);const Ut=(0,ee.useCallback)(Dt=>{const pt=le.getCursor(),Ot=le.getSelection();let Rt=Ot.split(`
`);switch(Dt){case"bold":return le.replaceSelection("**"+Ot+"**"),Ot===""&&le.setCursor(pt.line,pt.ch+2),le.focus();case"italic":return le.replaceSelection("*"+Ot+"*"),Ot===""&&le.setCursor(pt.line,pt.ch+1),le.focus();case"code":return le.replaceSelection("`"+Ot+"`"),Ot===""&&le.setCursor(pt.line,pt.ch+1),le.focus();case"inline-latex":return dt("inline-latex"),le.focus();case"latex":return le.replaceSelection("```latex\n"+Ot+"\n```"),le.setCursor(pt.line+1,Ot.length+1),le.focus();case"line-break":return le.replaceSelection(`<br/>
`),le.focus();case"list-ul":return Ot===""?le.replaceSelection("- "+Ot):le.replaceSelection(Rt.map(xn=>xn===""?"":`- ${xn}`).join(`
`)),le.focus();case"list-ol":return Ot===""?le.replaceSelection("1. "+Ot):le.replaceSelection(Rt.map((xn,Dn)=>xn===""?"":`${Dn+1}. ${xn}`).join(`
`)),le.focus();case"add-null-ch":return Ot===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(Qn),le.focus();case"add-signal":return Ot===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(Hn),le.focus();case"add-multiple":return Ot===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(zn),le.focus();case"inster-template-1":return Ot===""&&le.setCursor(pt.line,pt.ch),le.replaceSelection(bn),le.focus();case"eraser":return le.setValue(""),le.focus();case"trigger-watch":return ht(!en),le.focus();case"trigger-full-screen":return Ue(!ce),le.focus();case Wt:dt(Wt);return;case Vt:dt(Vt);return;case bt:dt(bt);return;case Tt:dt(Tt);return;case"maths-latex":dt("maths-latex");return;case Bt:dt(Bt);return;case qt:dt(qt);return;default:throw new Error}},[le,en,ce]),fn=(0,ee.useCallback)((Dt,pt)=>{var Ot,Rt,xn,Dn,Jn,Tn;switch(dt(""),Ze){case Wt:const{title:La,link:ba}=Dt;return le.replaceSelection(`[${La}](${ba})`),le.focus();case Vt:const{language:Ca,content:wa}=Dt;return le.replaceSelection(["```"+Ca,wa,"```"].join(`
`)),le.focus();case"maths-latex":for(var kn=atob(Dt),Gn=new Uint8Array(kn.length),la=0;la<kn.length;la++)Gn[la]=kn.charCodeAt(la);var ra=new Blob([Gn],{type:"image/png"});(0,Ne.I)(ra,fa=>{fa.id?le.replaceSelection(`![,](/api/attachments/${fa.id}?type=${fa.content_type})`):(fa==null?void 0:fa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":le.replaceSelection("`$$"+Dt+"$$`");break;case bt:case Tt:case ln:const{src:_n,alt:gn}=Dt,$n=pt,Ta=(xn=(Rt=(Ot=$n==null?void 0:$n.name)==null?void 0:Ot.split("."))==null?void 0:Rt.pop)==null?void 0:xn.call(Rt);return((Dn=$n==null?void 0:$n.type)==null?void 0:Dn.indexOf("image"))>-1||!($n!=null&&$n.type)?$n.align||$n.width?le.replaceSelection(`<p style="text-align:${$n.align||"initial"}"><img width="${$n.width?$n.width+"%":"initial"}" src="${_n}" alt="${gn||""}" /></p>`):le.replaceSelection(`<img width="100%" src="${_n}" alt="${gn||""}" />`):((Jn=$n==null?void 0:$n.type)==null?void 0:Jn.indexOf("video"))>-1?le.replaceSelection(`<video width="100%" controls src="${_n}"></video>`):((Tn=$n==null?void 0:$n.type)==null?void 0:Tn.indexOf("pdf"))>-1?le.replaceSelection(`<a href="${_n}?type=${$n.type}&disposition=inline" target="_blank">${$n.name}</a>`):aa.includes(Ta)?le.replaceSelection(`<a href="${_n}?type=office&disposition=inline" target="_blank">${$n.name}</a>`):le.replaceSelection(`[${$n.name}](${_n})`),le.focus();case qt:const{row:Ba,col:Fa,align:sa}=Dt;let Ma=`
`;for(let fa=0;fa<Ba;fa++){let Na=[],Wn=[];for(let qn=0;qn<Fa;qn++)fa===1&&Wn.push(hn[sa]),Na.push(" ");fa===1&&(Ma+=`| ${Wn.join(" | ")} |
`),Ma+=`| ${Na.join(Fa===1?"":" | ")} |
`}return le.replaceSelection(Ma+`
`),le.focus();default:throw new Error}},[le,Ze]),Mn=(0,ee.useMemo)(()=>{switch(Ze){case Wt:return ee.createElement(dn,{callback:fn,onCancel:rn});case Vt:return ee.createElement(Sn.Z,{callback:fn,onCancel:rn});case bt:return ee.createElement(Ne.Z,{callback:fn,onCancel:rn});case Bt:return ee.createElement(qe,{callback:fn,onCancel:rn});case qt:return ee.createElement(Jt,{callback:fn,onCancel:rn});case"maths-latex":return ee.createElement(ye,{showSaveButton:!0,callback:fn});case"inline-latex":return ee.createElement(ut.Z,{showSaveButton:!0,callback:fn});default:return null}},[Ze]);function rn(){dt("")}(0,ee.useEffect)(()=>{if(Lt.current){let Dt=function(Jn){xn=!0,Dn=Jn.pageY},pt=function(){xn=!1},Ot=function(Jn){if(xn){let Tn=Jn.pageY-Dn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let kn=st+Tn+"px";nn(kn)}},Rt=Lt.current,xn=!1,Dn=0;return Rt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Ot),document.addEventListener("mouseup",pt),()=>{Rt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Ot),document.removeEventListener("mouseup",pt)}}},[le,Lt]),(0,ee.useEffect)(()=>{nn(st)},[st]);const wn=Vn(Ce),Xt=Vn(pn),tn={width:wn,height:Xt},vn=(0,ee.useMemo)(()=>{if(on){let Dt=new Date(on),pt=Dt.getHours(),Ot=Dt.getMinutes(),Rt=Dt.getSeconds();return pt=pt<10?"0"+pt:pt,Ot=Ot<10?"0"+Ot:Ot,Rt=Rt<10?"0"+Rt:Rt,`${pt}:${Ot}:${Rt}`}return 0},[on]),Zn=Dt=>{const pt=[];if(En){let Ot=-1;Dt=Dt.replace(/(@▁▁@|@▁@)/g,function(Rt,xn,Dn){pt.push({multiLine:Rt!==Hn})})}return pt};function Yn(){window.sessionStorage.removeItem(In),fe(!1),sn(0)}function ua(){fe(!1),sn(0),le.setValue(window.sessionStorage.getItem(In))}const ga=(0,Fe.useIntl)(),ma={[Wt]:"\u6DFB\u52A0\u94FE\u63A5",[Vt]:ga.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[bt]:ga.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Tt]:"\u6DFB\u52A0\u753B\u56FE",[Bt]:ga.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[qt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ga.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ga.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ee.useEffect)(()=>{ma[Ze]&&Ze!==Tt&&Ze!==Bt&&setTimeout(()=>{const Dt=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Dt.offsetWidth/2,Ot=window.innerHeight/2-Dt.offsetHeight/2;Et(pt),It(Ot)},0)},[Ze]);const ca=Dt=>{Dt.preventDefault();const pt=Dt.clientX-Xe,Ot=Dt.clientY-Mt;document.body.onmousemove=Rt=>{let xn=Rt.clientX-pt,Dn=Rt.clientY-Ot;const Jn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Jn.offsetWidth,kn=window.innerHeight-Jn.offsetHeight;xn=Math.max(0,Math.min(xn,Tn)),Dn=Math.max(0,Math.min(Dn,kn)),xa(Rt.clientX,Rt.clientY,pt,Ot)&&(Et(xn),It(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},xa=(Dt,pt,Ot,Rt)=>{const xn=document.body.clientHeight,Dn=document.body.clientWidth;return Dt<20&&Ot>Dt||Dt>Dn-20&&Ot<Dt||pt<20&&Rt>pt||pt>xn-20&&Rt<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:kt},ee.createElement("div",{className:`markdown-editor-container ${Pa} ${en?"on-preview":""} ${Ft?"mini":""} ${ce?"full-screen":""}`,style:tn},ee.createElement(ge,{insertTemp:un,watch:en,fullScreen:ce,showNullButton:ct,showNullProgramButton:En,onActionCallback:Ut,hidetoolBar:da,extraUse:Te}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:xt,placeholder:na})),en?ee.createElement("div",{ref:cn,className:"preview-container"},Qt==="stex"&&ee.createElement(_e,{value:Ln}),Qt!=="stex"&&ee.createElement(Ye.Z,{disabledFill:va,showProgramFill:En,value:Ln})):null))),ta?ee.createElement("a",{ref:Lt,className:"editor-resize"}):null,Ze===Tt&&ee.createElement(Ct,{callback:fn,onCancel:rn}),Ze===Bt&&ee.createElement(qe,{callback:fn,onCancel:rn}),ee.createElement(ve.Z,null,ma[Ze]&&Ze!==Tt&&Ze!==Bt?ee.createElement(He.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Xe,top:Mt},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:ca},ma[Ze]),open:!0,onCancel:rn,footer:null,destroyOnClose:!0,width:Ze===Bt?"1200px":null,height:Ze===Bt?"80vh":null,className:"markdown-popup-form"},Mn):null))}},70859:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return ge},I:function(){return Pe}});var ee=oe(22150),de=oe(2453),je=oe(69677),ke=oe(93421),se=oe(31795),Ee=oe(78045),me=oe(71577),Qe=oe(15476),We=oe(67294),Ae=oe(52262),Ye=oe(35973),_e=oe(67294),Fe=Object.defineProperty,ae=Object.defineProperties,y=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ze,pe,Ke)=>pe in ze?Fe(ze,pe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):ze[pe]=Ke,z=(ze,pe)=>{for(var Ke in pe||(pe={}))E.call(pe,Ke)&&x(ze,Ke,pe[Ke]);if(a)for(var Ke of a(pe))b.call(pe,Ke)&&x(ze,Ke,pe[Ke]);return ze},te=(ze,pe)=>ae(ze,y(pe));const{useForm:ne}=ee.default,re={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ze,onCancel:pe})=>{const[Ke]=ne();let vt=(0,We.useRef)();const lt=(0,Ye.useIntl)();function $e(Ve){vt.current.width=Ke.getFieldValue("width"),vt.current.align=Ke.getFieldValue("align"),ze(Ve,vt.current)}function it(Ve,at){if(Ve.status===-1){de.ZP.error(Ve.message);return}Ke.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:at.type})}function et(Ve){let at=Ve.target.files[0];vt.current=at,Pe(at,it)}return _e.createElement(ee.default,te(z({form:Ke},ie),{className:"upload-image-panel",onFinish:$e,style:{width:470,overflow:"hidden"}}),_e.createElement(ee.default.Item,{label:lt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},_e.createElement("div",{className:"flex-container"},_e.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},_e.createElement(je.default,{style:re})),_e.createElement(ve,{onFileChange:et}))),_e.createElement(ee.default.Item,{label:lt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},_e.createElement(je.default,{style:{width:264}})),_e.createElement(ee.default.Item,{label:lt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},_e.createElement(ke.Z,null,_e.createElement(ee.default.Item,{name:"width",style:{margin:0}},_e.createElement(se.Z,{style:{width:264}})),_e.createElement("span",{className:"ml8"},"%"))),_e.createElement(ee.default.Item,{label:lt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},_e.createElement(Ee.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:lt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:lt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:lt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),_e.createElement("aside",null,_e.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},_e.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},lt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),_e.createElement(me.ZP,{type:"default",onClick:pe},lt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function ve({onFileChange:ze}){return _e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",_e.createElement("input",{type:"file",onChange:ze}))}function Pe(ze,pe){if(!ze)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ke=new FormData;Ke.append("editormd-image-file",ze),Ke.append("file_param_name","editormd-image-file"),Ke.append("byxhr","true");var vt=new window.XMLHttpRequest;vt.withCredentials=!0,vt.addEventListener("load",function(lt){pe(JSON.parse(lt.target.responseText),ze)},!1),vt.addEventListener("error",function(lt){console.error(lt)},!1),vt.open("POST",`${Qe.KI}/api/attachments.json`),vt.send(Ke)}},76621:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return je}});var ee=oe(67294),de=oe(73935);class je extends ee.Component{constructor(se){super(se);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:se}=this.props;return(0,de.createPortal)(se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return de}});var ee=oe(67294);function de(je,ke){const se=(0,ee.useRef)();(0,ee.useEffect)(()=>{se.current=je}),(0,ee.useEffect)(()=>{function Ee(){se.current()}if(ke!==null){let me=setInterval(Ee,ke);return()=>clearInterval(me)}},[ke])}},79061:function(Re,gt,oe){"use strict";oe.r(gt),oe.d(gt,{default:function(){return na}});var ee=oe(67294),de=oe(35973),je=oe(68508),ke=oe(97183),se=oe(22150),Ee=oe(2453),me=oe(96074),Qe=oe(85673),We=oe(71230),Ae=oe(15746),Ye=oe(83062),_e=oe(69677),Fe=oe(71577),ae=oe(40043),y=oe(32027),a=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,ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Pe=(Oe,Te,le)=>Te in Oe?re(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,ze=(Oe,Te)=>{for(var le in Te||(Te={}))ge.call(Te,le)&&Pe(Oe,le,Te[le]);if(ie)for(var le of ie(Te))ve.call(Te,le)&&Pe(Oe,le,Te[le]);return Oe},pe=(Oe,Te)=>{var le={};for(var nt in Oe)ge.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&ie)for(var nt of ie(Oe))Te.indexOf(nt)<0&&ve.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},Ke=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const vt=["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"],lt=(Oe,Te)=>{var le=Oe,{problemset:nt,globalSetting:Ln,loading:Pn,dispatch:en,onRef:ht=()=>{},editData:ce}=le,Ue=pe(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const Ze=(0,de.useIntl)(),[dt,on]=(0,ee.useState)([]),[sn,pn]=(0,ee.useState)(),[nn,Yt]=(0,ee.useState)([]),[fe,he]=(0,ee.useState)(""),[Me,Ge]=(0,ee.useState)(5),[Xe,Et]=(0,ee.useState)(!1),Mt=(0,de.useParams)();(0,ee.useEffect)(()=>{on(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(ce!=null&&ce.question_choices)){Et(!0);return}he(ce==null?void 0:ce.question_title),Ge(parseInt(ce==null?void 0:ce.question_score)),on(ce==null?void 0:ce.question_choices.map(Pt=>Pt.choice_text));const Ht=[];ce==null||ce.standard_answer.map((Pt,Zt)=>{Ht.push(Pt-1)}),Yt(Ht)},[ce]),(0,ee.useImperativeHandle)(Te,()=>({onSave:It,isEdit:Xe}));const It=()=>Ke(void 0,null,function*(){if(!fe)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ht=dt.findIndex(Ut=>!Ut);if(Ht>-1)return Ee.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${vt[Ht]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!nn.length)return Ee.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(nn.length<1)return Ee.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Pt=dt.map((Ut,fn)=>({choice_text:Ut,is_answer:nn.includes(fn)?fn+1:0}));let Zt;ce.question_id?Zt=yield en({type:"exercise/editExerciseQuestion",payload:{id:ce.question_id,question_title:fe,question_type:1,question_score:"5.0",question_choices:Pt.map(Ut=>Ut.choice_text),standard_answers:Pt.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}}):Zt=yield en({type:"exercise/addExerciseQuestion",payload:{categoryId:Mt.categoryId,question_title:fe,question_type:1,question_score:"5.0",question_choices:Pt.map(Ut=>Ut.choice_text),standard_answers:Pt.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}}),Zt.status===0&&(Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),Et(!1),en({type:"exercise/editExercise",payload:ze({},Mt)}))}),xt=[{name:Ze.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\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"}],kt=Ht=>Ke(void 0,null,function*(){switch(Ht.id){case"del":let Pt;a.default.confirm({centered:!0,okText:Ze.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ke(this,null,function*(){yield(0,x.Fl)({id:ce.question_id}),en({type:"exercise/editExercise",payload:ze({},Mt)})})}});break;case"up":case"down":yield en({type:"exercise/exeriseMoveUpDown",payload:{id:ce.question_id,opr:Ht.id}}),en({type:"exercise/editExercise",payload:ze({},Mt)});break;case"edit":Et(!0);break}}),Lt=()=>{var Ht;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ce.key,"\u3001",Ze.formatMessage({id:"paperlibrary.multipleChoiceQuestion",defaultMessage:"\u591A\u9009\u9898"})),"\uFF08",ce.question_score,Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09"),!ce.hideAction&&xt.map(function(Pt,Zt){return Pt.id==="up"&&ce.key===1||Pt.id==="down"&&ce.key===ce.len?null:ee.createElement(Ye.Z,{key:Zt,placement:"bottom",title:Pt.name},ee.createElement("span",{onClick:()=>kt(Pt),className:Pt.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:ce.question_title})),ee.createElement("div",{className:ne.questionChoices},(Ht=ce==null?void 0:ce.question_choices)==null?void 0:Ht.map(function(Pt,Zt){return ee.createElement(We.Z,null,ee.createElement(Ae.Z,null,ee.createElement(E.default,{key:Zt,checked:ce.standard_answer.includes(Zt+1),disabled:!0},vt[Zt],".")),ee.createElement(Ae.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:Pt.choice_text}))))})))},cn=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},Ze.formatMessage({id:"questionBankAddQuestion.questionStem",defaultMessage:"\u9898\u5E72"}),"\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:fe,onChange:Ht=>he(Ht)}),dt.map((Ht,Pt)=>ee.createElement("div",{className:ne.choiceWrap,key:Pt},ee.createElement(Ye.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${nn.includes(Pt)?ne.activeAnswer:""}`,onClick:()=>{nn.includes(Pt)?Yt(nn.filter(Zt=>Zt!==Pt)):Yt([...nn,Pt])}},vt[Pt])),ee.createElement("div",{className:ne.editorWrap},sn===Pt?ee.createElement(z.Z,{id:`single-question-option-${Pt}`,watch:!0,height:155,placeholder:Ze.formatMessage({id:"questionBankAddQuestion.pleaseEnterOption",defaultMessage:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879"}),defaultValue:Ht,onChange:Zt=>{dt[Pt]=Zt,on(dt)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>pn(Pt)},ee.createElement(te.Z,{value:Ht}))),Pt>1&&ee.createElement(Ye.Z,{title:Ze.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>on(dt.filter((Zt,Ut)=>Ut!==Pt))})),Pt<7&&Pt===dt.length-1&&ee.createElement(Ye.Z,{title:Ze.formatMessage({id:"questionBankAddQuestion.addReferenceAnswer",defaultMessage:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"})},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>on([...dt,""])})))),ee.createElement("p",{className:"c-orange"},Ze.formatMessage({id:"paths.reminder",defaultMessage:"\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:""},Ze.formatMessage({id:"testPaperBank.points",defaultMessage:"\u5206\u503C"}),"\uFF1A",ee.createElement(b.Z,{value:Me,max:1e4,min:-1,onChange:Ht=>{Ge(Ht)}})," ",Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),ee.createElement("aside",{className:"tr"},ce.question_id&&ee.createElement(Fe.ZP,{type:"default",onClick:()=>Et(!1)},Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{className:"ml20",type:"primary",onClick:()=>It()},Ze.formatMessage({id:"questionBankAddQuestion.save",defaultMessage:"\u4FDD\u5B58"}))));return ee.createElement("section",{className:ne.wrap},!Xe&&Lt(),Xe&&cn())};var $e=(0,de.connect)(({problemset:Oe,loading:Te,globalSetting:le})=>({problemset:Oe,globalSetting:le,loading:Te.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(lt)),it=oe(78045),et=Object.defineProperty,Ve=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,an=(Oe,Te,le)=>Te in Oe?et(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,dn=(Oe,Te)=>{for(var le in Te||(Te={}))at.call(Te,le)&&an(Oe,le,Te[le]);if(Ve)for(var le of Ve(Te))At.call(Te,le)&&an(Oe,le,Te[le]);return Oe},Sn=(Oe,Te)=>{var le={};for(var nt in Oe)at.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&Ve)for(var nt of Ve(Oe))Te.indexOf(nt)<0&&At.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},Ne=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const He=["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"],ot=(Oe,Te)=>{var le=Oe,{problemset:nt,globalSetting:Ln,loading:Pn,dispatch:en,onRef:ht=()=>{},editData:ce}=le,Ue=Sn(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const Ze=(0,de.useIntl)(),[dt,on]=(0,ee.useState)([]),[sn,pn]=(0,ee.useState)(),[nn,Yt]=(0,ee.useState)([]),[fe,he]=(0,ee.useState)(""),[Me,Ge]=(0,ee.useState)(0),[Xe,Et]=(0,ee.useState)(!1),Mt=(0,de.useParams)();(0,ee.useEffect)(()=>{on(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(ce!=null&&ce.question_choices)){Et(!0);return}he(ce==null?void 0:ce.question_title),Ge(parseInt(ce==null?void 0:ce.question_score)),on(ce==null?void 0:ce.question_choices.map(Pt=>Pt.choice_text));const Ht=[];ce==null||ce.standard_answer.map((Pt,Zt)=>{Ht.push(Pt-1)}),Yt(Ht)},[ce]),(0,ee.useImperativeHandle)(Te,()=>({onSave:It,isEdit:Xe}));const It=()=>Ne(void 0,null,function*(){if(!fe)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ht=dt.findIndex(Ut=>!Ut);if(Ht>-1)return Ee.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${He[Ht]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!nn.length)return Ee.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(nn.length<1)return Ee.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Pt=dt.map((Ut,fn)=>({choice_text:Ut,is_answer:nn.includes(fn)?fn+1:0}));let Zt;ce.question_id?Zt=yield(0,y.Kc)({id:ce.question_id,question_title:fe,question_type:1,question_score:Me,question_choices:Pt.map(Ut=>Ut.choice_text),standard_answers:Pt.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}):Zt=yield(0,y.iV)({exercise_bank_id:Mt.topicId,question_title:fe,question_type:1,question_score:"5.0",question_choices:Pt.map(Ut=>Ut.choice_text),standard_answers:Pt.filter(Ut=>Ut.is_answer).map(Ut=>Ut.is_answer)}),Zt.status===0&&(Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),Et(!1)),yield en({type:"polls/getExerciseBanks",payload:dn({},Mt)})}),xt=[{name:Ze.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\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"}],kt=Ht=>Ne(void 0,null,function*(){switch(Ht.id){case"del":let Pt;a.default.confirm({centered:!0,okText:Ze.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ne(this,null,function*(){yield(0,y.x$)({pollsId:ce.question_id}),en({type:"polls/getExerciseBanks",payload:dn({},Mt)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ce==null?void 0:ce.question_id,opr:Ht.id}),en({type:"polls/getExerciseBanks",payload:dn({},Mt)});break;case"edit":Et(!0);break}}),Lt=()=>{var Ht;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ce.key,"\u3001",Ze.formatMessage({id:"paperlibrary.singleChoiceQuestion",defaultMessage:"\u5355\u9009\u9898"})),"\uFF08",ce.question_score,Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09"),!ce.hideAction&&xt.map(function(Pt,Zt){return Pt.id==="up"&&ce.key===1||Pt.id==="down"&&ce.key===ce.len?null:ee.createElement(Ye.Z,{key:Zt,placement:"bottom",title:Pt.name},ee.createElement("span",{onClick:()=>kt(Pt),className:Pt.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:ce.question_title})),ee.createElement("div",{className:ne.questionChoices},(Ht=ce==null?void 0:ce.question_choices)==null?void 0:Ht.map(function(Pt,Zt){return ee.createElement(We.Z,null,ee.createElement(Ae.Z,null,ee.createElement(it.ZP,{key:Zt,checked:ce.standard_answer.includes(Zt+1),disabled:!0},He[Zt],".")),ee.createElement(Ae.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:Pt.choice_text}))))})))},cn=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},Ze.formatMessage({id:"questionBankAddQuestion.questionStem",defaultMessage:"\u9898\u5E72"}),"\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:fe,onChange:Ht=>he(Ht)}),dt.map((Ht,Pt)=>ee.createElement("div",{className:ne.choiceWrap,key:Pt},ee.createElement(Ye.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${nn.includes(Pt)?ne.activeAnswer:""}`,onClick:()=>{nn.includes(Pt)?Yt(nn.filter(Zt=>Zt!==Pt)):Yt([...nn,Pt])}},He[Pt])),ee.createElement("div",{className:ne.editorWrap},sn===Pt?ee.createElement(z.Z,{id:`single-question-option-${Pt}`,watch:!0,height:155,placeholder:Ze.formatMessage({id:"questionBankAddQuestion.pleaseEnterOption",defaultMessage:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879"}),defaultValue:Ht,onChange:Zt=>{dt[Pt]=Zt,on(dt)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>pn(Pt)},ee.createElement(te.Z,{value:Ht}))),Pt>1&&ee.createElement(Ye.Z,{title:Ze.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>on(dt.filter((Zt,Ut)=>Ut!==Pt))})),Pt<7&&Pt===dt.length-1&&ee.createElement(Ye.Z,{title:Ze.formatMessage({id:"questionBankAddQuestion.addReferenceAnswer",defaultMessage:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"})},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>on([...dt,""])})))),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:""},Ze.formatMessage({id:"testPaperBank.points",defaultMessage:"\u5206\u503C"}),"\uFF1A",ee.createElement(b.Z,{value:Me,max:1e4,min:-1,onChange:Ht=>{Ge(Ht)}})," ",Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),ee.createElement("aside",{className:"tr"},ce.question_id&&ee.createElement(Fe.ZP,{type:"default",onClick:()=>Et(!1)},Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{className:"ml20",type:"primary",onClick:()=>It()},Ze.formatMessage({id:"questionBankAddQuestion.save",defaultMessage:"\u4FDD\u5B58"}))));return ee.createElement("section",{className:ne.wrap},!Xe&&Lt(),Xe&&cn())};var Gt=(0,de.connect)(({problemset:Oe,loading:Te,globalSetting:le})=>({problemset:Oe,globalSetting:le,loading:Te.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(ot)),mt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Kt=(Oe,Te,le)=>Te in Oe?mt(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,mn=(Oe,Te)=>{for(var le in Te||(Te={}))Se.call(Te,le)&&Kt(Oe,le,Te[le]);if(Ct)for(var le of Ct(Te))St.call(Te,le)&&Kt(Oe,le,Te[le]);return Oe},yt=(Oe,Te)=>{var le={};for(var nt in Oe)Se.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&Ct)for(var nt of Ct(Oe))Te.indexOf(nt)<0&&St.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},Je=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const Ie=["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"],xe=(Oe,Te)=>{var le=Oe,{problemset:nt,globalSetting:Ln,loading:Pn,dispatch:en,onRef:ht=()=>{},editData:ce}=le,Ue=yt(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const Ze=(0,de.useIntl)(),[dt,on]=(0,ee.useState)(),[sn,pn]=(0,ee.useState)(""),[nn,Yt]=(0,ee.useState)(!1),[fe,he]=(0,ee.useState)(5),Me=(0,de.useParams)();(0,ee.useEffect)(()=>{if(!(ce!=null&&ce.question_choices)){Yt(!0);return}pn(ce==null?void 0:ce.question_title),he(ce==null?void 0:ce.question_score),on(ce.standard_answer[0]+"")},[ce]),(0,ee.useImperativeHandle)(Te,()=>({onSave:Ge,isEdit:nn}));const Ge=()=>Je(void 0,null,function*(){if(!sn)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!dt)return Ee.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const xt=[{choice_text:"\u6B63\u786E",is_answer:dt==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:dt==="2"?2:0}];let kt;return ce.question_id?kt=yield(0,y.Kc)({id:ce.question_id,question_title:sn,question_type:2,question_score:fe,question_choices:xt.map(Lt=>Lt.choice_text),standard_answers:xt.filter(Lt=>Lt.is_answer).map(Lt=>Lt.is_answer)}):kt=yield(0,y.iV)({exercise_bank_id:Me.topicId,question_title:sn,question_type:2,question_score:fe,question_choices:xt.map(Lt=>Lt.choice_text),standard_answers:xt.filter(Lt=>Lt.is_answer).map(Lt=>Lt.is_answer)}),kt.status===0&&(Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),Yt(!1)),en({type:"polls/getExerciseBanks",payload:mn({},Me)}),{name:sn,choices:xt}}),Xe=[{name:Ze.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\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"}],Et=xt=>Je(void 0,null,function*(){switch(xt.id){case"del":let kt;a.default.confirm({centered:!0,okText:Ze.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Je(this,null,function*(){yield(0,y.x$)({pollsId:ce.question_id}),en({type:"polls/getExerciseBanks",payload:mn({},Me)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ce==null?void 0:ce.question_id,opr:xt.id}),en({type:"polls/getExerciseBanks",payload:mn({},Me)});break;case"edit":Yt(!0);break}}),Mt=()=>{var xt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ce.key,"\u3001",Ze.formatMessage({id:"paperlibrary.trueFalseQuestion",defaultMessage:"\u5224\u65AD\u9898"})),"\uFF08",ce.question_score,Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09"),!ce.hideAction&&Xe.map(function(kt,Lt){return kt.id==="up"&&ce.key===1||kt.id==="down"&&ce.key===ce.len?null:ee.createElement(Ye.Z,{key:Lt,placement:"bottom",title:kt.name},ee.createElement("span",{onClick:()=>Et(kt),className:kt.icon}))})),ee.createElement("div",{className:"mt5"},ce.question_title),ee.createElement("div",{className:ne.questionChoices},(xt=ce==null?void 0:ce.question_choices)==null?void 0:xt.map(function(kt,Lt){return ee.createElement(it.ZP,{key:Lt,checked:ce.standard_answer.includes(Lt+1),disabled:!0},Ie[Lt],". ",ee.createElement("span",{className:"c-black font14"},kt.choice_text))})))},It=()=>ee.createElement("aside",null,ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Ze.formatMessage({id:"paperlibrary.trueFalseQuestion",defaultMessage:"\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},Ze.formatMessage({id:"questionBankAddQuestion.questionStem",defaultMessage:"\u9898\u5E72"}),"\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:sn,onChange:xt=>pn(xt)}),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},Ze.formatMessage({id:"questionBankAddQuestion.answerOptions",defaultMessage:"\u7B54\u6848\u9009\u9879"}),"\uFF1A",ee.createElement("span",{className:ne.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ee.createElement(it.ZP.Group,{buttonStyle:"solid",value:dt,onChange:xt=>on(xt.target.value)},ee.createElement(it.ZP.Button,{value:"1",className:`${ne.radio} mr40`},Ze.formatMessage({id:"testPaperBank.correct",defaultMessage:"\u6B63\u786E"})),ee.createElement(it.ZP.Button,{value:"2",className:ne.radio},Ze.formatMessage({id:"testPaperBank.incorrect",defaultMessage:"\u9519\u8BEF"}))),ee.createElement("p",{className:"c-orange"},Ze.formatMessage({id:"paths.reminder",defaultMessage:"\u6E29\u99A8\u63D0\u793A"}),"\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),ee.createElement("p",{className:""},Ze.formatMessage({id:"testPaperBank.points",defaultMessage:"\u5206\u503C"}),"\uFF1A",ee.createElement(b.Z,{value:fe,max:1e4,min:-1,onChange:xt=>{he(xt)}})," ",Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),ee.createElement("aside",{className:"tr"},ce.question_id&&ee.createElement(Fe.ZP,{type:"default",onClick:()=>Yt(!1)},Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{className:"ml20",type:"primary",onClick:()=>Ge()},Ze.formatMessage({id:"questionBankAddQuestion.save",defaultMessage:"\u4FDD\u5B58"}))));return ee.createElement("section",{className:ne.wrap},!nn&&Mt(),nn&&It())};var Le=(0,de.connect)(({problemset:Oe,loading:Te,globalSetting:le})=>({problemset:Oe,globalSetting:le,loading:Te.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(xe)),De=oe(35566),qe=oe(73646),ft=oe(28706),Nt=Object.defineProperty,$t=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,ue=(Oe,Te,le)=>Te in Oe?Nt(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,be=(Oe,Te)=>{for(var le in Te||(Te={}))_t.call(Te,le)&&ue(Oe,le,Te[le]);if($t)for(var le of $t(Te))Jt.call(Te,le)&&ue(Oe,le,Te[le]);return Oe},jt=(Oe,Te)=>{var le={};for(var nt in Oe)_t.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&$t)for(var nt of $t(Oe))Te.indexOf(nt)<0&&Jt.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},rt=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const ye=null,ut=(Oe,Te)=>{var le=Oe,{problemset:nt,globalSetting:Ln,loading:Pn,dispatch:en,editData:ht}=le,ce=jt(le,["problemset","globalSetting","loading","dispatch","editData"]);const Ue=(0,de.useIntl)(),[Ze,dt]=(0,ee.useState)(""),[on,sn]=(0,ee.useState)(""),[pn,nn]=(0,ee.useState)([]),[Yt,fe]=(0,ee.useState)(""),[he,Me]=(0,ee.useState)(),[Ge,Xe]=(0,ee.useState)(!1),[Et,Mt]=(0,ee.useState)(5),[It,xt]=(0,ee.useState)(!1),kt=(0,de.useParams)();(0,ee.useEffect)(()=>{if(!(ht!=null&&ht.question_title)){xt(!0);return}dt(ht==null?void 0:ht.question_title),Me(ht==null?void 0:ht.is_ordered),Mt(ht==null?void 0:ht.question_score);const Xt=ht==null?void 0:ht.standard_answer.map(tn=>tn.answer_text);nn(Xt)},[nt.editData]),(0,ee.useEffect)(()=>{Xe(!1)},[It]),(0,ee.useImperativeHandle)(Te,()=>({onSave:Lt,isEdit:It}));const Lt=()=>rt(void 0,null,function*(){let Xt=[],tn=!1;if(pn.forEach((Zn,Yn)=>{Xt.push({choice_id:Yn+1,answer_text:[]}),Zn.forEach((ua,ga)=>{Xt[Yn].answer_text.push(ua),(!ua||!(0,ft.eR)(ua,1e4))&&(fe(`${Yn}-${ga}`),Ee.ZP.info(ua?"${intl.formatMessage({ id: 'problemset.answerCannotExceed10000Chars', defaultMessage: '\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26' })}":`${Ue.formatMessage({id:"problemset.answer",defaultMessage:"\u7B54\u6848"})}\uFF1A${Ue.formatMessage({id:"shixuns.cannotBeEmpty",defaultMessage:"\u4E0D\u80FD\u4E3A\u7A7A"})}`),tn=!0)})}),tn)return!1;let vn;return ht.question_id?vn=yield(0,y.Kc)({id:ht.question_id,question_title:Ze,question_type:3,question_score:Et,is_ordered:he,standard_answers:Xt}):vn=yield(0,y.iV)({exercise_bank_id:kt.topicId,question_title:Ze,question_type:3,question_score:Et,is_ordered:he,standard_answers:Xt}),vn.status===0&&(Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),xt(!1)),en({type:"polls/getExerciseBanks",payload:be({},kt)}),{name:Ze,analysis:on,standard_answers:Xt,is_ordered:he}}),cn=(Xt,tn,vn)=>{const Zn=pn.slice();if(tn&&Zn.splice(Xt,tn),vn&&Ge)for(let Yn=0;Yn<vn;Yn++)Zn.splice(Xt+Yn,0,[""]);Xe(!0),nn(Zn)},Ht=(Xt,tn,vn)=>{fe("");let Zn=pn.slice();Zn[Xt][tn]=vn,nn(Zn)},Pt=Xt=>{let tn=pn.slice();tn[Xt]=[...tn[Xt],""],nn(tn)},Zt=(Xt,tn)=>{let vn=pn.slice();if(!vn[Xt][tn]){vn[Xt]=vn[Xt].filter((Zn,Yn)=>Yn!==tn),nn(vn);return}a.default.confirm({centered:!0,okText:Ue.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Ue.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:Ue.formatMessage({id:"problemset.confirmDeleteReferenceAnswer",defaultMessage:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F"}),className:ne.modal,onOk:()=>{vn[Xt]=vn[Xt].filter((Zn,Yn)=>Yn!==tn),nn(vn)}})},Ut=Xt=>{a.default.confirm({centered:!0,okText:Ue.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Ue.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:Ue.formatMessage({id:"problemset.confirmDeleteReferenceAnswer",defaultMessage:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F"}),className:ne.modal,onOk:()=>{let tn=pn.slice();tn=pn.filter((vn,Zn)=>Xt!==Zn),nn(tn)}})},fn=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Ue.formatMessage({id:"paperlibrary.fillInTheBlankQuestion",defaultMessage:"\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(De.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:Ze,onChange:Xt=>dt(Xt),showNullButton:!0,onPlaceholderChange:cn})),ee.createElement("div",{className:"mt20"},pn.map((Xt,tn)=>ee.createElement(qe.Z,{key:tn,answers:Xt,index:tn,is_md:!0,activeOptionErrorIndex:Yt,onAnswerChange:Ht,addChildAnswer:Pt,deleteChildAnswer:Zt,deleteChildAnswermain:Ut}))),ee.createElement("div",{className:"mt20"},pn.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:he,onChange:Xt=>Me(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:""},Ue.formatMessage({id:"testPaperBank.points",defaultMessage:"\u5206\u503C"}),"\uFF1A",ee.createElement(b.Z,{value:Et,max:1e4,min:-1,onChange:Xt=>{Mt(Xt)}})," ",Ue.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),ee.createElement("aside",{className:"tr"},ht.question_id&&ee.createElement(Fe.ZP,{type:"default",onClick:()=>xt(!1)},Ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{className:"ml20",type:"primary",onClick:()=>Lt()},Ue.formatMessage({id:"questionBankAddQuestion.save",defaultMessage:"\u4FDD\u5B58"})))),Mn=[{name:Ue.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\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"}],rn=Xt=>rt(void 0,null,function*(){switch(Xt.id){case"del":let tn;a.default.confirm({centered:!0,okText:Ue.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return rt(this,null,function*(){yield(0,y.x$)({pollsId:ht.question_id}),en({type:"polls/getExerciseBanks",payload:be({},kt)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ht==null?void 0:ht.question_id,opr:Xt.id}),en({type:"polls/getExerciseBanks",payload:be({},kt)});break;case"edit":xt(!0);break}}),wn=()=>{var Xt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ht.key,"\u3001",Ue.formatMessage({id:"paperlibrary.fillInTheBlankQuestion",defaultMessage:"\u586B\u7A7A\u9898"})),"\uFF08",ht.question_score,Ue.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09"),!ht.hideAction&&Mn.map(function(tn,vn){return tn.id==="up"&&ht.key===1||tn.id==="down"&&ht.key===ht.len?null:ee.createElement(Ye.Z,{key:vn,placement:"bottom",title:tn.name},ee.createElement("span",{onClick:()=>rn(tn),className:tn.icon}))})),ee.createElement("div",{className:"mt5"},ht.question_title),ee.createElement("div",{className:ne.questionChoices},(Xt=ht==null?void 0:ht.standard_answer)==null?void 0:Xt.map(function(tn,vn){return ee.createElement(We.Z,null,ee.createElement(Ae.Z,null,Ue.formatMessage({id:"problemset.answer",defaultMessage:"\u7B54\u6848"}),"\uFF08",Ue.formatMessage({id:"problemset.fillInTheBlank1",defaultMessage:"\u586B\u7A7A"})," ",tn.choice_id,"\uFF09\uFF1A"),ee.createElement(Ae.Z,{flex:"1"},ee.createElement(_e.default,{key:vn,checked:ht.standard_answer.includes(vn),disabled:!0,value:tn.answer_text})))})))};return ee.createElement("section",{className:ne.wrap},!It&&wn(),It&&fn())};var tt=(0,de.connect)(({problemset:Oe,loading:Te,globalSetting:le})=>({problemset:Oe,globalSetting:le,loading:Te.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(ut)),wt=Object.defineProperty,Wt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Tt=(Oe,Te,le)=>Te in Oe?wt(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,ln=(Oe,Te)=>{for(var le in Te||(Te={}))bt.call(Te,le)&&Tt(Oe,le,Te[le]);if(Wt)for(var le of Wt(Te))Bt.call(Te,le)&&Tt(Oe,le,Te[le]);return Oe},Vt=(Oe,Te)=>{var le={};for(var nt in Oe)bt.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&Wt)for(var nt of Wt(Oe))Te.indexOf(nt)<0&&Bt.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},qt=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const yn=null,hn=(Oe,Te)=>{var le=Oe,{problemset:nt,globalSetting:Ln,loading:Pn,dispatch:en,onRef:ht=()=>{},editData:ce}=le,Ue=Vt(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const Ze=(0,de.useIntl)(),[dt,on]=(0,ee.useState)(""),[sn,pn]=(0,ee.useState)(""),[nn,Yt]=(0,ee.useState)(""),[fe,he]=(0,ee.useState)(5),[Me,Ge]=(0,ee.useState)(!1),Xe=(0,de.useParams)();(0,ee.useEffect)(()=>{var Lt;if(!(ce!=null&&ce.question_title)){Ge(!0);return}on(ce==null?void 0:ce.question_title),Yt((Lt=ce==null?void 0:ce.standard_answer)==null?void 0:Lt[0]),he(ce==null?void 0:ce.question_score)},[nt.editData]),(0,ee.useImperativeHandle)(Te,()=>({onSave:Et,isEdit:Me}));const Et=()=>qt(void 0,null,function*(){if(!dt)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Lt;return ce.question_id?Lt=yield(0,y.Kc)({id:ce.question_id,question_title:dt,question_type:4,question_score:fe,standard_answers:[nn]}):Lt=yield(0,y.iV)({exercise_bank_id:Xe.topicId,question_title:dt,question_type:4,question_score:fe,standard_answers:[nn]}),Lt.status===0&&(Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ge(!1),en({type:"polls/getExerciseBanks",payload:ln({},Xe)})),{name:dt,answer_texts:[nn],analysis:sn}}),Mt=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Ze.formatMessage({id:"paperlibrary.shortAnswerQuestion",defaultMessage:"\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:dt,onChange:Lt=>on(Lt)}),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.title},Ze.formatMessage({id:"questionBankAddQuestion.referenceAnswer",defaultMessage:"\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:nn,onChange:Lt=>Yt(Lt)}),ee.createElement("p",{className:""},Ze.formatMessage({id:"testPaperBank.points",defaultMessage:"\u5206\u503C"}),"\uFF1A",ee.createElement(b.Z,{value:fe,max:1e4,min:-1,onChange:Lt=>{he(Lt)}})," ",Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),ee.createElement("aside",{className:"tr"},ce.question_id&&ee.createElement(Fe.ZP,{type:"default",onClick:()=>Ge(!1)},Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{className:"ml20",type:"primary",onClick:()=>Et()},Ze.formatMessage({id:"questionBankAddQuestion.save",defaultMessage:"\u4FDD\u5B58"})))),It=[{name:Ze.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\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"}],xt=Lt=>qt(void 0,null,function*(){switch(Lt.id){case"del":let cn;a.default.confirm({centered:!0,okText:Ze.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ze.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return qt(this,null,function*(){yield(0,y.x$)({pollsId:ce.question_id}),en({type:"polls/getExerciseBanks",payload:ln({},Xe)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ce==null?void 0:ce.question_id,opr:Lt.id}),en({type:"polls/getExerciseBanks",payload:ln({},Xe)});break;case"edit":Ge(!0);break}}),kt=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ce.key,"\u3001",Ze.formatMessage({id:"paperlibrary.shortAnswerQuestion",defaultMessage:"\u7B80\u7B54\u9898"})),"\uFF08",ce.question_score,Ze.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09"),!ce.hideAction&&It.map(function(Lt,cn){return Lt.id==="up"&&ce.key===1||Lt.id==="down"&&ce.key===ce.len?null:ee.createElement(Ye.Z,{key:cn,placement:"bottom",title:Lt.name},ee.createElement("span",{onClick:()=>xt(Lt),className:Lt.icon}))})),ee.createElement("div",{className:"mt5"},ce.question_title),ee.createElement("div",{className:ne.questionChoices},ee.createElement("p",null,ee.createElement("strong",null,Ze.formatMessage({id:"questionBankAddQuestion.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"}),"\uFF1A")),ee.createElement(te.Z,{value:nn})));return ee.createElement("section",{className:ne.wrap},!Me&&kt(),Me&&Mt())};var Nn=(0,de.connect)(({problemset:Oe,loading:Te,globalSetting:le})=>({problemset:Oe,globalSetting:le,loading:Te.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(hn)),Bn=Object.defineProperty,Kn=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Qn=(Oe,Te,le)=>Te in Oe?Bn(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,zn=(Oe,Te)=>{for(var le in Te||(Te={}))ea.call(Te,le)&&Qn(Oe,le,Te[le]);if(Kn)for(var le of Kn(Te))jn.call(Te,le)&&Qn(Oe,le,Te[le]);return Oe},Hn=(Oe,Te)=>{var le={};for(var nt in Oe)ea.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&Kn)for(var nt of Kn(Oe))Te.indexOf(nt)<0&&jn.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},bn=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const aa=null,Vn=(Oe,Te)=>{var le=Oe,{problemset:nt,globalSetting:Ln,loading:Pn,dispatch:en,editData:ht}=le,ce=Hn(le,["problemset","globalSetting","loading","dispatch","editData"]);const Ue=(0,de.useIntl)(),[Ze,dt]=(0,ee.useState)(""),[on,sn]=(0,ee.useState)(""),[pn,nn]=(0,ee.useState)(""),[Yt,fe]=(0,ee.useState)([]),[he,Me]=(0,ee.useState)(""),[Ge,Xe]=(0,ee.useState)(),[Et,Mt]=(0,ee.useState)(!1),[It,xt]=(0,ee.useState)([]),[kt,Lt]=(0,ee.useState)(!1),cn=(0,de.useParams)();(0,ee.useEffect)(()=>{var Mn;ht.edit&&Lt(!0),dt(ht.shixun_name),sn(ht.question_title);const rn=[];(Mn=ht.shixun)==null||Mn.map(wn=>{rn.push(wn.challenge_score)}),xt(rn)},[ht]),(0,ee.useEffect)(()=>{Mt(!1)},[kt]),(0,ee.useImperativeHandle)(Te,()=>({onSave:Ht,isEdit:kt}));const Ht=()=>bn(void 0,null,function*(){let Mn=[];if(!1)return!1;let wn;return ht.question_id?wn=yield(0,y.Kc)({id:ht.question_id,question_title:on,shixun_name:Ze,shixun_id:ht.shixun_id,question_type:5,question_scores:It}):wn=yield(0,y.iV)({exercise_bank_id:cn.topicId,question_title:on,shixun_name:Ze,shixun_id:ht.shixun_id,question_type:5,question_scores:It}),wn.status===0&&(Ee.ZP.success("\u4FDD\u5B58\u6210\u529F"),Lt(!1)),yield en({type:"polls/getExerciseBanks",payload:zn({},cn)}),{name:on,analysis:pn,standard_answers:Mn,is_ordered:Ge}}),Pt=()=>{var Mn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Ue.formatMessage({id:"paperlibrary.practicalQuestion",defaultMessage:"\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(_e.default,{defaultValue:Ze,onChange:rn=>{dt(rn.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:on,onChange:rn=>{sn(rn)}})),ee.createElement("div",{className:"mt20"},(Mn=ht.shixun)==null?void 0:Mn.map((rn,wn)=>ee.createElement(We.Z,{gutter:[20,20]},ee.createElement(Ae.Z,{flex:"1"},wn+1,".",rn.challenge_name),ee.createElement(Ae.Z,null,ee.createElement(b.Z,{defaultValue:It[wn],onChange:Xt=>{It[wn]=Xt,xt(It),console.log("srore:L",It[wn])}}))))),ee.createElement("div",{className:"mt20"},Yt.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:Ge,onChange:rn=>Xe(rn.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"},!(ht!=null&&ht.edit)&&ee.createElement(Fe.ZP,{type:"default",onClick:()=>Lt(!1)},Ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{className:"ml20",type:"primary",onClick:()=>Ht()},Ue.formatMessage({id:"questionBankAddQuestion.save",defaultMessage:"\u4FDD\u5B58"}))))},Zt=[{name:Ue.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\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=>bn(void 0,null,function*(){switch(Mn.id){case"del":let rn;a.default.confirm({centered:!0,okText:Ue.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return bn(this,null,function*(){yield(0,y.x$)({pollsId:ht.question_id}),en({type:"polls/getExerciseBanks",payload:zn({},cn)})})}});break;case"up":case"down":yield(0,y.W)({exerciseId:ht==null?void 0:ht.question_id,opr:Mn.id}),en({type:"polls/getExerciseBanks",payload:zn({},cn)});break;case"edit":Lt(!0);break}}),fn=()=>{var Mn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},ht.key,"\u3001",Ue.formatMessage({id:"paperlibrary.practicalQuestion",defaultMessage:"\u5B9E\u8BAD\u9898"})),"\uFF08",ht.question_score,Ue.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09"),ee.createElement("div",{className:"tr"},ee.createElement(de.Link,{target:"_blank",to:`/shixuns/${ht.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!ht.hideAction&&Zt.map(function(rn,wn){return rn.id==="up"&&ht.key===1||rn.id==="down"&&ht.key===ht.len?null:ee.createElement(Ye.Z,{key:wn,placement:"bottom",title:rn.name},ee.createElement("span",{onClick:()=>Ut(rn),className:rn.icon}))}))),ee.createElement("div",{className:"font16"},ht.shixun_name),ee.createElement("div",{className:"mt30"}),(Mn=ht.shixun)==null?void 0:Mn.map(function(rn,wn){return ee.createElement("div",{key:wn},wn+1,Ue.formatMessage({id:"shixuns.part",defaultMessage:"\u5173"})," ",ee.createElement("span",{className:"ml10"},rn.challenge_name)," ",ee.createElement("span",{className:"ml10"},rn.challenge_score))}))};return ee.createElement("section",{className:ne.wrap},!kt&&fn(),kt&&Pt())};var An=(0,de.connect)(({problemset:Oe,loading:Te,globalSetting:le})=>({problemset:Oe,globalSetting:le,loading:Te.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Vn)),Fn=oe(72565),Sa=oe(28452),oa={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"},we=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Ft=(Oe,Te,le)=>Te in Oe?we(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,zt=(Oe,Te)=>{for(var le in Te||(Te={}))Ce.call(Te,le)&&Ft(Oe,le,Te[le]);if(Be)for(var le of Be(Te))st.call(Te,le)&&Ft(Oe,le,Te[le]);return Oe},Cn=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const{Search:un}=_e.default,Qt=({classroomList:Oe,loading:Te,dispatch:le,callback:nt})=>{var Ln;const Pn=(0,de.useIntl)(),en=(0,de.useParams)(),ht=(0,de.useLocation)(),{actionTabs:ce}=Oe,[Ue]=se.default.useForm(),{shixunLists:Ze}=Oe,[dt,on]=(0,ee.useState)([]),[sn,pn]=(0,ee.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1}),nn=[{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:Pn.formatMessage({id:"questionBankList.difficulty",defaultMessage:"\u96BE\u5EA6"}),children:[{name:Pn.formatMessage({id:"personalHomepageclassrooms.all",defaultMessage:"\u5168\u90E8"}),id:"",type:"diff"},{name:Pn.formatMessage({id:"competitions.beginner",defaultMessage:"\u521D\u7EA7"}),id:1,type:"diff"},{name:Pn.formatMessage({id:"competitions.intermediate",defaultMessage:"\u4E2D\u7EA7"}),id:2,type:"diff"},{name:Pn.formatMessage({id:"competitions.intermediateAdvanced",defaultMessage:"\u4E2D\u9AD8\u7EA7"}),id:3,type:"diff"},{name:Pn.formatMessage({id:"competitions.advanced",defaultMessage:"\u9AD8\u7EA7"}),id:4,type:"diff"}]}];return(0,ee.useEffect)(()=>{le({type:"classroomList/getShixunLists",payload:zt({},sn)})},[en.categoryId]),(0,ee.useEffect)(()=>{on([])},[Oe.actionTabs.key]),Oe.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:ee.createElement(Fn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:Oe.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:oa.drawer,footer:ee.createElement("div",{className:"tc"},ee.createElement(Fe.ZP,{size:"middle",onClick:()=>{le({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},Pn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ee.createElement(Fe.ZP,{size:"middle",onClick:()=>Cn(void 0,null,function*(){var Yt;dt.length>1?Ee.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):dt.length===0?Ee.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(nt&&nt((Yt=Ze==null?void 0:Ze.shixun_list)==null?void 0:Yt.filter(fe=>fe.id===dt[0])[0]),le({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},ee.createElement("section",{className:"tc"},ee.createElement(un,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:oa.search,onSearch:Yt=>{sn.keyword=Yt,le({type:"classroomList/getShixunLists",payload:zt({},sn)})}})),ee.createElement("section",{className:"edu-container"},nn.map(function(Yt,fe){var he;return ee.createElement("ul",{className:oa.menu,key:fe},ee.createElement("li",null,Yt.name),(he=Yt==null?void 0:Yt.children)==null?void 0:he.map(function(Me,Ge){return ee.createElement("li",{key:Ge,className:sn[Yt.id]==Me.id?oa.actived:"",onClick:()=>{sn[Yt.id]=Me.id,pn(zt({},sn)),le({type:"classroomList/getShixunLists",payload:zt({},sn)})}},ee.createElement("strong",null,Me.name))}))}),(Ln=Ze==null?void 0:Ze.shixun_list)==null?void 0:Ln.map(function(Yt,fe){return ee.createElement("div",{className:oa.listItem,key:fe},ee.createElement(E.default,{checked:dt.includes(Yt.id),value:Yt.id,onChange:he=>{let Me=dt.indexOf(Yt.id);dt.indexOf(Yt.id)>-1?on(dt.filter(Ge=>Ge!==Yt.id)):on(dt.concat(Yt.id))}}),ee.createElement("div",{className:oa.info},ee.createElement("div",{className:oa.title},ee.createElement("div",{className:oa.titleLeft},ee.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Yt.title}}))),ee.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},ee.createElement("span",{className:oa.description,dangerouslySetInnerHTML:{__html:Yt.description}})),ee.createElement("div",{className:" mt15"},Yt.challenge_names.map(function(he,Me){return ee.createElement("span",{key:Me,className:"mr30"},Me+1,Pn.formatMessage({id:"shixuns.part",defaultMessage:"\u5173"})," ",he," ")})),ee.createElement(me.Z,{dashed:!0}),ee.createElement("div",{className:"c-light-black mt20"},ee.createElement("span",null,Yt.author_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,Yt.author_school_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,Pn.formatMessage({id:"competitions.difficultyCoefficient",defaultMessage:"\u96BE\u5EA6\u7CFB\u6570"}),":",(0,ft.Mr)(Pn,Yt.level)),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,Pn.formatMessage({id:"personalHomepagePracticalCourses.numberOfLearners",defaultMessage:"\u5B66\u4E60\u4EBA\u6570"}),":"),ee.createElement("span",null,Yt.study_count))))}),ee.createElement("p",null)),ee.createElement("div",{className:"tc"},ee.createElement(Sa.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:Ze==null?void 0:Ze.shixuns_count,onChange:Yt=>{sn.page=Yt,on([]),le({type:"classroomList/getShixunLists",payload:zt({},sn)})}})))};var In=(0,de.connect)(({classroomList:Oe,loading:Te})=>({classroomList:Oe,loading:Te}))(Qt),ta={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"},Xn=Object.defineProperty,ct=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable,ia=(Oe,Te,le)=>Te in Oe?Xn(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:le}):Oe[Te]=le,Un=(Oe,Te)=>{for(var le in Te||(Te={}))En.call(Te,le)&&ia(Oe,le,Te[le]);if(ct)for(var le of ct(Te))da.call(Te,le)&&ia(Oe,le,Te[le]);return Oe},Rn=(Oe,Te)=>{var le={};for(var nt in Oe)En.call(Oe,nt)&&Te.indexOf(nt)<0&&(le[nt]=Oe[nt]);if(Oe!=null&&ct)for(var nt of ct(Oe))Te.indexOf(nt)<0&&da.call(Oe,nt)&&(le[nt]=Oe[nt]);return le},ha=(Oe,Te,le)=>new Promise((nt,Ln)=>{var Pn=ce=>{try{ht(le.next(ce))}catch(Ue){Ln(Ue)}},en=ce=>{try{ht(le.throw(ce))}catch(Ue){Ln(Ue)}},ht=ce=>ce.done?nt(ce.value):Promise.resolve(ce.value).then(Pn,en);ht((le=le.apply(Oe,Te)).next())});const{SubMenu:Pa}=je.default,{Content:Ea,Sider:pa}=ke.default,va=Oe=>{var Te=Oe,{polls:le,globalSetting:nt,loading:Ln,user:Pn,dispatch:en}=Te,ht=Rn(Te,["polls","globalSetting","loading","user","dispatch"]),ce,Ue,Ze,dt,on,sn,pn,nn,Yt,fe,he,Me,Ge,Xe,Et,Mt,It,xt,kt,Lt,cn,Ht,Pt,Zt,Ut,fn,Mn,rn,wn,Xt,tn,vn,Zn,Yn,ua,ga,ma,ca,xa,Dt,pt,Ot,Rt,xn,Dn,Jn,Tn,kn,Gn,la,ra,La,ba,Ca,wa,_n;const gn=(0,de.useIntl)(),$n=(0,de.useParams)(),Ta=(0,de.useLocation)(),{userInfo:Ba}=Pn,[Fa]=se.default.useForm(),[sa,Ma]=(0,ee.useState)([]),[fa,Na]=(0,ee.useState)(!1),Wn=[{name:"\u9009\u62E9\u9898",id:0},{name:gn.formatMessage({id:"paperlibrary.trueFalseQuestion",defaultMessage:"\u5224\u65AD\u9898"}),id:2},{name:gn.formatMessage({id:"paperlibrary.fillInTheBlankQuestion",defaultMessage:"\u586B\u7A7A\u9898"}),id:3},{name:gn.formatMessage({id:"paperlibrary.shortAnswerQuestion",defaultMessage:"\u7B80\u7B54\u9898"}),id:4},{name:gn.formatMessage({id:"paperlibrary.practicalQuestion",defaultMessage:"\u5B9E\u8BAD\u9898"}),id:5}],qn=(0,ee.useRef)();(0,ee.useEffect)(()=>{var On,ya,Aa,za,Da,Ga;(On=le.exerciseBanks)!=null&&On.exercise_questions&&(Ma([...(ya=le.exerciseBanks)==null?void 0:ya.exercise_questions]),Fa.setFieldsValue({exercise_name:(za=(Aa=le.exerciseBanks)==null?void 0:Aa.exercise)==null?void 0:za.exercise_name,exercise_description:(Ga=(Da=le.exerciseBanks)==null?void 0:Da.exercise)==null?void 0:Ga.exercise_description}))},[le.exerciseBanks]),(0,ee.useEffect)(()=>{en({type:"polls/getExerciseBanks",payload:Un({},$n)})},[$n.categoryId]);const Oa=()=>ha(void 0,null,function*(){var On,ya;yield Fa.validateFields();const Aa=Fa.getFieldValue();Aa.is_md=!0,Aa.topicId=(ya=(On=le.exerciseBanks)==null?void 0:On.exercise)==null?void 0:ya.id,Na(!1),yield(0,y.hO)(Un({},Aa)),en({type:"polls/getExerciseBanks",payload:Un({},$n)})}),$a=On=>ha(void 0,null,function*(){const ya=yield qn==null?void 0:qn.current;if(ya!=null&&ya.isEdit){Ee.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}On===5?en({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):Ma([...sa,{question_type:On}])}),Ia=function(){return sa==null?void 0:sa.map(function(On,ya){if(On.key=ya+1,On.len=sa.length,On.question_type===0)return ee.createElement("aside",null,ee.createElement(Gt,{ref:qn,editData:On}),ee.createElement(me.Z,null));if(On.question_type===1)return ee.createElement("aside",null,ee.createElement($e,{ref:qn,editData:On}),ee.createElement(me.Z,null));if(On.question_type===2)return ee.createElement("aside",null,ee.createElement(Le,{ref:qn,editData:On}),ee.createElement(me.Z,null));if(On.question_type===3)return ee.createElement("aside",null,ee.createElement(tt,{editData:On}),ee.createElement(me.Z,null));if(On.question_type===4)return ee.createElement("aside",null,ee.createElement(Nn,{editData:On}),ee.createElement(me.Z,null));if(On.question_type===5)return ee.createElement("aside",null,ee.createElement(An,{editData:On}),ee.createElement(me.Z,null))})};return ee.createElement("section",{className:"edu-container"},ee.createElement("section",{className:"animated fadeIn"},ee.createElement("aside",{className:"mt10"},Ba&&ee.createElement(Qe.Z,{separator:">"},ee.createElement(Qe.Z.Item,null,ee.createElement(de.Link,{to:`/users/${Ba.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),ee.createElement(Qe.Z.Item,null,ee.createElement(de.Link,{to:`/users/${Ba==null?void 0:Ba.login}/topics/${$n.topicId}/${$n.topictype}/exercise/detail`},gn.formatMessage({id:"personalHomepageclassrooms.details",defaultMessage:"\u8BE6\u60C5"}))),ee.createElement(Qe.Z.Item,null,gn.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"})))),ee.createElement("aside",{className:[ta.title,"mt20"].join(" ")},ee.createElement(We.Z,{style:{width:"100%"},align:"middle"},ee.createElement(Ae.Z,{flex:"1"},ee.createElement("strong",{className:"font20 ml5"},gn.formatMessage({id:"classroomExams.editTestPaper",defaultMessage:"\u7F16\u8F91\u8BD5\u5377"})),ee.createElement(ft.VV,{status:[(Ue=(ce=le.exerciseBanks)==null?void 0:ce.exercise)!=null&&Ue.is_public?gn.formatMessage({id:"common.public",defaultMessage:"\u516C\u5F00"}):"\u79C1\u6709"]})),ee.createElement(Ae.Z,null,ee.createElement(de.Link,{className:"font16 c-light-black",to:`/users/${Ba.login}/topics/personal`},"\u8FD4\u56DE"))))),ee.createElement("section",{className:[ta.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!fa&&ee.createElement("aside",null,ee.createElement("div",{className:ta.containerDesc},ee.createElement("div",null,(dt=(Ze=le.exerciseBanks)==null?void 0:Ze.exercise)==null?void 0:dt.exercise_name),ee.createElement("div",null,ee.createElement(Ye.Z,{title:"\u7F16\u8F91"},ee.createElement("span",{onClick:()=>Na(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),ee.createElement("div",{className:"c-light-black"},(sn=(on=le.exerciseBanks)==null?void 0:on.exercise)==null?void 0:sn.exercise_description)),fa&&ee.createElement(se.default,{layout:"vertical",form:Fa},ee.createElement(se.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},ee.createElement(_e.default,{placeholder:"\u8BD5\u5377\u6807\u9898"})),ee.createElement(se.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},ee.createElement(_e.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E"})),ee.createElement(se.default.Item,{className:"tr"},ee.createElement(Fe.ZP,{type:"primary",onClick:()=>{Oa()}},gn.formatMessage({id:"classroomExams.save",defaultMessage:"\u4FDD\u5B58"}))))),ee.createElement("p",{className:"mt10",style:{display:"flex"}},ee.createElement("span",{className:"fl",style:{flex:"1"}},!!((nn=(pn=le.exerciseBanks)==null?void 0:pn.exercise_types)!=null&&nn.q_singles)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.singleChoiceQuestion",defaultMessage:"\u5355\u9009\u9898"}),(fe=(Yt=le.exerciseBanks)==null?void 0:Yt.exercise_types)==null?void 0:fe.q_singles,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(Me=(he=le.exerciseBanks)==null?void 0:he.exercise_types)==null?void 0:Me.q_singles_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),!!((Xe=(Ge=le.exerciseBanks)==null?void 0:Ge.exercise_types)!=null&&Xe.q_doubles)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.multipleChoiceQuestion",defaultMessage:"\u591A\u9009\u9898"}),(Mt=(Et=le.exerciseBanks)==null?void 0:Et.exercise_types)==null?void 0:Mt.q_doubles,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(xt=(It=le.exerciseBanks)==null?void 0:It.exercise_types)==null?void 0:xt.q_doubles_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),!!((Lt=(kt=le.exerciseBanks)==null?void 0:kt.exercise_types)!=null&&Lt.q_judges)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.trueFalseQuestion",defaultMessage:"\u5224\u65AD\u9898"}),(Ht=(cn=le.exerciseBanks)==null?void 0:cn.exercise_types)==null?void 0:Ht.q_judges,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(Zt=(Pt=le.exerciseBanks)==null?void 0:Pt.exercise_types)==null?void 0:Zt.q_judges_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),!!((fn=(Ut=le.exerciseBanks)==null?void 0:Ut.exercise_types)!=null&&fn.q_nulls)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.fillInTheBlankQuestion",defaultMessage:"\u586B\u7A7A\u9898"}),(rn=(Mn=le.exerciseBanks)==null?void 0:Mn.exercise_types)==null?void 0:rn.q_nulls,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(Xt=(wn=le.exerciseBanks)==null?void 0:wn.exercise_types)==null?void 0:Xt.q_nulls_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),!!((vn=(tn=le.exerciseBanks)==null?void 0:tn.exercise_types)!=null&&vn.q_mains)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.shortAnswerQuestion",defaultMessage:"\u7B80\u7B54\u9898"}),(Yn=(Zn=le.exerciseBanks)==null?void 0:Zn.exercise_types)==null?void 0:Yn.q_mains,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(ga=(ua=le.exerciseBanks)==null?void 0:ua.exercise_types)==null?void 0:ga.q_mains_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),!!((ca=(ma=le.exerciseBanks)==null?void 0:ma.exercise_types)!=null&&ca.q_shixuns)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.practicalQuestion",defaultMessage:"\u5B9E\u8BAD\u9898"}),(Dt=(xa=le.exerciseBanks)==null?void 0:xa.exercise_types)==null?void 0:Dt.q_shixuns,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(Ot=(pt=le.exerciseBanks)==null?void 0:pt.exercise_types)==null?void 0:Ot.q_shixuns_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})),!!((xn=(Rt=le.exerciseBanks)==null?void 0:Rt.exercise_types)!=null&&xn.q_pros)&&ee.createElement("span",{className:"ml20"},gn.formatMessage({id:"paperlibrary.programmingQuestion",defaultMessage:"\u7F16\u7A0B\u9898"}),(Jn=(Dn=le.exerciseBanks)==null?void 0:Dn.exercise_types)==null?void 0:Jn.q_pros,gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",(kn=(Tn=le.exerciseBanks)==null?void 0:Tn.exercise_types)==null?void 0:kn.q_pros_scores,gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}))),ee.createElement("span",{className:"fr"},!!((la=(Gn=le.exerciseBanks)==null?void 0:Gn.exercise_types)!=null&&la.q_counts)&&ee.createElement("span",null,"\u5408\u8BA1 ",ee.createElement("span",{className:"color-blue"},(La=(ra=le.exerciseBanks)==null?void 0:ra.exercise_types)==null?void 0:La.q_counts)," ",gn.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",gn.formatMessage({id:"common.total",defaultMessage:"\u5171"})," ",ee.createElement("span",{className:`${((Ca=(ba=le.exerciseBanks)==null?void 0:ba.exercise_types)==null?void 0:Ca.q_scores)>100?"color-red font-bd":"color-orange"}`},(_n=(wa=le.exerciseBanks)==null?void 0:wa.exercise_types)==null?void 0:_n.q_scores)," ",gn.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})))),sa!=""&&ee.createElement("section",{className:[ta.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Ia()),ee.createElement("section",{style:{display:"flex"},className:[ta.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ee.createElement("div",{style:{flex:"1"}},Wn.map(function(On,ya){return ee.createElement(Fe.ZP,{className:"mr20",type:"primary",onClick:()=>$a(On.id)},ee.createElement(ae.Z,{className:"mr5"}),On.name)}))),ee.createElement(In,{callback:On=>{sa.push({shixun:On.challenge_names.map(ya=>({challenge_name:ya,challenge_score:5})),shixun_name:On.title,shixun_id:On.id,question_type:5,edit:!0}),Ma([...sa])}}))};var na=(0,de.connect)(({polls:Oe,loading:Te,user:le,globalSetting:nt})=>({polls:Oe,globalSetting:nt,user:le,loading:Te.effects}))(va)},57838:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return de}});var ee=oe(67294);function de(){const[,je]=ee.useReducer(ke=>ke+1,0);return je}},85673:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return lt}});var ee=oe(94184),de=oe.n(ee),je=oe(37419),ke=oe(1337),se=oe(67294),Ee=oe(96159),me=oe(53124),Qe=oe(42922),We=oe(35874);const Ae=$e=>{let{children:it}=$e;const{getPrefixCls:et}=se.useContext(me.E_),Ve=et("breadcrumb");return se.createElement("li",{className:`${Ve}-separator`,"aria-hidden":"true"},it===""?it:it||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var Ye=Ae,_e=function($e,it){var et={};for(var Ve in $e)Object.prototype.hasOwnProperty.call($e,Ve)&&it.indexOf(Ve)<0&&(et[Ve]=$e[Ve]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ve=Object.getOwnPropertySymbols($e);at<Ve.length;at++)it.indexOf(Ve[at])<0&&Object.prototype.propertyIsEnumerable.call($e,Ve[at])&&(et[Ve[at]]=$e[Ve[at]]);return et};function Fe($e,it){if($e.title===void 0||$e.title===null)return null;const et=Object.keys(it).join("|");return typeof $e.title=="object"?$e.title:String($e.title).replace(new RegExp(`:(${et})`,"g"),(Ve,at)=>it[at]||Ve)}function ae($e,it,et,Ve){if(et==null)return null;const{className:at,onClick:At}=it,an=_e(it,["className","onClick"]),dn=Object.assign(Object.assign({},(0,ke.Z)(an,{data:!0,aria:!0})),{onClick:At});return Ve!==void 0?se.createElement("a",Object.assign({},dn,{className:de()(`${$e}-link`,at),href:Ve}),et):se.createElement("span",Object.assign({},dn,{className:de()(`${$e}-link`,at)}),et)}function y($e,it){return(Ve,at,At,an,dn)=>{if(it)return it(Ve,at,At,an);const Sn=Fe(Ve,at);return ae($e,Ve,Sn,dn)}}var a=function($e,it){var et={};for(var Ve in $e)Object.prototype.hasOwnProperty.call($e,Ve)&&it.indexOf(Ve)<0&&(et[Ve]=$e[Ve]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ve=Object.getOwnPropertySymbols($e);at<Ve.length;at++)it.indexOf(Ve[at])<0&&Object.prototype.propertyIsEnumerable.call($e,Ve[at])&&(et[Ve[at]]=$e[Ve[at]]);return et};const E=$e=>{const{prefixCls:it,separator:et="/",children:Ve,menu:at,overlay:At,dropdownProps:an,href:dn}=$e,Ne=(He=>{if(at||At){const ot=Object.assign({},an);if(at){const Gt=at||{},{items:mt}=Gt,Ct=a(Gt,["items"]);ot.menu=Object.assign(Object.assign({},Ct),{items:mt==null?void 0:mt.map((Se,St)=>{var{key:Kt,title:mn,label:yt,path:Je}=Se,Ie=a(Se,["key","title","label","path"]);let xe=yt!=null?yt:mn;return Je&&(xe=se.createElement("a",{href:`${dn}${Je}`},xe)),Object.assign(Object.assign({},Ie),{key:Kt!=null?Kt:St,label:xe})})})}else At&&(ot.overlay=At);return se.createElement(We.Z,Object.assign({placement:"bottom"},ot),se.createElement("span",{className:`${it}-overlay-link`},He,se.createElement(Qe.Z,null)))}return He})(Ve);return Ne!=null?se.createElement(se.Fragment,null,se.createElement("li",null,Ne),et&&se.createElement(Ye,null,et)):null},b=$e=>{const{prefixCls:it,children:et,href:Ve}=$e,at=a($e,["prefixCls","children","href"]),{getPrefixCls:At}=se.useContext(me.E_),an=At("breadcrumb",it);return se.createElement(E,Object.assign({},at,{prefixCls:an}),ae(an,at,et,Ve))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),te=oe(67968),ne=oe(45503);const re=$e=>{const{componentCls:it,iconCls:et}=$e;return{[it]:Object.assign(Object.assign({},(0,z.Wf)($e)),{color:$e.itemColor,fontSize:$e.fontSize,[et]:{fontSize:$e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:$e.linkColor,transition:`color ${$e.motionDurationMid}`,padding:`0 ${$e.paddingXXS}px`,borderRadius:$e.borderRadiusSM,height:$e.lineHeight*$e.fontSize,display:"inline-block",marginInline:-$e.marginXXS,"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover}},(0,z.Qy)($e)),"li:last-child":{color:$e.lastItemColor},[`${it}-separator`]:{marginInline:$e.separatorMargin,color:$e.separatorColor},[`${it}-link`]:{[`
> ${et} + span,
> ${et} + a
`]:{marginInlineStart:$e.marginXXS}},[`${it}-overlay-link`]:{borderRadius:$e.borderRadiusSM,height:$e.lineHeight*$e.fontSize,display:"inline-block",padding:`0 ${$e.paddingXXS}px`,marginInline:-$e.marginXXS,[`> ${et}`]:{marginInlineStart:$e.marginXXS,fontSize:$e.fontSizeIcon},"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover,a:{color:$e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${$e.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,te.Z)("Breadcrumb",$e=>{const it=(0,ne.TS)($e,{});return[re(it)]},$e=>({itemColor:$e.colorTextDescription,lastItemColor:$e.colorText,iconFontSize:$e.fontSize,linkColor:$e.colorTextDescription,linkHoverColor:$e.colorText,separatorColor:$e.colorTextDescription,separatorMargin:$e.marginXS})),ge=function($e,it){var et={};for(var Ve in $e)Object.prototype.hasOwnProperty.call($e,Ve)&&it.indexOf(Ve)<0&&(et[Ve]=$e[Ve]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ve=Object.getOwnPropertySymbols($e);at<Ve.length;at++)it.indexOf(Ve[at])<0&&Object.prototype.propertyIsEnumerable.call($e,Ve[at])&&(et[Ve[at]]=$e[Ve[at]]);return et};function ve($e){const{breadcrumbName:it,children:et}=$e,Ve=ge($e,["breadcrumbName","children"]),at=Object.assign({title:it},Ve);return et&&(at.menu={items:et.map(At=>{var{breadcrumbName:an}=At,dn=ge(At,["breadcrumbName"]);return Object.assign(Object.assign({},dn),{title:an})})}),at}function Pe($e,it){return(0,se.useMemo)(()=>$e||(it?it.map(ve):null),[$e,it])}var ze=function($e,it){var et={};for(var Ve in $e)Object.prototype.hasOwnProperty.call($e,Ve)&&it.indexOf(Ve)<0&&(et[Ve]=$e[Ve]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ve=Object.getOwnPropertySymbols($e);at<Ve.length;at++)it.indexOf(Ve[at])<0&&Object.prototype.propertyIsEnumerable.call($e,Ve[at])&&(et[Ve[at]]=$e[Ve[at]]);return et};const pe=($e,it)=>{if(it===void 0)return it;let et=(it||"").replace(/^\//,"");return Object.keys($e).forEach(Ve=>{et=et.replace(`:${Ve}`,$e[Ve])}),et},Ke=$e=>{const{prefixCls:it,separator:et="/",style:Ve,className:at,rootClassName:At,routes:an,items:dn,children:Sn,itemRender:Ne,params:He={}}=$e,ot=ze($e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:mt,breadcrumb:Ct}=se.useContext(me.E_);let Se;const St=Gt("breadcrumb",it),[Kt,mn]=ie(St),yt=Pe(dn,an),Je=y(St,Ne);if(yt&&yt.length>0){const Le=[],De=dn||an;Se=yt.map((qe,ft)=>{const{path:Nt,key:$t,type:_t,menu:Jt,overlay:ue,onClick:be,className:jt,separator:rt,dropdownProps:ye}=qe,ut=pe(He,Nt);ut!==void 0&&Le.push(ut);const tt=$t!=null?$t:ft;if(_t==="separator")return se.createElement(Ye,{key:tt},rt);const wt={},Wt=ft===yt.length-1;Jt?wt.menu=Jt:ue&&(wt.overlay=ue);let{href:bt}=qe;return Le.length&&ut!==void 0&&(bt=`#/${Le.join("/")}`),se.createElement(E,Object.assign({key:tt},wt,(0,ke.Z)(qe,{data:!0,aria:!0}),{className:jt,dropdownProps:ye,href:bt,separator:Wt?"":et,onClick:be,prefixCls:St}),Je(qe,He,De,Le,bt))})}else if(Sn){const Le=(0,je.Z)(Sn).length;Se=(0,je.Z)(Sn).map((De,qe)=>{if(!De)return De;const ft=qe===Le-1;return(0,Ee.Tm)(De,{separator:ft?"":et,key:qe})})}const Ie=de()(St,Ct==null?void 0:Ct.className,{[`${St}-rtl`]:mt==="rtl"},at,At,mn),xe=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Ve);return Kt(se.createElement("nav",Object.assign({className:Ie,style:xe},ot),se.createElement("ol",null,Se)))};Ke.Item=x,Ke.Separator=Ye;var vt=Ke,lt=vt},84567:function(Re,gt,oe){"use strict";oe.d(gt,{default:function(){return ie}});var ee=oe(94184),de=oe.n(ee),je=oe(95860),ke=oe(67294),se=oe(53124),Ee=oe(98866),me=oe(65223),We=ke.createContext(null),Ae=oe(63185),Ye=oe(45353),_e=oe(92429),Fe=function(ge,ve){var Pe={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&ve.indexOf(ze)<0&&(Pe[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ze=Object.getOwnPropertySymbols(ge);pe<ze.length;pe++)ve.indexOf(ze[pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[pe])&&(Pe[ze[pe]]=ge[ze[pe]]);return Pe};const ae=(ge,ve)=>{var Pe;const{prefixCls:ze,className:pe,rootClassName:Ke,children:vt,indeterminate:lt=!1,style:$e,onMouseEnter:it,onMouseLeave:et,skipGroup:Ve=!1,disabled:at}=ge,At=Fe(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:an,direction:dn,checkbox:Sn}=ke.useContext(se.E_),Ne=ke.useContext(We),{isFormItemInput:He}=ke.useContext(me.aM),ot=ke.useContext(Ee.Z),Gt=(Pe=(Ne==null?void 0:Ne.disabled)||at)!==null&&Pe!==void 0?Pe:ot,mt=ke.useRef(At.value);ke.useEffect(()=>{Ne==null||Ne.registerValue(At.value)},[]),ke.useEffect(()=>{if(!Ve)return At.value!==mt.current&&(Ne==null||Ne.cancelValue(mt.current),Ne==null||Ne.registerValue(At.value),mt.current=At.value),()=>Ne==null?void 0:Ne.cancelValue(At.value)},[At.value]);const Ct=an("checkbox",ze),[Se,St]=(0,Ae.ZP)(Ct),Kt=Object.assign({},At);Ne&&!Ve&&(Kt.onChange=function(){At.onChange&&At.onChange.apply(At,arguments),Ne.toggleOption&&Ne.toggleOption({label:vt,value:At.value})},Kt.name=Ne.name,Kt.checked=Ne.value.includes(At.value));const mn=de()(`${Ct}-wrapper`,{[`${Ct}-rtl`]:dn==="rtl",[`${Ct}-wrapper-checked`]:Kt.checked,[`${Ct}-wrapper-disabled`]:Gt,[`${Ct}-wrapper-in-form-item`]:He},Sn==null?void 0:Sn.className,pe,Ke,St),yt=de()({[`${Ct}-indeterminate`]:lt},_e.A,St),Je=lt?"mixed":void 0;return Se(ke.createElement(Ye.Z,{component:"Checkbox",disabled:Gt},ke.createElement("label",{className:mn,style:Object.assign(Object.assign({},Sn==null?void 0:Sn.style),$e),onMouseEnter:it,onMouseLeave:et},ke.createElement(je.Z,Object.assign({"aria-checked":Je},Kt,{prefixCls:Ct,className:yt,disabled:Gt,ref:ve})),vt!==void 0&&ke.createElement("span",null,vt))))};var a=ke.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,ve){var Pe={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&ve.indexOf(ze)<0&&(Pe[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ze=Object.getOwnPropertySymbols(ge);pe<ze.length;pe++)ve.indexOf(ze[pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[pe])&&(Pe[ze[pe]]=ge[ze[pe]]);return Pe};const z=(ge,ve)=>{const{defaultValue:Pe,children:ze,options:pe=[],prefixCls:Ke,className:vt,rootClassName:lt,style:$e,onChange:it}=ge,et=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ve,direction:at}=ke.useContext(se.E_),[At,an]=ke.useState(et.value||Pe||[]),[dn,Sn]=ke.useState([]);ke.useEffect(()=>{"value"in et&&an(et.value||[])},[et.value]);const Ne=ke.useMemo(()=>pe.map(Ie=>typeof Ie=="string"||typeof Ie=="number"?{label:Ie,value:Ie}:Ie),[pe]),He=Ie=>{Sn(xe=>xe.filter(Le=>Le!==Ie))},ot=Ie=>{Sn(xe=>[].concat((0,E.Z)(xe),[Ie]))},Gt=Ie=>{const xe=At.indexOf(Ie.value),Le=(0,E.Z)(At);xe===-1?Le.push(Ie.value):Le.splice(xe,1),"value"in et||an(Le),it==null||it(Le.filter(De=>dn.includes(De)).sort((De,qe)=>{const ft=Ne.findIndex($t=>$t.value===De),Nt=Ne.findIndex($t=>$t.value===qe);return ft-Nt}))},mt=Ve("checkbox",Ke),Ct=`${mt}-group`,[Se,St]=(0,Ae.ZP)(mt),Kt=(0,b.Z)(et,["value","disabled"]),mn=pe.length?Ne.map(Ie=>ke.createElement(a,{prefixCls:mt,key:Ie.value.toString(),disabled:"disabled"in Ie?Ie.disabled:et.disabled,value:Ie.value,checked:At.includes(Ie.value),onChange:Ie.onChange,className:`${Ct}-item`,style:Ie.style,title:Ie.title},Ie.label)):ze,yt={toggleOption:Gt,value:At,disabled:et.disabled,name:et.name,registerValue:ot,cancelValue:He},Je=de()(Ct,{[`${Ct}-rtl`]:at==="rtl"},vt,lt,St);return Se(ke.createElement("div",Object.assign({className:Je,style:$e},Kt,{ref:ve}),ke.createElement(We.Provider,{value:yt},mn)))},te=ke.forwardRef(z);var ne=ke.memo(te);const re=a;re.Group=ne,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Re,gt,oe){"use strict";oe.d(gt,{C2:function(){return se}});var ee=oe(14747),de=oe(45503),je=oe(67968);const ke=Ee=>{const{checkboxCls:me}=Ee,Qe=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Qe]:Object.assign(Object.assign({},(0,ee.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Qe}`]:{marginInlineStart:0},[`&${Qe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,ee.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.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)(Ee))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ee.checkboxSize/14*5,height:Ee.checkboxSize/14*8,border:`${Ee.lineWidthBold}px solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${Qe}:not(${Qe}-disabled),
${me}:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{borderColor:Ee.colorPrimary}},[`${Qe}:not(${Qe}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${Qe}-checked:not(${Qe}-disabled),
${me}-checked:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:Ee.colorBgContainer,borderColor:Ee.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.fontSizeLG/2,height:Ee.fontSizeLG/2,backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Qe}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function se(Ee,me){const Qe=(0,de.TS)(me,{checkboxCls:`.${Ee}`,checkboxSize:me.controlInteractiveSize});return[ke(Qe)]}gt.ZP=(0,je.Z)("Checkbox",(Ee,me)=>{let{prefixCls:Qe}=me;return[se(Qe,Ee)]})},96074:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return _e}});var ee=oe(94184),de=oe.n(ee),je=oe(67294),ke=oe(53124),se=oe(14747),Ee=oe(67968),me=oe(45503);const Qe=Fe=>{const{componentCls:ae,sizePaddingEdgeHorizontal:y,colorSplit:a,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=Fe;return{[ae]:Object.assign(Object.assign({},(0,se.Wf)(Fe)),{borderBlockStart:`${E}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Fe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${Fe.dividerHorizontalWithTextGutterMargin}px 0`,color:Fe.colorTextHeading,fontWeight:500,fontSize:Fe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${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:a,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:Fe.colorText,fontWeight:"normal",fontSize:Fe.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:y}}})}};var We=(0,Ee.Z)("Divider",Fe=>{const ae=(0,me.TS)(Fe,{dividerHorizontalWithTextGutterMargin:Fe.margin,dividerHorizontalGutterMargin:Fe.marginLG,sizePaddingEdgeHorizontal:0});return[Qe(ae)]},Fe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Fe.marginXS})),Ae=function(Fe,ae){var y={};for(var a in Fe)Object.prototype.hasOwnProperty.call(Fe,a)&&ae.indexOf(a)<0&&(y[a]=Fe[a]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(Fe);E<a.length;E++)ae.indexOf(a[E])<0&&Object.prototype.propertyIsEnumerable.call(Fe,a[E])&&(y[a[E]]=Fe[a[E]]);return y},_e=Fe=>{const{getPrefixCls:ae,direction:y,divider:a}=je.useContext(ke.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:te,rootClassName:ne,children:re,dashed:ie,plain:ge,style:ve}=Fe,Pe=Ae(Fe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ze=ae("divider",E),[pe,Ke]=We(ze),vt=x.length>0?`-${x}`:x,lt=!!re,$e=x==="left"&&z!=null,it=x==="right"&&z!=null,et=de()(ze,a==null?void 0:a.className,Ke,`${ze}-${b}`,{[`${ze}-with-text`]:lt,[`${ze}-with-text${vt}`]:lt,[`${ze}-dashed`]:!!ie,[`${ze}-plain`]:!!ge,[`${ze}-rtl`]:y==="rtl",[`${ze}-no-default-orientation-margin-left`]:$e,[`${ze}-no-default-orientation-margin-right`]:it},te,ne),Ve=je.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),at=Object.assign(Object.assign({},$e&&{marginLeft:Ve}),it&&{marginRight:Ve});return pe(je.createElement("div",Object.assign({className:et,style:Object.assign(Object.assign({},a==null?void 0:a.style),ve)},Pe,{role:"separator"}),re&&b!=="vertical"&&je.createElement("span",{className:`${ze}-inner-text`,style:at},re)))}},72565:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return Yt}});var ee=oe(94184),de=oe.n(ee),je=oe(1413),ke=oe(97685),se=oe(67294),Ee=oe(73935);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qe={};function We(fe,he){}function Ae(fe,he){}function Ye(){Qe={}}function _e(fe,he,Me){!he&&!Qe[Me]&&(fe(!1,Me),Qe[Me]=!0)}function Fe(fe,he){_e(We,fe,he)}function ae(fe,he){_e(Ae,fe,he)}var y=null,a=oe(71002),E=oe(18459);function b(fe,he,Me){var Ge=se.useRef({});return(!("value"in Ge.current)||Me(Ge.current.condition,he))&&(Ge.current.value=fe(),Ge.current.condition=he),Ge.current.value}function x(fe,he){typeof fe=="function"?fe(he):(0,a.Z)(fe)==="object"&&fe&&"current"in fe&&(fe.current=he)}function z(){for(var fe=arguments.length,he=new Array(fe),Me=0;Me<fe;Me++)he[Me]=arguments[Me];var Ge=he.filter(function(Xe){return Xe});return Ge.length<=1?Ge[0]:function(Xe){he.forEach(function(Et){x(Et,Xe)})}}function te(){for(var fe=arguments.length,he=new Array(fe),Me=0;Me<fe;Me++)he[Me]=arguments[Me];return b(function(){return z.apply(void 0,he)},he,function(Ge,Xe){return Ge.length===Xe.length&&Ge.every(function(Et,Mt){return Et===Xe[Mt]})})}function ne(fe){var he,Me,Ge=(0,E.isMemo)(fe)?fe.type.type:fe.type;return!(typeof Ge=="function"&&!((he=Ge.prototype)!==null&&he!==void 0&&he.render)||typeof fe=="function"&&!((Me=fe.prototype)!==null&&Me!==void 0&&Me.render))}var re=se.createContext(null),ie=re,ge=oe(74902),ve=me()?se.useLayoutEffect:se.useEffect,Pe=ve,ze=function(he,Me){var Ge=React.useRef(!0);ve(function(){if(!Ge.current)return he()},Me),ve(function(){return Ge.current=!1,function(){Ge.current=!0}},[])},pe=[];function Ke(fe,he){var Me=se.useState(function(){if(!me())return null;var Zt=document.createElement("div");return Zt}),Ge=(0,ke.Z)(Me,1),Xe=Ge[0],Et=se.useRef(!1),Mt=se.useContext(ie),It=se.useState(pe),xt=(0,ke.Z)(It,2),kt=xt[0],Lt=xt[1],cn=Mt||(Et.current?void 0:function(Zt){Lt(function(Ut){var fn=[Zt].concat((0,ge.Z)(Ut));return fn})});function Ht(){Xe.parentElement||document.body.appendChild(Xe),Et.current=!0}function Pt(){var Zt;(Zt=Xe.parentElement)===null||Zt===void 0||Zt.removeChild(Xe),Et.current=!1}return Pe(function(){return fe?Mt?Mt(Ht):Ht():Pt(),Pt},[fe]),Pe(function(){kt.length&&(kt.forEach(function(Zt){return Zt()}),Lt(pe))},[kt]),[Xe,cn]}function vt(fe,he){if(!fe)return!1;if(fe.contains)return fe.contains(he);for(var Me=he;Me;){if(Me===fe)return!0;Me=Me.parentNode}return!1}var lt="data-rc-order",$e="rc-util-key",it=new Map;function et(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=fe.mark;return he?he.startsWith("data-")?he:"data-".concat(he):$e}function Ve(fe){if(fe.attachTo)return fe.attachTo;var he=document.querySelector("head");return he||document.body}function at(fe){return fe==="queue"?"prependQueue":fe?"prepend":"append"}function At(fe){return Array.from((it.get(fe)||fe).children).filter(function(he){return he.tagName==="STYLE"})}function an(fe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var Me=he.csp,Ge=he.prepend,Xe=document.createElement("style");Xe.setAttribute(lt,at(Ge)),Me!=null&&Me.nonce&&(Xe.nonce=Me==null?void 0:Me.nonce),Xe.innerHTML=fe;var Et=Ve(he),Mt=Et.firstChild;if(Ge){if(Ge==="queue"){var It=At(Et).filter(function(xt){return["prepend","prependQueue"].includes(xt.getAttribute(lt))});if(It.length)return Et.insertBefore(Xe,It[It.length-1].nextSibling),Xe}Et.insertBefore(Xe,Mt)}else Et.appendChild(Xe);return Xe}function dn(fe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=Ve(he);return At(Me).find(function(Ge){return Ge.getAttribute(et(he))===fe})}function Sn(fe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=dn(fe,he);if(Me){var Ge=Ve(he);Ge.removeChild(Me)}}function Ne(fe,he){var Me=it.get(fe);if(!Me||!vt(document,Me)){var Ge=an("",he),Xe=Ge.parentNode;it.set(fe,Xe),fe.removeChild(Ge)}}function He(){it.clear()}function ot(fe,he){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ge=Ve(Me);Ne(Ge,Me);var Xe=dn(he,Me);if(Xe){var Et,Mt;if((Et=Me.csp)!==null&&Et!==void 0&&Et.nonce&&Xe.nonce!==((Mt=Me.csp)===null||Mt===void 0?void 0:Mt.nonce)){var It;Xe.nonce=(It=Me.csp)===null||It===void 0?void 0:It.nonce}return Xe.innerHTML!==fe&&(Xe.innerHTML=fe),Xe}var xt=an(fe,Me);return xt.setAttribute(et(Me),he),xt}var Gt;function mt(fe){if(typeof document=="undefined")return 0;if(fe||Gt===void 0){var he=document.createElement("div");he.style.width="100%",he.style.height="200px";var Me=document.createElement("div"),Ge=Me.style;Ge.position="absolute",Ge.top="0",Ge.left="0",Ge.pointerEvents="none",Ge.visibility="hidden",Ge.width="200px",Ge.height="150px",Ge.overflow="hidden",Me.appendChild(he),document.body.appendChild(Me);var Xe=he.offsetWidth;Me.style.overflow="scroll";var Et=he.offsetWidth;Xe===Et&&(Et=Me.clientWidth),document.body.removeChild(Me),Gt=Xe-Et}return Gt}function Ct(fe){var he=fe.match(/^(.*)px$/),Me=Number(he==null?void 0:he[1]);return Number.isNaN(Me)?mt():Me}function Se(fe){if(typeof document=="undefined"||!fe||!(fe instanceof Element))return{width:0,height:0};var he=getComputedStyle(fe,"::-webkit-scrollbar"),Me=he.width,Ge=he.height;return{width:Ct(Me),height:Ct(Ge)}}function St(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Kt="rc-util-locker-".concat(Date.now()),mn=0;function yt(fe){var he=!!fe,Me=se.useState(function(){return mn+=1,"".concat(Kt,"_").concat(mn)}),Ge=(0,ke.Z)(Me,1),Xe=Ge[0];Pe(function(){if(he){var Et=Se(document.body).width,Mt=St();ot(`
html body {
overflow-y: hidden;
`.concat(Mt?"width: calc(100% - ".concat(Et,"px);"):"",`
}`),Xe)}else Sn(Xe);return function(){Sn(Xe)}},[he,Xe])}var Je=!1;function Ie(fe){return typeof fe=="boolean"&&(Je=fe),Je}var xe=function(he){return he===!1?!1:!me()||!he?null:typeof he=="string"?document.querySelector(he):typeof he=="function"?he():he},Le=se.forwardRef(function(fe,he){var Me=fe.open,Ge=fe.autoLock,Xe=fe.getContainer,Et=fe.debug,Mt=fe.autoDestroy,It=Mt===void 0?!0:Mt,xt=fe.children,kt=se.useState(Me),Lt=(0,ke.Z)(kt,2),cn=Lt[0],Ht=Lt[1],Pt=cn||Me;se.useEffect(function(){(It||Me)&&Ht(Me)},[Me,It]);var Zt=se.useState(function(){return xe(Xe)}),Ut=(0,ke.Z)(Zt,2),fn=Ut[0],Mn=Ut[1];se.useEffect(function(){var ca=xe(Xe);Mn(ca!=null?ca:null)});var rn=Ke(Pt&&!fn,Et),wn=(0,ke.Z)(rn,2),Xt=wn[0],tn=wn[1],vn=fn!=null?fn:Xt;yt(Ge&&Me&&me()&&(vn===Xt||vn===document.body));var Zn=null;if(xt&&ne(xt)&&he){var Yn=xt;Zn=Yn.ref}var ua=te(Zn,he);if(!Pt||!me()||fn===void 0)return null;var ga=vn===!1||Ie(),ma=xt;return he&&(ma=se.cloneElement(xt,{ref:ua})),se.createElement(ie.Provider,{value:tn},ga?ma:(0,Ee.createPortal)(ma,vn))}),De=Le,qe=De;function ft(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nt=ft()?se.useLayoutEffect:se.useEffect,$t=function(he,Me){var Ge=se.useRef(!0);Nt(function(){return he(Ge.current)},Me),Nt(function(){return Ge.current=!1,function(){Ge.current=!0}},[])},_t=function(he,Me){$t(function(Ge){if(!Ge)return he()},Me)},Jt=$t,ue=se.createContext(null),be=se.createContext({}),jt=ue,rt=oe(4942),ye=oe(87462),ut=oe(62874),tt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(he){var Me=he.keyCode;if(he.altKey&&!he.ctrlKey||he.metaKey||Me>=tt.F1&&Me<=tt.F12)return!1;switch(Me){case tt.ALT:case tt.CAPS_LOCK:case tt.CONTEXT_MENU:case tt.CTRL:case tt.DOWN:case tt.END:case tt.ESC:case tt.HOME:case tt.INSERT:case tt.LEFT:case tt.MAC_FF_META:case tt.META:case tt.NUMLOCK:case tt.NUM_CENTER:case tt.PAGE_DOWN:case tt.PAGE_UP:case tt.PAUSE:case tt.PRINT_SCREEN:case tt.RIGHT:case tt.SHIFT:case tt.UP:case tt.WIN_KEY:case tt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(he){if(he>=tt.ZERO&&he<=tt.NINE||he>=tt.NUM_ZERO&&he<=tt.NUM_MULTIPLY||he>=tt.A&&he<=tt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&he===0)return!0;switch(he){case tt.SPACE:case tt.QUESTION_MARK:case tt.NUM_PLUS:case tt.NUM_MINUS:case tt.NUM_PERIOD:case tt.NUM_DIVISION:case tt.SEMICOLON:case tt.DASH:case tt.EQUALS:case tt.COMMA:case tt.PERIOD:case tt.SLASH:case tt.APOSTROPHE:case tt.SINGLE_QUOTE:case tt.OPEN_SQUARE_BRACKET:case tt.BACKSLASH:case tt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wt=tt,Wt=`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`,bt=`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`,Bt="".concat(Wt," ").concat(bt).split(/[\s\n]+/),Tt="aria-",ln="data-";function Vt(fe,he){return fe.indexOf(he)===0}function qt(fe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me;he===!1?Me={aria:!0,data:!0,attr:!0}:he===!0?Me={aria:!0}:Me=(0,je.Z)({},he);var Ge={};return Object.keys(fe).forEach(function(Xe){(Me.aria&&(Xe==="role"||Vt(Xe,Tt))||Me.data&&Vt(Xe,ln)||Me.attr&&Bt.includes(Xe))&&(Ge[Xe]=fe[Xe])}),Ge}function yn(fe){var he=React.useRef();he.current=fe;var Me=React.useCallback(function(){for(var Ge,Xe=arguments.length,Et=new Array(Xe),Mt=0;Mt<Xe;Mt++)Et[Mt]=arguments[Mt];return(Ge=he.current)===null||Ge===void 0?void 0:Ge.call.apply(Ge,[he].concat(Et))},[]);return Me}function hn(fe){var he=React.useRef(!1),Me=React.useState(fe),Ge=_slicedToArray(Me,2),Xe=Ge[0],Et=Ge[1];React.useEffect(function(){return he.current=!1,function(){he.current=!0}},[]);function Mt(It,xt){xt&&he.current||Et(It)}return[Xe,Mt]}function Nn(fe){return fe!==void 0}function Bn(fe,he){var Me=he||{},Ge=Me.defaultValue,Xe=Me.value,Et=Me.onChange,Mt=Me.postState,It=useState(function(){return Nn(Xe)?Xe:Nn(Ge)?typeof Ge=="function"?Ge():Ge:typeof fe=="function"?fe():fe}),xt=_slicedToArray(It,2),kt=xt[0],Lt=xt[1],cn=Xe!==void 0?Xe:kt,Ht=Mt?Mt(cn):cn,Pt=useEvent(Et),Zt=useState([cn]),Ut=_slicedToArray(Zt,2),fn=Ut[0],Mn=Ut[1];useLayoutUpdateEffect(function(){var wn=fn[0];kt!==wn&&Pt(kt,wn)},[fn]),useLayoutUpdateEffect(function(){Nn(Xe)||Lt(Xe)},[Xe]);var rn=useEvent(function(wn,Xt){Lt(wn,Xt),Mn([cn],Xt)});return[Ht,rn]}var Kn=oe(33993);function ea(fe,he,Me){var Ge=se.useRef({});return(!("value"in Ge.current)||Me(Ge.current.condition,he))&&(Ge.current.value=fe(),Ge.current.condition=he),Ge.current.value}function jn(fe,he){typeof fe=="function"?fe(he):(0,a.Z)(fe)==="object"&&fe&&"current"in fe&&(fe.current=he)}function Qn(){for(var fe=arguments.length,he=new Array(fe),Me=0;Me<fe;Me++)he[Me]=arguments[Me];var Ge=he.filter(function(Xe){return Xe});return Ge.length<=1?Ge[0]:function(Xe){he.forEach(function(Et){jn(Et,Xe)})}}function zn(){for(var fe=arguments.length,he=new Array(fe),Me=0;Me<fe;Me++)he[Me]=arguments[Me];return ea(function(){return Qn.apply(void 0,he)},he,function(Ge,Xe){return Ge.length!==Xe.length||Ge.every(function(Et,Mt){return Et!==Xe[Mt]})})}function Hn(fe){var he,Me,Ge=isMemo(fe)?fe.type.type:fe.type;return!(typeof Ge=="function"&&!((he=Ge.prototype)!==null&&he!==void 0&&he.render)||typeof fe=="function"&&!((Me=fe.prototype)!==null&&Me!==void 0&&Me.render))}function bn(fe){return!isValidElement(fe)||isFragment(fe)?!1:Hn(fe)}function aa(fe,he,Me,Ge){if(!he.length)return Me;var Xe=_toArray(he),Et=Xe[0],Mt=Xe.slice(1),It;return!fe&&typeof Et=="number"?It=[]:Array.isArray(fe)?It=_toConsumableArray(fe):It=_objectSpread({},fe),Ge&&Me===void 0&&Mt.length===1?delete It[Et][Mt[0]]:It[Et]=aa(It[Et],Mt,Me,Ge),It}function Vn(fe,he,Me){var Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return he.length&&Ge&&Me===void 0&&!get(fe,he.slice(0,-1))?fe:aa(fe,he,Me,Ge)}function An(fe){return _typeof(fe)==="object"&&fe!==null&&Object.getPrototypeOf(fe)===Object.prototype}function Fn(fe){return Array.isArray(fe)?[]:{}}var Sa=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function oa(){for(var fe=arguments.length,he=new Array(fe),Me=0;Me<fe;Me++)he[Me]=arguments[Me];var Ge=Fn(he[0]);return he.forEach(function(Xe){function Et(Mt,It){var xt=new Set(It),kt=get(Xe,Mt),Lt=Array.isArray(kt);if(Lt||An(kt)){if(!xt.has(kt)){xt.add(kt);var cn=get(Ge,Mt);Lt?Ge=Vn(Ge,Mt,[]):(!cn||_typeof(cn)!=="object")&&(Ge=Vn(Ge,Mt,Fn(kt))),Sa(kt).forEach(function(Ht){Et([].concat(_toConsumableArray(Mt),[Ht]),xt)})}}else Ge=Vn(Ge,Mt,kt)}Et([])}),Ge}var we={},Be=[],Ce=function(he){Be.push(he)};function st(fe,he){if(0)var Me}function Ft(fe,he){if(0)var Me}function zt(){we={}}function Cn(fe,he,Me){!he&&!we[Me]&&(fe(!1,Me),we[Me]=!0)}function un(fe,he){Cn(st,fe,he)}function Qt(fe,he){Cn(Ft,fe,he)}un.preMessage=Ce,un.resetWarned=zt,un.noteOnce=Qt;var In=un,ta=function(he){var Me=he.prefixCls,Ge=he.className,Xe=he.style,Et=he.children,Mt=he.containerRef,It=he.id,xt=he.onMouseEnter,kt=he.onMouseOver,Lt=he.onMouseLeave,cn=he.onClick,Ht=he.onKeyDown,Pt=he.onKeyUp,Zt={onMouseEnter:xt,onMouseOver:kt,onMouseLeave:Lt,onClick:cn,onKeyDown:Ht,onKeyUp:Pt},Ut=se.useContext(be),fn=Ut.panel,Mn=zn(fn,Mt);return se.createElement(se.Fragment,null,se.createElement("div",(0,ye.Z)({id:It,className:de()("".concat(Me,"-content"),Ge),style:(0,je.Z)({},Xe),"aria-modal":"true",role:"dialog",ref:Mn},Zt),Et))},Xn=ta;function ct(fe){return typeof fe=="string"&&String(Number(fe))===fe?(In(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(fe)):fe}function En(fe){warning(!("wrapperClassName"in fe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!fe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var da={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ia(fe,he){var Me,Ge,Xe,Et,Mt=fe.prefixCls,It=fe.open,xt=fe.placement,kt=fe.inline,Lt=fe.push,cn=fe.forceRender,Ht=fe.autoFocus,Pt=fe.keyboard,Zt=fe.rootClassName,Ut=fe.rootStyle,fn=fe.zIndex,Mn=fe.className,rn=fe.id,wn=fe.style,Xt=fe.motion,tn=fe.width,vn=fe.height,Zn=fe.children,Yn=fe.contentWrapperStyle,ua=fe.mask,ga=fe.maskClosable,ma=fe.maskMotion,ca=fe.maskClassName,xa=fe.maskStyle,Dt=fe.afterOpenChange,pt=fe.onClose,Ot=fe.onMouseEnter,Rt=fe.onMouseOver,xn=fe.onMouseLeave,Dn=fe.onClick,Jn=fe.onKeyDown,Tn=fe.onKeyUp,kn=se.useRef(),Gn=se.useRef(),la=se.useRef();se.useImperativeHandle(he,function(){return kn.current});var ra=function(qn){var Oa=qn.keyCode,$a=qn.shiftKey;switch(Oa){case wt.TAB:{if(Oa===wt.TAB){if(!$a&&document.activeElement===la.current){var Ia;(Ia=Gn.current)===null||Ia===void 0||Ia.focus({preventScroll:!0})}else if($a&&document.activeElement===Gn.current){var On;(On=la.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case wt.ESC:{pt&&Pt&&(qn.stopPropagation(),pt(qn));break}}};se.useEffect(function(){if(It&&Ht){var Wn;(Wn=kn.current)===null||Wn===void 0||Wn.focus({preventScroll:!0})}},[It]);var La=se.useState(!1),ba=(0,ke.Z)(La,2),Ca=ba[0],wa=ba[1],_n=se.useContext(jt),gn;Lt===!1?gn={distance:0}:Lt===!0?gn={}:gn=Lt||{};var $n=(Me=(Ge=(Xe=gn)===null||Xe===void 0?void 0:Xe.distance)!==null&&Ge!==void 0?Ge:_n==null?void 0:_n.pushDistance)!==null&&Me!==void 0?Me:180,Ta=se.useMemo(function(){return{pushDistance:$n,push:function(){wa(!0)},pull:function(){wa(!1)}}},[$n]);se.useEffect(function(){if(It){var Wn;_n==null||(Wn=_n.push)===null||Wn===void 0||Wn.call(_n)}else{var qn;_n==null||(qn=_n.pull)===null||qn===void 0||qn.call(_n)}},[It]),se.useEffect(function(){return function(){var Wn;_n==null||(Wn=_n.pull)===null||Wn===void 0||Wn.call(_n)}},[]);var Ba=ua&&se.createElement(ut.Z,(0,ye.Z)({key:"mask"},ma,{visible:It}),function(Wn,qn){var Oa=Wn.className,$a=Wn.style;return se.createElement("div",{className:de()("".concat(Mt,"-mask"),Oa,ca),style:(0,je.Z)((0,je.Z)({},$a),xa),onClick:ga&&It?pt:void 0,ref:qn})}),Fa=typeof Xt=="function"?Xt(xt):Xt,sa={};if(Ca&&$n)switch(xt){case"top":sa.transform="translateY(".concat($n,"px)");break;case"bottom":sa.transform="translateY(".concat(-$n,"px)");break;case"left":sa.transform="translateX(".concat($n,"px)");break;default:sa.transform="translateX(".concat(-$n,"px)");break}xt==="left"||xt==="right"?sa.width=ct(tn):sa.height=ct(vn);var Ma={onMouseEnter:Ot,onMouseOver:Rt,onMouseLeave:xn,onClick:Dn,onKeyDown:Jn,onKeyUp:Tn},fa=se.createElement(ut.Z,(0,ye.Z)({key:"panel"},Fa,{visible:It,forceRender:cn,onVisibleChanged:function(qn){Dt==null||Dt(qn)},removeOnLeave:!1,leavedClassName:"".concat(Mt,"-content-wrapper-hidden")}),function(Wn,qn){var Oa=Wn.className,$a=Wn.style;return se.createElement("div",(0,ye.Z)({className:de()("".concat(Mt,"-content-wrapper"),Oa),style:(0,je.Z)((0,je.Z)((0,je.Z)({},sa),$a),Yn)},qt(fe,{data:!0})),se.createElement(Xn,(0,ye.Z)({id:rn,containerRef:qn,prefixCls:Mt,className:Mn,style:wn},Ma),Zn))}),Na=(0,je.Z)({},Ut);return fn&&(Na.zIndex=fn),se.createElement(jt.Provider,{value:Ta},se.createElement("div",{className:de()(Mt,"".concat(Mt,"-").concat(xt),Zt,(Et={},(0,rt.Z)(Et,"".concat(Mt,"-open"),It),(0,rt.Z)(Et,"".concat(Mt,"-inline"),kt),Et)),style:Na,tabIndex:-1,ref:kn,onKeyDown:ra},Ba,se.createElement("div",{tabIndex:0,ref:Gn,style:da,"aria-hidden":"true","data-sentinel":"start"}),fa,se.createElement("div",{tabIndex:0,ref:la,style:da,"aria-hidden":"true","data-sentinel":"end"})))}var Un=se.forwardRef(ia),Rn=Un,ha=function(he){var Me=he.open,Ge=Me===void 0?!1:Me,Xe=he.prefixCls,Et=Xe===void 0?"rc-drawer":Xe,Mt=he.placement,It=Mt===void 0?"right":Mt,xt=he.autoFocus,kt=xt===void 0?!0:xt,Lt=he.keyboard,cn=Lt===void 0?!0:Lt,Ht=he.width,Pt=Ht===void 0?378:Ht,Zt=he.mask,Ut=Zt===void 0?!0:Zt,fn=he.maskClosable,Mn=fn===void 0?!0:fn,rn=he.getContainer,wn=he.forceRender,Xt=he.afterOpenChange,tn=he.destroyOnClose,vn=he.onMouseEnter,Zn=he.onMouseOver,Yn=he.onMouseLeave,ua=he.onClick,ga=he.onKeyDown,ma=he.onKeyUp,ca=he.panelRef,xa=se.useState(!1),Dt=(0,ke.Z)(xa,2),pt=Dt[0],Ot=Dt[1],Rt=se.useState(!1),xn=(0,ke.Z)(Rt,2),Dn=xn[0],Jn=xn[1];Jt(function(){Jn(!0)},[]);var Tn=Dn?Ge:!1,kn=se.useRef(),Gn=se.useRef();Jt(function(){Tn&&(Gn.current=document.activeElement)},[Tn]);var la=function(wa){var _n;if(Ot(wa),Xt==null||Xt(wa),!wa&&Gn.current&&!((_n=kn.current)!==null&&_n!==void 0&&_n.contains(Gn.current))){var gn;(gn=Gn.current)===null||gn===void 0||gn.focus({preventScroll:!0})}},ra=se.useMemo(function(){return{panel:ca}},[ca]);if(!wn&&!pt&&!Tn&&tn)return null;var La={onMouseEnter:vn,onMouseOver:Zn,onMouseLeave:Yn,onClick:ua,onKeyDown:ga,onKeyUp:ma},ba=(0,je.Z)((0,je.Z)({},he),{},{open:Tn,prefixCls:Et,placement:It,autoFocus:kt,keyboard:cn,width:Pt,mask:Ut,maskClosable:Mn,inline:rn===!1,afterOpenChange:la,ref:kn},La);return se.createElement(be.Provider,{value:ra},se.createElement(qe,{open:Tn||wn||pt,autoDestroy:!1,getContainer:rn,autoLock:Ut&&(Tn||pt)},se.createElement(Rn,ba)))},Pa=ha,Ea=Pa,pa=oe(33603),va=oe(53124),na=oe(65223),Oe=oe(69760),le=fe=>{const{prefixCls:he,title:Me,footer:Ge,extra:Xe,closeIcon:Et,closable:Mt,onClose:It,headerStyle:xt,drawerStyle:kt,bodyStyle:Lt,footerStyle:cn,children:Ht}=fe,Pt=se.useCallback(rn=>se.createElement("button",{type:"button",onClick:It,"aria-label":"Close",className:`${he}-close`},rn),[It]),[Zt,Ut]=(0,Oe.Z)(Mt,Et,Pt,void 0,!0),fn=se.useMemo(()=>!Me&&!Zt?null:se.createElement("div",{style:xt,className:de()(`${he}-header`,{[`${he}-header-close-only`]:Zt&&!Me&&!Xe})},se.createElement("div",{className:`${he}-header-title`},Ut,Me&&se.createElement("div",{className:`${he}-title`},Me)),Xe&&se.createElement("div",{className:`${he}-extra`},Xe)),[Zt,Ut,Xe,xt,he,Me]),Mn=se.useMemo(()=>{if(!Ge)return null;const rn=`${he}-footer`;return se.createElement("div",{className:rn,style:cn},Ge)},[Ge,cn,he]);return se.createElement("div",{className:`${he}-wrapper-body`,style:kt},fn,se.createElement("div",{className:`${he}-body`,style:Lt},Ht),Mn)},nt=oe(4173),Ln=oe(67968),Pn=oe(45503),ht=fe=>{const{componentCls:he,motionDurationSlow:Me}=fe,Ge={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Me}`}}};return{[he]:{[`${he}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Me}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${he}-panel-motion`]:{"&-left":[Ge,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ge,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ge,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ge,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const ce=fe=>{const{componentCls:he,zIndexPopup:Me,colorBgMask:Ge,colorBgElevated:Xe,motionDurationSlow:Et,motionDurationMid:Mt,padding:It,paddingLG:xt,fontSizeLG:kt,lineHeightLG:Lt,lineWidth:cn,lineType:Ht,colorSplit:Pt,marginSM:Zt,colorIcon:Ut,colorIconHover:fn,colorText:Mn,fontWeightStrong:rn,footerPaddingBlock:wn,footerPaddingInline:Xt}=fe,tn=`${he}-content-wrapper`;return{[he]:{position:"fixed",inset:0,zIndex:Me,pointerEvents:"none","&-pure":{position:"relative",background:Xe,[`&${he}-left`]:{boxShadow:fe.boxShadowDrawerLeft},[`&${he}-right`]:{boxShadow:fe.boxShadowDrawerRight},[`&${he}-top`]:{boxShadow:fe.boxShadowDrawerUp},[`&${he}-bottom`]:{boxShadow:fe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${he}-mask`]:{position:"absolute",inset:0,zIndex:Me,background:Ge,pointerEvents:"auto"},[tn]:{position:"absolute",zIndex:Me,maxWidth:"100vw",transition:`all ${Et}`,"&-hidden":{display:"none"}},[`&-left > ${tn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:fe.boxShadowDrawerLeft},[`&-right > ${tn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:fe.boxShadowDrawerRight},[`&-top > ${tn}`]:{top:0,insetInline:0,boxShadow:fe.boxShadowDrawerUp},[`&-bottom > ${tn}`]:{bottom:0,insetInline:0,boxShadow:fe.boxShadowDrawerDown},[`${he}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Xe,pointerEvents:"auto"},[`${he}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${he}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${It}px ${xt}px`,fontSize:kt,lineHeight:Lt,borderBottom:`${cn}px ${Ht} ${Pt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${he}-extra`]:{flex:"none"},[`${he}-close`]:{display:"inline-block",marginInlineEnd:Zt,color:Ut,fontWeight:rn,fontSize:kt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Mt}`,textRendering:"auto","&:focus, &:hover":{color:fn,textDecoration:"none"}},[`${he}-title`]:{flex:1,margin:0,color:Mn,fontWeight:fe.fontWeightStrong,fontSize:kt,lineHeight:Lt},[`${he}-body`]:{flex:1,minWidth:0,minHeight:0,padding:xt,overflow:"auto"},[`${he}-footer`]:{flexShrink:0,padding:`${wn}px ${Xt}px`,borderTop:`${cn}px ${Ht} ${Pt}`},"&-rtl":{direction:"rtl"}}}};var Ue=(0,Ln.Z)("Drawer",fe=>{const he=(0,Pn.TS)(fe,{});return[ce(he),ht(he)]},fe=>({zIndexPopup:fe.zIndexPopupBase,footerPaddingBlock:fe.paddingXS,footerPaddingInline:fe.padding})),Ze=oe(16569),dt=function(fe,he){var Me={};for(var Ge in fe)Object.prototype.hasOwnProperty.call(fe,Ge)&&he.indexOf(Ge)<0&&(Me[Ge]=fe[Ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ge=Object.getOwnPropertySymbols(fe);Xe<Ge.length;Xe++)he.indexOf(Ge[Xe])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ge[Xe])&&(Me[Ge[Xe]]=fe[Ge[Xe]]);return Me};const on=null,sn={distance:180},pn=fe=>{var he;const{rootClassName:Me,width:Ge,height:Xe,size:Et="default",mask:Mt=!0,push:It=sn,open:xt,afterOpenChange:kt,onClose:Lt,prefixCls:cn,getContainer:Ht,style:Pt,className:Zt,visible:Ut,afterVisibleChange:fn}=fe,Mn=dt(fe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:rn,getPrefixCls:wn,direction:Xt,drawer:tn}=se.useContext(va.E_),vn=wn("drawer",cn),[Zn,Yn]=Ue(vn),ua=Ht===void 0&&rn?()=>rn(document.body):Ht,ga=de()({"no-mask":!Mt,[`${vn}-rtl`]:Xt==="rtl"},Me,Yn),ma=se.useMemo(()=>Ge!=null?Ge:Et==="large"?736:378,[Ge,Et]),ca=se.useMemo(()=>Xe!=null?Xe:Et==="large"?736:378,[Xe,Et]),xa={motionName:(0,pa.m)(vn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Dt=Ot=>({motionName:(0,pa.m)(vn,`panel-motion-${Ot}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),pt=(0,Ze.H)();return Zn(se.createElement(nt.BR,null,se.createElement(na.Ux,{status:!0,override:!0},se.createElement(Ea,Object.assign({prefixCls:vn,onClose:Lt,maskMotion:xa,motion:Dt},Mn,{open:xt!=null?xt:Ut,mask:Mt,push:It,width:ma,height:ca,style:Object.assign(Object.assign({},tn==null?void 0:tn.style),Pt),className:de()(tn==null?void 0:tn.className,Zt),rootClassName:ga,getContainer:ua,afterOpenChange:kt!=null?kt:fn,panelRef:pt}),se.createElement(le,Object.assign({prefixCls:vn},Mn,{onClose:Lt}))))))},nn=fe=>{const{prefixCls:he,style:Me,className:Ge,placement:Xe="right"}=fe,Et=dt(fe,["prefixCls","style","className","placement"]),{getPrefixCls:Mt}=se.useContext(va.E_),It=Mt("drawer",he),[xt,kt]=Ue(It),Lt=de()(It,`${It}-pure`,`${It}-${Xe}`,kt,Ge);return xt(se.createElement("div",{className:Lt,style:Me},se.createElement(le,Object.assign({prefixCls:It},Et))))};pn._InternalPanelDoNotUseOrYouWillBeFired=nn;var Yt=pn},35874:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return xe}});var ee=oe(67294),de=oe(91034),je=oe(94184),ke=oe.n(je),se=oe(87462),Ee=oe(4942),me=oe(97685),Qe=oe(45987),We=oe(62709),Ae=oe(71002),Ye=oe(12060);function _e(Le,De,qe){var ft=React.useRef({});return(!("value"in ft.current)||qe(ft.current.condition,De))&&(ft.current.value=Le(),ft.current.condition=De),ft.current.value}function Fe(Le,De){typeof Le=="function"?Le(De):(0,Ae.Z)(Le)==="object"&&Le&&"current"in Le&&(Le.current=De)}function ae(){for(var Le=arguments.length,De=new Array(Le),qe=0;qe<Le;qe++)De[qe]=arguments[qe];var ft=De.filter(function(Nt){return Nt});return ft.length<=1?ft[0]:function(Nt){De.forEach(function($t){Fe($t,Nt)})}}function y(){for(var Le=arguments.length,De=new Array(Le),qe=0;qe<Le;qe++)De[qe]=arguments[qe];return useMemo(function(){return ae.apply(void 0,De)},De,function(ft,Nt){return ft.length===Nt.length&&ft.every(function($t,_t){return $t===Nt[_t]})})}function a(Le){var De,qe,ft=(0,Ye.isMemo)(Le)?Le.type.type:Le.type;return!(typeof ft=="function"&&!((De=ft.prototype)!==null&&De!==void 0&&De.render)||typeof Le=="function"&&!((qe=Le.prototype)!==null&&qe!==void 0&&qe.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(De){var qe=De.keyCode;if(De.altKey&&!De.ctrlKey||De.metaKey||qe>=E.F1&&qe<=E.F12)return!1;switch(qe){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(De){if(De>=E.ZERO&&De<=E.NINE||De>=E.NUM_ZERO&&De<=E.NUM_MULTIPLY||De>=E.A&&De<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&De===0)return!0;switch(De){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(De){return+setTimeout(De,16)},z=function(De){return clearTimeout(De)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(De){return window.requestAnimationFrame(De)},z=function(De){return window.cancelAnimationFrame(De)});var te=0,ne=new Map;function re(Le){ne.delete(Le)}var ie=function(De){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var ft=te;function Nt($t){if($t===0)re(ft),De();else{var _t=x(function(){Nt($t-1)});ne.set(ft,_t)}}return Nt(qe),ft};ie.cancel=function(Le){var De=ne.get(Le);return re(De),z(De)};var ge=ie,ve=b.ESC,Pe=b.TAB;function ze(Le){var De=Le.visible,qe=Le.triggerRef,ft=Le.onVisibleChange,Nt=Le.autoFocus,$t=Le.overlayRef,_t=ee.useRef(!1),Jt=function(){if(De){var rt,ye;(rt=qe.current)===null||rt===void 0||(ye=rt.focus)===null||ye===void 0||ye.call(rt),ft==null||ft(!1)}},ue=function(){var rt;return(rt=$t.current)!==null&&rt!==void 0&&rt.focus?($t.current.focus(),_t.current=!0,!0):!1},be=function(rt){switch(rt.keyCode){case ve:Jt();break;case Pe:{var ye=!1;_t.current||(ye=ue()),ye?rt.preventDefault():Jt();break}}};ee.useEffect(function(){return De?(window.addEventListener("keydown",be),Nt&&ge(ue,3),function(){window.removeEventListener("keydown",be),_t.current=!1}):function(){_t.current=!1}},[De])}var pe=(0,ee.forwardRef)(function(Le,De){var qe=Le.overlay,ft=Le.arrow,Nt=Le.prefixCls,$t=(0,ee.useMemo)(function(){var Jt;return typeof qe=="function"?Jt=qe():Jt=qe,Jt},[qe]),_t=ae(De,$t==null?void 0:$t.ref);return ee.createElement(ee.Fragment,null,ft&&ee.createElement("div",{className:"".concat(Nt,"-arrow")}),ee.cloneElement($t,{ref:a($t)?_t:void 0}))}),Ke=pe,vt={adjustX:1,adjustY:1},lt=[0,0],$e={topLeft:{points:["bl","tl"],overflow:vt,offset:[0,-4],targetOffset:lt},top:{points:["bc","tc"],overflow:vt,offset:[0,-4],targetOffset:lt},topRight:{points:["br","tr"],overflow:vt,offset:[0,-4],targetOffset:lt},bottomLeft:{points:["tl","bl"],overflow:vt,offset:[0,4],targetOffset:lt},bottom:{points:["tc","bc"],overflow:vt,offset:[0,4],targetOffset:lt},bottomRight:{points:["tr","br"],overflow:vt,offset:[0,4],targetOffset:lt}},it=$e,et=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ve(Le,De){var qe,ft=Le.arrow,Nt=ft===void 0?!1:ft,$t=Le.prefixCls,_t=$t===void 0?"rc-dropdown":$t,Jt=Le.transitionName,ue=Le.animation,be=Le.align,jt=Le.placement,rt=jt===void 0?"bottomLeft":jt,ye=Le.placements,ut=ye===void 0?it:ye,tt=Le.getPopupContainer,wt=Le.showAction,Wt=Le.hideAction,bt=Le.overlayClassName,Bt=Le.overlayStyle,Tt=Le.visible,ln=Le.trigger,Vt=ln===void 0?["hover"]:ln,qt=Le.autoFocus,yn=Le.overlay,hn=Le.children,Nn=Le.onVisibleChange,Bn=(0,Qe.Z)(Le,et),Kn=ee.useState(),ea=(0,me.Z)(Kn,2),jn=ea[0],Qn=ea[1],zn="visible"in Le?Tt:jn,Hn=ee.useRef(null),bn=ee.useRef(null),aa=ee.useRef(null);ee.useImperativeHandle(De,function(){return Hn.current});var Vn=function(Ft){Qn(Ft),Nn==null||Nn(Ft)};ze({visible:zn,triggerRef:aa,onVisibleChange:Vn,autoFocus:qt,overlayRef:bn});var An=function(Ft){var zt=Le.onOverlayClick;Qn(!1),zt&&zt(Ft)},Fn=function(){return ee.createElement(Ke,{ref:bn,overlay:yn,prefixCls:_t,arrow:Nt})},Sa=function(){return typeof yn=="function"?Fn:Fn()},oa=function(){var Ft=Le.minOverlayWidthMatchTrigger,zt=Le.alignPoint;return"minOverlayWidthMatchTrigger"in Le?Ft:!zt},we=function(){var Ft=Le.openClassName;return Ft!==void 0?Ft:"".concat(_t,"-open")},Be=ee.cloneElement(hn,{className:ke()((qe=hn.props)===null||qe===void 0?void 0:qe.className,zn&&we()),ref:a(hn)?ae(aa,hn.ref):void 0}),Ce=Wt;return!Ce&&Vt.indexOf("contextMenu")!==-1&&(Ce=["click"]),ee.createElement(We.Z,(0,se.Z)({builtinPlacements:ut},Bn,{prefixCls:_t,ref:Hn,popupClassName:ke()(bt,(0,Ee.Z)({},"".concat(_t,"-show-arrow"),Nt)),popupStyle:Bt,action:Vt,showAction:wt,hideAction:Ce,popupPlacement:rt,popupAlign:be,popupTransitionName:Jt,popupAnimation:ue,popupVisible:zn,stretch:oa()?"minWidth":"",popup:Sa(),onPopupVisibleChange:Vn,onPopupClick:An,getPopupContainer:tt}),Be)}var at=ee.forwardRef(Ve),At=at,an=oe(60276),dn=oe(5663),Sn=oe(10366),Ne=oe(80636),He=oe(8745),ot=oe(96159),Gt=oe(53124),mt=oe(68508),Ct=oe(76529),Se=oe(46605),St=oe(66748);const Kt=null,mn=Le=>{const{menu:De,arrow:qe,prefixCls:ft,children:Nt,trigger:$t,disabled:_t,dropdownRender:Jt,getPopupContainer:ue,overlayClassName:be,rootClassName:jt,open:rt,onOpenChange:ye,visible:ut,onVisibleChange:tt,mouseEnterDelay:wt=.15,mouseLeaveDelay:Wt=.1,autoAdjustOverflow:bt=!0,placement:Bt="",overlay:Tt,transitionName:ln}=Le,{getPopupContainer:Vt,getPrefixCls:qt,direction:yn}=ee.useContext(Gt.E_),hn=ee.useMemo(()=>{const Be=qt();return ln!==void 0?ln:Bt.includes("top")?`${Be}-slide-down`:`${Be}-slide-up`},[qt,Bt,ln]),Nn=ee.useMemo(()=>Bt?Bt.includes("Center")?Bt.slice(0,Bt.indexOf("Center")):Bt:yn==="rtl"?"bottomRight":"bottomLeft",[Bt,yn]),Bn=qt("dropdown",ft),[Kn,ea]=(0,St.Z)(Bn),[,jn]=(0,Se.Z)(),Qn=ee.Children.only(Nt),zn=(0,ot.Tm)(Qn,{className:ke()(`${Bn}-trigger`,{[`${Bn}-rtl`]:yn==="rtl"},Qn.props.className),disabled:_t}),Hn=_t?[]:$t;let bn;Hn&&Hn.includes("contextMenu")&&(bn=!0);const[aa,Vn]=(0,dn.Z)(!1,{value:rt!=null?rt:ut}),An=(0,an.useEvent)(Be=>{ye==null||ye(Be),tt==null||tt(Be),Vn(Be)}),Fn=ke()(be,jt,ea,{[`${Bn}-rtl`]:yn==="rtl"}),Sa=(0,Ne.Z)({arrowPointAtCenter:typeof qe=="object"&&qe.pointAtCenter,autoAdjustOverflow:bt,offset:jn.marginXXS,arrowWidth:qe?jn.sizePopupArrow:0,borderRadius:jn.borderRadius}),oa=ee.useCallback(()=>{Vn(!1)},[]),we=()=>{let Be;return De!=null&&De.items?Be=ee.createElement(mt.default,Object.assign({},De)):typeof Tt=="function"?Be=Tt():Be=Tt,Jt&&(Be=Jt(Be)),Be=ee.Children.only(typeof Be=="string"?ee.createElement("span",null,Be):Be),ee.createElement(Ct.J,{prefixCls:`${Bn}-menu`,expandIcon:ee.createElement("span",{className:`${Bn}-menu-submenu-arrow`},ee.createElement(de.Z,{className:`${Bn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oa,validator:Ce=>{let{mode:st}=Ce}},Be)};return Kn(ee.createElement(At,Object.assign({alignPoint:bn},(0,Sn.Z)(Le,["rootClassName"]),{mouseEnterDelay:wt,mouseLeaveDelay:Wt,visible:aa,builtinPlacements:Sa,arrow:!!qe,overlayClassName:Fn,prefixCls:Bn,getPopupContainer:ue||Vt,transitionName:hn,trigger:Hn,overlay:we,placement:Nn,onVisibleChange:An}),zn))};function yt(Le){return Object.assign(Object.assign({},Le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Je=(0,He.Z)(mn,"dropdown",Le=>Le,yt),Ie=Le=>ee.createElement(Je,Object.assign({},Le),ee.createElement("span",null));mn._InternalPanelDoNotUseOrYouWillBeFired=Ie;var xe=mn},66748:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ye}});var ee=oe(14747),de=oe(67771),je=oe(33297),ke=oe(50438),se=oe(97414),Ee=oe(67968),me=oe(45503),We=_e=>{const{componentCls:Fe,menuCls:ae,colorError:y,colorTextLightSolid:a}=_e,E=`${ae}-item`;return{[`${Fe}, ${Fe}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Ae=_e=>{const{componentCls:Fe,menuCls:ae,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:te,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ve,colorBgElevated:Pe}=_e;return[{[Fe]:Object.assign(Object.assign({},(0,ee.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${Fe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Fe}-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${Fe}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Fe}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Fe}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Fe}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Fe}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Fe}-placement-bottomRight`]:{animationName:de.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Fe}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Fe}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Fe}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Fe}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Fe}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Fe}-placement-topRight`]:{animationName:de.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Fe}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Fe}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Fe}-placement-bottomRight`]:{animationName:de.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Fe}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Fe}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Fe}-placement-topRight`]:{animationName:de.ly}})},(0,se.ZP)(_e,{colorBg:Pe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Fe} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Fe}, ${Fe}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:Pe,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary},(0,ee.Qy)(_e)),{[`${ae}-item-group-title`]:{padding:`${te}px ${ve}px`,color:_e.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:_e.marginXS,fontSize:_e.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 ${ve}px`,color:_e.colorText,fontWeight:"normal",fontSize:ne,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:_e.borderRadiusSM,"&:hover, &-active":{backgroundColor:_e.controlItemBgHover}},(0,ee.Qy)(_e)),{"&-selected":{color:_e.colorPrimary,backgroundColor:_e.controlItemBgActive,"&:hover, &-active":{backgroundColor:_e.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:Pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_e.colorSplit},[`${Fe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,[`${Fe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_e.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${_e.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ve+_e.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Fe}-menu-submenu-title`]:{[`&, ${Fe}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:Pe,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Fe}-menu-submenu-title`]:{color:_e.colorPrimary}})}},[(0,de.oN)(_e,"slide-up"),(0,de.oN)(_e,"slide-down"),(0,je.Fm)(_e,"move-up"),(0,je.Fm)(_e,"move-down"),(0,ke._y)(_e,"zoom-big")]]};var Ye=(0,Ee.Z)("Dropdown",(_e,Fe)=>{let{rootPrefixCls:ae}=Fe;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:te,borderRadiusLG:ne}=_e,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,se.fS)({contentRadius:ne}),ge=(0,me.TS)(_e,{menuCls:`${te}-menu`,rootPrefixCls:ae,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ae(ge),We(ge)]},_e=>({zIndexPopup:_e.zIndexPopupBase+50}))},25378:function(Re,gt,oe){"use strict";var ee=oe(67294),de=oe(14075),je=oe(57838),ke=oe(74443);function se(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const me=(0,ee.useRef)({}),Qe=(0,je.Z)(),We=(0,ke.ZP)();return(0,de.Z)(()=>{const Ae=We.subscribe(Ye=>{me.current=Ye,Ee&&Qe()});return()=>We.unsubscribe(Ae)},[]),me.current}gt.Z=se},71322:function(Re,gt,oe){"use strict";oe.d(gt,{D:function(){return x},Z:function(){return ne}});var ee=oe(87462),de=oe(67294),je={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ke=je,se=oe(74643),Ee=function(ie,ge){return de.createElement(se.Z,(0,ee.Z)({},ie,{ref:ge,icon:ke}))},me=de.forwardRef(Ee),Qe=oe(22751),We=oe(91034),Ae=oe(94184),Ye=oe.n(Ae),_e=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),y=oe(53124),a=oe(84321),E=function(re,ie){var ge={};for(var ve in re)Object.prototype.hasOwnProperty.call(re,ve)&&ie.indexOf(ve)<0&&(ge[ve]=re[ve]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(re);Pe<ve.length;Pe++)ie.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(re,ve[Pe])&&(ge[ve[Pe]]=re[ve[Pe]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=de.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=de.forwardRef((re,ie)=>{const{prefixCls:ge,className:ve,trigger:Pe,children:ze,defaultCollapsed:pe=!1,theme:Ke="dark",style:vt={},collapsible:lt=!1,reverseArrow:$e=!1,width:it=200,collapsedWidth:et=80,zeroWidthTriggerStyle:Ve,breakpoint:at,onCollapse:At,onBreakpoint:an}=re,dn=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Sn}=(0,de.useContext)(a.Gs),[Ne,He]=(0,de.useState)("collapsed"in re?re.collapsed:pe),[ot,Gt]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in re&&He(re.collapsed)},[re.collapsed]);const mt=(yt,Je)=>{"collapsed"in re||He(yt),At==null||At(yt,Je)},Ct=(0,de.useRef)();Ct.current=yt=>{Gt(yt.matches),an==null||an(yt.matches),Ne!==yt.matches&&mt(yt.matches,"responsive")},(0,de.useEffect)(()=>{function yt(Ie){return Ct.current(Ie)}let Je;if(typeof window!="undefined"){const{matchMedia:Ie}=window;if(Ie&&at&&at in b){Je=Ie(`(max-width: ${b[at]})`);try{Je.addEventListener("change",yt)}catch(xe){Je.addListener(yt)}yt(Je)}}return()=>{try{Je==null||Je.removeEventListener("change",yt)}catch(Ie){Je==null||Je.removeListener(yt)}}},[at]),(0,de.useEffect)(()=>{const yt=z("ant-sider-");return Sn.addSider(yt),()=>Sn.removeSider(yt)},[]);const Se=()=>{mt(!Ne,"clickTrigger")},{getPrefixCls:St}=(0,de.useContext)(y.E_),Kt=()=>{const yt=St("layout-sider",ge),Je=(0,_e.Z)(dn,["collapsed"]),Ie=Ne?et:it,xe=ae(Ie)?`${Ie}px`:String(Ie),Le=parseFloat(String(et||0))===0?de.createElement("span",{onClick:Se,className:Ye()(`${yt}-zero-width-trigger`,`${yt}-zero-width-trigger-${$e?"right":"left"}`),style:Ve},Pe||de.createElement(me,null)):null,ft={expanded:$e?de.createElement(We.Z,null):de.createElement(Qe.Z,null),collapsed:$e?de.createElement(Qe.Z,null):de.createElement(We.Z,null)}[Ne?"collapsed":"expanded"],Nt=Pe!==null?Le||de.createElement("div",{className:`${yt}-trigger`,onClick:Se,style:{width:xe}},Pe||ft):null,$t=Object.assign(Object.assign({},vt),{flex:`0 0 ${xe}`,maxWidth:xe,minWidth:xe,width:xe}),_t=Ye()(yt,`${yt}-${Ke}`,{[`${yt}-collapsed`]:!!Ne,[`${yt}-has-trigger`]:lt&&Pe!==null&&!Le,[`${yt}-below`]:!!ot,[`${yt}-zero-width`]:parseFloat(xe)===0},ve);return de.createElement("aside",Object.assign({className:_t},Je,{style:$t,ref:ie}),de.createElement("div",{className:`${yt}-children`},ze),lt||ot&&Le?Nt:null)},mn=de.useMemo(()=>({siderCollapsed:Ne}),[Ne]);return de.createElement(x.Provider,{value:mn},Kt())})},97183:function(Re,gt,oe){"use strict";var ee=oe(84321),de=oe(71322);const je=ee.ZP;je.Header=ee.h4,je.Footer=ee.$_,je.Content=ee.VY,je.Sider=de.Z,gt.default=je},84321:function(Re,gt,oe){"use strict";oe.d(gt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Fe},ZP:function(){return te}});var ee=oe(74902),de=oe(94184),je=oe.n(de),ke=oe(10366),se=oe(67294),Ee=oe(53124),me=oe(67968),We=ne=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ve,lightTriggerColor:Pe}=ne;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:Pe,background:ve},[`${re}-sider-zero-width-trigger`]:{color:Pe,background:ve,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ae=ne=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ve,footerBg:Pe,triggerBg:ze,headerHeight:pe,headerPadding:Ke,headerColor:vt,footerPadding:lt,triggerHeight:$e,zeroTriggerHeight:it,zeroTriggerWidth:et,motionDurationMid:Ve,motionDurationSlow:at,fontSize:At,borderRadius:an,bodyBg:dn,headerBg:Sn,siderBg:Ne}=ne;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:dn,"&, *":{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:Ne,transition:`all ${Ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:$e},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:$e,color:ve,lineHeight:`${$e}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${Ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:pe,insetInlineEnd:-et,zIndex:1,width:et,height:it,color:ve,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ne,borderStartStartRadius:0,borderStartEndRadius:an,borderEndEndRadius:an,borderEndStartRadius:0,cursor:"pointer",transition:`background ${at} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${at}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-et,borderStartStartRadius:an,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:an}}}}},We(ne)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:pe,padding:Ke,color:vt,lineHeight:`${pe}px`,background:Sn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:lt,color:ge,fontSize:At,background:Pe},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ye=(0,me.Z)("Layout",ne=>[Ae(ne)],ne=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ve,controlHeightSM:Pe,marginXXS:ze,colorTextLightSolid:pe,colorBgContainer:Ke}=ne,vt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${vt}px`,headerColor:ve,footerPadding:`${Pe}px ${vt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+ze*2,triggerBg:"#002140",triggerColor:pe,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_e=function(ne,re){var ie={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&re.indexOf(ge)<0&&(ie[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ge=Object.getOwnPropertySymbols(ne);ve<ge.length;ve++)re.indexOf(ge[ve])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[ve])&&(ie[ge[ve]]=ne[ge[ve]]);return ie};const Fe=se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ie,displayName:ge}=ne;return ve=>se.forwardRef((ze,pe)=>se.createElement(ve,Object.assign({ref:pe,suffixCls:re,tagName:ie},ze)))}const y=se.forwardRef((ne,re)=>{const{prefixCls:ie,suffixCls:ge,className:ve,tagName:Pe}=ne,ze=_e(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:pe}=se.useContext(Ee.E_),Ke=pe("layout",ie),[vt,lt]=Ye(Ke),$e=ge?`${Ke}-${ge}`:Ke;return vt(se.createElement(Pe,Object.assign({className:je()(ie||$e,ve,lt),ref:re},ze)))}),a=se.forwardRef((ne,re)=>{const{direction:ie}=se.useContext(Ee.E_),[ge,ve]=se.useState([]),{prefixCls:Pe,className:ze,rootClassName:pe,children:Ke,hasSider:vt,tagName:lt,style:$e}=ne,it=_e(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),et=(0,ke.Z)(it,["suffixCls"]),{getPrefixCls:Ve,layout:at}=se.useContext(Ee.E_),At=Ve("layout",Pe),[an,dn]=Ye(At),Sn=je()(At,{[`${At}-has-sider`]:typeof vt=="boolean"?vt:ge.length>0,[`${At}-rtl`]:ie==="rtl"},at==null?void 0:at.className,ze,pe,dn),Ne=se.useMemo(()=>({siderHook:{addSider:He=>{ve(ot=>[].concat((0,ee.Z)(ot),[He]))},removeSider:He=>{ve(ot=>ot.filter(Gt=>Gt!==He))}}}),[]);return an(se.createElement(Fe.Provider,{value:Ne},se.createElement(lt,Object.assign({ref:re,className:Sn,style:Object.assign(Object.assign({},at==null?void 0:at.style),$e)},et),Ke)))}),E=ae({tagName:"div",displayName:"Layout"})(a),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var te=E},76529:function(Re,gt,oe){"use strict";oe.d(gt,{J:function(){return Ee}});var ee=oe(67294),de=oe(4173),je=oe(60276),ke=function(me,Qe){var We={};for(var Ae in me)Object.prototype.hasOwnProperty.call(me,Ae)&&Qe.indexOf(Ae)<0&&(We[Ae]=me[Ae]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ae=Object.getOwnPropertySymbols(me);Ye<Ae.length;Ye++)Qe.indexOf(Ae[Ye])<0&&Object.prototype.propertyIsEnumerable.call(me,Ae[Ye])&&(We[Ae[Ye]]=me[Ae[Ye]]);return We};const se=ee.createContext(null),Ee=ee.forwardRef((me,Qe)=>{const{children:We}=me,Ae=ke(me,["children"]),Ye=ee.useContext(se),_e=ee.useMemo(()=>Object.assign(Object.assign({},Ye),Ae),[Ye,Ae.prefixCls,Ae.mode,Ae.selectable]);return ee.createElement(se.Provider,{value:_e},ee.createElement(de.BR,null,(0,je.supportNodeRef)(We)?ee.cloneElement(We,{ref:Qe}):We))});gt.Z=se},68508:function(Re,gt,oe){"use strict";oe.d(gt,{default:function(){return yt}});var ee=oe(78595),de=oe(67294),je=oe(71322),ke=oe(94184),se=oe.n(ke),Ee=oe(53124),me=function(Je,Ie){var xe={};for(var Le in Je)Object.prototype.hasOwnProperty.call(Je,Le)&&Ie.indexOf(Le)<0&&(xe[Le]=Je[Le]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Le=Object.getOwnPropertySymbols(Je);De<Le.length;De++)Ie.indexOf(Le[De])<0&&Object.prototype.propertyIsEnumerable.call(Je,Le[De])&&(xe[Le[De]]=Je[Le[De]]);return xe},We=Je=>{const{prefixCls:Ie,className:xe,dashed:Le}=Je,De=me(Je,["prefixCls","className","dashed"]),{getPrefixCls:qe}=de.useContext(Ee.E_),ft=qe("menu",Ie),Nt=se()({[`${ft}-item-divider-dashed`]:!!Le},xe);return de.createElement(ee.iz,Object.assign({className:Nt},De))},Ae=oe(37419),Ye=oe(10366),_e=oe(83062),Fe=oe(96159),y=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Je=>{var Ie;const{className:xe,children:Le,icon:De,title:qe,danger:ft}=Je,{prefixCls:Nt,firstLevel:$t,direction:_t,disableMenuItemTitleTooltip:Jt,inlineCollapsed:ue}=de.useContext(y),be=wt=>{const Wt=de.createElement("span",{className:`${Nt}-title-content`},Le);return(!De||(0,Fe.l$)(Le)&&Le.type==="span")&&Le&&wt&&$t&&typeof Le=="string"?de.createElement("div",{className:`${Nt}-inline-collapsed-noicon`},Le.charAt(0)):Wt},{siderCollapsed:jt}=de.useContext(je.D);let rt=qe;typeof qe=="undefined"?rt=$t?Le:"":qe===!1&&(rt="");const ye={title:rt};!jt&&!ue&&(ye.title=null,ye.open=!1);const ut=(0,Ae.Z)(Le).length;let tt=de.createElement(ee.ck,Object.assign({},(0,Ye.Z)(Je,["title","icon","danger"]),{className:se()({[`${Nt}-item-danger`]:ft,[`${Nt}-item-only-child`]:(De?ut+1:ut)===1},xe),title:typeof qe=="string"?qe:void 0}),(0,Fe.Tm)(De,{className:se()((0,Fe.l$)(De)?(Ie=De.props)===null||Ie===void 0?void 0:Ie.className:"",`${Nt}-item-icon`)}),be(ue));return Jt||(tt=de.createElement(_e.Z,Object.assign({},ye,{placement:_t==="rtl"?"left":"right",overlayClassName:`${Nt}-inline-collapsed-tooltip`}),tt)),tt},x=Je=>{var Ie;const{popupClassName:xe,icon:Le,title:De,theme:qe}=Je,ft=de.useContext(y),{prefixCls:Nt,inlineCollapsed:$t,theme:_t}=ft,Jt=(0,ee.Xl)();let ue;if(!Le)ue=$t&&!Jt.length&&De&&typeof De=="string"?de.createElement("div",{className:`${Nt}-inline-collapsed-noicon`},De.charAt(0)):de.createElement("span",{className:`${Nt}-title-content`},De);else{const jt=(0,Fe.l$)(De)&&De.type==="span";ue=de.createElement(de.Fragment,null,(0,Fe.Tm)(Le,{className:se()((0,Fe.l$)(Le)?(Ie=Le.props)===null||Ie===void 0?void 0:Ie.className:"",`${Nt}-item-icon`)}),jt?De:de.createElement("span",{className:`${Nt}-title-content`},De))}const be=de.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return de.createElement(y.Provider,{value:be},de.createElement(ee.Wd,Object.assign({},(0,Ye.Z)(Je,["icon"]),{title:ue,popupClassName:se()(Nt,xe,`${Nt}-${qe||_t}`)})))},z=oe(25877),te=oe(60276),ne=oe(33603),re=oe(76529),ie=function(Je,Ie){var xe={};for(var Le in Je)Object.prototype.hasOwnProperty.call(Je,Le)&&Ie.indexOf(Le)<0&&(xe[Le]=Je[Le]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Le=Object.getOwnPropertySymbols(Je);De<Le.length;De++)Ie.indexOf(Le[De])<0&&Object.prototype.propertyIsEnumerable.call(Je,Le[De])&&(xe[Le[De]]=Je[Le[De]]);return xe};function ge(Je){return(Je||[]).map((Ie,xe)=>{if(Ie&&typeof Ie=="object"){const Le=Ie,{label:De,children:qe,key:ft,type:Nt}=Le,$t=ie(Le,["label","children","key","type"]),_t=ft!=null?ft:`tmp-${xe}`;return qe||Nt==="group"?Nt==="group"?de.createElement(ee.BW,Object.assign({key:_t},$t,{title:De}),ge(qe)):de.createElement(x,Object.assign({key:_t},$t,{title:De}),ge(qe)):Nt==="divider"?de.createElement(We,Object.assign({key:_t},$t)):de.createElement(E,Object.assign({key:_t},$t),De)}return null}).filter(Ie=>Ie)}function ve(Je){return de.useMemo(()=>Je&&ge(Je),[Je])}var Pe=oe(84780),ze=oe(14747),pe=oe(33507),Ke=oe(67771),vt=oe(50438),lt=oe(67968),$e=oe(45503),et=Je=>{const{componentCls:Ie,motionDurationSlow:xe,horizontalLineHeight:Le,colorSplit:De,lineWidth:qe,lineType:ft,itemPaddingInline:Nt}=Je;return{[`${Ie}-horizontal`]:{lineHeight:Le,border:0,borderBottom:`${qe}px ${ft} ${De}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ie}-item, ${Ie}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Nt},[`> ${Ie}-item:hover,
> ${Ie}-item-active,
> ${Ie}-submenu ${Ie}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ie}-item, ${Ie}-submenu-title`]:{transition:[`border-color ${xe}`,`background ${xe}`].join(",")},[`${Ie}-submenu-arrow`]:{display:"none"}}}},at=Je=>{let{componentCls:Ie,menuArrowOffset:xe}=Je;return{[`${Ie}-rtl`]:{direction:"rtl"},[`${Ie}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ie}-rtl${Ie}-vertical,
${Ie}-submenu-rtl ${Ie}-vertical`]:{[`${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${xe})`},"&::after":{transform:`rotate(45deg) translateY(${xe})`}}}}};const At=Je=>Object.assign({},(0,ze.oN)(Je));var dn=(Je,Ie)=>{const{componentCls:xe,itemColor:Le,itemSelectedColor:De,groupTitleColor:qe,itemBg:ft,subMenuItemBg:Nt,itemSelectedBg:$t,activeBarHeight:_t,activeBarWidth:Jt,activeBarBorderWidth:ue,motionDurationSlow:be,motionEaseInOut:jt,motionEaseOut:rt,itemPaddingInline:ye,motionDurationMid:ut,itemHoverColor:tt,lineType:wt,colorSplit:Wt,itemDisabledColor:bt,dangerItemColor:Bt,dangerItemHoverColor:Tt,dangerItemSelectedColor:ln,dangerItemActiveBg:Vt,dangerItemSelectedBg:qt,itemHoverBg:yn,itemActiveBg:hn,menuSubMenuBg:Nn,horizontalItemSelectedColor:Bn,horizontalItemSelectedBg:Kn,horizontalItemBorderRadius:ea,horizontalItemHoverBg:jn,popupBg:Qn}=Je;return{[`${xe}-${Ie}, ${xe}-${Ie} > ${xe}`]:{color:Le,background:ft,[`&${xe}-root:focus-visible`]:Object.assign({},At(Je)),[`${xe}-item-group-title`]:{color:qe},[`${xe}-submenu-selected`]:{[`> ${xe}-submenu-title`]:{color:De}},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{color:`${bt} !important`},[`${xe}-item:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{[`&:hover, > ${xe}-submenu-title:hover`]:{color:tt}},[`&:not(${xe}-horizontal)`]:{[`${xe}-item:not(${xe}-item-selected)`]:{"&:hover":{backgroundColor:yn},"&:active":{backgroundColor:hn}},[`${xe}-submenu-title`]:{"&:hover":{backgroundColor:yn},"&:active":{backgroundColor:hn}}},[`${xe}-item-danger`]:{color:Bt,[`&${xe}-item:hover`]:{[`&:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{color:Tt}},[`&${xe}-item:active`]:{background:Vt}},[`${xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${xe}-item-selected`]:{color:De,[`&${xe}-item-danger`]:{color:ln},"a, a:hover":{color:"inherit"}},[`& ${xe}-item-selected`]:{backgroundColor:$t,[`&${xe}-item-danger`]:{backgroundColor:qt}},[`${xe}-item, ${xe}-submenu-title`]:{[`&:not(${xe}-item-disabled):focus-visible`]:Object.assign({},At(Je))},[`&${xe}-submenu > ${xe}`]:{backgroundColor:Nn},[`&${xe}-popup > ${xe}`]:{backgroundColor:Qn},[`&${xe}-horizontal`]:Object.assign(Object.assign({},Ie==="dark"?{borderBottom:0}:{}),{[`> ${xe}-item, > ${xe}-submenu`]:{top:ue,marginTop:-ue,marginBottom:0,borderRadius:ea,"&::after":{position:"absolute",insetInline:ye,bottom:0,borderBottom:`${_t}px solid transparent`,transition:`border-color ${be} ${jt}`,content:'""'},"&:hover, &-active, &-open":{background:jn,"&::after":{borderBottomWidth:_t,borderBottomColor:Bn}},"&-selected":{color:Bn,backgroundColor:Kn,"&:hover":{backgroundColor:Kn},"&::after":{borderBottomWidth:_t,borderBottomColor:Bn}}}}),[`&${xe}-root`]:{[`&${xe}-inline, &${xe}-vertical`]:{borderInlineEnd:`${ue}px ${wt} ${Wt}`}},[`&${xe}-inline`]:{[`${xe}-sub${xe}-inline`]:{background:Nt},[`${xe}-item, ${xe}-submenu-title`]:ue&&Jt?{width:`calc(100% + ${ue}px)`}:{},[`${xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Jt}px solid ${De}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ut} ${rt}`,`opacity ${ut} ${rt}`].join(","),content:'""'},[`&${xe}-item-danger`]:{"&::after":{borderInlineEndColor:ln}}},[`${xe}-selected, ${xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ut} ${jt}`,`opacity ${ut} ${jt}`].join(",")}}}}}};const Sn=Je=>{const{componentCls:Ie,itemHeight:xe,itemMarginInline:Le,padding:De,menuArrowSize:qe,marginXS:ft,itemMarginBlock:Nt}=Je,$t=De+qe+ft;return{[`${Ie}-item`]:{position:"relative",overflow:"hidden"},[`${Ie}-item, ${Ie}-submenu-title`]:{height:xe,lineHeight:`${xe}px`,paddingInline:De,overflow:"hidden",textOverflow:"ellipsis",marginInline:Le,marginBlock:Nt,width:`calc(100% - ${Le*2}px)`},[`> ${Ie}-item,
> ${Ie}-submenu > ${Ie}-submenu-title`]:{height:xe,lineHeight:`${xe}px`},[`${Ie}-item-group-list ${Ie}-submenu-title,
${Ie}-submenu-title`]:{paddingInlineEnd:$t}}};var He=Je=>{const{componentCls:Ie,iconCls:xe,itemHeight:Le,colorTextLightSolid:De,dropdownWidth:qe,controlHeightLG:ft,motionDurationMid:Nt,motionEaseOut:$t,paddingXL:_t,itemMarginInline:Jt,fontSizeLG:ue,motionDurationSlow:be,paddingXS:jt,boxShadowSecondary:rt,collapsedWidth:ye,collapsedIconSize:ut}=Je,tt={height:Le,lineHeight:`${Le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ie]:{"&-inline, &-vertical":Object.assign({[`&${Ie}-root`]:{boxShadow:"none"}},Sn(Je))},[`${Ie}-submenu-popup`]:{[`${Ie}-vertical`]:Object.assign(Object.assign({},Sn(Je)),{boxShadow:rt})}},{[`${Ie}-submenu-popup ${Ie}-vertical${Ie}-sub`]:{minWidth:qe,maxHeight:`calc(100vh - ${ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ie}-inline`]:{width:"100%",[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${be}`,`background ${be}`,`padding ${Nt} ${$t}`].join(","),[`> ${Ie}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ie}-sub${Ie}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ie}-submenu > ${Ie}-submenu-title`]:tt,[`& ${Ie}-item-group-title`]:{paddingInlineStart:_t}},[`${Ie}-item`]:tt}},{[`${Ie}-inline-collapsed`]:{width:ye,[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu ${Ie}-submenu-title`]:{[`> ${Ie}-inline-collapsed-noicon`]:{fontSize:ue,textAlign:"center"}}},[`> ${Ie}-item,
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-item,
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-submenu > ${Ie}-submenu-title,
> ${Ie}-submenu > ${Ie}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ue/2}px - ${Jt}px)`,textOverflow:"clip",[`
${Ie}-submenu-arrow,
${Ie}-submenu-expand-icon
`]:{opacity:0},[`${Ie}-item-icon, ${xe}`]:{margin:0,fontSize:ut,lineHeight:`${Le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ie}-item-icon, ${xe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ie}-item-icon, ${xe}`]:{display:"none"},"a, a:hover":{color:De}},[`${Ie}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:jt})}}]};const ot=Je=>{const{componentCls:Ie,motionDurationSlow:xe,motionDurationMid:Le,motionEaseInOut:De,motionEaseOut:qe,iconCls:ft,iconSize:Nt,iconMarginInlineEnd:$t}=Je;return{[`${Ie}-item, ${Ie}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${xe}`,`background ${xe}`,`padding ${xe} ${De}`].join(","),[`${Ie}-item-icon, ${ft}`]:{minWidth:Nt,fontSize:Nt,transition:[`font-size ${Le} ${qe}`,`margin ${xe} ${De}`,`color ${xe}`].join(","),"+ span":{marginInlineStart:$t,opacity:1,transition:[`opacity ${xe} ${De}`,`margin ${xe}`,`color ${xe}`].join(",")}},[`${Ie}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${Ie}-item-only-child`]:{[`> ${ft}, > ${Ie}-item-icon`]:{marginInlineEnd:0}}},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ie}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gt=Je=>{const{componentCls:Ie,motionDurationSlow:xe,motionEaseInOut:Le,borderRadius:De,menuArrowSize:qe,menuArrowOffset:ft}=Je;return{[`${Ie}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Je.margin,width:qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${xe} ${Le}, opacity ${xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:qe*.6,height:qe*.15,backgroundColor:"currentcolor",borderRadius:De,transition:[`background ${xe} ${Le}`,`transform ${xe} ${Le}`,`top ${xe} ${Le}`,`color ${xe} ${Le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},mt=Je=>{const{antCls:Ie,componentCls:xe,fontSize:Le,motionDurationSlow:De,motionDurationMid:qe,motionEaseInOut:ft,paddingXS:Nt,padding:$t,colorSplit:_t,lineWidth:Jt,zIndexPopup:ue,borderRadiusLG:be,subMenuItemBorderRadius:jt,menuArrowSize:rt,menuArrowOffset:ye,lineType:ut,menuPanelMaskInset:tt,groupTitleLineHeight:wt,groupTitleFontSize:Wt}=Je;return[{"":{[`${xe}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${xe}-submenu-hidden`]:{display:"none"}},{[xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(Je)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${De} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${xe}-item`]:{flex:"none"}},[`${xe}-item, ${xe}-submenu, ${xe}-submenu-title`]:{borderRadius:Je.itemBorderRadius},[`${xe}-item-group-title`]:{padding:`${Nt}px ${$t}px`,fontSize:Wt,lineHeight:wt,transition:`all ${De}`},[`&-horizontal ${xe}-submenu`]:{transition:[`border-color ${De} ${ft}`,`background ${De} ${ft}`].join(",")},[`${xe}-submenu, ${xe}-submenu-inline`]:{transition:[`border-color ${De} ${ft}`,`background ${De} ${ft}`,`padding ${qe} ${ft}`].join(",")},[`${xe}-submenu ${xe}-sub`]:{cursor:"initial",transition:[`background ${De} ${ft}`,`padding ${De} ${ft}`].join(",")},[`${xe}-title-content`]:{transition:`color ${De}`},[`${xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:_t,borderStyle:ut,borderWidth:0,borderTopWidth:Jt,marginBlock:Jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ot(Je)),{[`${xe}-item-group`]:{[`${xe}-item-group-list`]:{margin:0,padding:0,[`${xe}-item, ${xe}-submenu-title`]:{paddingInline:`${Le*2}px ${$t}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ue,borderRadius:be,boxShadow:"none",transformOrigin:"0 0",[`&${xe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${tt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:tt},"\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:Je.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Je.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Je.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Je.paddingXS},[`> ${xe}`]:Object.assign(Object.assign(Object.assign({borderRadius:be},ot(Je)),Gt(Je)),{[`${xe}-item, ${xe}-submenu > ${xe}-submenu-title`]:{borderRadius:jt},[`${xe}-submenu-title::after`]:{transition:`transform ${De} ${ft}`}})}}),Gt(Je)),{[`&-inline-collapsed ${xe}-submenu-arrow,
&-inline ${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ye})`},"&::after":{transform:`rotate(45deg) translateX(-${ye})`}},[`${xe}-submenu-open${xe}-submenu-inline > ${xe}-submenu-title > ${xe}-submenu-arrow`]:{transform:`translateY(-${rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ye})`},"&::before":{transform:`rotate(45deg) translateX(${ye})`}}})},{[`${Ie}-layout-header`]:{[xe]:{lineHeight:"inherit"}}}]};var Ct=(Je,Ie)=>(0,lt.Z)("Menu",Le=>{if(Ie===!1)return[];const{colorBgElevated:De,colorPrimary:qe,colorTextLightSolid:ft,controlHeightLG:Nt,fontSize:$t,darkItemColor:_t,darkDangerItemColor:Jt,darkItemBg:ue,darkSubMenuItemBg:be,darkItemSelectedColor:jt,darkItemSelectedBg:rt,darkDangerItemSelectedBg:ye,darkItemHoverBg:ut,darkGroupTitleColor:tt,darkItemHoverColor:wt,darkItemDisabledColor:Wt,darkDangerItemHoverColor:bt,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:Tt}=Le,ln=$t/7*5,Vt=(0,$e.TS)(Le,{menuArrowSize:ln,menuHorizontalHeight:Nt*1.15,menuArrowOffset:`${ln*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:De}),qt=(0,$e.TS)(Vt,{itemColor:_t,itemHoverColor:wt,groupTitleColor:tt,itemSelectedColor:jt,itemBg:ue,popupBg:ue,subMenuItemBg:be,itemActiveBg:"transparent",itemSelectedBg:rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ut,itemDisabledColor:Wt,dangerItemColor:Jt,dangerItemHoverColor:bt,dangerItemSelectedColor:Bt,dangerItemActiveBg:Tt,dangerItemSelectedBg:ye,menuSubMenuBg:be,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:qe});return[mt(Vt),et(Vt),He(Vt),dn(Vt,"light"),dn(qt,"dark"),at(Vt),(0,pe.Z)(Vt),(0,Ke.oN)(Vt,"slide-up"),(0,Ke.oN)(Vt,"slide-down"),(0,vt._y)(Vt,"zoom-big")]},Le=>{const{colorPrimary:De,colorError:qe,colorTextDisabled:ft,colorErrorBg:Nt,colorText:$t,colorTextDescription:_t,colorBgContainer:Jt,colorFillAlter:ue,colorFillContent:be,lineWidth:jt,lineWidthBold:rt,controlItemBgActive:ye,colorBgTextHover:ut,controlHeightLG:tt,lineHeight:wt,colorBgElevated:Wt,marginXXS:bt,padding:Bt,fontSize:Tt,controlHeightSM:ln,fontSizeLG:Vt,colorTextLightSolid:qt,colorErrorHover:yn}=Le,hn=new Pe.C(qt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Le.zIndexPopupBase+50,radiusItem:Le.borderRadiusLG,itemBorderRadius:Le.borderRadiusLG,radiusSubMenuItem:Le.borderRadiusSM,subMenuItemBorderRadius:Le.borderRadiusSM,colorItemText:$t,itemColor:$t,colorItemTextHover:$t,itemHoverColor:$t,colorItemTextHoverHorizontal:De,horizontalItemHoverColor:De,colorGroupTitle:_t,groupTitleColor:_t,colorItemTextSelected:De,itemSelectedColor:De,colorItemTextSelectedHorizontal:De,horizontalItemSelectedColor:De,colorItemBg:Jt,itemBg:Jt,colorItemBgHover:ut,itemHoverBg:ut,colorItemBgActive:be,itemActiveBg:ye,colorSubItemBg:ue,subMenuItemBg:ue,colorItemBgSelected:ye,itemSelectedBg:ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:rt,activeBarHeight:rt,colorActiveBarBorderSize:jt,activeBarBorderWidth:jt,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:qe,dangerItemColor:qe,colorDangerItemTextHover:qe,dangerItemHoverColor:qe,colorDangerItemTextSelected:qe,dangerItemSelectedColor:qe,colorDangerItemBgActive:Nt,dangerItemActiveBg:Nt,colorDangerItemBgSelected:Nt,dangerItemSelectedBg:Nt,itemMarginInline:Le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:tt,groupTitleLineHeight:wt,collapsedWidth:tt*2,popupBg:Wt,itemMarginBlock:bt,itemPaddingInline:Bt,horizontalLineHeight:`${tt*1.15}px`,iconSize:Tt,iconMarginInlineEnd:ln-Tt,collapsedIconSize:Vt,groupTitleFontSize:Tt,darkItemDisabledColor:new Pe.C(qt).setAlpha(.25).toRgbString(),darkItemColor:hn,darkDangerItemColor:qe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:qt,darkItemSelectedBg:De,darkDangerItemSelectedBg:qe,darkItemHoverBg:"transparent",darkGroupTitleColor:hn,darkItemHoverColor:qt,darkDangerItemHoverColor:yn,darkDangerItemSelectedColor:qt,darkDangerItemActiveBg:qe}},{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"]]})(Je),Se=function(Je,Ie){var xe={};for(var Le in Je)Object.prototype.hasOwnProperty.call(Je,Le)&&Ie.indexOf(Le)<0&&(xe[Le]=Je[Le]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Le=Object.getOwnPropertySymbols(Je);De<Le.length;De++)Ie.indexOf(Le[De])<0&&Object.prototype.propertyIsEnumerable.call(Je,Le[De])&&(xe[Le[De]]=Je[Le[De]]);return xe},Kt=(0,de.forwardRef)((Je,Ie)=>{var xe,Le;const De=de.useContext(re.Z),qe=De||{},{getPrefixCls:ft,getPopupContainer:Nt,direction:$t,menu:_t}=de.useContext(Ee.E_),Jt=ft(),{prefixCls:ue,className:be,style:jt,theme:rt="light",expandIcon:ye,_internalDisableMenuItemTitleTooltip:ut,inlineCollapsed:tt,siderCollapsed:wt,items:Wt,children:bt,rootClassName:Bt,mode:Tt,selectable:ln,onClick:Vt,overflowedIndicatorPopupClassName:qt}=Je,yn=Se(Je,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),hn=(0,Ye.Z)(yn,["collapsedWidth"]),Nn=ve(Wt)||bt;(xe=qe.validator)===null||xe===void 0||xe.call(qe,{mode:Tt});const Bn=(0,te.useEvent)(function(){var Fn;Vt==null||Vt.apply(void 0,arguments),(Fn=qe.onClick)===null||Fn===void 0||Fn.call(qe)}),Kn=qe.mode||Tt,ea=ln!=null?ln:qe.selectable,jn=de.useMemo(()=>wt!==void 0?wt:tt,[tt,wt]),Qn={horizontal:{motionName:`${Jt}-slide-up`},inline:(0,ne.Z)(Jt),other:{motionName:`${Jt}-zoom-big`}},zn=ft("menu",ue||qe.prefixCls),[Hn,bn]=Ct(zn,!De),aa=se()(`${zn}-${rt}`,_t==null?void 0:_t.className,be);let Vn;if(typeof ye=="function")Vn=ye;else if(ye===null||ye===!1)Vn=null;else if(qe.expandIcon===null||qe.expandIcon===!1)Vn=null;else{const Fn=ye!=null?ye:qe.expandIcon;Vn=(0,Fe.Tm)(Fn,{className:se()(`${zn}-submenu-expand-icon`,(0,Fe.l$)(Fn)?(Le=Fn.props)===null||Le===void 0?void 0:Le.className:"")})}const An=de.useMemo(()=>({prefixCls:zn,inlineCollapsed:jn||!1,direction:$t,firstLevel:!0,theme:rt,mode:Kn,disableMenuItemTitleTooltip:ut}),[zn,jn,$t,ut,rt]);return Hn(de.createElement(re.Z.Provider,{value:null},de.createElement(y.Provider,{value:An},de.createElement(ee.ZP,Object.assign({getPopupContainer:Nt,overflowedIndicator:de.createElement(z.Z,null),overflowedIndicatorPopupClassName:se()(zn,`${zn}-${rt}`,qt),mode:Kn,selectable:ea,onClick:Bn},hn,{inlineCollapsed:jn,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),jt),className:aa,prefixCls:zn,direction:$t,defaultMotions:Qn,expandIcon:Vn,ref:Ie,rootClassName:se()(Bt,bn)}),Nn))))});const mn=(0,de.forwardRef)((Je,Ie)=>{const xe=(0,de.useRef)(null),Le=de.useContext(je.D);return(0,de.useImperativeHandle)(Ie,()=>({menu:xe.current,focus:De=>{var qe;(qe=xe.current)===null||qe===void 0||qe.focus(De)}})),de.createElement(Kt,Object.assign({ref:xe},Je,Le))});mn.Item=E,mn.SubMenu=x,mn.Divider=We,mn.ItemGroup=ee.BW;var yt=mn},28452:function(Re,gt,oe){"use strict";oe.d(gt,{Z:function(){return Jt}});var ee=oe(87462),de=oe(67294),je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ke=je,se=oe(74643),Ee=function(be,jt){return de.createElement(se.Z,(0,ee.Z)({},be,{ref:jt,icon:ke}))},me=de.forwardRef(Ee),Qe=oe(81893),We=oe(22751),Ae=oe(91034),Ye=oe(94184),_e=oe.n(Ye),Fe=oe(4942),ae=oe(1413),y=oe(15671),a=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,be){return ue.indexOf(be)===0}function ge(ue){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt;be===!1?jt={aria:!0,data:!0,attr:!0}:be===!0?jt={aria:!0}:jt=(0,ae.Z)({},be);var rt={};return Object.keys(ue).forEach(function(ye){(jt.aria&&(ye==="role"||ie(ye,ne))||jt.data&&ie(ye,re)||jt.attr&&te.includes(ye))&&(rt[ye]=ue[ye])}),rt}var ve={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Pe=ve,ze=oe(81626),pe=function(ue){(0,E.Z)(jt,ue);var be=(0,b.Z)(jt);function jt(){var rt;(0,y.Z)(this,jt);for(var ye=arguments.length,ut=new Array(ye),tt=0;tt<ye;tt++)ut[tt]=arguments[tt];return rt=be.call.apply(be,[this].concat(ut)),rt.state={goInputText:""},rt.getValidValue=function(){var wt=rt.state.goInputText;return!wt||Number.isNaN(wt)?void 0:Number(wt)},rt.buildOptionText=function(wt){return"".concat(wt," ").concat(rt.props.locale.items_per_page)},rt.changeSize=function(wt){rt.props.changeSize(Number(wt))},rt.handleChange=function(wt){rt.setState({goInputText:wt.target.value})},rt.handleBlur=function(wt){var Wt=rt.props,bt=Wt.goButton,Bt=Wt.quickGo,Tt=Wt.rootPrefixCls,ln=rt.state.goInputText;bt||ln===""||(rt.setState({goInputText:""}),!(wt.relatedTarget&&(wt.relatedTarget.className.indexOf("".concat(Tt,"-item-link"))>=0||wt.relatedTarget.className.indexOf("".concat(Tt,"-item"))>=0))&&Bt(rt.getValidValue()))},rt.go=function(wt){var Wt=rt.state.goInputText;Wt!==""&&(wt.keyCode===Pe.ENTER||wt.type==="click")&&(rt.setState({goInputText:""}),rt.props.quickGo(rt.getValidValue()))},rt}return(0,a.Z)(jt,[{key:"getPageSizeOptions",value:function(){var ye=this.props,ut=ye.pageSize,tt=ye.pageSizeOptions;return tt.some(function(wt){return wt.toString()===ut.toString()})?tt:tt.concat([ut.toString()]).sort(function(wt,Wt){var bt=Number.isNaN(Number(wt))?0:Number(wt),Bt=Number.isNaN(Number(Wt))?0:Number(Wt);return bt-Bt})}},{key:"render",value:function(){var ye=this,ut=this.props,tt=ut.pageSize,wt=ut.locale,Wt=ut.rootPrefixCls,bt=ut.changeSize,Bt=ut.quickGo,Tt=ut.goButton,ln=ut.selectComponentClass,Vt=ut.buildOptionText,qt=ut.selectPrefixCls,yn=ut.disabled,hn=this.state.goInputText,Nn="".concat(Wt,"-options"),Bn=ln,Kn=null,ea=null,jn=null;if(!bt&&!Bt)return null;var Qn=this.getPageSizeOptions();if(bt&&Bn){var zn=Qn.map(function(Hn,bn){return de.createElement(Bn.Option,{key:bn,value:Hn.toString()},(Vt||ye.buildOptionText)(Hn))});Kn=de.createElement(Bn,{disabled:yn,prefixCls:qt,showSearch:!1,className:"".concat(Nn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(tt||Qn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(bn){return bn.parentNode},"aria-label":wt.page_size,defaultOpen:!1},zn)}return Bt&&(Tt&&(jn=typeof Tt=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:yn,className:"".concat(Nn,"-quick-jumper-button")},wt.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},Tt)),ea=de.createElement("div",{className:"".concat(Nn,"-quick-jumper")},wt.jump_to,de.createElement("input",{disabled:yn,type:"text",value:hn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":wt.page}),wt.page,jn)),de.createElement("li",{className:"".concat(Nn)},Kn,ea)}}]),jt}(de.Component);pe.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ke=pe,vt=function(be){var jt,rt=be.rootPrefixCls,ye=be.page,ut=be.active,tt=be.className,wt=be.showTitle,Wt=be.onClick,bt=be.onKeyPress,Bt=be.itemRender,Tt="".concat(rt,"-item"),ln=_e()(Tt,"".concat(Tt,"-").concat(ye),(jt={},(0,Fe.Z)(jt,"".concat(Tt,"-active"),ut),(0,Fe.Z)(jt,"".concat(Tt,"-disabled"),!ye),(0,Fe.Z)(jt,be.className,tt),jt)),Vt=function(){Wt(ye)},qt=function(Nn){bt(Nn,Wt,ye)},yn=Bt(ye,"page",de.createElement("a",{rel:"nofollow"},ye));return yn?de.createElement("li",{title:wt?ye.toString():null,className:ln,onClick:Vt,onKeyPress:qt,tabIndex:0},yn):null},lt=vt;function $e(){}function it(ue){var be=Number(ue);return typeof be=="number"&&!Number.isNaN(be)&&isFinite(be)&&Math.floor(be)===be}var et=function(be,jt,rt){return rt};function Ve(ue,be,jt){var rt=typeof ue=="undefined"?be.pageSize:ue;return Math.floor((jt.total-1)/rt)+1}var at=function(ue){(0,E.Z)(jt,ue);var be=(0,b.Z)(jt);function jt(rt){var ye;(0,y.Z)(this,jt),ye=be.call(this,rt),ye.paginationNode=de.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(Ve(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(bt,Bt){var Tt=ye.props.prefixCls,ln=bt||de.createElement("button",{type:"button","aria-label":Bt,className:"".concat(Tt,"-item-link")});return typeof bt=="function"&&(ln=de.createElement(bt,(0,ae.Z)({},ye.props))),ln},ye.isValid=function(bt){var Bt=ye.props.total;return it(bt)&&bt!==ye.state.current&&it(Bt)&&Bt>0},ye.shouldDisplayQuickJumper=function(){var bt=ye.props,Bt=bt.showQuickJumper,Tt=bt.total,ln=ye.state.pageSize;return Tt<=ln?!1:Bt},ye.handleKeyDown=function(bt){(bt.keyCode===Pe.ARROW_UP||bt.keyCode===Pe.ARROW_DOWN)&&bt.preventDefault()},ye.handleKeyUp=function(bt){var Bt=ye.getValidValue(bt),Tt=ye.state.currentInputValue;Bt!==Tt&&ye.setState({currentInputValue:Bt}),bt.keyCode===Pe.ENTER?ye.handleChange(Bt):bt.keyCode===Pe.ARROW_UP?ye.handleChange(Bt-1):bt.keyCode===Pe.ARROW_DOWN&&ye.handleChange(Bt+1)},ye.handleBlur=function(bt){var Bt=ye.getValidValue(bt);ye.handleChange(Bt)},ye.changePageSize=function(bt){var Bt=ye.state.current,Tt=Ve(bt,ye.state,ye.props);Bt=Bt>Tt?Tt:Bt,Tt===0&&(Bt=ye.state.current),typeof bt=="number"&&("pageSize"in ye.props||ye.setState({pageSize:bt}),"current"in ye.props||ye.setState({current:Bt,currentInputValue:Bt})),ye.props.onShowSizeChange(Bt,bt),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(Bt,bt)},ye.handleChange=function(bt){var Bt=ye.props,Tt=Bt.disabled,ln=Bt.onChange,Vt=ye.state,qt=Vt.pageSize,yn=Vt.current,hn=Vt.currentInputValue;if(ye.isValid(bt)&&!Tt){var Nn=Ve(void 0,ye.state,ye.props),Bn=bt;return bt>Nn?Bn=Nn:bt<1&&(Bn=1),"current"in ye.props||ye.setState({current:Bn}),Bn!==hn&&ye.setState({currentInputValue:Bn}),ln(Bn,qt),Bn}return yn},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<Ve(void 0,ye.state,ye.props)},ye.runIfEnter=function(bt,Bt){if(bt.key==="Enter"||bt.charCode===13){for(var Tt=arguments.length,ln=new Array(Tt>2?Tt-2:0),Vt=2;Vt<Tt;Vt++)ln[Vt-2]=arguments[Vt];Bt.apply(void 0,ln)}},ye.runIfEnterPrev=function(bt){ye.runIfEnter(bt,ye.prev)},ye.runIfEnterNext=function(bt){ye.runIfEnter(bt,ye.next)},ye.runIfEnterJumpPrev=function(bt){ye.runIfEnter(bt,ye.jumpPrev)},ye.runIfEnterJumpNext=function(bt){ye.runIfEnter(bt,ye.jumpNext)},ye.handleGoTO=function(bt){(bt.keyCode===Pe.ENTER||bt.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(bt){var Bt=ye.props,Tt=Bt.prevIcon,ln=Bt.itemRender,Vt=ln(bt,"prev",ye.getItemIcon(Tt,"prev page")),qt=!ye.hasPrev();return(0,de.isValidElement)(Vt)?(0,de.cloneElement)(Vt,{disabled:qt}):Vt},ye.renderNext=function(bt){var Bt=ye.props,Tt=Bt.nextIcon,ln=Bt.itemRender,Vt=ln(bt,"next",ye.getItemIcon(Tt,"next page")),qt=!ye.hasNext();return(0,de.isValidElement)(Vt)?(0,de.cloneElement)(Vt,{disabled:qt}):Vt};var ut=rt.onChange!==$e,tt="current"in rt;tt&&!ut&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var wt=rt.defaultCurrent;"current"in rt&&(wt=rt.current);var Wt=rt.defaultPageSize;return"pageSize"in rt&&(Wt=rt.pageSize),wt=Math.min(wt,Ve(Wt,void 0,rt)),ye.state={current:wt,currentInputValue:wt,pageSize:Wt},ye}return(0,a.Z)(jt,[{key:"componentDidUpdate",value:function(ye,ut){var tt=this.props.prefixCls;if(ut.current!==this.state.current&&this.paginationNode.current){var wt=this.paginationNode.current.querySelector(".".concat(tt,"-item-").concat(ut.current));if(wt&&document.activeElement===wt){var Wt;wt==null||(Wt=wt.blur)===null||Wt===void 0||Wt.call(wt)}}}},{key:"getValidValue",value:function(ye){var ut=ye.target.value,tt=Ve(void 0,this.state,this.props),wt=this.state.currentInputValue,Wt;return ut===""?Wt=ut:Number.isNaN(Number(ut))?Wt=wt:ut>=tt?Wt=tt:Wt=Number(ut),Wt}},{key:"getShowSizeChanger",value:function(){var ye=this.props,ut=ye.showSizeChanger,tt=ye.total,wt=ye.totalBoundaryShowSizeChanger;return typeof ut!="undefined"?ut:tt>wt}},{key:"render",value:function(){var ye=this.props,ut=ye.prefixCls,tt=ye.className,wt=ye.style,Wt=ye.disabled,bt=ye.hideOnSinglePage,Bt=ye.total,Tt=ye.locale,ln=ye.showQuickJumper,Vt=ye.showLessItems,qt=ye.showTitle,yn=ye.showTotal,hn=ye.simple,Nn=ye.itemRender,Bn=ye.showPrevNextJumpers,Kn=ye.jumpPrevIcon,ea=ye.jumpNextIcon,jn=ye.selectComponentClass,Qn=ye.selectPrefixCls,zn=ye.pageSizeOptions,Hn=this.state,bn=Hn.current,aa=Hn.pageSize,Vn=Hn.currentInputValue;if(bt===!0&&Bt<=aa)return null;var An=Ve(void 0,this.state,this.props),Fn=[],Sa=null,oa=null,we=null,Be=null,Ce=null,st=ln&&ln.goButton,Ft=Vt?1:2,zt=bn-1>0?bn-1:0,Cn=bn+1<An?bn+1:An,un=ge(this.props,{aria:!0,data:!0}),Qt=yn&&de.createElement("li",{className:"".concat(ut,"-total-text")},yn(Bt,[Bt===0?0:(bn-1)*aa+1,bn*aa>Bt?Bt:bn*aa]));if(hn){st&&(typeof st=="boolean"?Ce=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Tt.jump_to_confirm):Ce=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},st),Ce=de.createElement("li",{title:qt?"".concat(Tt.jump_to).concat(bn,"/").concat(An):null,className:"".concat(ut,"-simple-pager")},Ce));var In=this.renderPrev(zt);return de.createElement("ul",(0,ee.Z)({className:_e()(ut,"".concat(ut,"-simple"),(0,Fe.Z)({},"".concat(ut,"-disabled"),Wt),tt),style:wt,ref:this.paginationNode},un),Qt,In?de.createElement("li",{title:qt?Tt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_e()("".concat(ut,"-prev"),(0,Fe.Z)({},"".concat(ut,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},In):null,de.createElement("li",{title:qt?"".concat(bn,"/").concat(An):null,className:"".concat(ut,"-simple-pager")},de.createElement("input",{type:"text",value:Vn,disabled:Wt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(ut,"-slash")},"/"),An),de.createElement("li",{title:qt?Tt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_e()("".concat(ut,"-next"),(0,Fe.Z)({},"".concat(ut,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Cn)),Ce)}if(An<=3+Ft*2){var ta={locale:Tt,rootPrefixCls:ut,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:qt,itemRender:Nn};An||Fn.push(de.createElement(lt,(0,ee.Z)({},ta,{key:"noPager",page:1,className:"".concat(ut,"-item-disabled")})));for(var Xn=1;Xn<=An;Xn+=1){var ct=bn===Xn;Fn.push(de.createElement(lt,(0,ee.Z)({},ta,{key:Xn,page:Xn,active:ct})))}}else{var En=Vt?Tt.prev_3:Tt.prev_5,da=Vt?Tt.next_3:Tt.next_5,ia=Nn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Kn,"prev page")),Un=Nn(this.getJumpNextPage(),"jump-next",this.getItemIcon(ea,"next page"));Bn&&(Sa=ia?de.createElement("li",{title:qt?En:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_e()("".concat(ut,"-jump-prev"),(0,Fe.Z)({},"".concat(ut,"-jump-prev-custom-icon"),!!Kn))},ia):null,oa=Un?de.createElement("li",{title:qt?da:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_e()("".concat(ut,"-jump-next"),(0,Fe.Z)({},"".concat(ut,"-jump-next-custom-icon"),!!ea))},Un):null),Be=de.createElement(lt,{locale:Tt,last:!0,rootPrefixCls:ut,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:An,page:An,active:!1,showTitle:qt,itemRender:Nn}),we=de.createElement(lt,{locale:Tt,rootPrefixCls:ut,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:qt,itemRender:Nn});var Rn=Math.max(1,bn-Ft),ha=Math.min(bn+Ft,An);bn-1<=Ft&&(ha=1+Ft*2),An-bn<=Ft&&(Rn=An-Ft*2);for(var Pa=Rn;Pa<=ha;Pa+=1){var Ea=bn===Pa;Fn.push(de.createElement(lt,{locale:Tt,rootPrefixCls:ut,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pa,page:Pa,active:Ea,showTitle:qt,itemRender:Nn}))}bn-1>=Ft*2&&bn!==3&&(Fn[0]=(0,de.cloneElement)(Fn[0],{className:"".concat(ut,"-item-after-jump-prev")}),Fn.unshift(Sa)),An-bn>=Ft*2&&bn!==An-2&&(Fn[Fn.length-1]=(0,de.cloneElement)(Fn[Fn.length-1],{className:"".concat(ut,"-item-before-jump-next")}),Fn.push(oa)),Rn!==1&&Fn.unshift(we),ha!==An&&Fn.push(Be)}var pa=!this.hasPrev()||!An,va=!this.hasNext()||!An,na=this.renderPrev(zt),Oe=this.renderNext(Cn);return de.createElement("ul",(0,ee.Z)({className:_e()(ut,tt,(0,Fe.Z)({},"".concat(ut,"-disabled"),Wt)),style:wt,ref:this.paginationNode},un),Qt,na?de.createElement("li",{title:qt?Tt.prev_page:null,onClick:this.prev,tabIndex:pa?null:0,onKeyPress:this.runIfEnterPrev,className:_e()("".concat(ut,"-prev"),(0,Fe.Z)({},"".concat(ut,"-disabled"),pa)),"aria-disabled":pa},na):null,Fn,Oe?de.createElement("li",{title:qt?Tt.next_page:null,onClick:this.next,tabIndex:va?null:0,onKeyPress:this.runIfEnterNext,className:_e()("".concat(ut,"-next"),(0,Fe.Z)({},"".concat(ut,"-disabled"),va)),"aria-disabled":va},Oe):null,de.createElement(Ke,{disabled:Wt,locale:Tt,rootPrefixCls:ut,selectComponentClass:jn,selectPrefixCls:Qn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:bn,pageSize:aa,pageSizeOptions:zn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:st}))}}],[{key:"getDerivedStateFromProps",value:function(ye,ut){var tt={};if("current"in ye&&(tt.current=ye.current,ye.current!==ut.current&&(tt.currentInputValue=tt.current)),"pageSize"in ye&&ye.pageSize!==ut.pageSize){var wt=ut.current,Wt=Ve(ye.pageSize,ut,ye);wt=wt>Wt?Wt:wt,"current"in ye||(tt.current=wt,tt.currentInputValue=wt),tt.pageSize=ye.pageSize}return tt}}]),jt}(de.Component);at.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:$e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:$e,locale:ze.Z,style:{},itemRender:et,totalBoundaryShowSizeChanger:50};var At=at,an=oe(62906),dn=oe(53124),Sn=oe(98675),Ne=oe(25378),He=oe(10110),ot=oe(11713);const Gt=ue=>de.createElement(ot.default,Object.assign({},ue,{showSearch:!0,size:"small"})),mt=ue=>de.createElement(ot.default,Object.assign({},ue,{showSearch:!0,size:"middle"}));Gt.Option=ot.default.Option,mt.Option=ot.default.Option;var Ct=oe(47673),Se=oe(14747),St=oe(67968),Kt=oe(45503);const mn=ue=>{const{componentCls:be}=ue;return{[`${be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${be}-item-link`]:{color:ue.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${be}-item-link`]:{color:ue.colorTextDisabled,cursor:"not-allowed"}}},[`&${be}-disabled`]:{cursor:"not-allowed",[`${be}-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}}},[`${be}-item-link`]:{color:ue.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${be}-simple-pager`]:{color:ue.colorTextDisabled},[`${be}-jump-prev, ${be}-jump-next`]:{[`${be}-item-link-icon`]:{opacity:0},[`${be}-item-ellipsis`]:{opacity:1}}},[`&${be}-simple`]:{[`${be}-prev, ${be}-next`]:{[`&${be}-disabled ${be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},yt=ue=>{const{componentCls:be}=ue;return{[`&${be}-mini ${be}-total-text, &${be}-mini ${be}-simple-pager`]:{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`},[`&${be}-mini ${be}-item`]:{minWidth:ue.itemSizeSM,height:ue.itemSizeSM,margin:0,lineHeight:`${ue.itemSizeSM-2}px`},[`&${be}-mini:not(${be}-disabled) ${be}-item:not(${be}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ue.colorBgTextHover},"&:active":{backgroundColor:ue.colorBgTextActive}},[`&${be}-mini ${be}-prev, &${be}-mini ${be}-next`]:{minWidth:ue.itemSizeSM,height:ue.itemSizeSM,margin:0,lineHeight:`${ue.itemSizeSM}px`},[`&${be}-mini:not(${be}-disabled)`]:{[`${be}-prev, ${be}-next`]:{[`&:hover ${be}-item-link`]:{backgroundColor:ue.colorBgTextHover},[`&:active ${be}-item-link`]:{backgroundColor:ue.colorBgTextActive},[`&${be}-disabled:hover ${be}-item-link`]:{backgroundColor:"transparent"}}},[`
&${be}-mini ${be}-prev ${be}-item-link,
&${be}-mini ${be}-next ${be}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`}},[`&${be}-mini ${be}-jump-prev, &${be}-mini ${be}-jump-next`]:{height:ue.itemSizeSM,marginInlineEnd:0,lineHeight:`${ue.itemSizeSM}px`},[`&${be}-mini ${be}-options`]:{marginInlineStart:ue.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ue.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ct.x0)(ue)),{width:ue.paginationMiniQuickJumperInputWidth,height:ue.controlHeightSM})}}}},Je=ue=>{const{componentCls:be}=ue;return{[`
&${be}-simple ${be}-prev,
&${be}-simple ${be}-next
`]:{height:ue.itemSizeSM,lineHeight:`${ue.itemSizeSM}px`,verticalAlign:"top",[`${be}-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`}}},[`&${be}-simple ${be}-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"}}}}},Ie=ue=>{const{componentCls:be}=ue;return{[`${be}-jump-prev, ${be}-jump-next`]:{outline:0,[`${be}-item-container`]:{position:"relative",[`${be}-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"}},[`${be}-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":{[`${be}-item-link-icon`]:{opacity:1},[`${be}-item-ellipsis`]:{opacity:0}}},[`
${be}-prev,
${be}-jump-prev,
${be}-jump-next
`]:{marginInlineEnd:ue.marginXS},[`
${be}-prev,
${be}-next,
${be}-jump-prev,
${be}-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}`},[`${be}-prev, ${be}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ue.colorText,cursor:"pointer",userSelect:"none"},[`${be}-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 ${be}-item-link`]:{backgroundColor:ue.colorBgTextHover},[`&:active ${be}-item-link`]:{backgroundColor:ue.colorBgTextActive},[`&${be}-disabled:hover`]:{[`${be}-item-link`]:{backgroundColor:"transparent"}}},[`${be}-slash`]:{marginInlineEnd:ue.paginationSlashMarginInlineEnd,marginInlineStart:ue.paginationSlashMarginInlineStart},[`${be}-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,Ct.ik)(ue)),{width:ue.controlHeightLG*1.25,height:ue.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ue.marginXS,marginInlineEnd:ue.marginXS})}}}},xe=ue=>{const{componentCls:be}=ue;return{[`${be}-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(${be}-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}}}}},Le=ue=>{const{componentCls:be}=ue;return{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(ue)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${be}-total-text`]:{display:"inline-block",height:ue.itemSize,marginInlineEnd:ue.marginXS,lineHeight:`${ue.itemSize-2}px`,verticalAlign:"middle"}}),xe(ue)),Ie(ue)),Je(ue)),yt(ue)),mn(ue)),{[`@media only screen and (max-width: ${ue.screenLG}px)`]:{[`${be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ue.screenSM}px)`]:{[`${be}-options`]:{display:"none"}}}),[`&${ue.componentCls}-rtl`]:{direction:"rtl"}}},De=ue=>{const{componentCls:be}=ue;return{[`${be}${be}-disabled:not(${be}-mini)`]:{"&, &:hover":{[`${be}-item-link`]:{borderColor:ue.colorBorder}},"&:focus-visible":{[`${be}-item-link`]:{borderColor:ue.colorBorder}},[`${be}-item, ${be}-item-link`]:{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,[`&:hover:not(${be}-item-active)`]:{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,a:{color:ue.colorTextDisabled}},[`&${be}-item-active`]:{backgroundColor:ue.itemActiveBgDisabled}},[`${be}-prev, ${be}-next`]:{"&:hover button":{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder,color:ue.colorTextDisabled},[`${be}-item-link`]:{backgroundColor:ue.colorBgContainerDisabled,borderColor:ue.colorBorder}}},[`${be}:not(${be}-mini)`]:{[`${be}-prev, ${be}-next`]:{"&:hover button":{borderColor:ue.colorPrimaryHover,backgroundColor:ue.itemBg},[`${be}-item-link`]:{backgroundColor:ue.itemLinkBg,borderColor:ue.colorBorder},[`&:hover ${be}-item-link`]:{borderColor:ue.colorPrimary,backgroundColor:ue.itemBg,color:ue.colorPrimary},[`&${be}-disabled`]:{[`${be}-item-link`]:{borderColor:ue.colorBorder,color:ue.colorTextDisabled}}},[`${be}-item`]:{backgroundColor:ue.itemBg,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,[`&:hover:not(${be}-item-active)`]:{borderColor:ue.colorPrimary,backgroundColor:ue.itemBg,a:{color:ue.colorPrimary}},"&-active":{borderColor:ue.colorPrimary}}}}},qe=ue=>{const{componentCls:be}=ue;return{[`${be}:not(${be}-disabled)`]:{[`${be}-item`]:Object.assign({},(0,Se.Qy)(ue)),[`${be}-jump-prev, ${be}-jump-next`]:{"&:focus-visible":Object.assign({[`${be}-item-link-icon`]:{opacity:1},[`${be}-item-ellipsis`]:{opacity:0}},(0,Se.oN)(ue))},[`${be}-prev, ${be}-next`]:{[`&:focus-visible ${be}-item-link`]:Object.assign({},(0,Se.oN)(ue))}}}};var ft=(0,St.Z)("Pagination",ue=>{const be=(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,Ct.e5)(ue),(0,Ct.TM)(ue));return[Le(be),qe(be),ue.wireframe&&De(be)]},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})),Nt=function(ue,be){var jt={};for(var rt in ue)Object.prototype.hasOwnProperty.call(ue,rt)&&be.indexOf(rt)<0&&(jt[rt]=ue[rt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,rt=Object.getOwnPropertySymbols(ue);ye<rt.length;ye++)be.indexOf(rt[ye])<0&&Object.prototype.propertyIsEnumerable.call(ue,rt[ye])&&(jt[rt[ye]]=ue[rt[ye]]);return jt},_t=ue=>{const{prefixCls:be,selectPrefixCls:jt,className:rt,rootClassName:ye,style:ut,size:tt,locale:wt,selectComponentClass:Wt,responsive:bt,showSizeChanger:Bt}=ue,Tt=Nt(ue,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ln}=(0,Ne.Z)(bt),{getPrefixCls:Vt,direction:qt,pagination:yn={}}=de.useContext(dn.E_),hn=Vt("pagination",be),[Nn,Bn]=ft(hn),Kn=Bt!=null?Bt:yn.showSizeChanger,ea=de.useMemo(()=>{const An=de.createElement("span",{className:`${hn}-item-ellipsis`},"\u2022\u2022\u2022"),Fn=de.createElement("button",{className:`${hn}-item-link`,type:"button",tabIndex:-1},qt==="rtl"?de.createElement(Ae.Z,null):de.createElement(We.Z,null)),Sa=de.createElement("button",{className:`${hn}-item-link`,type:"button",tabIndex:-1},qt==="rtl"?de.createElement(We.Z,null):de.createElement(Ae.Z,null)),oa=de.createElement("a",{className:`${hn}-item-link`},de.createElement("div",{className:`${hn}-item-container`},qt==="rtl"?de.createElement(Qe.Z,{className:`${hn}-item-link-icon`}):de.createElement(me,{className:`${hn}-item-link-icon`}),An)),we=de.createElement("a",{className:`${hn}-item-link`},de.createElement("div",{className:`${hn}-item-container`},qt==="rtl"?de.createElement(me,{className:`${hn}-item-link-icon`}):de.createElement(Qe.Z,{className:`${hn}-item-link-icon`}),An));return{prevIcon:Fn,nextIcon:Sa,jumpPrevIcon:oa,jumpNextIcon:we}},[qt,hn]),[jn]=(0,He.Z)("Pagination",an.Z),Qn=Object.assign(Object.assign({},jn),wt),zn=(0,Sn.Z)(tt),Hn=zn==="small"||!!(ln&&!zn&&bt),bn=Vt("select",jt),aa=_e()({[`${hn}-mini`]:Hn,[`${hn}-rtl`]:qt==="rtl"},yn==null?void 0:yn.className,rt,ye,Bn),Vn=Object.assign(Object.assign({},yn==null?void 0:yn.style),ut);return Nn(de.createElement(At,Object.assign({},ea,Tt,{style:Vn,prefixCls:hn,selectPrefixCls:bn,className:aa,selectComponentClass:Wt||(Hn?Gt:mt),locale:Qn,showSizeChanger:Kn})))},Jt=_t},66309:function(Re,gt,oe){"use strict";oe.d(gt,{default:function(){return ze}});var ee=oe(67294),de=oe(73475),je=oe(94184),ke=oe.n(je),se=oe(98787),Ee=oe(69760),me=oe(45353),Qe=oe(53124),We=oe(14747),Ae=oe(45503),Ye=oe(67968);const _e=pe=>{const{paddingXXS:Ke,lineWidth:vt,tagPaddingHorizontal:lt,componentCls:$e}=pe,it=lt-vt,et=Ke-vt;return{[$e]:Object.assign(Object.assign({},(0,We.Wf)(pe)),{display:"inline-block",height:"auto",marginInlineEnd:pe.marginXS,paddingInline:it,fontSize:pe.tagFontSize,lineHeight:pe.tagLineHeight,whiteSpace:"nowrap",background:pe.defaultBg,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,opacity:1,transition:`all ${pe.motionDurationMid}`,textAlign:"start",position:"relative",[`&${$e}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:pe.defaultColor},[`${$e}-close-icon`]:{marginInlineStart:et,color:pe.colorTextDescription,fontSize:pe.tagIconSize,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,"&:hover":{color:pe.colorTextHeading}},[`&${$e}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${pe.iconCls}-close, ${pe.iconCls}-close:hover`]:{color:pe.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${$e}-checkable-checked):hover`]:{color:pe.colorPrimary,backgroundColor:pe.colorFillSecondary},"&:active, &-checked":{color:pe.colorTextLightSolid},"&-checked":{backgroundColor:pe.colorPrimary,"&:hover":{backgroundColor:pe.colorPrimaryHover}},"&:active":{backgroundColor:pe.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${pe.iconCls} + span, > span + ${pe.iconCls}`]:{marginInlineStart:it}}),[`${$e}-borderless`]:{borderColor:"transparent",background:pe.tagBorderlessBg}}},Fe=pe=>{const{lineWidth:Ke,fontSizeIcon:vt}=pe,lt=pe.fontSizeSM,$e=`${pe.lineHeightSM*lt}px`;return(0,Ae.TS)(pe,{tagFontSize:lt,tagLineHeight:$e,tagIconSize:vt-2*Ke,tagPaddingHorizontal:8,tagBorderlessBg:pe.colorFillTertiary})},ae=pe=>({defaultBg:pe.colorFillQuaternary,defaultColor:pe.colorText});var y=(0,Ye.Z)("Tag",pe=>{const Ke=Fe(pe);return _e(Ke)},ae),a=function(pe,Ke){var vt={};for(var lt in pe)Object.prototype.hasOwnProperty.call(pe,lt)&&Ke.indexOf(lt)<0&&(vt[lt]=pe[lt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,lt=Object.getOwnPropertySymbols(pe);$e<lt.length;$e++)Ke.indexOf(lt[$e])<0&&Object.prototype.propertyIsEnumerable.call(pe,lt[$e])&&(vt[lt[$e]]=pe[lt[$e]]);return vt},b=pe=>{const{prefixCls:Ke,style:vt,className:lt,checked:$e,onChange:it,onClick:et}=pe,Ve=a(pe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:at,tag:At}=ee.useContext(Qe.E_),an=ot=>{it==null||it(!$e),et==null||et(ot)},dn=at("tag",Ke),[Sn,Ne]=y(dn),He=ke()(dn,`${dn}-checkable`,{[`${dn}-checkable-checked`]:$e},At==null?void 0:At.className,lt,Ne);return Sn(ee.createElement("span",Object.assign({},Ve,{style:Object.assign(Object.assign({},vt),At==null?void 0:At.style),className:He,onClick:an})))},x=oe(98719);const z=pe=>(0,x.Z)(pe,(Ke,vt)=>{let{textColor:lt,lightBorderColor:$e,lightColor:it,darkColor:et}=vt;return{[`${pe.componentCls}-${Ke}`]:{color:lt,background:it,borderColor:$e,"&-inverse":{color:pe.colorTextLightSolid,background:et,borderColor:et},[`&${pe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var te=(0,Ye.b)(["Tag","preset"],pe=>{const Ke=Fe(pe);return z(Ke)},ae);function ne(pe){return typeof pe!="string"?pe:pe.charAt(0).toUpperCase()+pe.slice(1)}const re=(pe,Ke,vt)=>{const lt=ne(vt);return{[`${pe.componentCls}-${Ke}`]:{color:pe[`color${vt}`],background:pe[`color${lt}Bg`],borderColor:pe[`color${lt}Border`],[`&${pe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ie=(0,Ye.b)(["Tag","status"],pe=>{const Ke=Fe(pe);return[re(Ke,"success","Success"),re(Ke,"processing","Info"),re(Ke,"error","Error"),re(Ke,"warning","Warning")]},ae),ge=function(pe,Ke){var vt={};for(var lt in pe)Object.prototype.hasOwnProperty.call(pe,lt)&&Ke.indexOf(lt)<0&&(vt[lt]=pe[lt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,lt=Object.getOwnPropertySymbols(pe);$e<lt.length;$e++)Ke.indexOf(lt[$e])<0&&Object.prototype.propertyIsEnumerable.call(pe,lt[$e])&&(vt[lt[$e]]=pe[lt[$e]]);return vt};const ve=(pe,Ke)=>{const{prefixCls:vt,className:lt,rootClassName:$e,style:it,children:et,icon:Ve,color:at,onClose:At,closeIcon:an,closable:dn,bordered:Sn=!0}=pe,Ne=ge(pe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:He,direction:ot,tag:Gt}=ee.useContext(Qe.E_),[mt,Ct]=ee.useState(!0);ee.useEffect(()=>{"visible"in Ne&&Ct(Ne.visible)},[Ne.visible]);const Se=(0,se.o2)(at),St=(0,se.yT)(at),Kt=Se||St,mn=Object.assign(Object.assign({backgroundColor:at&&!Kt?at:void 0},Gt==null?void 0:Gt.style),it),yt=He("tag",vt),[Je,Ie]=y(yt),xe=ke()(yt,Gt==null?void 0:Gt.className,{[`${yt}-${at}`]:Kt,[`${yt}-has-color`]:at&&!Kt,[`${yt}-hidden`]:!mt,[`${yt}-rtl`]:ot==="rtl",[`${yt}-borderless`]:!Sn},lt,$e,Ie),Le=_t=>{_t.stopPropagation(),At==null||At(_t),!_t.defaultPrevented&&Ct(!1)},[,De]=(0,Ee.Z)(dn,an,_t=>_t===null?ee.createElement(de.Z,{className:`${yt}-close-icon`,onClick:Le}):ee.createElement("span",{className:`${yt}-close-icon`,onClick:Le},_t),null,!1),qe=typeof Ne.onClick=="function"||et&&et.type==="a",ft=Ve||null,Nt=ft?ee.createElement(ee.Fragment,null,ft,et&&ee.createElement("span",null,et)):et,$t=ee.createElement("span",Object.assign({},Ne,{ref:Ke,className:xe,style:mn}),Nt,De,Se&&ee.createElement(te,{key:"preset",prefixCls:yt}),St&&ee.createElement(ie,{key:"status",prefixCls:yt}));return Je(qe?ee.createElement(me.Z,{component:"Tag"},$t):$t)},Pe=ee.forwardRef(ve);Pe.CheckableTag=b;var ze=Pe},72665:function(Re,gt){"use strict";var oe;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,je=ee?Symbol.for("react.portal"):60106,ke=ee?Symbol.for("react.fragment"):60107,se=ee?Symbol.for("react.strict_mode"):60108,Ee=ee?Symbol.for("react.profiler"):60114,me=ee?Symbol.for("react.provider"):60109,Qe=ee?Symbol.for("react.context"):60110,We=ee?Symbol.for("react.async_mode"):60111,Ae=ee?Symbol.for("react.concurrent_mode"):60111,Ye=ee?Symbol.for("react.forward_ref"):60112,_e=ee?Symbol.for("react.suspense"):60113,Fe=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,y=ee?Symbol.for("react.lazy"):60116,a=ee?Symbol.for("react.block"):60121,E=ee?Symbol.for("react.fundamental"):60117,b=ee?Symbol.for("react.responder"):60118,x=ee?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case de:switch(ne=ne.type,ne){case We:case Ae:case ke:case Ee:case se:case _e:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Qe:case Ye:case y:case ae:case me:return ne;default:return re}}case je:return re}}}function te(ne){return z(ne)===Ae}oe=We,oe=Ae,oe=Qe,oe=me,oe=de,oe=Ye,oe=ke,oe=y,oe=ae,oe=je,oe=Ee,oe=se,oe=_e,oe=function(ne){return te(ne)||z(ne)===We},oe=te,oe=function(ne){return z(ne)===Qe},oe=function(ne){return z(ne)===me},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===de},oe=function(ne){return z(ne)===Ye},oe=function(ne){return z(ne)===ke},oe=function(ne){return z(ne)===y},gt.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===Ee},oe=function(ne){return z(ne)===se},oe=function(ne){return z(ne)===_e},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===ke||ne===Ae||ne===Ee||ne===se||ne===_e||ne===Fe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===ae||ne.$$typeof===me||ne.$$typeof===Qe||ne.$$typeof===Ye||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},oe=z},12060:function(Re,gt,oe){"use strict";Re.exports=oe(72665)},26819:function(Re,gt){"use strict";var oe;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,je=ee?Symbol.for("react.portal"):60106,ke=ee?Symbol.for("react.fragment"):60107,se=ee?Symbol.for("react.strict_mode"):60108,Ee=ee?Symbol.for("react.profiler"):60114,me=ee?Symbol.for("react.provider"):60109,Qe=ee?Symbol.for("react.context"):60110,We=ee?Symbol.for("react.async_mode"):60111,Ae=ee?Symbol.for("react.concurrent_mode"):60111,Ye=ee?Symbol.for("react.forward_ref"):60112,_e=ee?Symbol.for("react.suspense"):60113,Fe=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,y=ee?Symbol.for("react.lazy"):60116,a=ee?Symbol.for("react.block"):60121,E=ee?Symbol.for("react.fundamental"):60117,b=ee?Symbol.for("react.responder"):60118,x=ee?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case de:switch(ne=ne.type,ne){case We:case Ae:case ke:case Ee:case se:case _e:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Qe:case Ye:case y:case ae:case me:return ne;default:return re}}case je:return re}}}function te(ne){return z(ne)===Ae}oe=We,oe=Ae,oe=Qe,oe=me,oe=de,oe=Ye,oe=ke,oe=y,oe=ae,oe=je,oe=Ee,oe=se,oe=_e,oe=function(ne){return te(ne)||z(ne)===We},oe=te,oe=function(ne){return z(ne)===Qe},oe=function(ne){return z(ne)===me},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===de},oe=function(ne){return z(ne)===Ye},oe=function(ne){return z(ne)===ke},oe=function(ne){return z(ne)===y},gt.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===Ee},oe=function(ne){return z(ne)===se},oe=function(ne){return z(ne)===_e},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===ke||ne===Ae||ne===Ee||ne===se||ne===_e||ne===Fe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===ae||ne.$$typeof===me||ne.$$typeof===Qe||ne.$$typeof===Ye||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},oe=z},18459:function(Re,gt,oe){"use strict";Re.exports=oe(26819)},16651:function(Re,gt){"use strict";var oe;var ee=Symbol.for("react.element"),de=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),Ee=Symbol.for("react.provider"),me=Symbol.for("react.context"),Qe=Symbol.for("react.server_context"),We=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case ee:switch(E=E.type,E){case je:case se:case ke:case Ae:case Ye:return E;default:switch(E=E&&E.$$typeof,E){case Qe:case me:case We:case Fe:case _e:case Ee:return E;default:return b}}case de:return b}}}oe=me,oe=Ee,oe=ee,oe=We,oe=je,oe=Fe,oe=_e,oe=de,oe=se,oe=ke,oe=Ae,oe=Ye,oe=function(){return!1},oe=function(){return!1},oe=function(E){return a(E)===me},oe=function(E){return a(E)===Ee},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ee},oe=function(E){return a(E)===We},oe=function(E){return a(E)===je},oe=function(E){return a(E)===Fe},oe=function(E){return a(E)===_e},oe=function(E){return a(E)===de},oe=function(E){return a(E)===se},oe=function(E){return a(E)===ke},oe=function(E){return a(E)===Ae},oe=function(E){return a(E)===Ye},oe=function(E){return typeof E=="string"||typeof E=="function"||E===je||E===se||E===ke||E===Ae||E===Ye||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Fe||E.$$typeof===_e||E.$$typeof===Ee||E.$$typeof===me||E.$$typeof===We||E.$$typeof===y||E.getModuleId!==void 0)},oe=a},33993:function(Re,gt,oe){"use strict";oe(16651)}}]);