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

151 lines
448 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[7043],{49198:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ye}});var te=oe(54476),se=oe(59301),Ve={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"},We=Ve,ye=oe(7657),xe=function(He,Te){return se.createElement(ye.Z,(0,te.Z)({},He,{ref:Te,icon:We}))},le=se.forwardRef(xe),Ye=le},33853:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ye}});var te=oe(54476),se=oe(59301),Ve={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"},We=Ve,ye=oe(7657),xe=function(He,Te){return se.createElement(ye.Z,(0,te.Z)({},He,{ref:Te,icon:We}))},le=se.forwardRef(xe),Ye=le},32134:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ye}});var te=oe(54476),se=oe(59301),Ve={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"},We=Ve,ye=oe(7657),xe=function(He,Te){return se.createElement(ye.Z,(0,te.Z)({},He,{ref:Te,icon:We}))},le=se.forwardRef(xe),Ye=le},38819:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ye}});var te=oe(54476),se=oe(59301),Ve={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"},We=Ve,ye=oe(7657),xe=function(He,Te){return se.createElement(ye.Z,(0,te.Z)({},He,{ref:Te,icon:We}))},le=se.forwardRef(xe),Ye=le},69453:function(Ge,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"}},72179:function(){"use strict";function Ge(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ge.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(Ge.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(Ge.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(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var gt=[];function oe(ae,a){var y=gt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=gt.pop();return ae===void 0?new go.Point:ae}function se(ae){gt.push(ae)}function Ve(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ve=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ve=a);else{var me=(x-ee)/ie,Oe=x-me*b;ge=ae,ve=me*ge+Oe}else if(ie===0){var Pe=(a-E)/re,qe=a-Pe*ae;ge=b,ve=Pe*ge+qe}else{var Pe=(a-E)/re,me=(x-ee)/ie,qe=a-Pe*ae,Oe=x-me*b;ge=(Oe-qe)/(Pe-me),ve=Pe*ge+qe}return ne.x=ge,ne.y=ve,ne}function We(ae,a,y,E,b,x,z,ee,ne,re,ie,ge,ve,me){var Oe=1-ne,Pe=ne,qe=ae*Oe+y*Pe,ht=a*Oe+E*Pe,Pt=y*Oe+b*Pe,Ce=E*Oe+x*Pe,Xe=b*Oe+z*Pe,Je=x*Oe+ee*Pe,Qe=qe*Oe+Pt*Pe,dt=ht*Oe+Ce*Pe,Et=Pt*Oe+Xe*Pe,Gt=Ce*Oe+Je*Pe,At=Qe*Oe+Et*Pe,Wt=dt*Oe+Gt*Pe;re.x=qe,re.y=ht,ie.x=Qe,ie.y=dt,ge.x=At,ge.y=Wt,ve.x=Et,ve.y=Gt,me.x=Xe,me.y=Je}var ye=new go.Spot(.156,.156),xe=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ye,b.spot2=xe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ye=[];function Re(){var ae=Ye.pop();return ae===void 0?[]:ae}function He(ae){ae.length=0,Ye.push(ae)}function Te(ae){for(var a=Re(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function ke(ae){var a=we(ae),y=Re();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return He(a),y}function we(ae){for(var a=Te(ae),y=Re(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ve(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],He(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Te(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Te(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Te(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Te(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Te(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Te(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Te(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=we(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=we(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=we(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=we(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=we(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=we(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ye,x.spot2=xe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(ne,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=te(),ie=te(),ge=te(),ve=te();We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ve,ve);var me=te(),Oe=te(),Pe=te();We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ve,ve,Pe,me,Oe);var qe=te(),ht=te(),Pt=te();We(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,qe,ht,Pt,ve,ve);var Ce=te(),Xe=te(),Je=te();return We(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ve,ve,Je,Ce,Xe),ne.add(new go.PathSegment(go.PathSegment.Move,Je.x*a,Je.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Ce.x*a,Ce.y*y,Xe.x*a,Xe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Je.x*a,Je.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Pt.x*a,Pt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Pe.x*a,Pe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,me.x*a,me.y*y,Oe.x*a,Oe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*a,Pt.y*y,qe.x*a,qe.y*y,ht.x*a,ht.y*y).close()),se(re),se(ie),se(ge),se(ve),se(me),se(Oe),se(Pe),se(qe),se(ht),se(Pt),se(Ce),se(Xe),se(Je),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ie=te(),ge=te(),ve=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,ne,ne),ve.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var me=oe(re.x,re.y);We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ie,ge);var Oe=oe(re.x,re.y);ve.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.9)*a,.15*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.9)*a,(Oe.y*.1+.05*.9)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Pe=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var qe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(qe),se(ne),se(re),se(ie),se(ge),se(me),se(Oe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ie=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ie.x,ie.y),se(ie),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ie=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ie.x,ie.y),se(ie),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Ve(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ve(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ve(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ve(.7,ne/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Ve(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Ve(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(ge.x,ge.y),se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ve(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ve(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Ve(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Ve(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),se(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,ne=.5,re=.1,ie=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-ee)*y,(ne-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+ee)*y,(ne+z)*a,(re+x)*y));var ge=.05,ve=le*ge;ne=.05,re=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ge)*a,re*y,(ne+ve)*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ve=le*ge,ne=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y,(ne+ve)*a,(re-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-ve)*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ve=le*ge,ne=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y,(ne+ve)*a,(re-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-ve)*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ve=le*ge,ne=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y,(ne+ve)*a,(re-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-ve)*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ve=le*ge,ne=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y,(ne-ve)*a,(re-ge)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,re*y,(ne+z)*a,(re-ee)*y,(ne+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,ne=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,ve=new go.PathFigure(ne*a+ie,(re+ee)*y+ge,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ie,re*y+ge,(ne-z)*a+ie,(re+ee)*y+ge,(ne-ee)*a+ie,(re+z)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne-ee)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-ee)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ie,re*y+ge,ne*a+ie,(re-ee)*y+ge,(ne-ee+z*.5)*a+ie,(re-z)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne-ee+z*.5)*a+ie,(re+z)*y+ge,ne*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,ne=.2,re=.5;var me=new go.PathFigure(ne*a+ie,(re+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ie,re*y+ge,(ne-z)*a+ie,(re+ee)*y+ge,(ne-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne-ee)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ie,re*y+ge,ne*a+ie,(re-ee)*y+ge,(ne-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne-ee+z*.5)*a+ie,(re+z)*y+ge,ne*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,ne=.5,re=.5;var Oe=new go.PathFigure((ne-ee)*a+ie,re*y+ge,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne-ee)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-ee)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ie,re*y+ge,(ne+z)*a+ie,(re-ee)*y+ge,(ne+ee)*a+ie,(re-z)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne+ee)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+ee)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ie,re*y+ge,(ne-z)*a+ie,(re+ee)*y+ge,(ne-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,ne=.8,re=.5;var Pe=new go.PathFigure(ne*a+ie,(re-ee)*y+ge,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ie,re*y+ge,(ne+z)*a+ie,(re-ee)*y+ge,(ne+ee)*a+ie,(re-z)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne+ee)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+ee)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ie,re*y+ge,ne*a+ie,(re+ee)*y+ge,(ne+ee-z*.5)*a+ie,(re+z)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne+ee-z*.5)*a+ie,(re-z)*y+ge,ne*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,ne=1,re=.5;var qe=new go.PathFigure(ne*a+ie,(re-ee)*y+ge,!0);return E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ie,re*y+ge,(ne+z)*a+ie,(re-ee)*y+ge,(ne+ee)*a+ie,(re-z)*y+ge)),qe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne+ee)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+ee)*y+ge)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ie,re*y+ge,ne*a+ie,(re+ee)*y+ge,(ne+ee-z*.5)*a+ie,(re+z)*y+ge)),qe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne+ee-z*.5)*a+ie,(re-z)*y+ge,ne*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ie=te(),ge=te();We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ie,ge);var ve=oe(re.x,re.y),me=new go.PathFigure(re.x*a,re.y*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),We(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,ne,ne),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,We(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,ne,ne),me.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ie,ge),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),se(ne),se(re),se(ie),se(ge),se(ve),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ve=.5,me=0,Oe=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+x)*a,(me+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Oe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Oe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Oe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ve=z,me=z,Oe=ie*ve,Pe=ie*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ve)*a,ne*y,(ee-(Oe+ve)/2)*a,(ne+(me+Pe)/2)*y,(ee-ve)*a,(ne+Pe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-me)*y,(ee-ve)*a,(ne-Pe)*y,(ee-Oe)*a,(ne-me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ve)*a,ne*y,(ee+Oe)*a,(ne-me)*y,(ee+ve)*a,(ne-Pe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ve)*a,(ne+Pe)*y,(ee+(Oe+ve)/2)*a,(ne+(me+Pe)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var qe=new go.PathFigure(.2*a,y,!1);E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ht=new go.PathFigure(.8*a,y,!1);return E.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,ne=.2,re=.9,ie=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,ne=.8,re=.9;var ge=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,re=le*.1,ie=.1,ge=.9,ve=new go.PathFigure((ie-ne)*a,ge*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ne)*y,(ie-ne)*a,(ge-re)*y,(ie-re)*a,(ge-ne)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,ge*y,(ie+re)*a,(ge-ne)*y,(ie+ne)*a,(ge-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ne)*y,(ie+ne)*a,(ge+re)*y,(ie+re)*a,(ge+ne)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,ge*y,(ie-re)*a,(ge+ne)*y,(ie-ne)*a,(ge+re)*y)),ne=.1,re=le*.1,ie=.4,ge=.9;var me=new go.PathFigure((ie-ne)*a,ge*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ne)*y,(ie-ne)*a,(ge-re)*y,(ie-re)*a,(ge-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,ge*y,(ie+re)*a,(ge-ne)*y,(ie+ne)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ne)*y,(ie+ne)*a,(ge+re)*y,(ie+re)*a,(ge+ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,ge*y,(ie-re)*a,(ge+ne)*y,(ie-ne)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,ve=.175,me=.95,ee=new go.PathFigure((ve-ie)*a,me*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me-ie)*y,(ve-ie)*a,(me-ge)*y,(ve-ge)*a,(me-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,me*y,(ve+ge)*a,(me-ie)*y,(ve+ie)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me+ie)*y,(ve+ie)*a,(me+ge)*y,(ve+ge)*a,(me+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,me*y,(ve-ge)*a,(me+ie)*y,(ve-ie)*a,(me+ge)*y));var ie=.05,ge=le*.05,ve=.375,me=.95,ne=new go.PathFigure((ve-ie)*a,me*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me-ie)*y,(ve-ie)*a,(me-ge)*y,(ve-ge)*a,(me-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,me*y,(ve+ge)*a,(me-ie)*y,(ve+ie)*a,(me-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me+ie)*y,(ve+ie)*a,(me+ge)*y,(ve+ge)*a,(me+ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,me*y,(ve-ge)*a,(me+ie)*y,(ve-ie)*a,(me+ge)*y));var ie=.05,ge=le*.05,ve=.625,me=.95,re=new go.PathFigure((ve-ie)*a,me*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me-ie)*y,(ve-ie)*a,(me-ge)*y,(ve-ge)*a,(me-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,me*y,(ve+ge)*a,(me-ie)*y,(ve+ie)*a,(me-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me+ie)*y,(ve+ie)*a,(me+ge)*y,(ve+ge)*a,(me+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,me*y,(ve-ge)*a,(me+ie)*y,(ve-ie)*a,(me+ge)*y));var ie=.05,ge=le*.05,ve=.825,me=.95,Oe=new go.PathFigure((ve-ie)*a,me*y,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me-ie)*y,(ve-ie)*a,(me-ge)*y,(ve-ge)*a,(me-ie)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,me*y,(ve+ge)*a,(me-ie)*y,(ve+ie)*a,(me-ge)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(me+ie)*y,(ve+ie)*a,(me+ge)*y,(ve+ge)*a,(me+ie)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,me*y,(ve-ge)*a,(me+ie)*y,(ve-ie)*a,(me+ge)*y).close());var Pe=new go.PathFigure(0,y,!1);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-ne)*y,(re-ne)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+ne)*a,(ie-ee)*y,(re+ee)*a,(ie-ne)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+ne)*y,(re+ne)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-ne)*a,(ie+ee)*y,(re-ee)*a,(ie+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730: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 Ge={},gt="5.0",oe={},te=null,se=!1,Ve=!1,We=null,ye=!1,xe=null,le=null,Ye=0;Ye<arguments.length;Ye++){var Re=arguments[Ye];if(Re!==null)switch(typeof Re){case"number":gt=Re.toFixed(1);break;case"string":Re.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Re:We=Re;break;case"object":typeof Re.is3D!="undefined"?te=Re:oe=Re;break;case"boolean":se=Re,Ve=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Ve&&(se=!0)),We!==null&&oe.id===void 0&&(oe.id=We);var He="",Te="",ke=!1,we=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(_e){return parseFloat(_e)>4?parseFloat(_e):5};Ge.setHTML5Codebase=function(_e,Me){le=_e,Gt(_e,Me)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(_e,Me){var et=parseFloat(_e);if(et!==NaN&&et<5){console.log("The GeoGebra HTML5 codebase version "+et+" is deprecated. Using version latest instead.");return}xe=_e,Et(_e,Me)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(_e){z=_e},Ge.setGiacJSURL=function(_e){},Ge.setJNLPFile=function(_e){He=_e},Ge.setJNLPBaseDir=function(_e){},Ge.inject=function(){function _e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Me="auto",et=oe.id,wt,ot=!1,ft=0;ft<arguments.length;ft++){var ue=arguments[ft];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Me=ue:et=arguments[ft]):typeof ue=="boolean"?ot=ue:ue instanceof HTMLElement&&(wt=ue)}$e();function $e(){if(!ye){setTimeout($e,200);return}Me=Qe(Me);var je=wt||document.getElementById(et);if(!je){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(je,!1),oe.width===void 0&&je.clientWidth&&(oe.width=je.clientWidth),oe.height===void 0&&je.clientHeight&&(oe.height=je.clientHeight),!(oe.width&&oe.height)&&Me==="html5"&&(delete oe.width,delete oe.height),we=Me,Me==="screenshot")ht(je,oe);else{var xt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?xt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(xt=(!re()||_e())&&ie()),xt?(we="screenshot",Ce(je,oe,ot,Me)):qe(je,oe,ot)}}};function re(){try{return window.self!==window.top}catch(_e){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return te},Ge.isJavaInstalled=function(){return!1};var ge=function(_e){var Me=function(ft){var ue=JSON.parse(ft),$e=function(lt){return lt.type=="G"||lt.type=="E"},je=ue.elements?ue.elements.filter($e)[0]:ue;if(!je||!je.url){et();return}oe.fileName=je.url,ve(je.settings||{}),te.is3D=!0;var xt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||je.previewUrl,xt+"GeoGebra_loading.png",xt+"applet_play.png"),_e()},et=function(){oe.onError&&oe.onError(),At("Error: Fetching material (id "+oe.material_id+") failed.",oe)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ot="/materials/"+oe.material_id+"?scope=basic";me("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(ot),Me,et)};function ve(_e){var Me=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(et){_e[et]=!!_e[et]}),Me.forEach(function(et){oe[et]===void 0&&_e[et]!==void 0&&(oe[et]=_e[et])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(_e,Me,et){var wt=new XMLHttpRequest;wt.open("GET",_e),wt.onload=function(){Me(wt.responseText)},wt.onerror=et,wt.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return we},Ge.setPreviewImage=function(_e,Me,et){E=_e,b=Me,x=et},Ge.removeExistingApplet=function(_e,Me){var et;typeof _e=="string"&&(_e=document.getElementById(_e)),we=null;var wt=null;for(et=0;et<_e.childNodes.length;et++){var ot=_e.childNodes[et],ft=ot.className;ft==="applet_screenshot"?Me?(ot.style.display="block",we="screenshot"):ot.style.display="none":ft!=="applet_scaler prerender"&&(_e.removeChild(ot),wt=ft&&ft.indexOf("appletParameters")!=-1?ot.id:null,et--)}var ue=oe.id!==void 0?oe.id:wt,$e=window[ue];$e&&typeof $e.getBase64=="function"&&($e.remove(),window[ue]=null)},Ge.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var _e=Ge.getAppletObject();return _e&&typeof _e.recalculateEnvironments=="function"?(_e.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var _e=Ge.getAppletObject();return _e&&typeof _e.startAnimation=="function"?(_e.startAnimation(),!0):!1},Ge.stopAnimation=function(){var _e=Ge.getAppletObject();return _e&&typeof _e.stopAnimation=="function"?(_e.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var _e=oe.id!==void 0?oe.id:"ggbApplet";return window[_e]},Ge.resize=function(){};var Oe=function(_e,Me,et){var wt=document.createElement("param");wt.setAttribute("name",Me),wt.setAttribute("value",et),_e.appendChild(wt)},Pe=function(_e){return _e&&_e!=="false"},qe=function(_e,Me,et){ne(ae)<=4.2&&(et=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ot=document.createElement("div");ot.classList.add("appletParameters","notranslate");var ft=Me.width,ue=Me.height;if(Me.disableAutoScale=Me.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Me.disableAutoScale,Me.width!==void 0)if(ne(ae)<=4.4)Pe(Me.showToolBar)&&(Me.height-=7),Pe(Me.showAlgebraInput)&&(Me.height-=37),Me.width<605&&Pe(Me.showToolBar)&&(Me.width=605,ft=605);else{var $e=100;(Pe(Me.showToolBar)||Pe(Me.showMenuBar))&&(Me.hasOwnProperty("customToolBar")&&(Me.customToolbar=Me.customToolBar),$e=Pe(Me.showMenuBar)?245:155),ft<$e&&(Me.width=$e,ft=$e)}ot.style.border="none",ot.style.display="inline-block";for(var je in Me)Me.hasOwnProperty(je)&&je!=="appletOnLoad"&&ot.setAttribute("data-param-"+je,Me[je]);z&&ot.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(_e,Me)},window.addEventListener("resize",function(Se){Ge.resize()});var xt=typeof Me.appletOnLoad=="function"?Me.appletOnLoad:function(){};if(!et&&Me.width!==void 0){Me.hasOwnProperty("showSplash")||ot.setAttribute("data-param-showSplash","false");var lt=_e.querySelector(".applet_scaler.prerender"),De=lt!==null;if(De)var be=lt.querySelector(".ggb_preview");else{var be=Je(ft,ue,Me.borderColor,!1);lt=document.createElement("div"),lt.className="applet_scaler",lt.style.position="relative",lt.style.display="block",lt.style.width=ft+"px",lt.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(lt,"66%"),ne(ae)>=5?(Me.appletOnLoad=function(Se){var Ke=_e.querySelector(".ggb_preview");Ke&&Ke.parentNode.removeChild(Ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(lt),window.GGBT_wsf_view&&$(window).trigger("resize"),xt(Se)},De||lt.appendChild(be)):ot.appendChild(be),lt.appendChild(ot),De||_e.appendChild(lt),setTimeout(function(){Ge.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(ot),_e.appendChild(pe),Me.appletOnLoad=function(Se){Ge.resize(),xt(Se)}}function Ie(Se,Ke){Ke&&typeof Ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Se,Ke.appletOnLoad):renderGGBElement(Se),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ke)}function Ze(Se,Ke){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Se,params:Ke}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(yt){Ie(yt.article,yt.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(Se.className+=" geogebraweb")):Ie(Se,Ke)}if(wt){scriptLoadStarted=!0;for(var rt=0;rt<ot.childNodes.length;rt++){var de=ot.childNodes[rt].tagName;de==="TABLE"&&(ot.removeChild(ot.childNodes[rt]),rt--)}if(ggbHTML5LoadedScript!==null){var he=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');he!=null&&he.parentNode.removeChild(he)}var it=document.createElement("script"),Ue=function(){Ze(ot,Me)};it.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=it.src,At("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Me),!le&&(!xe||xe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ue()):Te.requirejs?__webpack_require__.e(3690).then(function(){var Se=[__webpack_require__(63690)];Ue.apply(null,Se)}.bind(this)).catch(__webpack_require__.oe):(it.onload=Ue,_e.appendChild(it))}else Ze(ot,Me);Me.height=ue,Me.width=ft},ht=function(_e,Me,et){var wt=Je(Me.width,Me.height,Me.borderColor,et),ot=document.createElement("div");ot.style.position="relative",ot.style.display="block",ot.style.width=Me.width+"px",ot.style.height=Me.height+"px",ot.className="applet_screenshot applet_scaler"+(et?" applet_screenshot_play":""),ot.appendChild(wt);var ft=GGBAppletUtils.getScale(Me,_e,et);et?(_e.appendChild(Xe()),window.GGBT_wsf_view||(_e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ot,"66%"),_e.appendChild(ot),ft!==1&&!isNaN(ft)&&(GGBAppletUtils.scaleElement(ot,ft),ot.style.width=Me.width+"px",ot.style.height=Me.height+"px",ot.parentNode.style.width=Me.width*ft+"px",ot.parentNode.style.height=Me.height*ft+"px"),Ge.resize=function(){Pt(_e,wt,ot,et)},window.addEventListener("resize",function(ue){Ge.resize()}),Ge.resize()};function Pt(_e,Me,et,wt){if(_e.contains(Me)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(_e)}var ot=GGBAppletUtils.getScale(oe,_e,wt);et.parentNode!==null&&(!isNaN(ot)&&ot!==1?(GGBAppletUtils.scaleElement(et,ot),et.parentNode.style.width=oe.width*ot+"px",et.parentNode.style.height=oe.height*ot+"px"):(GGBAppletUtils.scaleElement(et,1),et.parentNode.style.width=oe.width+"px",et.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(_e),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(_e,Me){Me.appendChild(_e)};var Ce=function(_e,Me,et,wt){ht(_e,Me,!0);for(var ot=function(){var $e=[];for(ue=0;ue<_e.childNodes.length;ue++)$e.push(_e.childNodes[ue]);if(window.GGBT_wsf_view){var je=window.GGBT_wsf_view.renderFullScreen(_e,Me.id),xt=document.getElementById("fullscreencontainer"),lt=jQuery(_e).find(".fullscreencontent");lt.length>0?(je.remove(),lt.attr("id","fullscreencontent").show(),jQuery(xt).append(lt),window.dispatchEvent(new Event("resize"))):qe(je,Me,!1),window.GGBT_wsf_view.launchFullScreen(xt)}else we=wt,qe(_e,Me,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<$e.length;ue++)_e.removeChild($e[ue])},ft=_e.getElementsByClassName("ggb_preview_play"),ue=0;ue<ft.length;ue++)ft[ue].addEventListener("click",ot,!1),ft[ue].addEventListener("ontouchstart",ot,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(_e),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xe=function(){var _e=document.createElement("div");if(_e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Me='.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");}',et=document.createElement("style");et.styleSheet?et.styleSheet.cssText=Me:et.appendChild(document.createTextNode(Me)),document.getElementsByTagName("head")[0].appendChild(et)}return _e},Je=function(_e,Me,et,wt){var ot=document.createElement("div");ot.className="ggb_preview",ot.style.position="absolute",ot.style.zIndex="90",ot.style.width=_e-2+"px",ot.style.height=Me-2+"px",ot.style.top="0px",ot.style.left="0px",ot.style.overflow="hidden",ot.style.backgroundColor="white";var ft="lightgrey";et!==void 0&&(et==="none"?ft="transparent":ft=et),ot.style.border="1px solid "+ft;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,b!==null){var $e,je,xt;if(!wt){$e=document.createElement("img"),$e.style.position="absolute",$e.style.zIndex="1001",$e.style.opacity=1,ue.style.opacity=.3,je=360,je>_e/4*3&&(je=_e/4*3),xt=je/5.8,$e.setAttribute("src",b),$e.setAttribute("width",je),$e.setAttribute("height",xt);var lt=(_e-je)/2,De=(Me-xt)/2;$e.style.left=lt+"px",$e.style.top=De+"px",ot.appendChild($e)}}return ot.appendChild(ue),ot},Qe=function(_e){return _e=_e.toLowerCase(),_e==="html5"||_e==="screenshot"?_e:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(_e,Me){if(ae=_e,Me){Gt(ae,!0);return}var et=!se;if(et){var wt=ne(ae);!isNaN(wt)&&wt<4.4&&(et=!1)}var ot,ft;window.location.protocol.substr(0,4)==="http"?ot=window.location.protocol:ot="http:";var ue=ae.indexOf("//");ue>0?ft=ae:ue===0?ft=ot+ae:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var $e in dt)if(ae.slice(dt[$e].length*-1)===dt[$e]||ae.slice((dt[$e].length+1)*-1)===dt[$e]+"/"){Gt(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&et&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Pe(oe.showToolBar)&&!Pe(oe.showMenuBar)&&!Pe(oe.showAlgebraInput)&&!Pe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?ft+="webSimple/":ft+="web3d/",Gt(ft,!1)},Gt=function(_e,Me){if(_e.requirejs){Te=_e;return}_e.slice(-1)!=="/"&&(_e+="/"),Te=_e,Me===null&&(Me=_e.indexOf("http")===-1),ke=Me,a="web.nocache.js",y=!1;var et=Te.split("/");et.length>1&&(!Me&&et[et.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):dt.indexOf(et[et.length-2])>=0&&(a=et[et.length-2]+".nocache.js")),et=_e.split("/"),ae=et[et.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 wt=parseFloat(ae);wt!==NaN&&wt<5&&_e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),Et("5.0",Me))},At=function(_e,Me){window.console&&window.console.log&&(!Me||typeof Me.showLogging=="undefined"||Me.showLogging&&Me.showLogging!=="false")&&console.log(_e)};oe.material_id!==void 0?ge(Wt):Wt();function Wt(){var _e=gt;xe!==null?_e=xe:parseFloat(_e)<5&&(_e="5.0"),Et(_e,!1),le!==null&&Gt(le,ke),ye=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function gt(ye,xe){xe!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+xe+","+xe+")",ye.style.webkitTransform="scale("+xe+","+xe+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function oe(ye,xe,le,Ye,Re,He){var Te=null;if(He!=null&&He!="")for(var ke=ye.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+He+" ")>-1){Te=ke;break}else ke=ke.parentNode;var we=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Te)we=Te.offsetWidth,ae=Math.max(Ye?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(we=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=we):(we=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ye){var z=ye.getBoundingClientRect();z.left>0&&z.left<=we&&(Re===void 0||!Re)&&(document.dir==="rtl"?(E=we-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ye&&((le===void 0||!le)&&xe>0&&xe+y<we?we=xe:we-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:we,height:ae}}function te(ye,xe,le,Ye,Re){if(ye.isScreenshoGenerator)return 1;var He=Ye!==void 0&&Ye,Te=ye.noScaleMargin!=null&&ye.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},we=ke(ye.autoHeight),ae=oe(xe,ye.width,le,we,He&&window.GGBT_wsf_view||Te,Re),a=parseInt(ae.width),y=ye.width,E=ye.height;if(y===void 0){var b=xe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=He?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function se(ye,xe,le){var Ye=1,Re,He=!1;if(ye.hasOwnProperty("allowUpscale")&&(He=ye.allowUpscale),ye.hasOwnProperty("scale")&&(Ye=parseFloat(ye.scale),(isNaN(Ye)||Ye===null||Ye===0)&&(Ye=1),Ye>1&&(He=!0)),xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))Re=te(ye,xe,He,le,ye.scaleContainerClass);else return Ye;return He&&(!ye.hasOwnProperty("scale")||Ye===1)?Re:Math.min(Ye,Re)}function Ve(ye){var xe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=ye.getBoundingClientRect(),Re=(xe-Ye.width)/2,He=(le-Ye.height)/2;He<0&&(He=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Re<40?ye.style.left="40px":ye.style.left=Re+"px",ye.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?ye.style.top="40px":ye.style.top=He+"px",ye.style.left=Re+"px")}function We(ye,xe){var le=ye.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Ye=se(xe,ye);Ge()&&le.setAttribute("data-param-scale",Ye);for(var Re=null,He=0;He<ye.childNodes.length;He++)if(ye.childNodes[He].className!==void 0&&ye.childNodes[He].className.match(/^applet_scaler/)){Re=ye.childNodes[He];break}if(Re!==null&&Re.querySelector(".noscale")!==null)return;var Te=xe.id!==void 0?xe.id:"ggbApplet",ke=window[Te];(ke==null||!ke.recalculateEnvironments)&&Re!==null&&!Re.className.match(/fullscreen/)&&(Re.parentNode.style.transform="",!isNaN(Ye)&&Ye!==1?(Re.parentNode.style.width=xe.width*Ye+"px",Re.parentNode.style.height=xe.height*Ye+"px",gt(Re,Ye)):(gt(Re,1),Re.parentNode.style.width=xe.width+"px",Re.parentNode.style.height=xe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:We,isFlexibleWorksheetEditor:Ge,positionCenter:Ve,getScale:se,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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,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(Ge){var gt=s[L].bindings;s[L].bindings=function(){for(var oe=gt?gt():{},te=Ge[webModule.__softPermutationId],se=O;se<te.length;se++){var Ve=te[se];oe[Ve[O]]=Ve[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Ge){function gt(te){function se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=se();if(Ve){te();return}function We(){if(!Ve){if(!se())return;Ve=!0,te(),o.removeEventListener&&o.removeEventListener(Z,We,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,We,!1);var ye=setInterval(function(){We()},$)}function oe(te){var se=u(),Ve=se.body,We=se.createElement(_);We.language=ab,We.crossOrigin=W,We.src=te,webModule.__errFn&&(We.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ve.appendChild(We)}gt(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var gt=u(),oe=gt.body,te=gt.createElement(_);te.language=ab,te.text=Ge,oe.appendChild(te),oe.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var gt=c[Ge];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Ge(ye){var xe=ye.lastIndexOf(rb);xe==-1&&(xe=ye.length);var le=ye.indexOf(sb);le==-1&&(le=ye.length);var Ye=ye.lastIndexOf(tb,Math.min(le,xe));return Ye>=O?ye.substring(O,Ye+P):W}function gt(ye){if(!ye.match(/^\w+:\/\//)){var xe=o.createElement(ub);xe.src=ye+vb,ye=Ge(xe.src)}return ye}function oe(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function te(){for(var ye=o.getElementsByTagName(_),xe=O;xe<ye.length;++xe)if(ye[xe].src.indexOf(xb)!=-1)return Ge(ye[xe].src);return W}function se(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function Ve(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var We=oe();return We==W&&(We=te()),We==W&&(We=se()),We==W&&Ve()&&(We=Ge(o.location.href)),We=gt(We),We}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],gt=O,oe=[],te=[];function se(ye){var xe=te[ye](),le=oe[ye];if(xe in le)return xe;var Ye=[];for(var Re in le)Ye[le[Re]]=Re;throw r&&r(ye,Ye,xe),null}if(__gwt_isKnownPropertyValue=function(ye,xe){return xe in oe[ye]},webModule.__getPropMap=function(){var ye={};for(var xe in oe)oe.hasOwnProperty(xe)&&(ye[xe]=se(xe));return ye},webModule.__computePropValue=se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var We=Ve.indexOf(Db);We!=-1&&(gt=parseInt(Ve.substring(We+P),$),Ve=Ve.substring(O,We))}catch(ye){}return webModule.__softPermutationId=gt,C(Ve+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})()},82977:function(Ge,gt,oe){"use strict";oe.d(gt,{Ax:function(){return We},Ds:function(){return ye},KI:function(){return le},SI:function(){return Ve},f1:function(){return se}});var te=oe(49647);function se(Ye){let Re=!0;if(Ye.length>0){for(let He=0;He<Ye.length;He++)if(Ye[He].compile_success==0||!Ye[He].compile_success){Re=!1;break}}else Re=!1;return Re}function Ve(Ye,Re=""){let He=[];for(let Te=0;Te<Ye.length;Te++){let ke=Ye[Te],we=Re?`${Re}/${ke.name}`:`${ke.name}`;He.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:we})}return He}function We(Ye,Re,He){for(let Te=0;Te<Ye.length;Te++){let ke=Ye[Te];if(ke.key===Re){ke.children=He;break}ke.children&&We(ke.children,Re,He)}return Ye}function ye(Ye,Re,He){let Te;return function(){let ke=this,we=arguments,ae=function(){Te=null,He||Ye.apply(ke,we)},a=He&&!Te;clearTimeout(Te),Te=setTimeout(ae,Re),a&&Ye.apply(ke,we)}}const xe=!0,le=te.Z.API_SERVER},18852:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Re}});var te=oe(59301),se=oe(92832),Ve=oe(12563),We=oe(8591),ye={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},xe=oe(62772);const{TextArea:le}=se.default;class Ye extends te.Component{constructor(Te){super(Te),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Te,onAnswerChange:ke,addChildAnswer:we,exerciseIsPublish:ae,answers:a,activeOptionErrorIndex:y,flex:E="0 0 1000px"}=this.props;console.log("----",a);let{inputVisible:b,EditInputIndex:x}=this.state;return te.createElement("div",{className:ye.flex},te.createElement("div",{className:`${ye.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Te+1,"):"),te.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},a==null?void 0:a.map((z,ee)=>te.createElement(te.Fragment,null,x!==ee?(z==null?void 0:z.length)>0?te.createElement(Ve.Z,{className:"edit-tag",key:z,closable:!(Te===0&&ee===0),onClose:ne=>{ne.preventDefault(),(a==null?void 0:a.length)===1&&ee===0?this.props.deleteChildAnswermain(Te,ee):this.props.deleteChildAnswer(Te,ee)}},te.createElement("span",{onDoubleClick:ne=>{this.setState({EditInputIndex:ee}),ne.preventDefault()}},z)):te.createElement(se.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){We.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}ke(Te,ee,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):te.createElement(se.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){We.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}ke(Te,ee,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!b&&te.createElement(Ve.Z,{className:"site-tag-plus",onClick:()=>{we(Te),this.setState({inputVisible:!0})}},te.createElement(xe.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Re=Ye},23811:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return ae}});var te=oe(59301),se=oe(48551),Ve=Object.defineProperty,We=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Re=(a,y,E)=>y in a?Ve(a,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):a[y]=E,He=(a,y)=>{for(var E in y||(y={}))le.call(y,E)&&Re(a,E,y[E]);if(xe)for(var E of xe(y))Ye.call(y,E)&&Re(a,E,y[E]);return a},Te=(a,y)=>We(a,ye(y)),ke=(a,y,E)=>Re(a,typeof y!="symbol"?y+"":y,E);const we="\u2581";class ae extends te.Component{constructor(){super(...arguments),ke(this,"getChCountBeforeCursor",(y,E)=>{const b=E.line;let x=0;for(let ee=0;ee<b;ee++)x+=y.getLine(ee).split(we).length-1;const z=y.getLine(b).substring(0,E.ch);return x+=z.split(we).length-1,x}),ke(this,"onCMBeforeChange",(y,E)=>{const b=y.getRange(E.from,E.to);let x=0;if(E.text.forEach(z=>{x+=z.split(we).length-1}),b&&b.indexOf(we)!=-1){const z=b.split(we).length-1,ee=this.getChCountBeforeCursor(y,E.from);console.log(`\u5220\u9664${z}\u4E2A\uFF0C \u4E4B\u524D\u6709${ee}\u4E2A\uFF0C\u65B0\u589E${x}\u4E2A`),this.props.deleteEmptyDisabled?E.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(ee,z,x)}else if(x){const z=this.getChCountBeforeCursor(y,E.from);console.log(`\u65B0\u589E${x}\u4E2A\uFF0C\u4E4B\u524D\u6709${z}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(z,0,x)}})}render(){return te.createElement(se.Z,Te(He({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},5140:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Te}});var te=oe(59301),se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=oe(92310),We=oe.n(Ve),ye=oe(71418),xe=oe(2859),le=oe(98280),Ye=oe(19374),Re=(ke,we,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,we)).next())}),Te=({data:ke,className:we,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ie,ge]=(0,te.useState)(!1),[ve,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&Oe()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[ke==null?void 0:ke.visible]);const Oe=()=>Re(void 0,null,function*(){ge(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,Ye.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Ce,z.current.onload=function(){Pt()},ge(!1),me("")}),Pe=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},qe=Ce=>Re(void 0,null,function*(){ge(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xe=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Ce.dataUrl}});Xe!=null&&Xe.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xe==null?void 0:Xe.id,settings:JSON.stringify(Ce.state)}})).status===0&&E():Xe!=null&&Xe.id&&E(Xe),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ge(!1),me("")}),ht=()=>{const Ce=document.querySelector('a[href="https://markerjs.com/"]');Ce&&Ce.parentNode&&(Ce.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Je=>{const Qe=document.querySelector(Je.name);Qe&&Qe.setAttribute("title",Je.title)})},Pt=()=>{ee.current=new xe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",qe),ee.current.addEventListener("beforeclose",Pe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ht()},300)};return te.createElement(te.Fragment,null,(ke==null?void 0:ke.visible)&&te.createElement(ye.Z,{spinning:ie,tip:ve,style:{position:"absolute"}},te.createElement("div",{ref:re,className:We()(se.imageDimensions,we,ae?se.fullWidth:""),style:a},te.createElement("img",{className:se.img,ref:z}))))}},88601:function(Ge,gt,oe){"use strict";var te=oe(59301),se=oe(95237),Ve=oe(43604),We=oe(99313),ye=oe(3113),xe=oe(12470),le=oe(69453),Ye=oe(48136),Re=oe(59301);const He=(0,te.forwardRef)(({callback:Te,showSaveButton:ke,value:we=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Re.createElement(se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Re.createElement(Ve.Z,{flex:"110px",className:le.Z.item},Re.createElement("div",null,Re.createElement(xe.Z,{value:`$$${ee.value}$$`}),ee.name),Re.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Re.createElement("div",{key:ie},Re.createElement("h1",null,re.name),Re.createElement(se.Z,{gutter:[10,10]},re.data.map((ge,ve)=>Re.createElement(Ve.Z,{key:ve,onClick:()=>b(ge),className:le.Z.diamond},Re.createElement(xe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Re.createElement(se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Re.createElement(Ve.Z,{flex:"110px",className:le.Z.item},Re.createElement("div",null,Re.createElement(xe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Re.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Re.createElement("div",{key:ie},re.name&&Re.createElement("h1",null,re.name),Re.createElement(se.Z,{gutter:[10,10]},re.data.map((ge,ve)=>Re.createElement(Ve.Z,{key:ve,onClick:()=>b(ge),className:le.Z.diamond},Re.createElement(xe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Te&&Te(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Re.createElement("div",{className:le.Z.mathWrap},Re.createElement(We.default,{defaultActiveKey:"1",items:x}),Re.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},we||""),ke&&Re.createElement("div",{className:le.Z.button},Re.createElement(ye.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=He},45923:function(Ge,gt,oe){"use strict";oe.d(gt,{h:function(){return ee}});var te=oe(59301),se=oe(57809),Ve=oe(78241),We=oe(3113),ye=oe(89780),xe=oe.n(ye),le=oe(6303),Ye=oe(87671),Re=Object.defineProperty,He=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ie)=>re in ne?Re(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ne[re]=ie,y=(ne,re)=>{for(var ie in re||(re={}))we.call(re,ie)&&a(ne,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(ne,ie,re[ie]);return ne},E=(ne,re)=>He(ne,Te(re));const b=se.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gt.Z=({callback:ne,onCancel:re})=>{const[ie,ge]=(0,te.useState)("python");function ve(Oe){ge(z[Oe][1])}function me(Oe){ne(Oe)}return te.createElement(Ve.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(se.default,{getPopupContainer:Oe=>Oe.parentNode,onChange:ve},Object.keys(z).map(Oe=>te.createElement(b,{key:Oe,value:Oe},z[Oe][0])))),te.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ie})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ie,options:ge={}}){const ve=(0,te.useRef)(),[me,Oe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let Pe=function(qe){const ht=qe.getValue();re&&re(ht)};return me.on("change",Pe),()=>{me.off("change",Pe)}}},[me,re]),(0,te.useEffect)(()=>{me&&me.setOption("mode",ie)},[me,ie]),(0,te.useEffect)(()=>{me&&(ne!==me.getValue()||ne==="")&&setTimeout(()=>{me.setValue(ne||"")},300)},[me,ne]),(0,te.useEffect)(()=>{if(ve.current&&!me){const Pe=xe().fromTextArea(ve.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Oe(Pe)}},[ve.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:ve}))}},48551:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Qn}});var te=oe(59301),se=oe(89780),Ve=oe.n(se),We=oe(76374),ye=oe(6303),xe=oe(6313),le=oe(25717),Ye=oe(99498),Re=oe(25419),He=oe(67549),Te=oe(12470),ke=({value:Le="",className:ze,showTextOnly:Be,showLines:St,style:Bt={}})=>{const Ft=(0,te.useMemo)(()=>"",[Le]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Ft}}))},we=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,ze,Be)=>ze in Le?ae(Le,ze,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Le[ze]=Be,ee=(Le,ze)=>{for(var Be in ze||(ze={}))b.call(ze,Be)&&z(Le,Be,ze[Be]);if(E)for(var Be of E(ze))x.call(ze,Be)&&z(Le,Be,ze[Be]);return Le},ne=(Le,ze)=>a(Le,y(ze));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:Le,title:ze,icon:Be,actionName:St,className:Bt="",children:Ft}){function ln(){Le(St)}return we.createElement("a",{title:ze,className:Bt,onClick:ln},we.createElement("i",{className:`${Be}`}),Ft)}var ge=({watch:Le,showNullButton:ze,showNullProgramButton:Be,onActionCallback:St,fullScreen:Bt,insertTemp:Ft,hidetoolBar:ln,extraUse:Vt})=>{const zt=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return we.createElement("ul",{className:"markdown-toolbar-container"},!ln&&zt.map((Ut,En)=>we.createElement("li",{key:En},Ut.actionName?we.createElement(ie,ne(ee({},Ut),{onActionCallback:St})):we.createElement("span",{className:"v-line"}))),ze?we.createElement("li",null,we.createElement(ie,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:St},we.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Be?we.createElement(we.Fragment,null,we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:St},we.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:St},we.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ft&&we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ft}`,onActionCallback:St},we.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&we.createElement("li",null,Vt),we.createElement("li",{className:"btn-full-screen"},we.createElement(ie,{icon:`${Bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:St})))},ve=oe(44991),me=oe(78241),Oe=oe(92832),Pe=oe(3113),qe=Object.defineProperty,ht=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Qe=(Le,ze,Be)=>ze in Le?qe(Le,ze,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Le[ze]=Be,dt=(Le,ze)=>{for(var Be in ze||(ze={}))Xe.call(ze,Be)&&Qe(Le,Be,ze[Be]);if(Ce)for(var Be of Ce(ze))Je.call(ze,Be)&&Qe(Le,Be,ze[Be]);return Le},Et=(Le,ze)=>ht(Le,Pt(ze));const Gt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:Le,onCancel:ze})=>{function Be(St){Le(St)}return te.createElement(me.default,Et(dt({},Gt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Be,style:{width:500}}),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Oe.default,null)),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Oe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},Wt=oe(45923),_e=oe(76021),Me=oe(43418),et=oe(95237),wt=oe(5140),ot=oe(59301),ft=({callback:Le,onCancel:ze})=>{const Be=document.createElement("canvas"),St=Be.getContext("2d");Be.width=1e3,Be.height=800,St.fillStyle="#ffffff",St.fillRect(0,0,Be.width,Be.height);const Bt=Be.toDataURL("image/png");return ot.createElement(Me.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement(et.Z,{style:{height:"100vh"}},ot.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bt,visible:!0,title:String(Date.now())},onOk:Ft=>{Le({src:Ft.url})},onClose:ze})))},ue=oe(12378);function $e(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit($e,go.CommandHandler),$e.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},$e.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var ze=1/0;Le.selection.each(function(Be){Be instanceof go.Link||(ze=Math.min(Be.position.x,ze))}),Le.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(ze,Be.position.y))}),Le.commitTransaction("aligning left")},$e.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var ze=-1/0;Le.selection.each(function(Be){if(!(Be instanceof go.Link)){var St=Be.actualBounds.x+Be.actualBounds.width;ze=Math.max(St,ze)}}),Le.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(ze-Be.actualBounds.width,Be.position.y))}),Le.commitTransaction("aligning right")},$e.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var ze=1/0;Le.selection.each(function(Be){Be instanceof go.Link||(ze=Math.min(Be.position.y,ze))}),Le.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.position.x,ze))}),Le.commitTransaction("alignTop")},$e.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var ze=-1/0;Le.selection.each(function(Be){if(!(Be instanceof go.Link)){var St=Be.actualBounds.y+Be.actualBounds.height;ze=Math.max(St,ze)}}),Le.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.actualBounds.x,ze-Be.actualBounds.height))}),Le.commitTransaction("aligning bottom")},$e.prototype.alignCenterX=function(){var Le=this.diagram,ze=Le.selection.first();if(ze){Le.startTransaction("aligning Center X");var Be=ze.actualBounds.x+ze.actualBounds.width/2;Le.selection.each(function(St){St instanceof go.Link||St.move(new go.Point(Be-St.actualBounds.width/2,St.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},$e.prototype.alignCenterY=function(){var Le=this.diagram,ze=Le.selection.first();if(ze){Le.startTransaction("aligning Center Y");var Be=ze.actualBounds.y+ze.actualBounds.height/2;Le.selection.each(function(St){St instanceof go.Link||St.move(new go.Point(St.actualBounds.x,Be-St.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},$e.prototype.alignColumn=function(Le){var ze=this.diagram;ze.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var Be=new Array;ze.selection.each(function(Vt){Vt instanceof go.Link||Be.push(Vt)});for(var St=0;St<Be.length-1;St++){var Bt=Be[St],Ft=Bt.actualBounds.y+Bt.actualBounds.height+Le,ln=Be[St+1];ln.move(new go.Point(Bt.actualBounds.x,Ft))}ze.commitTransaction("align Column")},$e.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var ze=this.diagram;ze.startTransaction("align Row");var Be=new Array;ze.selection.each(function(Vt){Vt instanceof go.Link||Be.push(Vt)});for(var St=0;St<Be.length-1;St++){var Bt=Be[St],Ft=Bt.actualBounds.x+Bt.actualBounds.width+Le,ln=Be[St+1];ln.move(new go.Point(Ft,Bt.actualBounds.y))}ze.commitTransaction("align Row")},$e.prototype.canRotate=function(Le){var ze=this.diagram;return!(ze===null||ze.isReadOnly||ze.isModelReadOnly||ze.selection.count<1)},$e.prototype.rotate=function(Le){Le===void 0&&(Le=90);var ze=this.diagram;ze.startTransaction("rotate "+Le.toString());var ze=this.diagram;ze.selection.each(function(Be){Be instanceof go.Link||Be instanceof go.Group||(Be.angle+=Le)}),ze.commitTransaction("rotate "+Le.toString())},$e.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var ze=new go.Map;Le.selection.each(function(Be){ze.set(Be.layer,0)}),ze.iteratorKeys.each(function(Be){var St=0;Be.parts.each(function(Bt){if(!Bt.isSelected){var Ft=Bt.zOrder;isNaN(Ft)?Bt.zOrder=0:St=Math.max(St,Ft)}}),ze.set(Be,St)}),Le.selection.each(function(Be){$e._assignZOrder(Be,ze.get(Be.layer)+1)}),Le.commitTransaction("pullToFront")},$e.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var ze=new go.Map;Le.selection.each(function(Be){ze.set(Be.layer,0)}),ze.iteratorKeys.each(function(Be){var St=0;Be.parts.each(function(Bt){if(!Bt.isSelected){var Ft=Bt.zOrder;isNaN(Ft)?Bt.zOrder=0:St=Math.min(St,Ft)}}),ze.set(Be,St)}),Le.selection.each(function(Be){$e._assignZOrder(Be,ze.get(Be.layer)-1-$e._findGroupDepth(Be))}),Le.commitTransaction("pushToBack")},$e._assignZOrder=function(Le,ze,Be){Be===void 0&&(Be=Le),Le.layer===Be.layer&&(Le.zOrder=ze),Le instanceof go.Group&&Le.memberParts.each(function(St){$e._assignZOrder(St,ze+1,Be)})},$e._findGroupDepth=function(Le){if(Le instanceof go.Group){var ze=0;return Le.memberParts.each(function(Be){ze=Math.max(ze,$e._findGroupDepth(Be))}),ze+1}else return 0},$e.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var ze=Le.lastInput;if(ze.key==="Up"||ze.key==="Down"||ze.key==="Left"||ze.key==="Right"){var Be=this.arrowKeyBehavior;if(Be==="none")return;if(Be==="select"){this._arrowKeySelect();return}else if(Be==="move"){this._arrowKeyMove();return}else if(Be==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},$e.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(ze){Le.push(ze)}),this.diagram.parts.each(function(ze){Le.push(ze)}),Le},$e.prototype._arrowKeyMove=function(){var Le=this.diagram,ze=Le.lastInput,Be=0,St=0;if(ze.control||ze.meta)Be=1,St=1;else if(Le.grid!==null){var Bt=Le.grid.gridCellSize;St=Bt.width,Be=Bt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Ft){ze.key==="Up"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y-Be)):ze.key==="Down"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y+Be)):ze.key==="Left"?Ft.move(new go.Point(Ft.actualBounds.x-St,Ft.actualBounds.y)):ze.key==="Right"&&Ft.move(new go.Point(Ft.actualBounds.x+St,Ft.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},$e.prototype._arrowKeySelect=function(){var Le=this.diagram,ze=Le.lastInput,Be=null;ze.key==="Up"?Be=this._findNearestPartTowards(270):ze.key==="Down"?Be=this._findNearestPartTowards(90):ze.key==="Left"?Be=this._findNearestPartTowards(180):ze.key==="Right"&&(Be=this._findNearestPartTowards(0)),Be!==null&&(ze.shift?Be.isSelected=!0:ze.control||ze.meta?Be.isSelected=!Be.isSelected:Le.select(Be))},$e.prototype._findNearestPartTowards=function(Le){var ze=this.diagram.selection.first();if(ze===null)return null;for(var Be=ze.actualBounds.center,St=this._getAllParts(),Bt=1/0,Ft=ze,ln=0;ln<St.length;ln++){var Vt=St[ln];if(Vt!==ze&&Vt.canSelect()){var zt=Vt.actualBounds.center,Ut=Be.directionPoint(zt),En=this._angleCloseness(Ut,Le);if(En<=45){var tt=Be.distanceSquaredPoint(zt);tt*=1+Math.sin(En*Math.PI/180),tt<Bt&&(Bt=tt,Ft=Vt)}}}return Ft},$e.prototype._angleCloseness=function(Le,ze){return Math.min(Math.abs(ze-Le),Math.min(Math.abs(ze+360-Le),Math.abs(ze-360-Le)))},$e.prototype._arrowKeyTree=function(){var Le=this.diagram,ze=Le.selection.first();if(ze instanceof go.Node){var Be=Le.lastInput;if(Be.key==="Right"){if(!ze.isTreeLeaf)if(!ze.isTreeExpanded)Le.commandHandler.canExpandTree(ze)&&Le.commandHandler.expandTree(ze);else{var St=this._sortTreeChildrenByY(ze).first();St!==null&&Le.select(St)}}else if(Be.key==="Left")if(!ze.isTreeLeaf&&ze.isTreeExpanded)Le.commandHandler.canCollapseTree(ze)&&Le.commandHandler.collapseTree(ze);else{var Bt=ze.findTreeParentNode();Bt!==null&&Le.select(Bt)}else if(Be.key==="Up"){var Bt=ze.findTreeParentNode();if(Bt!==null){var Ft=this._sortTreeChildrenByY(Bt),ln=Ft.indexOf(ze);if(ln>0){for(var Vt=Ft.elt(ln-1);Vt!==null&&Vt.isTreeExpanded&&!Vt.isTreeLeaf;){var zt=this._sortTreeChildrenByY(Vt);Vt=zt.last()}Vt!==null&&Le.select(Vt)}else Le.select(Bt)}}else if(Be.key==="Down")if(ze.isTreeExpanded&&!ze.isTreeLeaf){var St=this._sortTreeChildrenByY(ze).first();St!==null&&Le.select(St)}else for(;ze!==null;){var Bt=ze.findTreeParentNode();if(Bt===null)break;var Ft=this._sortTreeChildrenByY(Bt),ln=Ft.indexOf(ze);if(ln<Ft.length-1){Le.select(Ft.elt(ln+1));break}else ze=Bt}var Ut=Le.selection.first();Ut!==null&&Le.scrollToRect(Ut.actualBounds)}},$e.prototype._sortTreeChildrenByY=function(Le){var ze=new go.List().addAll(Le.findTreeChildrenNodes());return ze.sort(function(Be,St){var Bt=Be.location,Ft=St.location;return Bt.y<Ft.y?-1:Bt.y>Ft.y?1:Bt.x<Ft.x?-1:Bt.x>Ft.x?1:0}),ze},$e.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},$e.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty($e.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty($e.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var je=$e,xt=oe(72179),lt=oe(43604),De=oe(98280),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=oe(59301),Ie=(Le,ze,Be)=>new Promise((St,Bt)=>{var Ft=zt=>{try{Vt(Be.next(zt))}catch(Ut){Bt(Ut)}},ln=zt=>{try{Vt(Be.throw(zt))}catch(Ut){Bt(Ut)}},Vt=zt=>zt.done?St(zt.value):Promise.resolve(zt.value).then(Ft,ln);Vt((Be=Be.apply(Le,ze)).next())});function Ze({onCancel:Le,callback:ze}){let Be=(0,te.useRef)(),St=(0,te.useRef)(),Bt=(0,te.useRef)(),Ft=(0,te.useRef)(!1);const ln=(0,te.useRef)(!1),[Vt,zt]=(0,te.useState)(0);function Ut(){const tt=ue.bx.make,Jt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Be.current=new ue.S0(St.current,{padding:20,grid:tt(ue.s_,"Grid",tt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Fe=>{var fe=Fe.diagram.commandHandler.addTopLevelParts(Fe.diagram.selection,!0);fe||Fe.diagram.currentTool.doCancel()},commandHandler:tt(je),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Fe=>{var fe=Fe.subject;fe.location=fe.location.copy().snapToGridPoint(Fe.diagram.grid.gridOrigin,Fe.diagram.grid.gridCellSize),setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Fe=>{var fe=Fe.subject;setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Fe=>{var fe=Fe.parameter.part;fe.invalidateConnectedLinks();var at=Fe.subject;Fe.diagram.toolManager.linkingTool.isForwards?at.toNode.invalidateConnectedLinks():at.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Be.current.nodeTemplate=tt(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),tt(ue.bn,{name:"SHAPE",fill:Jt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),tt(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),tt(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),Be.current.nodeTemplate.toolTip=tt("ToolTip",tt(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},tt(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),tt(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Bn(Fe,fe){var at=(ut,$t)=>{ut.handled=!0,ut.diagram.model.commit(Mt=>{var qt=$t.part.adornedPart,vt=new ue.E9().setRectSpot(qt.actualBounds,Fe);vt.subtract(qt.location),vt.scale(2,2),vt.x+=Math.sign(vt.x)*130,vt.y+=Math.sign(vt.y)*130,vt.add(qt.location),vt.snapToGridPoint(ut.diagram.grid.gridOrigin,ut.diagram.grid.gridCellSize);var tn=Mt.copyNodeData(qt.data);Mt.setGroupKeyForNodeData(tn,Mt.getGroupKeyForNodeData(qt.data)),Mt.addNodeData(tn);var un={from:qt.key,to:Mt.getKeyForNodeData(tn)};Mt.addLinkData(un);var hn=ut.diagram.findNodeForData(tn);hn.location=vt,ut.diagram.select(hn),setTimeout(()=>{ut.diagram.commandHandler.editTextBlock()},20)})};return tt(ue.bn,{figure:fe,alignment:Fe,alignmentFocus:Fe.opposite(),width:Fe.equals(ue.z6.Top)||Fe.equals(ue.z6.Bottom)?25:18,height:Fe.equals(ue.z6.Top)||Fe.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:Jt.white,strokeWidth:4,mouseEnter:(ut,$t)=>$t.fill="dodgerblue",mouseLeave:(ut,$t)=>$t.fill="orange",isActionable:!0,click:at,contextClick:at})}function ta(Fe){return tt(ue.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:(fe,at)=>at.fill="dodgerblue",mouseLeave:(fe,at)=>at.fill="orange",click:(fe,at)=>{fe.diagram.commandHandler.showContextMenu(at.part.adornedPart)}},Fe||{})}Be.current.nodeTemplate.selectionAdornmentTemplate=tt(ue.uz,"Spot",tt(ue.Vm,{padding:10}),Bn(ue.z6.Top,"TriangleUp"),Bn(ue.z6.Left,"TriangleLeft"),Bn(ue.z6.Right,"TriangleRight"),Bn(ue.z6.Bottom,"TriangleDown"),ta({alignment:new ue.z6(.75,0)}));function Nn(Fe,fe){return(at,ut)=>{at.handled=!0,at.diagram.model.commit($t=>{$t.set(ut.part.adornedPart.data,Fe,fe)})}}function yn(Fe,fe){return fe||(fe="color"),tt(ue.bn,{width:16,height:16,stroke:"lightgray",fill:Fe,margin:1,background:"transparent",mouseEnter:(at,ut)=>ut.stroke="dodgerblue",mouseLeave:(at,ut)=>ut.stroke="lightgray",click:Nn(fe,Fe),contextClick:Nn(fe,Fe)})}function la(){return[tt("ContextMenuButton",tt(ue.s_,"Horizontal",yn(Jt.white,"fill"),yn(Jt.beige,"fill"),yn(Jt.extralightblue,"fill"),yn(Jt.extralightred,"fill"))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",yn(Jt.lightgray,"fill"),yn(Jt.lightgreen,"fill"),yn(Jt.lightblue,"fill"),yn(Jt.lightred,"fill")))]}function ia(){return[tt("ContextMenuButton",tt(ue.s_,"Horizontal",yn(Jt.black),yn(Jt.green),yn(Jt.blue),yn(Jt.red))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",yn(Jt.white),yn(Jt.magenta),yn(Jt.purple),yn(Jt.orange)))]}function ca(Fe,fe){return fe||(fe="thickness"),tt(ue.bn,"LineH",{width:16,height:16,strokeWidth:Fe,margin:1,background:"transparent",mouseEnter:(at,ut)=>ut.background="dodgerblue",mouseLeave:(at,ut)=>ut.background="transparent",click:Nn(fe,Fe),contextClick:Nn(fe,Fe)})}function La(Fe,fe){return fe||(fe="dash"),tt(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Fe,margin:1,background:"transparent",mouseEnter:(at,ut)=>ut.background="dodgerblue",mouseLeave:(at,ut)=>ut.background="transparent",click:Nn(fe,Fe),contextClick:Nn(fe,Fe)})}function Sa(){return[tt("ContextMenuButton",tt(ue.s_,"Horizontal",ca(1),ca(2),ca(3),ca(4))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",La(null),La([2,4]),La([4,4])))]}function Yn(Fe,fe){return fe||(fe="figure"),tt(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Fe,margin:1,background:"transparent",mouseEnter:(at,ut)=>ut.fill="dodgerblue",mouseLeave:(at,ut)=>ut.fill="lightgray",click:Nn(fe,Fe),contextClick:Nn(fe,Fe)})}Be.current.nodeTemplate.contextMenu=tt("ContextMenu",tt("ContextMenuButton",tt(ue.s_,"Horizontal",Yn("Rectangle"),Yn("RoundedRectangle"),Yn("Ellipse"),Yn("Diamond"))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",Yn("Parallelogram2"),Yn("ManualOperation"),Yn("Procedure"),Yn("Cylinder1"))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",Yn("Terminator"),Yn("CreateRequest"),Yn("Document"),Yn("TriangleDown"))),la(),ia(),Sa()),Be.current.groupTemplate=tt(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Fe,fe)=>{var at=fe.addMembers(fe.diagram.selection,!0);at||fe.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),tt(ue.s_,"Auto",{name:"BODY"},tt(ue.bn,{parameter1:10,fill:Jt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),tt(ue.Vm,{background:"transparent",margin:20})),tt(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),Be.current.groupTemplate.selectionAdornmentTemplate=tt(ue.uz,"Spot",tt(ue.s_,"Auto",tt(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),tt(ue.Vm,{margin:1.5})),ta({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),Be.current.groupTemplate.contextMenu=tt("ContextMenu",la(),ia(),Sa()),Be.current.linkTemplate=tt(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",Fe=>Fe>=1?10:0),new ue.KX("toShortLength","dir",Fe=>Fe>=1?10:0),new ue.KX("points").makeTwoWay(),tt(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),tt(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Fe=>Fe===1)),tt(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Fe=>Fe>=1),new ue.KX("width","thickness",Fe=>7+3*Fe),new ue.KX("height","thickness",Fe=>7+3*Fe),new ue.KX("segmentOffset","thickness",Fe=>new ue.E9(-15,4+1.5*Fe))),tt(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Fe=>Fe===2),new ue.KX("width","thickness",Fe=>7+3*Fe),new ue.KX("height","thickness",Fe=>7+3*Fe),new ue.KX("segmentOffset","thickness",Fe=>new ue.E9(-15,4+1.5*Fe))),tt(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),Be.current.linkTemplate.selectionAdornmentTemplate=tt(ue.uz,tt(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ha(2)},new ue.KX("pathPattern","thickness",ha)),ta({alignmentFocus:new ue.z6(0,0,-6,-4)}));function ha(Fe){return tt(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Fe+4).toString()+" H3"})}function Ne(Fe){var fe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Fe===0?fe="M0 0 M16 16 M0 8 L16 8":Fe===2&&(fe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),tt(ue.bn,{geometryString:fe,margin:2,background:"transparent",mouseEnter:(at,ut)=>ut.background="dodgerblue",mouseLeave:(at,ut)=>ut.background="transparent",click:Nn("dir",Fe),contextClick:Nn("dir",Fe)})}function Ae(Fe){var fe=(at,ut)=>{at.handled=!0,at.diagram.model.commit($t=>{var Mt=ut.part.adornedPart;$t.set(Mt.data,Fe?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(Fe?Mt.toNode:Mt.fromNode).invalidateConnectedLinks()})};return tt(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(at,ut)=>ut.background="dodgerblue",mouseLeave:(at,ut)=>ut.background="transparent",click:fe,contextClick:fe})}function ce(Fe,fe){var at=0,ut=ue.z6.RightSide;Fe.equals(ue.z6.Top)?(at=270,ut=ue.z6.TopSide):Fe.equals(ue.z6.Left)?(at=180,ut=ue.z6.LeftSide):Fe.equals(ue.z6.Bottom)&&(at=90,ut=ue.z6.BottomSide),fe||(at-=180);var $t=(Mt,qt)=>{Mt.handled=!0,Mt.diagram.model.commit(vt=>{var tn=qt.part.adornedPart;vt.set(tn.data,fe?"toSpot":"fromSpot",ue.z6.stringify(ut)),(fe?tn.toNode:tn.fromNode).invalidateConnectedLinks()})};return tt(ue.bn,{alignment:Fe,alignmentFocus:Fe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:at,background:"transparent",mouseEnter:(Mt,qt)=>qt.background="dodgerblue",mouseLeave:(Mt,qt)=>qt.background="transparent",click:$t,contextClick:$t})}Be.current.linkTemplate.contextMenu=tt("ContextMenu",ia(),Sa(),tt("ContextMenuButton",tt(ue.s_,"Horizontal",Ne(0),Ne(1),Ne(2))),tt("ContextMenuButton",tt(ue.s_,"Horizontal",tt(ue.s_,"Spot",Ae(!1),ce(ue.z6.Top,!1),ce(ue.z6.Left,!1),ce(ue.z6.Right,!1),ce(ue.z6.Bottom,!1)),tt(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},Ae(!0),ce(ue.z6.Top,!0),ce(ue.z6.Left,!0),ce(ue.z6.Right,!0),ce(ue.z6.Bottom,!0)))));const Ee=`{ "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 rn=["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 fn(Fe){return console.log("shapeName:",Fe),rn.indexOf(Fe)>=0}var Rt=new ue.YI(Bt.current,{maxSelectionCount:1,linkTemplate:tt(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:tt(ue.uz,"Link",{locationSpot:ue.z6.Center},tt(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),tt(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),tt(ue.bn,{isPanelMain:!0,strokeWidth:2}),tt(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(Fe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Fe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Be.current.addDiagramListener("TextEdited",function(Fe){var fe;const at=Fe.subject.part;var ut=(fe=document.activeElement)==null?void 0:fe.value;typeof ut=="string"&&ut.trim()===""&&Be.current.model.commit(function($t){$t.set(at.data,"text","\u672A\u547D\u540D"),Be.current.commandHandler.stopCommand()},"increment")}),Rt.nodeTemplate=tt(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),tt(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),tt(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{Be.current.grid=tt(ue.s_,"Grid",tt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Be.current.grid.visible=!0,Be.current.grid.gridCellStroke="darkgray",Be.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Be.current,Be.current}const En=()=>Ie(this,null,function*(){var tt=Be.current.makeImage();const Jt=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:tt.src}});ze({src:Jt.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{Ut()},500),zt(Vt+1),()=>{Be.current=null}),[]),pe.createElement("div",{ref:ln,className:Ft.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Me.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(et.Z,null,pe.createElement(lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(lt.Z,{onClick:()=>{var tt,Jt,Bn=Be.current.selection.first();if(Ft.current=!Ft.current,document.activeElement&&Bn){let ta=(Jt=(tt=document.activeElement)==null?void 0:tt.value)==null?void 0:Jt.trim();typeof ta=="string"&&Be.current.model.commit(function(Nn){Nn.set(Bn.data,"text",ta||"\u672A\u547D\u540D"),Be.current.commandHandler.stopCommand()},"increment")}zt(Vt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},pe.createElement("div",{style:{display:"flex",height:"100%"}},pe.createElement("div",{style:{width:"300px",height:"100%"}},pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:Bt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:St,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Pe.ZP,{size:"large",onClick:En,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var rt=Ze,de=oe(5112),he=oe(5871);const it=de.ZP.Group,Ue={margin:"0 8px"};var Se=({callback:Le,onCancel:ze})=>{function Be(St){Le(St)}return te.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Be},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Ue},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Ue},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(he.Z,null)),te.createElement("span",{style:Ue},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(he.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Ue},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(it,null,te.createElement(de.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(de.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(de.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(de.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},Ke=oe(78673),yt=oe(25730),st=oe.n(yt),nt=(0,te.forwardRef)(({use3d:Le,width:ze,height:Be,callback:St,showSaveButton:Bt},Ft)=>{const ln=(0,te.useRef)(),Vt=(0,te.useRef)(),[zt,Ut]=(0,te.useState)(!1),En=(0,te.useRef)({id:ln,appName:"graphing",width:ze||1e3,height:Be||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Vt.current=new(st())(En.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const tt=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return St&&St(Jt),Jt};return(0,te.useEffect)(()=>{En.current.appName=zt?"3D":"graphing",Vt.current.inject("applet_container")},[zt]),(0,te.useEffect)(()=>{Ut(Le)},[Le]),(0,te.useImperativeHandle)(Ft,()=>({getImgData:tt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),te.createElement(et.Z,{align:"middle"},te.createElement(lt.Z,{flex:1},te.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:zt,onChange:Jt=>Ut(Jt)})),te.createElement(lt.Z,null,te.createElement(Pe.ZP,{size:"large",onClick:tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ct=oe(88601),mt=oe(1012),Dt=oe(8591);const It="link",Tt="upload-image",Kt="add-flowchart",kt="draw-image",en="add-flowchart",Zt="code-block",sn="add-table",pn="------------",vn={default:pn,left:`:${pn}`,center:`:${pn}:`,right:`${pn}:`};var Rn=oe(28934),kn=(Le,ze,Be)=>new Promise((St,Bt)=>{var Ft=zt=>{try{Vt(Be.next(zt))}catch(Ut){Bt(Ut)}},ln=zt=>{try{Vt(Be.throw(zt))}catch(Ut){Bt(Ut)}},Vt=zt=>zt.done?St(zt.value):Promise.resolve(zt.value).then(Ft,ln);Vt((Be=Be.apply(Le,ze)).next())});function Ln(){}let an=0;const zn=1e4,jn="\u2581",Yt="@\u2581\u2581@",Sn="@\u2581@",Vn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ea=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Wn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const Gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jn={[Gn+"-B"]:"bold",[Gn+"-I"]:"italic"},Qt={[It]:"\u6DFB\u52A0\u94FE\u63A5",[Zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Tt]:"\u6DFB\u52A0\u56FE\u7247",[kt]:"\u6DFB\u52A0\u753B\u56FE",[Kt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[sn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:Le="",onChange:ze,width:Be="100%",height:St=400,miniToolbar:Bt=!1,isFocus:Ft=!1,watch:ln,insertTemp:Vt,mode:zt="markdown",id:Ut="markdown-editor-id",showResizeBar:En=!1,noStorage:tt=!1,showNullButton:Jt=!1,showNullProgramButton:Bn=!1,hidetoolBar:ta=!1,fullScreen:Nn=!1,onBlur:yn,onCMBeforeChange:la,onFullScreen:ia,className:ca="",disablePaste:La=!1,disabled:Sa=!1,disabledFill:Yn=!1,placeholder:ha="",values:Ne="",extraUse:Ae,onAddBlank:ce})=>{const[Ee,rn]=(0,te.useState)(null),[fn,Rt]=(0,te.useState)(Le),[Fe,fe]=(0,te.useState)(ln),[at,ut]=(0,te.useState)(Nn),[$t,Mt]=(0,te.useState)(""),[qt,vt]=(0,te.useState)(0),[tn,un]=(0,te.useState)(St),[hn,bn]=(0,te.useState)(!1),An=(0,te.useRef)((0,mt.Z)()),$n=(0,te.useRef)(!1),Cn=(0,te.useRef)(),[On,wn]=(0,te.useState)(0),[gn,mn]=(0,te.useState)(0),Ot=(0,te.useRef)(),Tn=(0,te.useRef)(),Ht=(0,te.useRef)(),Lt=(0,te.useRef)(),nn=()=>kn(void 0,null,function*(){var Nt;const pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:An.current}});(Nt=pt==null?void 0:pt.attachments)!=null&&Nt.length&&(console.log("cm:",Ee,Ot),pt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?Ee.replaceSelection(`![,](/api/attachments/${Ct.id}?type=${Ct.content_type})`):Ct.content_type.indexOf("video")>-1?Ee.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?Ee.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):Ee.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,te.useEffect)(()=>{const Nt=window.scrollY||window.pageYOffset;Rt(Ne),Ee==null||Ee.setValue(Ne),window.scrollTo(0,Nt)},[Ne]),(0,te.useEffect)(()=>{ia==null||ia(at)},[at]),(0,te.useEffect)(()=>{if(Ot.current){let Nt=function(Ct,_t){var cn;if(La){_t.preventDefault();return}const Fn=_t.clipboardData;if(Fn){const Kn=Fn.types.toString(),In=Fn.items;if(Kn==="Files"||Fn.types.indexOf("Files")>-1){if(_t.preventDefault(),zt=="stex")return;try{let Hn=In[1];((cn=In[0])==null?void 0:cn.kind)==="file"&&(Hn=In[0]);const Zn=Hn.getAsFile(),ga=Zn.name.split(".").pop();(0,_e.I)(Zn,Xn=>{var fa,Pa,pa;Xn.id?((fa=Zn==null?void 0:Zn.type)==null?void 0:fa.indexOf("image"))>-1?pt.replaceSelection(`<img width="100%" src="/api/attachments/${Xn.id}?type=${Xn.content_type})" alt="" />`):((Pa=Zn==null?void 0:Zn.type)==null?void 0:Pa.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Xn.id}"></video>`):((pa=Zn==null?void 0:Zn.type)==null?void 0:pa.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="/api/attachments/${Xn.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):ea.includes(ga)?pt.replaceSelection(`<a href="/api/attachments/${Xn.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):pt.replaceSelection(`[${Zn.name}](/api/attachments/${Xn.id}?type=${Xn.content_type})`):(Xn==null?void 0:Xn.status)===401&&(Dt.ZP.warning((Xn==null?void 0:Xn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Hn){Dt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pt=Ve().fromTextArea(Ot.current,{mode:zt,lineNumbers:!Bt,lineWrapping:!0,value:Le,autoCloseTags:!Bn,autoCloseBrackets:!0});return pt.on("keyup",function(Ct,_t){_t.keyCode===8&&(Ct.getValue()==""?pt.setOption("placeholder",ha):pt.setOption("placeholder",null))}),pt.on("keydown",function(Ct,_t){if(_t.keyCode===8){var cn=na(Ct);cn&&_t.preventDefault()}}),Ft&&pt.focus(),pt.on("paste",Nt),pt.on("dragleave",function(Ct,_t){Tn.current.classList.remove("mouse-hover-md")}),Sa&&pt.on("beforeChange",function(Ct,_t){(_t.origin==="paste"||_t.origin==="+input")&&_t.cancel()}),rn(pt),()=>{pt.off("paste",Nt)}}},[]);const Xt=(0,te.useCallback)(()=>{if(Tn.current)try{}catch(Nt){console.log(Nt,"---- to set md editor body height")}},[tn,Tn,at]);(0,te.useEffect)(()=>{function Nt(){let pt=new We.Z(Ct=>{for(let _t of Ct)(_t.target.offsetHeight>0||_t.target.offsetWidth>0)&&(Xt(),Ee.setSize("100%","100%"),Ee.refresh())});return pt.observe(Ot.current.parentElement),pt}if(Ee){const pt=Nt();return()=>{var Ct,_t;(Ct=Ot.current)!=null&&Ct.parentElement&&pt.unobserve((_t=Ot.current)==null?void 0:_t.parentElement)}}},[Ee,Xt]),(0,te.useEffect)(()=>{if(Ee){let Nt=[];for(const[pt,Ct]of Object.entries(Jn)){let _t={[pt]:()=>{Mn(Ct)}};Nt.push(_t),Ee.addKeyMap(_t)}return Cn.current=setInterval(()=>{$n.current&&nn()},4e3),()=>{clearInterval(Cn.current);for(let pt of Nt)Ee.removeKeyMap(pt)}}},[Ee]),(0,te.useEffect)(()=>{Nn!==at&&ut(Nn)},[Nn]),(0,Rn.Z)(()=>{if(!tt&&qt>0){let Nt=new Date().getTime(),pt=window.sessionStorage.getItem(Ut);Nt>=qt+zn&&(!pt||pt!==fn)&&(window.sessionStorage.setItem(Ut,fn),bn(!0))}},zn),(0,te.useEffect)(()=>{fe(ln)},[Ee,ln]),(0,te.useEffect)(()=>{Ee&&Ft&&Ee.focus()},[Ee,Ft]),(0,te.useEffect)(()=>{if(Fe&&Ee){let Nt=function(Ct){let _t=Ct.target;if(Lt.current){let cn=_t.scrollTop/_t.scrollHeight;Lt.current.scrollTop=Lt.current.scrollHeight*cn}};const pt=Ee.getScrollerElement();return pt.addEventListener("scroll",Nt),()=>{pt.removeEventListener("scroll",Nt)}}},[Ee,Fe]),(0,te.useEffect)(()=>{if(Ee&&la){let Nt=function(pt,Ct){la(pt,Ct)};return Ee.on("beforeChange",Nt),()=>{Ee.off("beforeChange",Nt)}}},[Ee,la]),(0,te.useEffect)(()=>{if(Ee&&yn){let Nt=function(){yn(Ee.getValue())};return Ee.on("blur",Nt),()=>{Ee.off("blur",Nt)}}},[Ee,yn]);function na(Nt,pt){var Ct=Nt.getDoc(),_t=Ct.getCursor(),cn=Ct.getLine(_t.line),Fn=cn.charAt(_t.ch-1),Kn=cn.lastIndexOf("@\u2581@",_t.ch),In=cn.lastIndexOf("@\u2581\u2581@",_t.ch),Hn=Kn>In?Kn:In,Zn=Kn>In?3:4;if(Yt.indexOf(Fn)===-1)return null;if(console.log("change1:",pt,Nt,cn,_t,Hn,Kn,In,Fn),Hn>=0&&_t.ch-Hn<5){var ga=Hn+Zn;return Ct.replaceRange("",{line:_t.line,ch:Hn},{line:_t.line,ch:ga}),{line:_t.line,ch:ga}}return null}(0,te.useEffect)(()=>{if(Ee){let Nt=function(pt,Ct){const _t=pt.getValue();Rt(_t),vt(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ze&&(Bn?ze(_t,da(_t)):ze(_t))};return Ee.on("change",Nt),()=>{Ee.off("change",Nt)}}},[Ee,ze]),(0,te.useEffect)(()=>{if(Ee)if(Le==null)Ee.setValue(""),Rt("");else{const Nt=window.scrollY||window.pageYOffset;Le!==Ee.getValue()&&(Ee.setValue(Le),Rt(Le),Ee.setCursor(Sa?1:Ee.lineCount(),0),window.scrollTo(0,Nt))}},[Ee,Le]);const Mn=(0,te.useCallback)(Nt=>{const pt=Ee.getCursor(),Ct=Ee.getSelection();let _t=Ct.split(`
`);switch(Nt){case"bold":return Ee.replaceSelection("**"+Ct+"**"),Ct===""&&Ee.setCursor(pt.line,pt.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+Ct+"*"),Ct===""&&Ee.setCursor(pt.line,pt.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+Ct+"`"),Ct===""&&Ee.setCursor(pt.line,pt.ch+1),Ee.focus();case"inline-latex":return Mt("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+Ct+"\n```"),Ee.setCursor(pt.line+1,Ct.length+1),Ee.focus();case"line-break":return Ee.replaceSelection(`<br/>
`),Ee.focus();case"list-ul":return Ct===""?Ee.replaceSelection("- "+Ct):Ee.replaceSelection(_t.map(cn=>cn===""?"":`- ${cn}`).join(`
`)),Ee.focus();case"list-ol":return Ct===""?Ee.replaceSelection("1. "+Ct):Ee.replaceSelection(_t.map((cn,Fn)=>cn===""?"":`${Fn+1}. ${cn}`).join(`
`)),Ee.focus();case"add-null-ch":ce==null||ce();return;case"add-signal":return Ct===""&&Ee.setCursor(pt.line,pt.ch),Ee.replaceSelection(Sn),Ee.focus();case"add-multiple":return Ct===""&&Ee.setCursor(pt.line,pt.ch),Ee.replaceSelection(Yt),Ee.focus();case"inster-template-1":return Ct===""&&Ee.setCursor(pt.line,pt.ch),Ee.replaceSelection(Vn),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return fe(!Fe),Ee.focus();case"trigger-full-screen":return ut(!at),Ee.focus();case It:Mt(It);return;case Zt:Mt(Zt);return;case Tt:Mt(Tt);return;case kt:Mt(kt);return;case"maths-latex":Mt("maths-latex");return;case Kt:Mt(Kt);return;case sn:Mt(sn);return;default:throw new Error}},[Ee,Fe,at]),dn=(0,te.useCallback)((Nt,pt)=>{var Ct,_t,cn,Fn,Kn,In;switch(Mt(""),$t){case It:const{title:fa,link:Pa}=Nt;return Ee.replaceSelection(`[${fa}](${Pa})`),Ee.focus();case Zt:const{language:pa,content:_a}=Nt;return Ee.replaceSelection(["```"+pa,_a,"```"].join(`
`)),Ee.focus();case"maths-latex":for(var Hn=atob(Nt),Zn=new Uint8Array(Hn.length),ga=0;ga<Hn.length;ga++)Zn[ga]=Hn.charCodeAt(ga);var Xn=new Blob([Zn],{type:"image/png"});(0,_e.I)(Xn,aa=>{aa.id?Ee.replaceSelection(`![,](/api/attachments/${aa.id}?type=${aa.content_type})`):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ee.replaceSelection("`$$"+Nt+"$$`");break;case Tt:case kt:case en:const{src:sa,alt:xa}=Nt,_n=pt,Oa=(cn=(_t=(Ct=_n==null?void 0:_n.name)==null?void 0:Ct.split("."))==null?void 0:_t.pop)==null?void 0:cn.call(_t);return((Fn=_n==null?void 0:_n.type)==null?void 0:Fn.indexOf("image"))>-1||!(_n!=null&&_n.type)?_n.align||_n.width?Ee.replaceSelection(`<p style="text-align:${_n.align||"initial"}"><img width="${_n.width?_n.width+"%":"initial"}" src="${sa}" alt="${xa||""}" /></p>`):Ee.replaceSelection(`<img width="100%" src="${sa}" alt="${xa||""}" />`):((Kn=_n==null?void 0:_n.type)==null?void 0:Kn.indexOf("video"))>-1?Ee.replaceSelection(`<video width="100%" controls src="${sa}"></video>`):((In=_n==null?void 0:_n.type)==null?void 0:In.indexOf("pdf"))>-1?Ee.replaceSelection(`<a href="${sa}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):ea.includes(Oa)?Ee.replaceSelection(`<a href="${sa}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):Ee.replaceSelection(`[${_n.name}](${sa})`),Ee.focus();case sn:const{row:va,col:ya,align:ua}=Nt;let ba=`
`;for(let aa=0;aa<va;aa++){let Ba=[],Na=[];for(let ma=0;ma<ya;ma++)aa===1&&Na.push(vn[ua]),Ba.push(" ");aa===1&&(ba+=`| ${Na.join(" | ")} |
`),ba+=`| ${Ba.join(ya===1?"":" | ")} |
`}return Ee.replaceSelection(ba+`
`),Ee.focus();default:throw new Error}},[Ee,$t]),Dn=(0,te.useMemo)(()=>{switch($t){case It:return te.createElement(At,{callback:dn,onCancel:jt});case Zt:return te.createElement(Wt.Z,{callback:dn,onCancel:jt});case Tt:return te.createElement(_e.Z,{callback:dn,onCancel:jt});case Kt:return te.createElement(rt,{callback:dn,onCancel:jt});case sn:return te.createElement(Se,{callback:dn,onCancel:jt});case"maths-latex":return te.createElement(nt,{showSaveButton:!0,callback:dn});case"inline-latex":return te.createElement(ct.Z,{showSaveButton:!0,callback:dn});default:return null}},[$t]);function jt(){Mt("")}(0,te.useEffect)(()=>{if(Ht.current){let Nt=function(Kn){cn=!0,Fn=Kn.pageY},pt=function(){cn=!1},Ct=function(Kn){if(cn){let In=Kn.pageY-Fn;In<0&&(In=0),In>300&&(In=300);let Hn=St+In+"px";un(Hn)}},_t=Ht.current,cn=!1,Fn=0;return _t.addEventListener("mousedown",Nt),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",pt),()=>{_t.removeEventListener("mousedown",Nt),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",pt)}}},[Ee,Ht]),(0,te.useEffect)(()=>{un(St)},[St]);const on=Wn(Be),xn=Wn(tn),Un={width:on,height:xn},qn=(0,te.useMemo)(()=>{if(qt){let Nt=new Date(qt),pt=Nt.getHours(),Ct=Nt.getMinutes(),_t=Nt.getSeconds();return pt=pt<10?"0"+pt:pt,Ct=Ct<10?"0"+Ct:Ct,_t=_t<10?"0"+_t:_t,`${pt}:${Ct}:${_t}`}return 0},[qt]),da=Nt=>{const pt=[];if(Bn){let Ct=-1;Nt=Nt.replace(/(@▁▁@|@▁@)/g,function(_t,cn,Fn){pt.push({multiLine:_t!==Sn})})}return pt};function wa(){window.sessionStorage.removeItem(Ut),bn(!1),vt(0)}function $a(){bn(!1),vt(0),Ee.setValue(window.sessionStorage.getItem(Ut))}(0,te.useEffect)(()=>{Qt[$t]&&$t!==kt&&$t!==Kt&&setTimeout(()=>{const Nt=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Nt.offsetWidth/2,Ct=window.innerHeight/2-Nt.offsetHeight/2;wn(pt),mn(Ct)},0)},[$t]);const Ca=Nt=>{Nt.preventDefault();const pt=Nt.clientX-On,Ct=Nt.clientY-gn;document.body.onmousemove=_t=>{let cn=_t.clientX-pt,Fn=_t.clientY-Ct;const Kn=document.getElementsByClassName("markdown-popup-form")[0],In=window.innerWidth-Kn.offsetWidth,Hn=window.innerHeight-Kn.offsetHeight;cn=Math.max(0,Math.min(cn,In)),Fn=Math.max(0,Math.min(Fn,Hn)),Fa(_t.clientX,_t.clientY,pt,Ct)&&(wn(cn),mn(Fn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fa=(Nt,pt,Ct,_t)=>{const cn=document.body.clientHeight,Fn=document.body.clientWidth;return Nt<20&&Ct>Nt||Nt>Fn-20&&Ct<Nt||pt<20&&_t>pt||pt>cn-20&&_t<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Tn},te.createElement("div",{className:`markdown-editor-container ${ca} ${Fe?"on-preview":""} ${Bt?"mini":""} ${at?"full-screen":""}`,style:Un},te.createElement(ge,{insertTemp:Vt,watch:Fe,fullScreen:at,showNullButton:Jt,showNullProgramButton:Bn,onActionCallback:Mn,hidetoolBar:ta,extraUse:Ae}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ot,placeholder:ha})),Fe?te.createElement("div",{ref:Lt,className:"preview-container"},zt==="stex"&&te.createElement(ke,{value:fn}),zt!=="stex"&&te.createElement(Te.Z,{disabledFill:Yn,showProgramFill:Bn,value:fn})):null))),En?te.createElement("a",{ref:Ht,className:"editor-resize"}):null,$t===kt&&te.createElement(ft,{callback:dn,onCancel:jt}),$t===Kt&&te.createElement(rt,{callback:dn,onCancel:jt}),te.createElement(ve.Z,null,Qt[$t]&&$t!==kt&&$t!==Kt?te.createElement(Me.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:On,top:gn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Ca},Qt[$t]),open:!0,onCancel:jt,footer:null,destroyOnClose:!0,width:$t===Kt?"1200px":null,height:$t===Kt?"80vh":null,className:"markdown-popup-form"},Dn):null))}},76021:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return ie},I:function(){return ve}});var te=oe(78241),se=oe(8591),Ve=oe(92832),We=oe(81327),ye=oe(5871),xe=oe(5112),le=oe(3113),Ye=oe(82977),Re=oe(59301),He=oe(53229),Te=oe(59301),ke=Object.defineProperty,we=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(me,Oe,Pe)=>Oe in me?ke(me,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):me[Oe]=Pe,x=(me,Oe)=>{for(var Pe in Oe||(Oe={}))y.call(Oe,Pe)&&b(me,Pe,Oe[Pe]);if(a)for(var Pe of a(Oe))E.call(Oe,Pe)&&b(me,Pe,Oe[Pe]);return me},z=(me,Oe)=>we(me,ae(Oe));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:me,onCancel:Oe})=>{const[Pe]=ee();let qe=(0,Re.useRef)();function ht(Xe){qe.current.width=Pe.getFieldValue("width"),qe.current.align=Pe.getFieldValue("align"),me(Xe,qe.current)}function Pt(Xe,Je){if(Xe.status===-1){se.ZP.error(Xe.message);return}Pe.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:Je.type})}function Ce(Xe){let Je=Xe.target.files[0];qe.current=Je,ve(Je,Pt)}return Te.createElement(te.default,z(x({form:Pe},re),{className:"upload-image-panel",onFinish:ht,style:{width:470,overflow:"hidden"}}),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Ve.default,{style:ne})),Te.createElement(ge,{onFileChange:Ce}))),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Ve.default,{style:{width:264}})),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(We.Z,null,Te.createElement(te.default.Item,{name:"width",style:{margin:0}},Te.createElement(ye.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(xe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(le.ZP,{type:"default",onClick:Oe},"\u53D6\u6D88"))))};function ge({onFileChange:me}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:me}))}function ve(me,Oe){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,He.bg)())throw se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Pe=new FormData;Pe.append("editormd-image-file",me),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var qe=new window.XMLHttpRequest;qe.withCredentials=!0,qe.addEventListener("load",function(ht){Oe(JSON.parse(ht.target.responseText),me)},!1),qe.addEventListener("error",function(ht){console.error(ht)},!1),qe.open("POST",`${Ye.KI}/api/attachments.json`),qe.send(Pe)}},44991:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ve}});var te=oe(59301),se=oe(4676);class Ve extends te.Component{constructor(ye){super(ye);const xe=window.document;this.node=xe.createElement("div"),xe.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,se.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28934:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return se}});var te=oe(59301);function se(Ve,We){const ye=(0,te.useRef)();(0,te.useEffect)(()=>{ye.current=Ve}),(0,te.useEffect)(()=>{function xe(){ye.current()}if(We!==null){let le=setInterval(xe,We);return()=>clearInterval(le)}},[We])}},47530:function(Ge,gt,oe){"use strict";oe.r(gt),oe.d(gt,{default:function(){return ha}});var te=oe(59301),se=oe(75790),Ve=oe(20834),We=oe(44e3),ye=oe(78241),xe=oe(8591),le=oe(28103),Ye=oe(66104),Re=oe(95237),He=oe(43604),Te=oe(6848),ke=oe(92832),we=oe(3113),ae=oe(32134),a=oe(39538),y=oe(43418),E=oe(24905),b=oe(5871),x=oe(91451),z=oe(48551),ee=oe(12470),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,me=(Ne,Ae,ce)=>Ae in Ne?re(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,Oe=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))ge.call(Ae,ce)&&me(Ne,ce,Ae[ce]);if(ie)for(var ce of ie(Ae))ve.call(Ae,ce)&&me(Ne,ce,Ae[ce]);return Ne},Pe=(Ne,Ae)=>{var ce={};for(var Ee in Ne)ge.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&ie)for(var Ee of ie(Ne))Ae.indexOf(Ee)<0&&ve.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},qe=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const ht=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pt=(Ne,Ae)=>{var ce=Ne,{problemset:Ee,globalSetting:rn,loading:fn,dispatch:Rt,onRef:Fe=()=>{},editData:fe}=ce,at=Pe(ce,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[ut,$t]=(0,te.useState)([]),[Mt,qt]=(0,te.useState)(),[vt,tn]=(0,te.useState)([]),[un,hn]=(0,te.useState)(""),[bn,An]=(0,te.useState)(5),[$n,Cn]=(0,te.useState)(!1),On=(0,se.useParams)();(0,te.useEffect)(()=>{$t(["","","",""])},[]),(0,te.useEffect)(()=>{if(!(fe!=null&&fe.question_choices)){Cn(!0);return}hn(fe==null?void 0:fe.question_title),An(parseInt(fe==null?void 0:fe.question_score)),$t(fe==null?void 0:fe.question_choices.map(Lt=>Lt.choice_text));const Ht=[];fe==null||fe.standard_answer.map((Lt,nn)=>{Ht.push(Lt-1)}),tn(Ht)},[fe]),(0,te.useImperativeHandle)(Ae,()=>({onSave:wn,isEdit:$n}));const wn=()=>qe(void 0,null,function*(){if(!un)return xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ht=ut.findIndex(Xt=>!Xt);if(Ht>-1)return xe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${ht[Ht]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!vt.length)return xe.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(vt.length<1)return xe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Lt=ut.map((Xt,na)=>({choice_text:Xt,is_answer:vt.includes(na)?na+1:0}));let nn;fe.question_id?nn=yield Rt({type:"exercise/editExerciseQuestion",payload:{id:fe.question_id,question_title:un,question_type:1,question_score:"5.0",question_choices:Lt.map(Xt=>Xt.choice_text),standard_answers:Lt.filter(Xt=>Xt.is_answer).map(Xt=>Xt.is_answer)}}):nn=yield Rt({type:"exercise/addExerciseQuestion",payload:{categoryId:On.categoryId,question_title:un,question_type:1,question_score:"5.0",question_choices:Lt.map(Xt=>Xt.choice_text),standard_answers:Lt.filter(Xt=>Xt.is_answer).map(Xt=>Xt.is_answer)}}),nn.status===0&&(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Cn(!1),Rt({type:"exercise/editExercise",payload:Oe({},On)}))}),gn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],mn=Ht=>qe(void 0,null,function*(){switch(Ht.id){case"del":let Lt;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return qe(this,null,function*(){yield(0,x.Fl)({id:fe.question_id}),Rt({type:"exercise/editExercise",payload:Oe({},On)})})}});break;case"up":case"down":yield Rt({type:"exercise/exeriseMoveUpDown",payload:{id:fe.question_id,opr:Ht.id}}),Rt({type:"exercise/editExercise",payload:Oe({},On)});break;case"edit":Cn(!0);break}}),Ot=()=>{var Ht;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&gn.map(function(Lt,nn){return Lt.id==="up"&&fe.key===1||Lt.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:nn,placement:"bottom",title:Lt.name},te.createElement("span",{onClick:()=>mn(Lt),className:Lt.icon}))})),te.createElement("div",{className:"mt5"},te.createElement(ee.Z,{value:fe.question_title})),te.createElement("div",{className:ne.questionChoices},(Ht=fe==null?void 0:fe.question_choices)==null?void 0:Ht.map(function(Lt,nn){return te.createElement(Re.Z,null,te.createElement(He.Z,null,te.createElement(E.default,{key:nn,checked:fe.standard_answer.includes(nn+1),disabled:!0},ht[nn],".")),te.createElement(He.Z,{flex:"1"},te.createElement("span",{className:"c-black font14"},te.createElement(ee.Z,{value:Lt.choice_text}))))})))},Tn=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.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")),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:un,onChange:Ht=>hn(Ht)}),ut.map((Ht,Lt)=>te.createElement("div",{className:ne.choiceWrap,key:Lt},te.createElement(Te.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},te.createElement("div",{className:`${ne.answer} ${vt.includes(Lt)?ne.activeAnswer:""}`,onClick:()=>{vt.includes(Lt)?tn(vt.filter(nn=>nn!==Lt)):tn([...vt,Lt])}},ht[Lt])),te.createElement("div",{className:ne.editorWrap},Mt===Lt?te.createElement(z.Z,{id:`single-question-option-${Lt}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Ht,onChange:nn=>{ut[Lt]=nn,$t(ut)}}):te.createElement("div",{className:ne.htmlWrap,onClick:()=>qt(Lt)},te.createElement(ee.Z,{value:Ht}))),Lt>1&&te.createElement(Te.Z,{title:"\u5220\u9664"},te.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>$t(ut.filter((nn,Xt)=>Xt!==Lt))})),Lt<7&&Lt===ut.length-1&&te.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},te.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>$t([...ut,""])})))),te.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"),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:bn,max:1e4,min:-1,onChange:Ht=>{An(Ht)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(we.ZP,{type:"default",onClick:()=>Cn(!1)},"\u53D6\u6D88"),te.createElement(we.ZP,{className:"ml20",type:"primary",onClick:()=>wn()},"\u4FDD\u5B58")));return te.createElement("section",{className:ne.wrap},!$n&&Ot(),$n&&Tn())};var Ce=(0,se.connect)(({problemset:Ne,loading:Ae,globalSetting:ce})=>({problemset:Ne,globalSetting:ce,loading:Ae.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(Pt)),Xe=oe(5112),Je=Object.defineProperty,Qe=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Gt=(Ne,Ae,ce)=>Ae in Ne?Je(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,At=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))dt.call(Ae,ce)&&Gt(Ne,ce,Ae[ce]);if(Qe)for(var ce of Qe(Ae))Et.call(Ae,ce)&&Gt(Ne,ce,Ae[ce]);return Ne},Wt=(Ne,Ae)=>{var ce={};for(var Ee in Ne)dt.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&Qe)for(var Ee of Qe(Ne))Ae.indexOf(Ee)<0&&Et.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},_e=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const Me=["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"],et=(Ne,Ae)=>{var ce=Ne,{problemset:Ee,globalSetting:rn,loading:fn,dispatch:Rt,onRef:Fe=()=>{},editData:fe}=ce,at=Wt(ce,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[ut,$t]=(0,te.useState)([]),[Mt,qt]=(0,te.useState)(),[vt,tn]=(0,te.useState)([]),[un,hn]=(0,te.useState)(""),[bn,An]=(0,te.useState)(0),[$n,Cn]=(0,te.useState)(!1),On=(0,se.useParams)();(0,te.useEffect)(()=>{$t(["","","",""])},[]),(0,te.useEffect)(()=>{if(!(fe!=null&&fe.question_choices)){Cn(!0);return}hn(fe==null?void 0:fe.question_title),An(parseInt(fe==null?void 0:fe.question_score)),$t(fe==null?void 0:fe.question_choices.map(Lt=>Lt.choice_text));const Ht=[];fe==null||fe.standard_answer.map((Lt,nn)=>{Ht.push(Lt-1)}),tn(Ht)},[fe]),(0,te.useImperativeHandle)(Ae,()=>({onSave:wn,isEdit:$n}));const wn=()=>_e(void 0,null,function*(){if(!un)return xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ht=ut.findIndex(Xt=>!Xt);if(Ht>-1)return xe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Me[Ht]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!vt.length)return xe.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(vt.length<1)return xe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Lt=ut.map((Xt,na)=>({choice_text:Xt,is_answer:vt.includes(na)?na+1:0}));let nn;fe.question_id?nn=yield(0,a.Kc)({id:fe.question_id,question_title:un,question_type:1,question_score:bn,question_choices:Lt.map(Xt=>Xt.choice_text),standard_answers:Lt.filter(Xt=>Xt.is_answer).map(Xt=>Xt.is_answer)}):nn=yield(0,a.iV)({exercise_bank_id:On.topicId,question_title:un,question_type:1,question_score:"5.0",question_choices:Lt.map(Xt=>Xt.choice_text),standard_answers:Lt.filter(Xt=>Xt.is_answer).map(Xt=>Xt.is_answer)}),nn.status===0&&(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Cn(!1)),yield Rt({type:"polls/getExerciseBanks",payload:At({},On)})}),gn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],mn=Ht=>_e(void 0,null,function*(){switch(Ht.id){case"del":let Lt;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return _e(this,null,function*(){yield(0,a.x$)({pollsId:fe.question_id}),Rt({type:"polls/getExerciseBanks",payload:At({},On)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:fe==null?void 0:fe.question_id,opr:Ht.id}),Rt({type:"polls/getExerciseBanks",payload:At({},On)});break;case"edit":Cn(!0);break}}),Ot=()=>{var Ht;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&gn.map(function(Lt,nn){return Lt.id==="up"&&fe.key===1||Lt.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:nn,placement:"bottom",title:Lt.name},te.createElement("span",{onClick:()=>mn(Lt),className:Lt.icon}))})),te.createElement("div",{className:"mt5"},te.createElement(ee.Z,{value:fe.question_title})),te.createElement("div",{className:ne.questionChoices},(Ht=fe==null?void 0:fe.question_choices)==null?void 0:Ht.map(function(Lt,nn){return te.createElement(Re.Z,null,te.createElement(He.Z,null,te.createElement(Xe.ZP,{key:nn,checked:fe.standard_answer.includes(nn+1),disabled:!0},Me[nn],".")),te.createElement(He.Z,{flex:"1"},te.createElement("span",{className:"c-black font14"},te.createElement(ee.Z,{value:Lt.choice_text}))))})))},Tn=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.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")),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:un,onChange:Ht=>hn(Ht)}),ut.map((Ht,Lt)=>te.createElement("div",{className:ne.choiceWrap,key:Lt},te.createElement(Te.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},te.createElement("div",{className:`${ne.answer} ${vt.includes(Lt)?ne.activeAnswer:""}`,onClick:()=>{vt.includes(Lt)?tn(vt.filter(nn=>nn!==Lt)):tn([...vt,Lt])}},Me[Lt])),te.createElement("div",{className:ne.editorWrap},Mt===Lt?te.createElement(z.Z,{id:`single-question-option-${Lt}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Ht,onChange:nn=>{ut[Lt]=nn,$t(ut)}}):te.createElement("div",{className:ne.htmlWrap,onClick:()=>qt(Lt)},te.createElement(ee.Z,{value:Ht}))),Lt>1&&te.createElement(Te.Z,{title:"\u5220\u9664"},te.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>$t(ut.filter((nn,Xt)=>Xt!==Lt))})),Lt<7&&Lt===ut.length-1&&te.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},te.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>$t([...ut,""])})))),te.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"),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:bn,max:1e4,min:-1,onChange:Ht=>{An(Ht)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(we.ZP,{type:"default",onClick:()=>Cn(!1)},"\u53D6\u6D88"),te.createElement(we.ZP,{className:"ml20",type:"primary",onClick:()=>wn()},"\u4FDD\u5B58")));return te.createElement("section",{className:ne.wrap},!$n&&Ot(),$n&&Tn())};var wt=(0,se.connect)(({problemset:Ne,loading:Ae,globalSetting:ce})=>({problemset:Ne,globalSetting:ce,loading:Ae.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(et)),ot=Object.defineProperty,ft=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,je=(Ne,Ae,ce)=>Ae in Ne?ot(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,xt=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))ue.call(Ae,ce)&&je(Ne,ce,Ae[ce]);if(ft)for(var ce of ft(Ae))$e.call(Ae,ce)&&je(Ne,ce,Ae[ce]);return Ne},lt=(Ne,Ae)=>{var ce={};for(var Ee in Ne)ue.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&ft)for(var Ee of ft(Ne))Ae.indexOf(Ee)<0&&$e.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},De=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const be=["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"],pe=(Ne,Ae)=>{var ce=Ne,{problemset:Ee,globalSetting:rn,loading:fn,dispatch:Rt,onRef:Fe=()=>{},editData:fe}=ce,at=lt(ce,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[ut,$t]=(0,te.useState)(),[Mt,qt]=(0,te.useState)(""),[vt,tn]=(0,te.useState)(!1),[un,hn]=(0,te.useState)(5),bn=(0,se.useParams)();(0,te.useEffect)(()=>{if(!(fe!=null&&fe.question_choices)){tn(!0);return}qt(fe==null?void 0:fe.question_title),hn(fe==null?void 0:fe.question_score),$t(fe.standard_answer[0]+"")},[fe]),(0,te.useImperativeHandle)(Ae,()=>({onSave:An,isEdit:vt}));const An=()=>De(void 0,null,function*(){if(!Mt)return xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!ut)return xe.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const gn=[{choice_text:"\u6B63\u786E",is_answer:ut==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ut==="2"?2:0}];let mn;return fe.question_id?mn=yield(0,a.Kc)({id:fe.question_id,question_title:Mt,question_type:2,question_score:un,question_choices:gn.map(Ot=>Ot.choice_text),standard_answers:gn.filter(Ot=>Ot.is_answer).map(Ot=>Ot.is_answer)}):mn=yield(0,a.iV)({exercise_bank_id:bn.topicId,question_title:Mt,question_type:2,question_score:un,question_choices:gn.map(Ot=>Ot.choice_text),standard_answers:gn.filter(Ot=>Ot.is_answer).map(Ot=>Ot.is_answer)}),mn.status===0&&(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),tn(!1)),Rt({type:"polls/getExerciseBanks",payload:xt({},bn)}),{name:Mt,choices:gn}}),$n=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Cn=gn=>De(void 0,null,function*(){switch(gn.id){case"del":let mn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return De(this,null,function*(){yield(0,a.x$)({pollsId:fe.question_id}),Rt({type:"polls/getExerciseBanks",payload:xt({},bn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:fe==null?void 0:fe.question_id,opr:gn.id}),Rt({type:"polls/getExerciseBanks",payload:xt({},bn)});break;case"edit":tn(!0);break}}),On=()=>{var gn;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&$n.map(function(mn,Ot){return mn.id==="up"&&fe.key===1||mn.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:Ot,placement:"bottom",title:mn.name},te.createElement("span",{onClick:()=>Cn(mn),className:mn.icon}))})),te.createElement("div",{className:"mt5"},fe.question_title),te.createElement("div",{className:ne.questionChoices},(gn=fe==null?void 0:fe.question_choices)==null?void 0:gn.map(function(mn,Ot){return te.createElement(Xe.ZP,{key:Ot,checked:fe.standard_answer.includes(Ot+1),disabled:!0},be[Ot],". ",te.createElement("span",{className:"c-black font14"},mn.choice_text))})))},wn=()=>te.createElement("aside",null,te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Mt,onChange:gn=>qt(gn)}),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u7B54\u6848\u9009\u9879\uFF1A",te.createElement("span",{className:ne.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),te.createElement(Xe.ZP.Group,{buttonStyle:"solid",value:ut,onChange:gn=>$t(gn.target.value)},te.createElement(Xe.ZP.Button,{value:"1",className:`${ne.radio} mr40`},"\u6B63\u786E"),te.createElement(Xe.ZP.Button,{value:"2",className:ne.radio},"\u9519\u8BEF")),te.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:un,max:1e4,min:-1,onChange:gn=>{hn(gn)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(we.ZP,{type:"default",onClick:()=>tn(!1)},"\u53D6\u6D88"),te.createElement(we.ZP,{className:"ml20",type:"primary",onClick:()=>An()},"\u4FDD\u5B58")));return te.createElement("section",{className:ne.wrap},!vt&&On(),vt&&wn())};var Ie=(0,se.connect)(({problemset:Ne,loading:Ae,globalSetting:ce})=>({problemset:Ne,globalSetting:ce,loading:Ae.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(pe)),Ze=oe(23811),rt=oe(18852),de=oe(19374),he=Object.defineProperty,it=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ke=(Ne,Ae,ce)=>Ae in Ne?he(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,yt=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))Ue.call(Ae,ce)&&Ke(Ne,ce,Ae[ce]);if(it)for(var ce of it(Ae))Se.call(Ae,ce)&&Ke(Ne,ce,Ae[ce]);return Ne},st=(Ne,Ae)=>{var ce={};for(var Ee in Ne)Ue.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&it)for(var Ee of it(Ne))Ae.indexOf(Ee)<0&&Se.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},bt=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const nt=null,ct=(Ne,Ae)=>{var ce=Ne,{problemset:Ee,globalSetting:rn,loading:fn,dispatch:Rt,editData:Fe}=ce,fe=st(ce,["problemset","globalSetting","loading","dispatch","editData"]);const[at,ut]=(0,te.useState)(""),[$t,Mt]=(0,te.useState)(""),[qt,vt]=(0,te.useState)([]),[tn,un]=(0,te.useState)(""),[hn,bn]=(0,te.useState)(),[An,$n]=(0,te.useState)(!1),[Cn,On]=(0,te.useState)(5),[wn,gn]=(0,te.useState)(!1),mn=(0,se.useParams)();(0,te.useEffect)(()=>{if(!(Fe!=null&&Fe.question_title)){gn(!0);return}ut(Fe==null?void 0:Fe.question_title),bn(Fe==null?void 0:Fe.is_ordered),On(Fe==null?void 0:Fe.question_score);const jt=Fe==null?void 0:Fe.standard_answer.map(on=>on.answer_text);vt(jt)},[Ee.editData]),(0,te.useEffect)(()=>{$n(!1)},[wn]),(0,te.useImperativeHandle)(Ae,()=>({onSave:Ot,isEdit:wn}));const Ot=()=>bt(void 0,null,function*(){let jt=[],on=!1;if(qt.forEach((Un,qn)=>{jt.push({choice_id:qn+1,answer_text:[]}),Un.forEach((da,wa)=>{jt[qn].answer_text.push(da),(!da||!(0,de.eR)(da,1e4))&&(un(`${qn}-${wa}`),xe.ZP.info(da?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),on=!0)})}),on)return!1;let xn;return Fe.question_id?xn=yield(0,a.Kc)({id:Fe.question_id,question_title:at,question_type:3,question_score:Cn,is_ordered:hn,standard_answers:jt}):xn=yield(0,a.iV)({exercise_bank_id:mn.topicId,question_title:at,question_type:3,question_score:Cn,is_ordered:hn,standard_answers:jt}),xn.status===0&&(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),gn(!1)),Rt({type:"polls/getExerciseBanks",payload:yt({},mn)}),{name:at,analysis:$t,standard_answers:jt,is_ordered:hn}}),Tn=(jt,on,xn)=>{const Un=qt.slice();if(on&&Un.splice(jt,on),xn&&An)for(let qn=0;qn<xn;qn++)Un.splice(jt+qn,0,[""]);$n(!0),vt(Un)},Ht=(jt,on,xn)=>{un("");let Un=qt.slice();Un[jt][on]=xn,vt(Un)},Lt=jt=>{let on=qt.slice();on[jt]=[...on[jt],""],vt(on)},nn=(jt,on)=>{let xn=qt.slice();if(!xn[jt][on]){xn[jt]=xn[jt].filter((Un,qn)=>qn!==on),vt(xn);return}y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{xn[jt]=xn[jt].filter((Un,qn)=>qn!==on),vt(xn)}})},Xt=jt=>{y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{let on=qt.slice();on=qt.filter((xn,Un)=>jt!==Un),vt(on)}})},na=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),te.createElement("div",null,te.createElement(Ze.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:at,onChange:jt=>ut(jt),showNullButton:!0,onPlaceholderChange:Tn})),te.createElement("div",{className:"mt20"},qt.map((jt,on)=>te.createElement(rt.Z,{key:on,answers:jt,index:on,is_md:!0,activeOptionErrorIndex:tn,onAnswerChange:Ht,addChildAnswer:Lt,deleteChildAnswer:nn,deleteChildAnswermain:Xt}))),te.createElement("div",{className:"mt20"},qt.length>1&&te.createElement("span",null,te.createElement(E.default,{checked:hn,onChange:jt=>bn(jt.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),te.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"))),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:Cn,max:1e4,min:-1,onChange:jt=>{On(jt)}})," \u5206"),te.createElement("aside",{className:"tr"},Fe.question_id&&te.createElement(we.ZP,{type:"default",onClick:()=>gn(!1)},"\u53D6\u6D88"),te.createElement(we.ZP,{className:"ml20",type:"primary",onClick:()=>Ot()},"\u4FDD\u5B58"))),Mn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],dn=jt=>bt(void 0,null,function*(){switch(jt.id){case"del":let on;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return bt(this,null,function*(){yield(0,a.x$)({pollsId:Fe.question_id}),Rt({type:"polls/getExerciseBanks",payload:yt({},mn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Fe==null?void 0:Fe.question_id,opr:jt.id}),Rt({type:"polls/getExerciseBanks",payload:yt({},mn)});break;case"edit":gn(!0);break}}),Dn=()=>{var jt;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09"),!Fe.hideAction&&Mn.map(function(on,xn){return on.id==="up"&&Fe.key===1||on.id==="down"&&Fe.key===Fe.len?null:te.createElement(Te.Z,{key:xn,placement:"bottom",title:on.name},te.createElement("span",{onClick:()=>dn(on),className:on.icon}))})),te.createElement("div",{className:"mt5"},Fe.question_title),te.createElement("div",{className:ne.questionChoices},(jt=Fe==null?void 0:Fe.standard_answer)==null?void 0:jt.map(function(on,xn){return te.createElement(Re.Z,null,te.createElement(He.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",on.choice_id,"\uFF09\uFF1A"),te.createElement(He.Z,{flex:"1"},te.createElement(ke.default,{key:xn,checked:Fe.standard_answer.includes(xn),disabled:!0,value:on.answer_text})))})))};return te.createElement("section",{className:ne.wrap},!wn&&Dn(),wn&&na())};var mt=(0,se.connect)(({problemset:Ne,loading:Ae,globalSetting:ce})=>({problemset:Ne,globalSetting:ce,loading:Ae.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(ct)),Dt=Object.defineProperty,It=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,kt=(Ne,Ae,ce)=>Ae in Ne?Dt(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,en=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))Tt.call(Ae,ce)&&kt(Ne,ce,Ae[ce]);if(It)for(var ce of It(Ae))Kt.call(Ae,ce)&&kt(Ne,ce,Ae[ce]);return Ne},Zt=(Ne,Ae)=>{var ce={};for(var Ee in Ne)Tt.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&It)for(var Ee of It(Ne))Ae.indexOf(Ee)<0&&Kt.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},sn=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const pn=null,vn=(Ne,Ae)=>{var ce=Ne,{problemset:Ee,globalSetting:rn,loading:fn,dispatch:Rt,onRef:Fe=()=>{},editData:fe}=ce,at=Zt(ce,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[ut,$t]=(0,te.useState)(""),[Mt,qt]=(0,te.useState)(""),[vt,tn]=(0,te.useState)(""),[un,hn]=(0,te.useState)(5),[bn,An]=(0,te.useState)(!1),$n=(0,se.useParams)();(0,te.useEffect)(()=>{var Ot;if(!(fe!=null&&fe.question_title)){An(!0);return}$t(fe==null?void 0:fe.question_title),tn((Ot=fe==null?void 0:fe.standard_answer)==null?void 0:Ot[0]),hn(fe==null?void 0:fe.question_score)},[Ee.editData]),(0,te.useImperativeHandle)(Ae,()=>({onSave:Cn,isEdit:bn}));const Cn=()=>sn(void 0,null,function*(){if(!ut)return xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Ot;return fe.question_id?Ot=yield(0,a.Kc)({id:fe.question_id,question_title:ut,question_type:4,question_score:un,standard_answers:[vt]}):Ot=yield(0,a.iV)({exercise_bank_id:$n.topicId,question_title:ut,question_type:4,question_score:un,standard_answers:[vt]}),Ot.status===0&&(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),An(!1),Rt({type:"polls/getExerciseBanks",payload:en({},$n)})),{name:ut,answer_texts:[vt],analysis:Mt}}),On=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ut,onChange:Ot=>$t(Ot)}),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),te.createElement(z.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:vt,onChange:Ot=>tn(Ot)}),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:un,max:1e4,min:-1,onChange:Ot=>{hn(Ot)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(we.ZP,{type:"default",onClick:()=>An(!1)},"\u53D6\u6D88"),te.createElement(we.ZP,{className:"ml20",type:"primary",onClick:()=>Cn()},"\u4FDD\u5B58"))),wn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],gn=Ot=>sn(void 0,null,function*(){switch(Ot.id){case"del":let Tn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return sn(this,null,function*(){yield(0,a.x$)({pollsId:fe.question_id}),Rt({type:"polls/getExerciseBanks",payload:en({},$n)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:fe==null?void 0:fe.question_id,opr:Ot.id}),Rt({type:"polls/getExerciseBanks",payload:en({},$n)});break;case"edit":An(!0);break}}),mn=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&wn.map(function(Ot,Tn){return Ot.id==="up"&&fe.key===1||Ot.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:Tn,placement:"bottom",title:Ot.name},te.createElement("span",{onClick:()=>gn(Ot),className:Ot.icon}))})),te.createElement("div",{className:"mt5"},fe.question_title),te.createElement("div",{className:ne.questionChoices},te.createElement("p",null,te.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),te.createElement(ee.Z,{value:vt})));return te.createElement("section",{className:ne.wrap},!bn&&mn(),bn&&On())};var Rn=(0,se.connect)(({problemset:Ne,loading:Ae,globalSetting:ce})=>({problemset:Ne,globalSetting:ce,loading:Ae.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(vn)),kn=Object.defineProperty,Ln=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,jn=(Ne,Ae,ce)=>Ae in Ne?kn(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,Yt=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))an.call(Ae,ce)&&jn(Ne,ce,Ae[ce]);if(Ln)for(var ce of Ln(Ae))zn.call(Ae,ce)&&jn(Ne,ce,Ae[ce]);return Ne},Sn=(Ne,Ae)=>{var ce={};for(var Ee in Ne)an.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&Ln)for(var Ee of Ln(Ne))Ae.indexOf(Ee)<0&&zn.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},Vn=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const ea=null,Wn=(Ne,Ae)=>{var ce=Ne,{problemset:Ee,globalSetting:rn,loading:fn,dispatch:Rt,editData:Fe}=ce,fe=Sn(ce,["problemset","globalSetting","loading","dispatch","editData"]);const[at,ut]=(0,te.useState)(""),[$t,Mt]=(0,te.useState)(""),[qt,vt]=(0,te.useState)(""),[tn,un]=(0,te.useState)([]),[hn,bn]=(0,te.useState)(""),[An,$n]=(0,te.useState)(),[Cn,On]=(0,te.useState)(!1),[wn,gn]=(0,te.useState)([]),[mn,Ot]=(0,te.useState)(!1),Tn=(0,se.useParams)();(0,te.useEffect)(()=>{var Mn;Fe.edit&&Ot(!0),ut(Fe.shixun_name),Mt(Fe.question_title);const dn=[];(Mn=Fe.shixun)==null||Mn.map(Dn=>{dn.push(Dn.challenge_score)}),gn(dn)},[Fe]),(0,te.useEffect)(()=>{On(!1)},[mn]),(0,te.useImperativeHandle)(Ae,()=>({onSave:Ht,isEdit:mn}));const Ht=()=>Vn(void 0,null,function*(){let Mn=[];if(!1)return!1;let Dn;return Fe.question_id?Dn=yield(0,a.Kc)({id:Fe.question_id,question_title:$t,shixun_name:at,shixun_id:Fe.shixun_id,question_type:5,question_scores:wn}):Dn=yield(0,a.iV)({exercise_bank_id:Tn.topicId,question_title:$t,shixun_name:at,shixun_id:Fe.shixun_id,question_type:5,question_scores:wn}),Dn.status===0&&(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ot(!1)),yield Rt({type:"polls/getExerciseBanks",payload:Yt({},Tn)}),{name:$t,analysis:qt,standard_answers:Mn,is_ordered:An}}),Lt=()=>{var Mn;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),te.createElement("div",{className:"mt10"},te.createElement(ke.default,{defaultValue:at,onChange:dn=>{ut(dn.target.value)}})),te.createElement("div",{className:"mt10"},te.createElement(z.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:$t,onChange:dn=>{Mt(dn)}})),te.createElement("div",{className:"mt20"},(Mn=Fe.shixun)==null?void 0:Mn.map((dn,Dn)=>te.createElement(Re.Z,{gutter:[20,20]},te.createElement(He.Z,{flex:"1"},Dn+1,".",dn.challenge_name),te.createElement(He.Z,null,te.createElement(b.Z,{defaultValue:wn[Dn],onChange:jt=>{wn[Dn]=jt,gn(wn),console.log("srore:L",wn[Dn])}}))))),te.createElement("div",{className:"mt20"},tn.length>1&&te.createElement("span",null,te.createElement(E.default,{checked:An,onChange:dn=>$n(dn.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),te.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"))),te.createElement("aside",{className:"tr"},!(Fe!=null&&Fe.edit)&&te.createElement(we.ZP,{type:"default",onClick:()=>Ot(!1)},"\u53D6\u6D88"),te.createElement(we.ZP,{className:"ml20",type:"primary",onClick:()=>Ht()},"\u4FDD\u5B58")))},nn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Xt=Mn=>Vn(void 0,null,function*(){switch(Mn.id){case"del":let dn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Vn(this,null,function*(){yield(0,a.x$)({pollsId:Fe.question_id}),Rt({type:"polls/getExerciseBanks",payload:Yt({},Tn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Fe==null?void 0:Fe.question_id,opr:Mn.id}),Rt({type:"polls/getExerciseBanks",payload:Yt({},Tn)});break;case"edit":Ot(!0);break}}),na=()=>{var Mn;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09"),te.createElement("div",{className:"tr"},te.createElement(se.Link,{target:"_blank",to:`/shixuns/${Fe.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Fe.hideAction&&nn.map(function(dn,Dn){return dn.id==="up"&&Fe.key===1||dn.id==="down"&&Fe.key===Fe.len?null:te.createElement(Te.Z,{key:Dn,placement:"bottom",title:dn.name},te.createElement("span",{onClick:()=>Xt(dn),className:dn.icon}))}))),te.createElement("div",{className:"font16"},Fe.shixun_name),te.createElement("div",{className:"mt30"}),(Mn=Fe.shixun)==null?void 0:Mn.map(function(dn,Dn){return te.createElement("div",{key:Dn},"\u7B2C",Dn+1,"\u5173 ",te.createElement("span",{className:"ml10"},dn.challenge_name)," ",te.createElement("span",{className:"ml10"},dn.challenge_score))}))};return te.createElement("section",{className:ne.wrap},!mn&&na(),mn&&Lt())};var ra=(0,se.connect)(({problemset:Ne,loading:Ae,globalSetting:ce})=>({problemset:Ne,globalSetting:ce,loading:Ae.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(Wn)),Gn=oe(43428),Jn=oe(58421),Qt={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"},Qn=Object.defineProperty,Le=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,St=(Ne,Ae,ce)=>Ae in Ne?Qn(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,Bt=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))ze.call(Ae,ce)&&St(Ne,ce,Ae[ce]);if(Le)for(var ce of Le(Ae))Be.call(Ae,ce)&&St(Ne,ce,Ae[ce]);return Ne},Ft=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const{Search:ln}=ke.default,Vt=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],zt=({classroomList:Ne,loading:Ae,dispatch:ce,callback:Ee})=>{var rn;const fn=(0,se.useParams)(),Rt=(0,se.useLocation)(),{actionTabs:Fe}=Ne,[fe]=ye.default.useForm(),{shixunLists:at}=Ne,[ut,$t]=(0,te.useState)([]),[Mt,qt]=(0,te.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1});return(0,te.useEffect)(()=>{ce({type:"classroomList/getShixunLists",payload:Bt({},Mt)})},[fn.categoryId]),(0,te.useEffect)(()=>{$t([])},[Ne.actionTabs.key]),Ne.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:te.createElement(Gn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:Ne.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:Qt.drawer,footer:te.createElement("div",{className:"tc"},te.createElement(we.ZP,{size:"middle",onClick:()=>{ce({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},"\u53D6\u6D88"),te.createElement(we.ZP,{size:"middle",onClick:()=>Ft(void 0,null,function*(){var vt;ut.length>1?xe.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):ut.length===0?xe.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(Ee&&Ee((vt=at==null?void 0:at.shixun_list)==null?void 0:vt.filter(tn=>tn.id===ut[0])[0]),ce({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},te.createElement("section",{className:"tc"},te.createElement(ln,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:Qt.search,onSearch:vt=>{Mt.keyword=vt,ce({type:"classroomList/getShixunLists",payload:Bt({},Mt)})}})),te.createElement("section",{className:"edu-container"},Vt.map(function(vt,tn){var un;return te.createElement("ul",{className:Qt.menu,key:tn},te.createElement("li",null,vt.name),(un=vt==null?void 0:vt.children)==null?void 0:un.map(function(hn,bn){return te.createElement("li",{key:bn,className:Mt[vt.id]==hn.id?Qt.actived:"",onClick:()=>{Mt[vt.id]=hn.id,qt(Bt({},Mt)),ce({type:"classroomList/getShixunLists",payload:Bt({},Mt)})}},te.createElement("strong",null,hn.name))}))}),(rn=at==null?void 0:at.shixun_list)==null?void 0:rn.map(function(vt,tn){return te.createElement("div",{className:Qt.listItem,key:tn},te.createElement(E.default,{checked:ut.includes(vt.id),value:vt.id,onChange:un=>{let hn=ut.indexOf(vt.id);ut.indexOf(vt.id)>-1?$t(ut.filter(bn=>bn!==vt.id)):$t(ut.concat(vt.id))}}),te.createElement("div",{className:Qt.info},te.createElement("div",{className:Qt.title},te.createElement("div",{className:Qt.titleLeft},te.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:vt.title}}))),te.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},te.createElement("span",{className:Qt.description,dangerouslySetInnerHTML:{__html:vt.description}})),te.createElement("div",{className:" mt15"},vt.challenge_names.map(function(un,hn){return te.createElement("span",{key:hn,className:"mr30"},"\u7B2C",hn+1,"\u5173 ",un," ")})),te.createElement(le.Z,{dashed:!0}),te.createElement("div",{className:"c-light-black mt20"},te.createElement("span",null,vt.author_name),te.createElement("span",{className:"ml15 mr15"},"|"),te.createElement("span",null,vt.author_school_name),te.createElement("span",{className:"ml15 mr15"},"|"),te.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",vt.level),te.createElement("span",{className:"ml15 mr15"},"|"),te.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),te.createElement("span",null,vt.study_count))))}),te.createElement("p",null)),te.createElement("div",{className:"tc"},te.createElement(Jn.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:at==null?void 0:at.shixuns_count,onChange:vt=>{Mt.page=vt,$t([]),ce({type:"classroomList/getShixunLists",payload:Bt({},Mt)})}})))};var Ut=(0,se.connect)(({classroomList:Ne,loading:Ae})=>({classroomList:Ne,loading:Ae}))(zt),En={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"},tt=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,Nn=(Ne,Ae,ce)=>Ae in Ne?tt(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ne[Ae]=ce,yn=(Ne,Ae)=>{for(var ce in Ae||(Ae={}))Bn.call(Ae,ce)&&Nn(Ne,ce,Ae[ce]);if(Jt)for(var ce of Jt(Ae))ta.call(Ae,ce)&&Nn(Ne,ce,Ae[ce]);return Ne},la=(Ne,Ae)=>{var ce={};for(var Ee in Ne)Bn.call(Ne,Ee)&&Ae.indexOf(Ee)<0&&(ce[Ee]=Ne[Ee]);if(Ne!=null&&Jt)for(var Ee of Jt(Ne))Ae.indexOf(Ee)<0&&ta.call(Ne,Ee)&&(ce[Ee]=Ne[Ee]);return ce},ia=(Ne,Ae,ce)=>new Promise((Ee,rn)=>{var fn=fe=>{try{Fe(ce.next(fe))}catch(at){rn(at)}},Rt=fe=>{try{Fe(ce.throw(fe))}catch(at){rn(at)}},Fe=fe=>fe.done?Ee(fe.value):Promise.resolve(fe.value).then(fn,Rt);Fe((ce=ce.apply(Ne,Ae)).next())});const{SubMenu:ca}=Ve.default,{Content:La,Sider:Sa}=We.default,Yn=Ne=>{var Ae=Ne,{polls:ce,globalSetting:Ee,loading:rn,user:fn,dispatch:Rt}=Ae,Fe=la(Ae,["polls","globalSetting","loading","user","dispatch"]),fe,at,ut,$t,Mt,qt,vt,tn,un,hn,bn,An,$n,Cn,On,wn,gn,mn,Ot,Tn,Ht,Lt,nn,Xt,na,Mn,dn,Dn,jt,on,xn,Un,qn,da,wa,$a,Ca,Fa,Nt,pt,Ct,_t,cn,Fn,Kn,In,Hn,Zn,ga,Xn,fa,Pa,pa,_a,sa,xa;const _n=(0,se.useParams)(),Oa=(0,se.useLocation)(),{userInfo:va}=fn,[ya]=ye.default.useForm(),[ua,ba]=(0,te.useState)([]),[aa,Ba]=(0,te.useState)(!1),Na=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],ma=(0,te.useRef)();(0,te.useEffect)(()=>{var Pn,oa,Ea,za,Aa,Da;(Pn=ce.exerciseBanks)!=null&&Pn.exercise_questions&&(ba([...(oa=ce.exerciseBanks)==null?void 0:oa.exercise_questions]),ya.setFieldsValue({exercise_name:(za=(Ea=ce.exerciseBanks)==null?void 0:Ea.exercise)==null?void 0:za.exercise_name,exercise_description:(Da=(Aa=ce.exerciseBanks)==null?void 0:Aa.exercise)==null?void 0:Da.exercise_description}))},[ce.exerciseBanks]),(0,te.useEffect)(()=>{Rt({type:"polls/getExerciseBanks",payload:yn({},_n)})},[_n.categoryId]);const Ia=()=>ia(void 0,null,function*(){var Pn,oa;yield ya.validateFields();const Ea=ya.getFieldValue();Ea.is_md=!0,Ea.topicId=(oa=(Pn=ce.exerciseBanks)==null?void 0:Pn.exercise)==null?void 0:oa.id,Ba(!1),yield(0,a.hO)(yn({},Ea)),Rt({type:"polls/getExerciseBanks",payload:yn({},_n)})}),Ga=Pn=>ia(void 0,null,function*(){const oa=yield ma==null?void 0:ma.current;if(oa!=null&&oa.isEdit){xe.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Pn===5?Rt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):ba([...ua,{question_type:Pn}])}),Ta=function(){return ua==null?void 0:ua.map(function(Pn,oa){if(Pn.key=oa+1,Pn.len=ua.length,Pn.question_type===0)return te.createElement("aside",null,te.createElement(wt,{ref:ma,editData:Pn}),te.createElement(le.Z,null));if(Pn.question_type===1)return te.createElement("aside",null,te.createElement(Ce,{ref:ma,editData:Pn}),te.createElement(le.Z,null));if(Pn.question_type===2)return te.createElement("aside",null,te.createElement(Ie,{ref:ma,editData:Pn}),te.createElement(le.Z,null));if(Pn.question_type===3)return te.createElement("aside",null,te.createElement(mt,{editData:Pn}),te.createElement(le.Z,null));if(Pn.question_type===4)return te.createElement("aside",null,te.createElement(Rn,{editData:Pn}),te.createElement(le.Z,null));if(Pn.question_type===5)return te.createElement("aside",null,te.createElement(ra,{editData:Pn}),te.createElement(le.Z,null))})};return te.createElement("section",{className:"edu-container"},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},va&&te.createElement(Ye.Z,{separator:">"},te.createElement(Ye.Z.Item,null,te.createElement(se.Link,{to:`/users/${va.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),te.createElement(Ye.Z.Item,null,te.createElement(se.Link,{to:`/users/${va==null?void 0:va.login}/topics/${_n.topicId}/${_n.topictype}/exercise/detail`},"\u8BE6\u60C5")),te.createElement(Ye.Z.Item,null,"\u7F16\u8F91"))),te.createElement("aside",{className:[En.title,"mt20"].join(" ")},te.createElement(Re.Z,{style:{width:"100%"},align:"middle"},te.createElement(He.Z,{flex:"1"},te.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u8BD5\u5377"),te.createElement(de.VV,{status:[(at=(fe=ce.exerciseBanks)==null?void 0:fe.exercise)!=null&&at.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),te.createElement(He.Z,null,te.createElement(se.Link,{className:"font16 c-light-black",to:`/users/${va.login}/topics/personal`},"\u8FD4\u56DE"))))),te.createElement("section",{className:[En.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!aa&&te.createElement("aside",null,te.createElement("div",{className:En.containerDesc},te.createElement("div",null,($t=(ut=ce.exerciseBanks)==null?void 0:ut.exercise)==null?void 0:$t.exercise_name),te.createElement("div",null,te.createElement(Te.Z,{title:"\u7F16\u8F91"},te.createElement("span",{onClick:()=>Ba(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),te.createElement("div",{className:"c-light-black"},(qt=(Mt=ce.exerciseBanks)==null?void 0:Mt.exercise)==null?void 0:qt.exercise_description)),aa&&te.createElement(ye.default,{layout:"vertical",form:ya},te.createElement(ye.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},te.createElement(ke.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),te.createElement(ye.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},te.createElement(ke.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),te.createElement(ye.default.Item,{className:"tr"},te.createElement(we.ZP,{type:"primary",onClick:()=>{Ia()}},"\u4FDD\u5B58")))),te.createElement("p",{className:"mt10",style:{display:"flex"}},te.createElement("span",{className:"fl",style:{flex:"1"}},!!((tn=(vt=ce.exerciseBanks)==null?void 0:vt.exercise_types)!=null&&tn.q_singles)&&te.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(hn=(un=ce.exerciseBanks)==null?void 0:un.exercise_types)==null?void 0:hn.q_singles,"\u9898\uFF0C\u5171",(An=(bn=ce.exerciseBanks)==null?void 0:bn.exercise_types)==null?void 0:An.q_singles_scores,"\u5206"),!!((Cn=($n=ce.exerciseBanks)==null?void 0:$n.exercise_types)!=null&&Cn.q_doubles)&&te.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(wn=(On=ce.exerciseBanks)==null?void 0:On.exercise_types)==null?void 0:wn.q_doubles,"\u9898\uFF0C\u5171",(mn=(gn=ce.exerciseBanks)==null?void 0:gn.exercise_types)==null?void 0:mn.q_doubles_scores,"\u5206"),!!((Tn=(Ot=ce.exerciseBanks)==null?void 0:Ot.exercise_types)!=null&&Tn.q_judges)&&te.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(Lt=(Ht=ce.exerciseBanks)==null?void 0:Ht.exercise_types)==null?void 0:Lt.q_judges,"\u9898\uFF0C\u5171",(Xt=(nn=ce.exerciseBanks)==null?void 0:nn.exercise_types)==null?void 0:Xt.q_judges_scores,"\u5206"),!!((Mn=(na=ce.exerciseBanks)==null?void 0:na.exercise_types)!=null&&Mn.q_nulls)&&te.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(Dn=(dn=ce.exerciseBanks)==null?void 0:dn.exercise_types)==null?void 0:Dn.q_nulls,"\u9898\uFF0C\u5171",(on=(jt=ce.exerciseBanks)==null?void 0:jt.exercise_types)==null?void 0:on.q_nulls_scores,"\u5206"),!!((Un=(xn=ce.exerciseBanks)==null?void 0:xn.exercise_types)!=null&&Un.q_mains)&&te.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(da=(qn=ce.exerciseBanks)==null?void 0:qn.exercise_types)==null?void 0:da.q_mains,"\u9898\uFF0C\u5171",($a=(wa=ce.exerciseBanks)==null?void 0:wa.exercise_types)==null?void 0:$a.q_mains_scores,"\u5206"),!!((Fa=(Ca=ce.exerciseBanks)==null?void 0:Ca.exercise_types)!=null&&Fa.q_shixuns)&&te.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(pt=(Nt=ce.exerciseBanks)==null?void 0:Nt.exercise_types)==null?void 0:pt.q_shixuns,"\u9898\uFF0C\u5171",(_t=(Ct=ce.exerciseBanks)==null?void 0:Ct.exercise_types)==null?void 0:_t.q_shixuns_scores,"\u5206"),!!((Fn=(cn=ce.exerciseBanks)==null?void 0:cn.exercise_types)!=null&&Fn.q_pros)&&te.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(In=(Kn=ce.exerciseBanks)==null?void 0:Kn.exercise_types)==null?void 0:In.q_pros,"\u9898\uFF0C\u5171",(Zn=(Hn=ce.exerciseBanks)==null?void 0:Hn.exercise_types)==null?void 0:Zn.q_pros_scores,"\u5206")),te.createElement("span",{className:"fr"},!!((Xn=(ga=ce.exerciseBanks)==null?void 0:ga.exercise_types)!=null&&Xn.q_counts)&&te.createElement("span",null,"\u5408\u8BA1 ",te.createElement("span",{className:"color-blue"},(Pa=(fa=ce.exerciseBanks)==null?void 0:fa.exercise_types)==null?void 0:Pa.q_counts)," \u9898\uFF0C \u5171 ",te.createElement("span",{className:`${((_a=(pa=ce.exerciseBanks)==null?void 0:pa.exercise_types)==null?void 0:_a.q_scores)>100?"color-red font-bd":"color-orange"}`},(xa=(sa=ce.exerciseBanks)==null?void 0:sa.exercise_types)==null?void 0:xa.q_scores)," \u5206"))),ua!=""&&te.createElement("section",{className:[En.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Ta()),te.createElement("section",{style:{display:"flex"},className:[En.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},te.createElement("div",{style:{flex:"1"}},Na.map(function(Pn,oa){return te.createElement(we.ZP,{className:"mr20",type:"primary",onClick:()=>Ga(Pn.id)},te.createElement(ae.Z,{className:"mr5"}),Pn.name)}))),te.createElement(Ut,{callback:Pn=>{ua.push({shixun:Pn.challenge_names.map(oa=>({challenge_name:oa,challenge_score:5})),shixun_name:Pn.title,shixun_id:Pn.id,question_type:5,edit:!0}),ba([...ua])}}))};var ha=(0,se.connect)(({polls:Ne,loading:Ae,user:ce,globalSetting:Ee})=>({polls:Ne,globalSetting:Ee,user:ce,loading:Ae.effects}))(Yn)},56762:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return se}});var te=oe(59301);function se(){const[,Ve]=te.useReducer(We=>We+1,0);return Ve}},66104:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Pt}});var te=oe(92310),se=oe.n(te),Ve=oe(11592),We=oe(26112),ye=oe(59301),xe=oe(92343),le=oe(36355),Ye=oe(84105),Re=oe(91857);const He=Ce=>{let{children:Xe}=Ce;const{getPrefixCls:Je}=ye.useContext(le.E_),Qe=Je("breadcrumb");return ye.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Xe===""?Xe:Xe||"/")};He.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=He,ke=function(Ce,Xe){var Je={};for(var Qe in Ce)Object.prototype.hasOwnProperty.call(Ce,Qe)&&Xe.indexOf(Qe)<0&&(Je[Qe]=Ce[Qe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Ce);dt<Qe.length;dt++)Xe.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Qe[dt])&&(Je[Qe[dt]]=Ce[Qe[dt]]);return Je};function we(Ce,Xe){if(Ce.title===void 0||Ce.title===null)return null;const Je=Object.keys(Xe).join("|");return typeof Ce.title=="object"?Ce.title:String(Ce.title).replace(new RegExp(`:(${Je})`,"g"),(Qe,dt)=>Xe[dt]||Qe)}function ae(Ce,Xe,Je,Qe){if(Je==null)return null;const{className:dt,onClick:Et}=Xe,Gt=ke(Xe,["className","onClick"]),At=Object.assign(Object.assign({},(0,We.Z)(Gt,{data:!0,aria:!0})),{onClick:Et});return Qe!==void 0?ye.createElement("a",Object.assign({},At,{className:se()(`${Ce}-link`,dt),href:Qe}),Je):ye.createElement("span",Object.assign({},At,{className:se()(`${Ce}-link`,dt)}),Je)}function a(Ce,Xe){return(Qe,dt,Et,Gt,At)=>{if(Xe)return Xe(Qe,dt,Et,Gt);const Wt=we(Qe,dt);return ae(Ce,Qe,Wt,At)}}var y=function(Ce,Xe){var Je={};for(var Qe in Ce)Object.prototype.hasOwnProperty.call(Ce,Qe)&&Xe.indexOf(Qe)<0&&(Je[Qe]=Ce[Qe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Ce);dt<Qe.length;dt++)Xe.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Qe[dt])&&(Je[Qe[dt]]=Ce[Qe[dt]]);return Je};const E=Ce=>{const{prefixCls:Xe,separator:Je="/",children:Qe,menu:dt,overlay:Et,dropdownProps:Gt,href:At}=Ce,_e=(Me=>{if(dt||Et){const et=Object.assign({},Gt);if(dt){const wt=dt||{},{items:ot}=wt,ft=y(wt,["items"]);et.menu=Object.assign(Object.assign({},ft),{items:ot==null?void 0:ot.map((ue,$e)=>{var{key:je,title:xt,label:lt,path:De}=ue,be=y(ue,["key","title","label","path"]);let pe=lt!=null?lt:xt;return De&&(pe=ye.createElement("a",{href:`${At}${De}`},pe)),Object.assign(Object.assign({},be),{key:je!=null?je:$e,label:pe})})})}else Et&&(et.overlay=Et);return ye.createElement(Re.Z,Object.assign({placement:"bottom"},et),ye.createElement("span",{className:`${Xe}-overlay-link`},Me,ye.createElement(Ye.Z,null)))}return Me})(Qe);return _e!=null?ye.createElement(ye.Fragment,null,ye.createElement("li",null,_e),Je&&ye.createElement(Te,null,Je)):null},b=Ce=>{const{prefixCls:Xe,children:Je,href:Qe}=Ce,dt=y(Ce,["prefixCls","children","href"]),{getPrefixCls:Et}=ye.useContext(le.E_),Gt=Et("breadcrumb",Xe);return ye.createElement(E,Object.assign({},dt,{prefixCls:Gt}),ae(Gt,dt,Je,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),ne=oe(37613);const re=Ce=>{const{componentCls:Xe,iconCls:Je}=Ce;return{[Xe]:Object.assign(Object.assign({},(0,z.Wf)(Ce)),{color:Ce.itemColor,fontSize:Ce.fontSize,[Je]:{fontSize:Ce.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ce.linkColor,transition:`color ${Ce.motionDurationMid}`,padding:`0 ${Ce.paddingXXS}px`,borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",marginInline:-Ce.marginXXS,"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover}},(0,z.Qy)(Ce)),"li:last-child":{color:Ce.lastItemColor},[`${Xe}-separator`]:{marginInline:Ce.separatorMargin,color:Ce.separatorColor},[`${Xe}-link`]:{[`
> ${Je} + span,
> ${Je} + a
`]:{marginInlineStart:Ce.marginXXS}},[`${Xe}-overlay-link`]:{borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",padding:`0 ${Ce.paddingXXS}px`,marginInline:-Ce.marginXXS,[`> ${Je}`]:{marginInlineStart:Ce.marginXXS,fontSize:Ce.fontSizeIcon},"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover,a:{color:Ce.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ce.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",Ce=>{const Xe=(0,ne.TS)(Ce,{});return[re(Xe)]},Ce=>({itemColor:Ce.colorTextDescription,lastItemColor:Ce.colorText,iconFontSize:Ce.fontSize,linkColor:Ce.colorTextDescription,linkHoverColor:Ce.colorText,separatorColor:Ce.colorTextDescription,separatorMargin:Ce.marginXS})),ge=function(Ce,Xe){var Je={};for(var Qe in Ce)Object.prototype.hasOwnProperty.call(Ce,Qe)&&Xe.indexOf(Qe)<0&&(Je[Qe]=Ce[Qe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Ce);dt<Qe.length;dt++)Xe.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Qe[dt])&&(Je[Qe[dt]]=Ce[Qe[dt]]);return Je};function ve(Ce){const{breadcrumbName:Xe,children:Je}=Ce,Qe=ge(Ce,["breadcrumbName","children"]),dt=Object.assign({title:Xe},Qe);return Je&&(dt.menu={items:Je.map(Et=>{var{breadcrumbName:Gt}=Et,At=ge(Et,["breadcrumbName"]);return Object.assign(Object.assign({},At),{title:Gt})})}),dt}function me(Ce,Xe){return(0,ye.useMemo)(()=>Ce||(Xe?Xe.map(ve):null),[Ce,Xe])}var Oe=function(Ce,Xe){var Je={};for(var Qe in Ce)Object.prototype.hasOwnProperty.call(Ce,Qe)&&Xe.indexOf(Qe)<0&&(Je[Qe]=Ce[Qe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Ce);dt<Qe.length;dt++)Xe.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Qe[dt])&&(Je[Qe[dt]]=Ce[Qe[dt]]);return Je};const Pe=(Ce,Xe)=>{if(Xe===void 0)return Xe;let Je=(Xe||"").replace(/^\//,"");return Object.keys(Ce).forEach(Qe=>{Je=Je.replace(`:${Qe}`,Ce[Qe])}),Je},qe=Ce=>{const{prefixCls:Xe,separator:Je="/",style:Qe,className:dt,rootClassName:Et,routes:Gt,items:At,children:Wt,itemRender:_e,params:Me={}}=Ce,et=Oe(Ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wt,direction:ot,breadcrumb:ft}=ye.useContext(le.E_);let ue;const $e=wt("breadcrumb",Xe),[je,xt]=ie($e),lt=me(At,Gt),De=a($e,_e);if(lt&&lt.length>0){const Ie=[],Ze=At||Gt;ue=lt.map((rt,de)=>{const{path:he,key:it,type:Ue,menu:Se,overlay:Ke,onClick:yt,className:st,separator:bt,dropdownProps:nt}=rt,ct=Pe(Me,he);ct!==void 0&&Ie.push(ct);const mt=it!=null?it:de;if(Ue==="separator")return ye.createElement(Te,{key:mt},bt);const Dt={},It=de===lt.length-1;Se?Dt.menu=Se:Ke&&(Dt.overlay=Ke);let{href:Tt}=rt;return Ie.length&&ct!==void 0&&(Tt=`#/${Ie.join("/")}`),ye.createElement(E,Object.assign({key:mt},Dt,(0,We.Z)(rt,{data:!0,aria:!0}),{className:st,dropdownProps:nt,href:Tt,separator:It?"":Je,onClick:yt,prefixCls:$e}),De(rt,Me,Ze,Ie,Tt))})}else if(Wt){const Ie=(0,Ve.Z)(Wt).length;ue=(0,Ve.Z)(Wt).map((Ze,rt)=>{if(!Ze)return Ze;const de=rt===Ie-1;return(0,xe.Tm)(Ze,{separator:de?"":Je,key:rt})})}const be=se()($e,ft==null?void 0:ft.className,{[`${$e}-rtl`]:ot==="rtl"},dt,Et,xt),pe=Object.assign(Object.assign({},ft==null?void 0:ft.style),Qe);return je(ye.createElement("nav",Object.assign({className:be,style:pe},et),ye.createElement("ol",null,ue)))};qe.Item=x,qe.Separator=Te;var ht=qe,Pt=ht},24905:function(Ge,gt,oe){"use strict";oe.d(gt,{default:function(){return ie}});var te=oe(92310),se=oe.n(te),Ve=oe(5630),We=oe(59301),ye=oe(36355),xe=oe(1684),le=oe(32441),Re=We.createContext(null),He=oe(98447),Te=oe(14088),ke=oe(4572),we=function(ge,ve){var me={};for(var Oe in ge)Object.prototype.hasOwnProperty.call(ge,Oe)&&ve.indexOf(Oe)<0&&(me[Oe]=ge[Oe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Oe=Object.getOwnPropertySymbols(ge);Pe<Oe.length;Pe++)ve.indexOf(Oe[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Oe[Pe])&&(me[Oe[Pe]]=ge[Oe[Pe]]);return me};const ae=(ge,ve)=>{var me;const{prefixCls:Oe,className:Pe,rootClassName:qe,children:ht,indeterminate:Pt=!1,style:Ce,onMouseEnter:Xe,onMouseLeave:Je,skipGroup:Qe=!1,disabled:dt}=ge,Et=we(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Gt,direction:At,checkbox:Wt}=We.useContext(ye.E_),_e=We.useContext(Re),{isFormItemInput:Me}=We.useContext(le.aM),et=We.useContext(xe.Z),wt=(me=(_e==null?void 0:_e.disabled)||dt)!==null&&me!==void 0?me:et,ot=We.useRef(Et.value);We.useEffect(()=>{_e==null||_e.registerValue(Et.value)},[]),We.useEffect(()=>{if(!Qe)return Et.value!==ot.current&&(_e==null||_e.cancelValue(ot.current),_e==null||_e.registerValue(Et.value),ot.current=Et.value),()=>_e==null?void 0:_e.cancelValue(Et.value)},[Et.value]);const ft=Gt("checkbox",Oe),[ue,$e]=(0,He.ZP)(ft),je=Object.assign({},Et);_e&&!Qe&&(je.onChange=function(){Et.onChange&&Et.onChange.apply(Et,arguments),_e.toggleOption&&_e.toggleOption({label:ht,value:Et.value})},je.name=_e.name,je.checked=_e.value.includes(Et.value));const xt=se()(`${ft}-wrapper`,{[`${ft}-rtl`]:At==="rtl",[`${ft}-wrapper-checked`]:je.checked,[`${ft}-wrapper-disabled`]:wt,[`${ft}-wrapper-in-form-item`]:Me},Wt==null?void 0:Wt.className,Pe,qe,$e),lt=se()({[`${ft}-indeterminate`]:Pt},ke.A,$e),De=Pt?"mixed":void 0;return ue(We.createElement(Te.Z,{component:"Checkbox",disabled:wt},We.createElement("label",{className:xt,style:Object.assign(Object.assign({},Wt==null?void 0:Wt.style),Ce),onMouseEnter:Xe,onMouseLeave:Je},We.createElement(Ve.Z,Object.assign({"aria-checked":De},je,{prefixCls:ft,className:lt,disabled:wt,ref:ve})),ht!==void 0&&We.createElement("span",null,ht))))};var y=We.forwardRef(ae),E=oe(94480),b=oe(2738),x=function(ge,ve){var me={};for(var Oe in ge)Object.prototype.hasOwnProperty.call(ge,Oe)&&ve.indexOf(Oe)<0&&(me[Oe]=ge[Oe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Oe=Object.getOwnPropertySymbols(ge);Pe<Oe.length;Pe++)ve.indexOf(Oe[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Oe[Pe])&&(me[Oe[Pe]]=ge[Oe[Pe]]);return me};const z=(ge,ve)=>{const{defaultValue:me,children:Oe,options:Pe=[],prefixCls:qe,className:ht,rootClassName:Pt,style:Ce,onChange:Xe}=ge,Je=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qe,direction:dt}=We.useContext(ye.E_),[Et,Gt]=We.useState(Je.value||me||[]),[At,Wt]=We.useState([]);We.useEffect(()=>{"value"in Je&&Gt(Je.value||[])},[Je.value]);const _e=We.useMemo(()=>Pe.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[Pe]),Me=be=>{Wt(pe=>pe.filter(Ie=>Ie!==be))},et=be=>{Wt(pe=>[].concat((0,E.Z)(pe),[be]))},wt=be=>{const pe=Et.indexOf(be.value),Ie=(0,E.Z)(Et);pe===-1?Ie.push(be.value):Ie.splice(pe,1),"value"in Je||Gt(Ie),Xe==null||Xe(Ie.filter(Ze=>At.includes(Ze)).sort((Ze,rt)=>{const de=_e.findIndex(it=>it.value===Ze),he=_e.findIndex(it=>it.value===rt);return de-he}))},ot=Qe("checkbox",qe),ft=`${ot}-group`,[ue,$e]=(0,He.ZP)(ot),je=(0,b.Z)(Je,["value","disabled"]),xt=Pe.length?_e.map(be=>We.createElement(y,{prefixCls:ot,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Je.disabled,value:be.value,checked:Et.includes(be.value),onChange:be.onChange,className:`${ft}-item`,style:be.style,title:be.title},be.label)):Oe,lt={toggleOption:wt,value:Et,disabled:Je.disabled,name:Je.name,registerValue:et,cancelValue:Me},De=se()(ft,{[`${ft}-rtl`]:dt==="rtl"},ht,Pt,$e);return ue(We.createElement("div",Object.assign({className:De,style:Ce},je,{ref:ve}),We.createElement(Re.Provider,{value:lt},xt)))},ee=We.forwardRef(z);var ne=We.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Ge,gt,oe){"use strict";oe.d(gt,{C2:function(){return ye}});var te=oe(17313),se=oe(37613),Ve=oe(83116);const We=xe=>{const{checkboxCls:le}=xe,Ye=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,te.Wf)(xe)),{display:"inline-flex",flexWrap:"wrap",columnGap:xe.marginXS,[`> ${xe.antCls}-row`]:{flex:1}}),[Ye]:Object.assign(Object.assign({},(0,te.Wf)(xe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ye}`]:{marginInlineStart:0},[`&${Ye}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,te.Wf)(xe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:xe.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,te.oN)(xe))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:xe.checkboxSize,height:xe.checkboxSize,direction:"ltr",backgroundColor:xe.colorBgContainer,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadiusSM,borderCollapse:"separate",transition:`all ${xe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:xe.checkboxSize/14*5,height:xe.checkboxSize/14*8,border:`${xe.lineWidthBold}px solid ${xe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${xe.motionDurationFast} ${xe.motionEaseInBack}, opacity ${xe.motionDurationFast}`}},"& + span":{paddingInlineStart:xe.paddingXS,paddingInlineEnd:xe.paddingXS}})},{[`
${Ye}:not(${Ye}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:xe.colorPrimary}},[`${Ye}:not(${Ye}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:xe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:xe.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:xe.colorPrimary,borderColor:xe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${xe.motionDurationMid} ${xe.motionEaseOutBack} ${xe.motionDurationFast}`}}},[`
${Ye}-checked:not(${Ye}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:xe.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:xe.colorBgContainer,borderColor:xe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:xe.fontSizeLG/2,height:xe.fontSizeLG/2,backgroundColor:xe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ye}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,"&:after":{borderColor:xe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:xe.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:xe.colorTextDisabled}}}]};function ye(xe,le){const Ye=(0,se.TS)(le,{checkboxCls:`.${xe}`,checkboxSize:le.controlInteractiveSize});return[We(Ye)]}gt.ZP=(0,Ve.Z)("Checkbox",(xe,le)=>{let{prefixCls:Ye}=le;return[ye(Ye,xe)]})},28103:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return ke}});var te=oe(92310),se=oe.n(te),Ve=oe(59301),We=oe(36355),ye=oe(17313),xe=oe(83116),le=oe(37613);const Ye=we=>{const{componentCls:ae,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=we;return{[ae]:Object.assign(Object.assign({},(0,ye.Wf)(we)),{borderBlockStart:`${E}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${we.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${we.dividerHorizontalWithTextGutterMargin}px 0`,color:we.colorTextHeading,fontWeight:500,fontSize:we.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ae}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ae}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ae}-with-text${ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ae}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ae}-with-text`]:{color:we.colorText,fontWeight:"normal",fontSize:we.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:a}}})}};var Re=(0,xe.Z)("Divider",we=>{const ae=(0,le.TS)(we,{dividerHorizontalWithTextGutterMargin:we.margin,dividerHorizontalGutterMargin:we.marginLG,sizePaddingEdgeHorizontal:0});return[Ye(ae)]},we=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:we.marginXS})),He=function(we,ae){var a={};for(var y in we)Object.prototype.hasOwnProperty.call(we,y)&&ae.indexOf(y)<0&&(a[y]=we[y]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,y=Object.getOwnPropertySymbols(we);E<y.length;E++)ae.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(we,y[E])&&(a[y[E]]=we[y[E]]);return a},ke=we=>{const{getPrefixCls:ae,direction:a,divider:y}=Ve.useContext(We.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:ne,children:re,dashed:ie,plain:ge,style:ve}=we,me=He(we,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Oe=ae("divider",E),[Pe,qe]=Re(Oe),ht=x.length>0?`-${x}`:x,Pt=!!re,Ce=x==="left"&&z!=null,Xe=x==="right"&&z!=null,Je=se()(Oe,y==null?void 0:y.className,qe,`${Oe}-${b}`,{[`${Oe}-with-text`]:Pt,[`${Oe}-with-text${ht}`]:Pt,[`${Oe}-dashed`]:!!ie,[`${Oe}-plain`]:!!ge,[`${Oe}-rtl`]:a==="rtl",[`${Oe}-no-default-orientation-margin-left`]:Ce,[`${Oe}-no-default-orientation-margin-right`]:Xe},ee,ne),Qe=Ve.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),dt=Object.assign(Object.assign({},Ce&&{marginLeft:Qe}),Xe&&{marginRight:Qe});return Pe(Ve.createElement("div",Object.assign({className:Je,style:Object.assign(Object.assign({},y==null?void 0:y.style),ve)},me,{role:"separator"}),re&&b!=="vertical"&&Ve.createElement("span",{className:`${Oe}-inner-text`,style:dt},re)))}},43428:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return ue}});var te=oe(92310),se=oe.n(te),Ve=oe(33885),We=oe(42978),ye=oe(43403),xe=oe(34280),le=oe(59301),Ye=le.createContext(null),Re=le.createContext({}),He=Ye,Te=oe(20068),ke=oe(54476),we=oe(77900),ae=oe(10228),a=oe(26112),y=oe(70425),E=function(je){var xt=je.prefixCls,lt=je.className,De=je.style,be=je.children,pe=je.containerRef,Ie=je.id,Ze=je.onMouseEnter,rt=je.onMouseOver,de=je.onMouseLeave,he=je.onClick,it=je.onKeyDown,Ue=je.onKeyUp,Se={onMouseEnter:Ze,onMouseOver:rt,onMouseLeave:de,onClick:he,onKeyDown:it,onKeyUp:Ue},Ke=le.useContext(Re),yt=Ke.panel,st=(0,y.useComposeRef)(yt,pe);return le.createElement(le.Fragment,null,le.createElement("div",(0,ke.Z)({id:Ie,className:se()("".concat(xt,"-content"),lt),style:(0,Ve.Z)({},De),"aria-modal":"true",role:"dialog",ref:st},Se),be))},b=E,x=oe(48736);function z($e){return typeof $e=="string"&&String(Number($e))===$e?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number($e)):$e}function ee($e){warning(!("wrapperClassName"in $e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!$e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ne={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function re($e,je){var xt,lt,De,be,pe=$e.prefixCls,Ie=$e.open,Ze=$e.placement,rt=$e.inline,de=$e.push,he=$e.forceRender,it=$e.autoFocus,Ue=$e.keyboard,Se=$e.rootClassName,Ke=$e.rootStyle,yt=$e.zIndex,st=$e.className,bt=$e.id,nt=$e.style,ct=$e.motion,mt=$e.width,Dt=$e.height,It=$e.children,Tt=$e.contentWrapperStyle,Kt=$e.mask,kt=$e.maskClosable,en=$e.maskMotion,Zt=$e.maskClassName,sn=$e.maskStyle,pn=$e.afterOpenChange,vn=$e.onClose,Rn=$e.onMouseEnter,kn=$e.onMouseOver,Ln=$e.onMouseLeave,an=$e.onClick,zn=$e.onKeyDown,jn=$e.onKeyUp,Yt=le.useRef(),Sn=le.useRef(),Vn=le.useRef();le.useImperativeHandle(je,function(){return Yt.current});var ea=function(Ut){var En=Ut.keyCode,tt=Ut.shiftKey;switch(En){case ae.Z.TAB:{if(En===ae.Z.TAB){if(!tt&&document.activeElement===Vn.current){var Jt;(Jt=Sn.current)===null||Jt===void 0||Jt.focus({preventScroll:!0})}else if(tt&&document.activeElement===Sn.current){var Bn;(Bn=Vn.current)===null||Bn===void 0||Bn.focus({preventScroll:!0})}}break}case ae.Z.ESC:{vn&&Ue&&(Ut.stopPropagation(),vn(Ut));break}}};le.useEffect(function(){if(Ie&&it){var zt;(zt=Yt.current)===null||zt===void 0||zt.focus({preventScroll:!0})}},[Ie]);var Wn=le.useState(!1),ra=(0,We.Z)(Wn,2),Gn=ra[0],Jn=ra[1],Qt=le.useContext(He),Qn;de===!1?Qn={distance:0}:de===!0?Qn={}:Qn=de||{};var Le=(xt=(lt=(De=Qn)===null||De===void 0?void 0:De.distance)!==null&&lt!==void 0?lt:Qt==null?void 0:Qt.pushDistance)!==null&&xt!==void 0?xt:180,ze=le.useMemo(function(){return{pushDistance:Le,push:function(){Jn(!0)},pull:function(){Jn(!1)}}},[Le]);le.useEffect(function(){if(Ie){var zt;Qt==null||(zt=Qt.push)===null||zt===void 0||zt.call(Qt)}else{var Ut;Qt==null||(Ut=Qt.pull)===null||Ut===void 0||Ut.call(Qt)}},[Ie]),le.useEffect(function(){return function(){var zt;Qt==null||(zt=Qt.pull)===null||zt===void 0||zt.call(Qt)}},[]);var Be=Kt&&le.createElement(we.default,(0,ke.Z)({key:"mask"},en,{visible:Ie}),function(zt,Ut){var En=zt.className,tt=zt.style;return le.createElement("div",{className:se()("".concat(pe,"-mask"),En,Zt),style:(0,Ve.Z)((0,Ve.Z)({},tt),sn),onClick:kt&&Ie?vn:void 0,ref:Ut})}),St=typeof ct=="function"?ct(Ze):ct,Bt={};if(Gn&&Le)switch(Ze){case"top":Bt.transform="translateY(".concat(Le,"px)");break;case"bottom":Bt.transform="translateY(".concat(-Le,"px)");break;case"left":Bt.transform="translateX(".concat(Le,"px)");break;default:Bt.transform="translateX(".concat(-Le,"px)");break}Ze==="left"||Ze==="right"?Bt.width=z(mt):Bt.height=z(Dt);var Ft={onMouseEnter:Rn,onMouseOver:kn,onMouseLeave:Ln,onClick:an,onKeyDown:zn,onKeyUp:jn},ln=le.createElement(we.default,(0,ke.Z)({key:"panel"},St,{visible:Ie,forceRender:he,onVisibleChanged:function(Ut){pn==null||pn(Ut)},removeOnLeave:!1,leavedClassName:"".concat(pe,"-content-wrapper-hidden")}),function(zt,Ut){var En=zt.className,tt=zt.style;return le.createElement("div",(0,ke.Z)({className:se()("".concat(pe,"-content-wrapper"),En),style:(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},Bt),tt),Tt)},(0,a.Z)($e,{data:!0})),le.createElement(b,(0,ke.Z)({id:bt,containerRef:Ut,prefixCls:pe,className:st,style:nt},Ft),It))}),Vt=(0,Ve.Z)({},Ke);return yt&&(Vt.zIndex=yt),le.createElement(He.Provider,{value:ze},le.createElement("div",{className:se()(pe,"".concat(pe,"-").concat(Ze),Se,(be={},(0,Te.Z)(be,"".concat(pe,"-open"),Ie),(0,Te.Z)(be,"".concat(pe,"-inline"),rt),be)),style:Vt,tabIndex:-1,ref:Yt,onKeyDown:ea},Be,le.createElement("div",{tabIndex:0,ref:Sn,style:ne,"aria-hidden":"true","data-sentinel":"start"}),ln,le.createElement("div",{tabIndex:0,ref:Vn,style:ne,"aria-hidden":"true","data-sentinel":"end"})))}var ie=le.forwardRef(re),ge=ie,ve=function(je){var xt=je.open,lt=xt===void 0?!1:xt,De=je.prefixCls,be=De===void 0?"rc-drawer":De,pe=je.placement,Ie=pe===void 0?"right":pe,Ze=je.autoFocus,rt=Ze===void 0?!0:Ze,de=je.keyboard,he=de===void 0?!0:de,it=je.width,Ue=it===void 0?378:it,Se=je.mask,Ke=Se===void 0?!0:Se,yt=je.maskClosable,st=yt===void 0?!0:yt,bt=je.getContainer,nt=je.forceRender,ct=je.afterOpenChange,mt=je.destroyOnClose,Dt=je.onMouseEnter,It=je.onMouseOver,Tt=je.onMouseLeave,Kt=je.onClick,kt=je.onKeyDown,en=je.onKeyUp,Zt=je.panelRef,sn=le.useState(!1),pn=(0,We.Z)(sn,2),vn=pn[0],Rn=pn[1],kn=le.useState(!1),Ln=(0,We.Z)(kn,2),an=Ln[0],zn=Ln[1];(0,xe.Z)(function(){zn(!0)},[]);var jn=an?lt:!1,Yt=le.useRef(),Sn=le.useRef();(0,xe.Z)(function(){jn&&(Sn.current=document.activeElement)},[jn]);var Vn=function(Jn){var Qt;if(Rn(Jn),ct==null||ct(Jn),!Jn&&Sn.current&&!((Qt=Yt.current)!==null&&Qt!==void 0&&Qt.contains(Sn.current))){var Qn;(Qn=Sn.current)===null||Qn===void 0||Qn.focus({preventScroll:!0})}},ea=le.useMemo(function(){return{panel:Zt}},[Zt]);if(!nt&&!vn&&!jn&&mt)return null;var Wn={onMouseEnter:Dt,onMouseOver:It,onMouseLeave:Tt,onClick:Kt,onKeyDown:kt,onKeyUp:en},ra=(0,Ve.Z)((0,Ve.Z)({},je),{},{open:jn,prefixCls:be,placement:Ie,autoFocus:rt,keyboard:he,width:Ue,mask:Ke,maskClosable:st,inline:bt===!1,afterOpenChange:Vn,ref:Yt},Wn);return le.createElement(Re.Provider,{value:ea},le.createElement(ye.Z,{open:jn||nt||vn,autoDestroy:!1,getContainer:bt,autoLock:Ke&&(jn||vn)},le.createElement(ge,ra)))},me=ve,Oe=me,Pe=oe(62892),qe=oe(36355),ht=oe(32441),Pt=oe(47729),Xe=$e=>{const{prefixCls:je,title:xt,footer:lt,extra:De,closeIcon:be,closable:pe,onClose:Ie,headerStyle:Ze,drawerStyle:rt,bodyStyle:de,footerStyle:he,children:it}=$e,Ue=le.useCallback(bt=>le.createElement("button",{type:"button",onClick:Ie,"aria-label":"Close",className:`${je}-close`},bt),[Ie]),[Se,Ke]=(0,Pt.Z)(pe,be,Ue,void 0,!0),yt=le.useMemo(()=>!xt&&!Se?null:le.createElement("div",{style:Ze,className:se()(`${je}-header`,{[`${je}-header-close-only`]:Se&&!xt&&!De})},le.createElement("div",{className:`${je}-header-title`},Ke,xt&&le.createElement("div",{className:`${je}-title`},xt)),De&&le.createElement("div",{className:`${je}-extra`},De)),[Se,Ke,De,Ze,je,xt]),st=le.useMemo(()=>{if(!lt)return null;const bt=`${je}-footer`;return le.createElement("div",{className:bt,style:he},lt)},[lt,he,je]);return le.createElement("div",{className:`${je}-wrapper-body`,style:rt},yt,le.createElement("div",{className:`${je}-body`,style:de},it),st)},Je=oe(33234),Qe=oe(83116),dt=oe(37613),Gt=$e=>{const{componentCls:je,motionDurationSlow:xt}=$e,lt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xt}`}}};return{[je]:{[`${je}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${je}-panel-motion`]:{"&-left":[lt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[lt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[lt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[lt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const At=$e=>{const{componentCls:je,zIndexPopup:xt,colorBgMask:lt,colorBgElevated:De,motionDurationSlow:be,motionDurationMid:pe,padding:Ie,paddingLG:Ze,fontSizeLG:rt,lineHeightLG:de,lineWidth:he,lineType:it,colorSplit:Ue,marginSM:Se,colorIcon:Ke,colorIconHover:yt,colorText:st,fontWeightStrong:bt,footerPaddingBlock:nt,footerPaddingInline:ct}=$e,mt=`${je}-content-wrapper`;return{[je]:{position:"fixed",inset:0,zIndex:xt,pointerEvents:"none","&-pure":{position:"relative",background:De,[`&${je}-left`]:{boxShadow:$e.boxShadowDrawerLeft},[`&${je}-right`]:{boxShadow:$e.boxShadowDrawerRight},[`&${je}-top`]:{boxShadow:$e.boxShadowDrawerUp},[`&${je}-bottom`]:{boxShadow:$e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${je}-mask`]:{position:"absolute",inset:0,zIndex:xt,background:lt,pointerEvents:"auto"},[mt]:{position:"absolute",zIndex:xt,maxWidth:"100vw",transition:`all ${be}`,"&-hidden":{display:"none"}},[`&-left > ${mt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowDrawerLeft},[`&-right > ${mt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:$e.boxShadowDrawerRight},[`&-top > ${mt}`]:{top:0,insetInline:0,boxShadow:$e.boxShadowDrawerUp},[`&-bottom > ${mt}`]:{bottom:0,insetInline:0,boxShadow:$e.boxShadowDrawerDown},[`${je}-content`]:{width:"100%",height:"100%",overflow:"auto",background:De,pointerEvents:"auto"},[`${je}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${je}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ie}px ${Ze}px`,fontSize:rt,lineHeight:de,borderBottom:`${he}px ${it} ${Ue}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${je}-extra`]:{flex:"none"},[`${je}-close`]:{display:"inline-block",marginInlineEnd:Se,color:Ke,fontWeight:bt,fontSize:rt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${pe}`,textRendering:"auto","&:focus, &:hover":{color:yt,textDecoration:"none"}},[`${je}-title`]:{flex:1,margin:0,color:st,fontWeight:$e.fontWeightStrong,fontSize:rt,lineHeight:de},[`${je}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ze,overflow:"auto"},[`${je}-footer`]:{flexShrink:0,padding:`${nt}px ${ct}px`,borderTop:`${he}px ${it} ${Ue}`},"&-rtl":{direction:"rtl"}}}};var Wt=(0,Qe.Z)("Drawer",$e=>{const je=(0,dt.TS)($e,{});return[At(je),Gt(je)]},$e=>({zIndexPopup:$e.zIndexPopupBase,footerPaddingBlock:$e.paddingXS,footerPaddingInline:$e.padding})),_e=oe(11575),Me=function($e,je){var xt={};for(var lt in $e)Object.prototype.hasOwnProperty.call($e,lt)&&je.indexOf(lt)<0&&(xt[lt]=$e[lt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,lt=Object.getOwnPropertySymbols($e);De<lt.length;De++)je.indexOf(lt[De])<0&&Object.prototype.propertyIsEnumerable.call($e,lt[De])&&(xt[lt[De]]=$e[lt[De]]);return xt};const et=null,wt={distance:180},ot=$e=>{var je;const{rootClassName:xt,width:lt,height:De,size:be="default",mask:pe=!0,push:Ie=wt,open:Ze,afterOpenChange:rt,onClose:de,prefixCls:he,getContainer:it,style:Ue,className:Se,visible:Ke,afterVisibleChange:yt}=$e,st=Me($e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:bt,getPrefixCls:nt,direction:ct,drawer:mt}=le.useContext(qe.E_),Dt=nt("drawer",he),[It,Tt]=Wt(Dt),Kt=it===void 0&&bt?()=>bt(document.body):it,kt=se()({"no-mask":!pe,[`${Dt}-rtl`]:ct==="rtl"},xt,Tt),en=le.useMemo(()=>lt!=null?lt:be==="large"?736:378,[lt,be]),Zt=le.useMemo(()=>De!=null?De:be==="large"?736:378,[De,be]),sn={motionName:(0,Pe.m)(Dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},pn=Rn=>({motionName:(0,Pe.m)(Dt,`panel-motion-${Rn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),vn=(0,_e.H)();return It(le.createElement(Je.BR,null,le.createElement(ht.Ux,{status:!0,override:!0},le.createElement(Oe,Object.assign({prefixCls:Dt,onClose:de,maskMotion:sn,motion:pn},st,{open:Ze!=null?Ze:Ke,mask:pe,push:Ie,width:en,height:Zt,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Ue),className:se()(mt==null?void 0:mt.className,Se),rootClassName:kt,getContainer:Kt,afterOpenChange:rt!=null?rt:yt,panelRef:vn}),le.createElement(Xe,Object.assign({prefixCls:Dt},st,{onClose:de}))))))},ft=$e=>{const{prefixCls:je,style:xt,className:lt,placement:De="right"}=$e,be=Me($e,["prefixCls","style","className","placement"]),{getPrefixCls:pe}=le.useContext(qe.E_),Ie=pe("drawer",je),[Ze,rt]=Wt(Ie),de=se()(Ie,`${Ie}-pure`,`${Ie}-${De}`,rt,lt);return Ze(le.createElement("div",{className:de,style:xt},le.createElement(Xe,Object.assign({prefixCls:Ie},be))))};ot._InternalPanelDoNotUseOrYouWillBeFired=ft;var ue=ot},91857:function(Ge,gt,oe){"use strict";var te=oe(59301),se=oe(38819),Ve=oe(92310),We=oe.n(Ve),ye=oe(31561),xe=oe(70425),le=oe(18929),Ye=oe(2738),Re=oe(79676),He=oe(53487),Te=oe(92343),ke=oe(36355),we=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=ne=>{const{menu:re,arrow:ie,prefixCls:ge,children:ve,trigger:me,disabled:Oe,dropdownRender:Pe,getPopupContainer:qe,overlayClassName:ht,rootClassName:Pt,open:Ce,onOpenChange:Xe,visible:Je,onVisibleChange:Qe,mouseEnterDelay:dt=.15,mouseLeaveDelay:Et=.1,autoAdjustOverflow:Gt=!0,placement:At="",overlay:Wt,transitionName:_e}=ne,{getPopupContainer:Me,getPrefixCls:et,direction:wt}=te.useContext(ke.E_),ot=te.useMemo(()=>{const Se=et();return _e!==void 0?_e:At.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[et,At,_e]),ft=te.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:wt==="rtl"?"bottomRight":"bottomLeft",[At,wt]),ue=et("dropdown",ge),[$e,je]=(0,y.Z)(ue),[,xt]=(0,a.Z)(),lt=te.Children.only(ve),De=(0,Te.Tm)(lt,{className:We()(`${ue}-trigger`,{[`${ue}-rtl`]:wt==="rtl"},lt.props.className),disabled:Oe}),be=Oe?[]:me;let pe;be&&be.includes("contextMenu")&&(pe=!0);const[Ie,Ze]=(0,le.Z)(!1,{value:Ce!=null?Ce:Je}),rt=(0,xe.useEvent)(Se=>{Xe==null||Xe(Se),Qe==null||Qe(Se),Ze(Se)}),de=We()(ht,Pt,je,{[`${ue}-rtl`]:wt==="rtl"}),he=(0,Re.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Gt,offset:xt.marginXXS,arrowWidth:ie?xt.sizePopupArrow:0,borderRadius:xt.borderRadius}),it=te.useCallback(()=>{Ze(!1)},[]),Ue=()=>{let Se;return re!=null&&re.items?Se=te.createElement(we.default,Object.assign({},re)):typeof Wt=="function"?Se=Wt():Se=Wt,Pe&&(Se=Pe(Se)),Se=te.Children.only(typeof Se=="string"?te.createElement("span",null,Se):Se),te.createElement(ae.J,{prefixCls:`${ue}-menu`,expandIcon:te.createElement("span",{className:`${ue}-menu-submenu-arrow`},te.createElement(se.Z,{className:`${ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:it,validator:Ke=>{let{mode:yt}=Ke}},Se)};return $e(te.createElement(ye.Z,Object.assign({alignPoint:pe},(0,Ye.Z)(ne,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:Et,visible:Ie,builtinPlacements:he,arrow:!!ie,overlayClassName:de,prefixCls:ue,getPopupContainer:qe||Me,transitionName:ot,trigger:be,overlay:Ue,placement:ft,onVisibleChange:rt}),De))};function x(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,He.Z)(b,"dropdown",ne=>ne,x),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,gt.Z=b},47211:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Te}});var te=oe(17313),se=oe(13826),Ve=oe(92899),We=oe(29878),ye=oe(19447),xe=oe(83116),le=oe(37613),Re=ke=>{const{componentCls:we,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${we}, ${we}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const He=ke=>{const{componentCls:we,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ve,colorBgElevated:me}=ke;return[{[we]:Object.assign(Object.assign({},(0,te.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${we}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${we}-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${we}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${we}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${we}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${we}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${we}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${we}-placement-bottomRight`]:{animationName:se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${we}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${we}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${we}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${we}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${we}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${we}-placement-topRight`]:{animationName:se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${we}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${we}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${we}-placement-bottomRight`]:{animationName:se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${we}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${we}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${we}-placement-topRight`]:{animationName:se.ly}})},(0,ye.ZP)(ke,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${we} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${we}, ${we}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,te.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ve}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ve}px`,color:ke.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,te.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${we}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${we}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ve+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${we}-menu-submenu-title`]:{[`&, ${we}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${we}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,se.oN)(ke,"slide-up"),(0,se.oN)(ke,"slide-down"),(0,Ve.Fm)(ke,"move-up"),(0,Ve.Fm)(ke,"move-down"),(0,We._y)(ke,"zoom-big")]]};var Te=(0,xe.Z)("Dropdown",(ke,we)=>{let{rootPrefixCls:ae}=we;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ye.fS)({contentRadius:ne}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[He(ge),Re(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},8628:function(Ge,gt,oe){"use strict";var te=oe(59301),se=oe(34280),Ve=oe(56762),We=oe(69507);function ye(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const le=(0,te.useRef)({}),Ye=(0,Ve.Z)(),Re=(0,We.ZP)();return(0,se.Z)(()=>{const He=Re.subscribe(Te=>{le.current=Te,xe&&Ye()});return()=>Re.unsubscribe(He)},[]),le.current}gt.Z=ye},45818:function(Ge,gt,oe){"use strict";oe.d(gt,{D:function(){return z},Z:function(){return re}});var te=oe(54476),se=oe(59301),Ve={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"},We=Ve,ye=oe(7657),xe=function(ge,ve){return se.createElement(ye.Z,(0,te.Z)({},ge,{ref:ve,icon:We}))},le=se.forwardRef(xe),Ye=le,Re=oe(33853),He=oe(38819),Te=oe(92310),ke=oe.n(Te),we=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var ve={};for(var me in ie)Object.prototype.hasOwnProperty.call(ie,me)&&ge.indexOf(me)<0&&(ve[me]=ie[me]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,me=Object.getOwnPropertySymbols(ie);Oe<me.length;Oe++)ge.indexOf(me[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ie,me[Oe])&&(ve[me[Oe]]=ie[me[Oe]]);return ve};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=se.forwardRef((ie,ge)=>{const{prefixCls:ve,className:me,trigger:Oe,children:Pe,defaultCollapsed:qe=!1,theme:ht="dark",style:Pt={},collapsible:Ce=!1,reverseArrow:Xe=!1,width:Je=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:dt,breakpoint:Et,onCollapse:Gt,onBreakpoint:At}=ie,Wt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_e}=(0,se.useContext)(E.Gs),[Me,et]=(0,se.useState)("collapsed"in ie?ie.collapsed:qe),[wt,ot]=(0,se.useState)(!1);(0,se.useEffect)(()=>{"collapsed"in ie&&et(ie.collapsed)},[ie.collapsed]);const ft=(De,be)=>{"collapsed"in ie||et(De),Gt==null||Gt(De,be)},ue=(0,se.useRef)();ue.current=De=>{ot(De.matches),At==null||At(De.matches),Me!==De.matches&&ft(De.matches,"responsive")},(0,se.useEffect)(()=>{function De(pe){return ue.current(pe)}let be;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&Et&&Et in x){be=pe(`(max-width: ${x[Et]})`);try{be.addEventListener("change",De)}catch(Ie){be.addListener(De)}De(be)}}return()=>{try{be==null||be.removeEventListener("change",De)}catch(pe){be==null||be.removeListener(De)}}},[Et]),(0,se.useEffect)(()=>{const De=ee("ant-sider-");return _e.addSider(De),()=>_e.removeSider(De)},[]);const $e=()=>{ft(!Me,"clickTrigger")},{getPrefixCls:je}=(0,se.useContext)(y.E_),xt=()=>{const De=je("layout-sider",ve),be=(0,we.Z)(Wt,["collapsed"]),pe=Me?Qe:Je,Ie=a(pe)?`${pe}px`:String(pe),Ze=parseFloat(String(Qe||0))===0?se.createElement("span",{onClick:$e,className:ke()(`${De}-zero-width-trigger`,`${De}-zero-width-trigger-${Xe?"right":"left"}`),style:dt},Oe||se.createElement(Ye,null)):null,he={expanded:Xe?se.createElement(He.Z,null):se.createElement(Re.Z,null),collapsed:Xe?se.createElement(Re.Z,null):se.createElement(He.Z,null)}[Me?"collapsed":"expanded"],it=Oe!==null?Ze||se.createElement("div",{className:`${De}-trigger`,onClick:$e,style:{width:Ie}},Oe||he):null,Ue=Object.assign(Object.assign({},Pt),{flex:`0 0 ${Ie}`,maxWidth:Ie,minWidth:Ie,width:Ie}),Se=ke()(De,`${De}-${ht}`,{[`${De}-collapsed`]:!!Me,[`${De}-has-trigger`]:Ce&&Oe!==null&&!Ze,[`${De}-below`]:!!wt,[`${De}-zero-width`]:parseFloat(Ie)===0},me);return se.createElement("aside",Object.assign({className:Se},be,{style:Ue,ref:ge}),se.createElement("div",{className:`${De}-children`},Pe),Ce||wt&&Ze?it:null)},lt=se.useMemo(()=>({siderCollapsed:Me}),[Me]);return se.createElement(z.Provider,{value:lt},xt())})},44e3:function(Ge,gt,oe){"use strict";var te=oe(84966),se=oe(45818);const Ve=te.ZP;Ve.Header=te.h4,Ve.Footer=te.$_,Ve.Content=te.VY,Ve.Sider=se.Z,gt.default=Ve},84966:function(Ge,gt,oe){"use strict";oe.d(gt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return we},ZP:function(){return ee}});var te=oe(94480),se=oe(92310),Ve=oe.n(se),We=oe(2738),ye=oe(59301),xe=oe(36355),le=oe(83116),Re=ne=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ve,lightTriggerColor:me}=ne;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:me,background:ve},[`${re}-sider-zero-width-trigger`]:{color:me,background:ve,border:`1px solid ${ie}`,borderInlineStart:0}}}};const He=ne=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ve,footerBg:me,triggerBg:Oe,headerHeight:Pe,headerPadding:qe,headerColor:ht,footerPadding:Pt,triggerHeight:Ce,zeroTriggerHeight:Xe,zeroTriggerWidth:Je,motionDurationMid:Qe,motionDurationSlow:dt,fontSize:Et,borderRadius:Gt,bodyBg:At,headerBg:Wt,siderBg:_e}=ne;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{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:_e,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:ve,lineHeight:`${Ce}px`,textAlign:"center",background:Oe,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Pe,insetInlineEnd:-Je,zIndex:1,width:Je,height:Xe,color:ve,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderStartStartRadius:0,borderStartEndRadius:Gt,borderEndEndRadius:Gt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Je,borderStartStartRadius:Gt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Gt}}}}},Re(ne)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Pe,padding:qe,color:ht,lineHeight:`${Pe}px`,background:Wt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Pt,color:ge,fontSize:Et,background:me},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,le.Z)("Layout",ne=>[He(ne)],ne=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ve,controlHeightSM:me,marginXXS:Oe,colorTextLightSolid:Pe,colorBgContainer:qe}=ne,ht=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${ht}px`,headerColor:ve,footerPadding:`${me}px ${ht}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Oe*2,triggerBg:"#002140",triggerColor:Pe,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=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 we=ye.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ie,displayName:ge}=ne;return ve=>ye.forwardRef((Oe,Pe)=>ye.createElement(ve,Object.assign({ref:Pe,suffixCls:re,tagName:ie},Oe)))}const a=ye.forwardRef((ne,re)=>{const{prefixCls:ie,suffixCls:ge,className:ve,tagName:me}=ne,Oe=ke(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Pe}=ye.useContext(xe.E_),qe=Pe("layout",ie),[ht,Pt]=Te(qe),Ce=ge?`${qe}-${ge}`:qe;return ht(ye.createElement(me,Object.assign({className:Ve()(ie||Ce,ve,Pt),ref:re},Oe)))}),y=ye.forwardRef((ne,re)=>{const{direction:ie}=ye.useContext(xe.E_),[ge,ve]=ye.useState([]),{prefixCls:me,className:Oe,rootClassName:Pe,children:qe,hasSider:ht,tagName:Pt,style:Ce}=ne,Xe=ke(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Je=(0,We.Z)(Xe,["suffixCls"]),{getPrefixCls:Qe,layout:dt}=ye.useContext(xe.E_),Et=Qe("layout",me),[Gt,At]=Te(Et),Wt=Ve()(Et,{[`${Et}-has-sider`]:typeof ht=="boolean"?ht:ge.length>0,[`${Et}-rtl`]:ie==="rtl"},dt==null?void 0:dt.className,Oe,Pe,At),_e=ye.useMemo(()=>({siderHook:{addSider:Me=>{ve(et=>[].concat((0,te.Z)(et),[Me]))},removeSider:Me=>{ve(et=>et.filter(wt=>wt!==Me))}}}),[]);return Gt(ye.createElement(we.Provider,{value:_e},ye.createElement(Pt,Object.assign({ref:re,className:Wt,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Ce)},Je),qe)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Ge,gt,oe){"use strict";oe.d(gt,{J:function(){return xe}});var te=oe(59301),se=oe(33234),Ve=oe(70425),We=function(le,Ye){var Re={};for(var He in le)Object.prototype.hasOwnProperty.call(le,He)&&Ye.indexOf(He)<0&&(Re[He]=le[He]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,He=Object.getOwnPropertySymbols(le);Te<He.length;Te++)Ye.indexOf(He[Te])<0&&Object.prototype.propertyIsEnumerable.call(le,He[Te])&&(Re[He[Te]]=le[He[Te]]);return Re};const ye=te.createContext(null),xe=te.forwardRef((le,Ye)=>{const{children:Re}=le,He=We(le,["children"]),Te=te.useContext(ye),ke=te.useMemo(()=>Object.assign(Object.assign({},Te),He),[Te,He.prefixCls,He.mode,He.selectable]);return te.createElement(ye.Provider,{value:ke},te.createElement(se.BR,null,(0,Ve.supportNodeRef)(Re)?te.cloneElement(Re,{ref:Ye}):Re))});gt.Z=ye},20834:function(Ge,gt,oe){"use strict";oe.d(gt,{default:function(){return lt}});var te=oe(15285),se=oe(59301),Ve=oe(45818),We=oe(92310),ye=oe.n(We),xe=oe(36355),le=function(De,be){var pe={};for(var Ie in De)Object.prototype.hasOwnProperty.call(De,Ie)&&be.indexOf(Ie)<0&&(pe[Ie]=De[Ie]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ie=Object.getOwnPropertySymbols(De);Ze<Ie.length;Ze++)be.indexOf(Ie[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,Ie[Ze])&&(pe[Ie[Ze]]=De[Ie[Ze]]);return pe},Re=De=>{const{prefixCls:be,className:pe,dashed:Ie}=De,Ze=le(De,["prefixCls","className","dashed"]),{getPrefixCls:rt}=se.useContext(xe.E_),de=rt("menu",be),he=ye()({[`${de}-item-divider-dashed`]:!!Ie},pe);return se.createElement(te.iz,Object.assign({className:he},Ze))},He=oe(11592),Te=oe(2738),ke=oe(6848),we=oe(92343),a=(0,se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=De=>{var be;const{className:pe,children:Ie,icon:Ze,title:rt,danger:de}=De,{prefixCls:he,firstLevel:it,direction:Ue,disableMenuItemTitleTooltip:Se,inlineCollapsed:Ke}=se.useContext(a),yt=Dt=>{const It=se.createElement("span",{className:`${he}-title-content`},Ie);return(!Ze||(0,we.l$)(Ie)&&Ie.type==="span")&&Ie&&Dt&&it&&typeof Ie=="string"?se.createElement("div",{className:`${he}-inline-collapsed-noicon`},Ie.charAt(0)):It},{siderCollapsed:st}=se.useContext(Ve.D);let bt=rt;typeof rt=="undefined"?bt=it?Ie:"":rt===!1&&(bt="");const nt={title:bt};!st&&!Ke&&(nt.title=null,nt.open=!1);const ct=(0,He.Z)(Ie).length;let mt=se.createElement(te.ck,Object.assign({},(0,Te.Z)(De,["title","icon","danger"]),{className:ye()({[`${he}-item-danger`]:de,[`${he}-item-only-child`]:(Ze?ct+1:ct)===1},pe),title:typeof rt=="string"?rt:void 0}),(0,we.Tm)(Ze,{className:ye()((0,we.l$)(Ze)?(be=Ze.props)===null||be===void 0?void 0:be.className:"",`${he}-item-icon`)}),yt(Ke));return Se||(mt=se.createElement(ke.Z,Object.assign({},nt,{placement:Ue==="rtl"?"left":"right",overlayClassName:`${he}-inline-collapsed-tooltip`}),mt)),mt},x=De=>{var be;const{popupClassName:pe,icon:Ie,title:Ze,theme:rt}=De,de=se.useContext(a),{prefixCls:he,inlineCollapsed:it,theme:Ue}=de,Se=(0,te.Xl)();let Ke;if(!Ie)Ke=it&&!Se.length&&Ze&&typeof Ze=="string"?se.createElement("div",{className:`${he}-inline-collapsed-noicon`},Ze.charAt(0)):se.createElement("span",{className:`${he}-title-content`},Ze);else{const st=(0,we.l$)(Ze)&&Ze.type==="span";Ke=se.createElement(se.Fragment,null,(0,we.Tm)(Ie,{className:ye()((0,we.l$)(Ie)?(be=Ie.props)===null||be===void 0?void 0:be.className:"",`${he}-item-icon`)}),st?Ze:se.createElement("span",{className:`${he}-title-content`},Ze))}const yt=se.useMemo(()=>Object.assign(Object.assign({},de),{firstLevel:!1}),[de]);return se.createElement(a.Provider,{value:yt},se.createElement(te.Wd,Object.assign({},(0,Te.Z)(De,["icon"]),{title:Ke,popupClassName:ye()(he,pe,`${he}-${rt||Ue}`)})))},z=oe(18785),ee=oe(70425),ne=oe(62892),re=oe(40875),ie=function(De,be){var pe={};for(var Ie in De)Object.prototype.hasOwnProperty.call(De,Ie)&&be.indexOf(Ie)<0&&(pe[Ie]=De[Ie]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ie=Object.getOwnPropertySymbols(De);Ze<Ie.length;Ze++)be.indexOf(Ie[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,Ie[Ze])&&(pe[Ie[Ze]]=De[Ie[Ze]]);return pe};function ge(De){return(De||[]).map((be,pe)=>{if(be&&typeof be=="object"){const Ie=be,{label:Ze,children:rt,key:de,type:he}=Ie,it=ie(Ie,["label","children","key","type"]),Ue=de!=null?de:`tmp-${pe}`;return rt||he==="group"?he==="group"?se.createElement(te.BW,Object.assign({key:Ue},it,{title:Ze}),ge(rt)):se.createElement(x,Object.assign({key:Ue},it,{title:Ze}),ge(rt)):he==="divider"?se.createElement(Re,Object.assign({key:Ue},it)):se.createElement(E,Object.assign({key:Ue},it),Ze)}return null}).filter(be=>be)}function ve(De){return se.useMemo(()=>De&&ge(De),[De])}var me=oe(64993),Oe=oe(17313),Pe=oe(8378),qe=oe(13826),ht=oe(29878),Pt=oe(83116),Ce=oe(37613),Je=De=>{const{componentCls:be,motionDurationSlow:pe,horizontalLineHeight:Ie,colorSplit:Ze,lineWidth:rt,lineType:de,itemPaddingInline:he}=De;return{[`${be}-horizontal`]:{lineHeight:Ie,border:0,borderBottom:`${rt}px ${de} ${Ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:he},[`> ${be}-item:hover,
> ${be}-item-active,
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},dt=De=>{let{componentCls:be,menuArrowOffset:pe}=De;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const Et=De=>Object.assign({},(0,Oe.oN)(De));var At=(De,be)=>{const{componentCls:pe,itemColor:Ie,itemSelectedColor:Ze,groupTitleColor:rt,itemBg:de,subMenuItemBg:he,itemSelectedBg:it,activeBarHeight:Ue,activeBarWidth:Se,activeBarBorderWidth:Ke,motionDurationSlow:yt,motionEaseInOut:st,motionEaseOut:bt,itemPaddingInline:nt,motionDurationMid:ct,itemHoverColor:mt,lineType:Dt,colorSplit:It,itemDisabledColor:Tt,dangerItemColor:Kt,dangerItemHoverColor:kt,dangerItemSelectedColor:en,dangerItemActiveBg:Zt,dangerItemSelectedBg:sn,itemHoverBg:pn,itemActiveBg:vn,menuSubMenuBg:Rn,horizontalItemSelectedColor:kn,horizontalItemSelectedBg:Ln,horizontalItemBorderRadius:an,horizontalItemHoverBg:zn,popupBg:jn}=De;return{[`${pe}-${be}, ${pe}-${be} > ${pe}`]:{color:Ie,background:de,[`&${pe}-root:focus-visible`]:Object.assign({},Et(De)),[`${pe}-item-group-title`]:{color:rt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Ze}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${Tt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:mt}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:vn}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:vn}}},[`${pe}-item-danger`]:{color:Kt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:kt}},[`&${pe}-item:active`]:{background:Zt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Ze,[`&${pe}-item-danger`]:{color:en},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:it,[`&${pe}-item-danger`]:{backgroundColor:sn}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},Et(De))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Rn},[`&${pe}-popup > ${pe}`]:{backgroundColor:jn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Ke,marginTop:-Ke,marginBottom:0,borderRadius:an,"&::after":{position:"absolute",insetInline:nt,bottom:0,borderBottom:`${Ue}px solid transparent`,transition:`border-color ${yt} ${st}`,content:'""'},"&:hover, &-active, &-open":{background:zn,"&::after":{borderBottomWidth:Ue,borderBottomColor:kn}},"&-selected":{color:kn,backgroundColor:Ln,"&:hover":{backgroundColor:Ln},"&::after":{borderBottomWidth:Ue,borderBottomColor:kn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Ke}px ${Dt} ${It}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:he},[`${pe}-item, ${pe}-submenu-title`]:Ke&&Se?{width:`calc(100% + ${Ke}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Se}px solid ${Ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ct} ${bt}`,`opacity ${ct} ${bt}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:en}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ct} ${st}`,`opacity ${ct} ${st}`].join(",")}}}}}};const Wt=De=>{const{componentCls:be,itemHeight:pe,itemMarginInline:Ie,padding:Ze,menuArrowSize:rt,marginXS:de,itemMarginBlock:he}=De,it=Ze+rt+de;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ie,marginBlock:he,width:`calc(100% - ${Ie*2}px)`},[`> ${be}-item,
> ${be}-submenu > ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${be}-item-group-list ${be}-submenu-title,
${be}-submenu-title`]:{paddingInlineEnd:it}}};var Me=De=>{const{componentCls:be,iconCls:pe,itemHeight:Ie,colorTextLightSolid:Ze,dropdownWidth:rt,controlHeightLG:de,motionDurationMid:he,motionEaseOut:it,paddingXL:Ue,itemMarginInline:Se,fontSizeLG:Ke,motionDurationSlow:yt,paddingXS:st,boxShadowSecondary:bt,collapsedWidth:nt,collapsedIconSize:ct}=De,mt={height:Ie,lineHeight:`${Ie}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},Wt(De))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},Wt(De)),{boxShadow:bt})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:rt,maxHeight:`calc(100vh - ${de*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${yt}`,`background ${yt}`,`padding ${he} ${it}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:mt,[`& ${be}-item-group-title`]:{paddingInlineStart:Ue}},[`${be}-item`]:mt}},{[`${be}-inline-collapsed`]:{width:nt,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:Ke,textAlign:"center"}}},[`> ${be}-item,
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ke/2}px - ${Se}px)`,textOverflow:"clip",[`
${be}-submenu-arrow,
${be}-submenu-expand-icon
`]:{opacity:0},[`${be}-item-icon, ${pe}`]:{margin:0,fontSize:ct,lineHeight:`${Ie}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Ze}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Oe.vS),{paddingInline:st})}}]};const et=De=>{const{componentCls:be,motionDurationSlow:pe,motionDurationMid:Ie,motionEaseInOut:Ze,motionEaseOut:rt,iconCls:de,iconSize:he,iconMarginInlineEnd:it}=De;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Ze}`].join(","),[`${be}-item-icon, ${de}`]:{minWidth:he,fontSize:he,transition:[`font-size ${Ie} ${rt}`,`margin ${pe} ${Ze}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:it,opacity:1,transition:[`opacity ${pe} ${Ze}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Oe.Ro)()),[`&${be}-item-only-child`]:{[`> ${de}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},wt=De=>{const{componentCls:be,motionDurationSlow:pe,motionEaseInOut:Ie,borderRadius:Ze,menuArrowSize:rt,menuArrowOffset:de}=De;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:De.margin,width:rt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Ie}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:rt*.6,height:rt*.15,backgroundColor:"currentcolor",borderRadius:Ze,transition:[`background ${pe} ${Ie}`,`transform ${pe} ${Ie}`,`top ${pe} ${Ie}`,`color ${pe} ${Ie}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${de})`},"&::after":{transform:`rotate(-45deg) translateY(${de})`}}}}},ot=De=>{const{antCls:be,componentCls:pe,fontSize:Ie,motionDurationSlow:Ze,motionDurationMid:rt,motionEaseInOut:de,paddingXS:he,padding:it,colorSplit:Ue,lineWidth:Se,zIndexPopup:Ke,borderRadiusLG:yt,subMenuItemBorderRadius:st,menuArrowSize:bt,menuArrowOffset:nt,lineType:ct,menuPanelMaskInset:mt,groupTitleLineHeight:Dt,groupTitleFontSize:It}=De;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Oe.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(De)),(0,Oe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ie,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:De.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${he}px ${it}px`,fontSize:It,lineHeight:Dt,transition:`all ${Ze}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Ze} ${de}`,`background ${Ze} ${de}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Ze} ${de}`,`background ${Ze} ${de}`,`padding ${rt} ${de}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Ze} ${de}`,`padding ${Ze} ${de}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Ze}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ue,borderStyle:ct,borderWidth:0,borderTopWidth:Se,marginBlock:Se,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(De)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Ie*2}px ${it}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ke,borderRadius:yt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${mt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:mt},"\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:De.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:De.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:De.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:De.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:yt},et(De)),wt(De)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:st},[`${pe}-submenu-title::after`]:{transition:`transform ${Ze} ${de}`}})}}),wt(De)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nt})`},"&::after":{transform:`rotate(45deg) translateX(-${nt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${bt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${nt})`},"&::before":{transform:`rotate(45deg) translateX(${nt})`}}})},{[`${be}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var ft=(De,be)=>(0,Pt.Z)("Menu",Ie=>{if(be===!1)return[];const{colorBgElevated:Ze,colorPrimary:rt,colorTextLightSolid:de,controlHeightLG:he,fontSize:it,darkItemColor:Ue,darkDangerItemColor:Se,darkItemBg:Ke,darkSubMenuItemBg:yt,darkItemSelectedColor:st,darkItemSelectedBg:bt,darkDangerItemSelectedBg:nt,darkItemHoverBg:ct,darkGroupTitleColor:mt,darkItemHoverColor:Dt,darkItemDisabledColor:It,darkDangerItemHoverColor:Tt,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:kt}=Ie,en=it/7*5,Zt=(0,Ce.TS)(Ie,{menuArrowSize:en,menuHorizontalHeight:he*1.15,menuArrowOffset:`${en*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ze}),sn=(0,Ce.TS)(Zt,{itemColor:Ue,itemHoverColor:Dt,groupTitleColor:mt,itemSelectedColor:st,itemBg:Ke,popupBg:Ke,subMenuItemBg:yt,itemActiveBg:"transparent",itemSelectedBg:bt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ct,itemDisabledColor:It,dangerItemColor:Se,dangerItemHoverColor:Tt,dangerItemSelectedColor:Kt,dangerItemActiveBg:kt,dangerItemSelectedBg:nt,menuSubMenuBg:yt,horizontalItemSelectedColor:de,horizontalItemSelectedBg:rt});return[ot(Zt),Je(Zt),Me(Zt),At(Zt,"light"),At(sn,"dark"),dt(Zt),(0,Pe.Z)(Zt),(0,qe.oN)(Zt,"slide-up"),(0,qe.oN)(Zt,"slide-down"),(0,ht._y)(Zt,"zoom-big")]},Ie=>{const{colorPrimary:Ze,colorError:rt,colorTextDisabled:de,colorErrorBg:he,colorText:it,colorTextDescription:Ue,colorBgContainer:Se,colorFillAlter:Ke,colorFillContent:yt,lineWidth:st,lineWidthBold:bt,controlItemBgActive:nt,colorBgTextHover:ct,controlHeightLG:mt,lineHeight:Dt,colorBgElevated:It,marginXXS:Tt,padding:Kt,fontSize:kt,controlHeightSM:en,fontSizeLG:Zt,colorTextLightSolid:sn,colorErrorHover:pn}=Ie,vn=new me.C(sn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ie.zIndexPopupBase+50,radiusItem:Ie.borderRadiusLG,itemBorderRadius:Ie.borderRadiusLG,radiusSubMenuItem:Ie.borderRadiusSM,subMenuItemBorderRadius:Ie.borderRadiusSM,colorItemText:it,itemColor:it,colorItemTextHover:it,itemHoverColor:it,colorItemTextHoverHorizontal:Ze,horizontalItemHoverColor:Ze,colorGroupTitle:Ue,groupTitleColor:Ue,colorItemTextSelected:Ze,itemSelectedColor:Ze,colorItemTextSelectedHorizontal:Ze,horizontalItemSelectedColor:Ze,colorItemBg:Se,itemBg:Se,colorItemBgHover:ct,itemHoverBg:ct,colorItemBgActive:yt,itemActiveBg:nt,colorSubItemBg:Ke,subMenuItemBg:Ke,colorItemBgSelected:nt,itemSelectedBg:nt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:bt,activeBarHeight:bt,colorActiveBarBorderSize:st,activeBarBorderWidth:st,colorItemTextDisabled:de,itemDisabledColor:de,colorDangerItemText:rt,dangerItemColor:rt,colorDangerItemTextHover:rt,dangerItemHoverColor:rt,colorDangerItemTextSelected:rt,dangerItemSelectedColor:rt,colorDangerItemBgActive:he,dangerItemActiveBg:he,colorDangerItemBgSelected:he,dangerItemSelectedBg:he,itemMarginInline:Ie.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:mt,groupTitleLineHeight:Dt,collapsedWidth:mt*2,popupBg:It,itemMarginBlock:Tt,itemPaddingInline:Kt,horizontalLineHeight:`${mt*1.15}px`,iconSize:kt,iconMarginInlineEnd:en-kt,collapsedIconSize:Zt,groupTitleFontSize:kt,darkItemDisabledColor:new me.C(sn).setAlpha(.25).toRgbString(),darkItemColor:vn,darkDangerItemColor:rt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:sn,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:rt,darkItemHoverBg:"transparent",darkGroupTitleColor:vn,darkItemHoverColor:sn,darkDangerItemHoverColor:pn,darkDangerItemSelectedColor:sn,darkDangerItemActiveBg:rt}},{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"]]})(De),ue=function(De,be){var pe={};for(var Ie in De)Object.prototype.hasOwnProperty.call(De,Ie)&&be.indexOf(Ie)<0&&(pe[Ie]=De[Ie]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ie=Object.getOwnPropertySymbols(De);Ze<Ie.length;Ze++)be.indexOf(Ie[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,Ie[Ze])&&(pe[Ie[Ze]]=De[Ie[Ze]]);return pe},je=(0,se.forwardRef)((De,be)=>{var pe,Ie;const Ze=se.useContext(re.Z),rt=Ze||{},{getPrefixCls:de,getPopupContainer:he,direction:it,menu:Ue}=se.useContext(xe.E_),Se=de(),{prefixCls:Ke,className:yt,style:st,theme:bt="light",expandIcon:nt,_internalDisableMenuItemTitleTooltip:ct,inlineCollapsed:mt,siderCollapsed:Dt,items:It,children:Tt,rootClassName:Kt,mode:kt,selectable:en,onClick:Zt,overflowedIndicatorPopupClassName:sn}=De,pn=ue(De,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),vn=(0,Te.Z)(pn,["collapsedWidth"]),Rn=ve(It)||Tt;(pe=rt.validator)===null||pe===void 0||pe.call(rt,{mode:kt});const kn=(0,ee.useEvent)(function(){var Gn;Zt==null||Zt.apply(void 0,arguments),(Gn=rt.onClick)===null||Gn===void 0||Gn.call(rt)}),Ln=rt.mode||kt,an=en!=null?en:rt.selectable,zn=se.useMemo(()=>Dt!==void 0?Dt:mt,[mt,Dt]),jn={horizontal:{motionName:`${Se}-slide-up`},inline:(0,ne.Z)(Se),other:{motionName:`${Se}-zoom-big`}},Yt=de("menu",Ke||rt.prefixCls),[Sn,Vn]=ft(Yt,!Ze),ea=ye()(`${Yt}-${bt}`,Ue==null?void 0:Ue.className,yt);let Wn;if(typeof nt=="function")Wn=nt;else if(nt===null||nt===!1)Wn=null;else if(rt.expandIcon===null||rt.expandIcon===!1)Wn=null;else{const Gn=nt!=null?nt:rt.expandIcon;Wn=(0,we.Tm)(Gn,{className:ye()(`${Yt}-submenu-expand-icon`,(0,we.l$)(Gn)?(Ie=Gn.props)===null||Ie===void 0?void 0:Ie.className:"")})}const ra=se.useMemo(()=>({prefixCls:Yt,inlineCollapsed:zn||!1,direction:it,firstLevel:!0,theme:bt,mode:Ln,disableMenuItemTitleTooltip:ct}),[Yt,zn,it,ct,bt]);return Sn(se.createElement(re.Z.Provider,{value:null},se.createElement(a.Provider,{value:ra},se.createElement(te.ZP,Object.assign({getPopupContainer:he,overflowedIndicator:se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ye()(Yt,`${Yt}-${bt}`,sn),mode:Ln,selectable:an,onClick:kn},vn,{inlineCollapsed:zn,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),st),className:ea,prefixCls:Yt,direction:it,defaultMotions:jn,expandIcon:Wn,ref:be,rootClassName:ye()(Kt,Vn)}),Rn))))});const xt=(0,se.forwardRef)((De,be)=>{const pe=(0,se.useRef)(null),Ie=se.useContext(Ve.D);return(0,se.useImperativeHandle)(be,()=>({menu:pe.current,focus:Ze=>{var rt;(rt=pe.current)===null||rt===void 0||rt.focus(Ze)}})),se.createElement(je,Object.assign({ref:pe},De,Ie))});xt.Item=E,xt.SubMenu=x,xt.Divider=Re,xt.ItemGroup=te.BW;var lt=xt},58421:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return rt}});var te=oe(54476),se=oe(59301),Ve={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"},We=Ve,ye=oe(7657),xe=function(he,it){return se.createElement(ye.Z,(0,te.Z)({},he,{ref:it,icon:We}))},le=se.forwardRef(xe),Ye=le,Re=oe(49198),He=oe(33853),Te=oe(38819),ke=oe(92310),we=oe.n(ke),ae=oe(20068),a=oe(33885),y=oe(67732),E=oe(83652),b=oe(42403),x=oe(158),z=oe(26112),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ne=ee,re=oe(91735),ie=function(de){(0,b.Z)(it,de);var he=(0,x.Z)(it);function it(){var Ue;(0,y.Z)(this,it);for(var Se=arguments.length,Ke=new Array(Se),yt=0;yt<Se;yt++)Ke[yt]=arguments[yt];return Ue=he.call.apply(he,[this].concat(Ke)),Ue.state={goInputText:""},Ue.getValidValue=function(){var st=Ue.state.goInputText;return!st||Number.isNaN(st)?void 0:Number(st)},Ue.buildOptionText=function(st){return"".concat(st," ").concat(Ue.props.locale.items_per_page)},Ue.changeSize=function(st){Ue.props.changeSize(Number(st))},Ue.handleChange=function(st){Ue.setState({goInputText:st.target.value})},Ue.handleBlur=function(st){var bt=Ue.props,nt=bt.goButton,ct=bt.quickGo,mt=bt.rootPrefixCls,Dt=Ue.state.goInputText;nt||Dt===""||(Ue.setState({goInputText:""}),!(st.relatedTarget&&(st.relatedTarget.className.indexOf("".concat(mt,"-item-link"))>=0||st.relatedTarget.className.indexOf("".concat(mt,"-item"))>=0))&&ct(Ue.getValidValue()))},Ue.go=function(st){var bt=Ue.state.goInputText;bt!==""&&(st.keyCode===ne.ENTER||st.type==="click")&&(Ue.setState({goInputText:""}),Ue.props.quickGo(Ue.getValidValue()))},Ue}return(0,E.Z)(it,[{key:"getPageSizeOptions",value:function(){var Se=this.props,Ke=Se.pageSize,yt=Se.pageSizeOptions;return yt.some(function(st){return st.toString()===Ke.toString()})?yt:yt.concat([Ke.toString()]).sort(function(st,bt){var nt=Number.isNaN(Number(st))?0:Number(st),ct=Number.isNaN(Number(bt))?0:Number(bt);return nt-ct})}},{key:"render",value:function(){var Se=this,Ke=this.props,yt=Ke.pageSize,st=Ke.locale,bt=Ke.rootPrefixCls,nt=Ke.changeSize,ct=Ke.quickGo,mt=Ke.goButton,Dt=Ke.selectComponentClass,It=Ke.buildOptionText,Tt=Ke.selectPrefixCls,Kt=Ke.disabled,kt=this.state.goInputText,en="".concat(bt,"-options"),Zt=Dt,sn=null,pn=null,vn=null;if(!nt&&!ct)return null;var Rn=this.getPageSizeOptions();if(nt&&Zt){var kn=Rn.map(function(Ln,an){return se.createElement(Zt.Option,{key:an,value:Ln.toString()},(It||Se.buildOptionText)(Ln))});sn=se.createElement(Zt,{disabled:Kt,prefixCls:Tt,showSearch:!1,className:"".concat(en,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(yt||Rn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(an){return an.parentNode},"aria-label":st.page_size,defaultOpen:!1},kn)}return ct&&(mt&&(vn=typeof mt=="boolean"?se.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Kt,className:"".concat(en,"-quick-jumper-button")},st.jump_to_confirm):se.createElement("span",{onClick:this.go,onKeyUp:this.go},mt)),pn=se.createElement("div",{className:"".concat(en,"-quick-jumper")},st.jump_to,se.createElement("input",{disabled:Kt,type:"text",value:kt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":st.page}),st.page,vn)),se.createElement("li",{className:"".concat(en)},sn,pn)}}]),it}(se.Component);ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var ge=ie,ve=function(he){var it,Ue=he.rootPrefixCls,Se=he.page,Ke=he.active,yt=he.className,st=he.showTitle,bt=he.onClick,nt=he.onKeyPress,ct=he.itemRender,mt="".concat(Ue,"-item"),Dt=we()(mt,"".concat(mt,"-").concat(Se),(it={},(0,ae.Z)(it,"".concat(mt,"-active"),Ke),(0,ae.Z)(it,"".concat(mt,"-disabled"),!Se),(0,ae.Z)(it,he.className,yt),it)),It=function(){bt(Se)},Tt=function(en){nt(en,bt,Se)},Kt=ct(Se,"page",se.createElement("a",{rel:"nofollow"},Se));return Kt?se.createElement("li",{title:st?Se.toString():null,className:Dt,onClick:It,onKeyPress:Tt,tabIndex:0},Kt):null},me=ve;function Oe(){}function Pe(de){var he=Number(de);return typeof he=="number"&&!Number.isNaN(he)&&isFinite(he)&&Math.floor(he)===he}var qe=function(he,it,Ue){return Ue};function ht(de,he,it){var Ue=typeof de=="undefined"?he.pageSize:de;return Math.floor((it.total-1)/Ue)+1}var Pt=function(de){(0,b.Z)(it,de);var he=(0,x.Z)(it);function it(Ue){var Se;(0,y.Z)(this,it),Se=he.call(this,Ue),Se.paginationNode=se.createRef(),Se.getJumpPrevPage=function(){return Math.max(1,Se.state.current-(Se.props.showLessItems?3:5))},Se.getJumpNextPage=function(){return Math.min(ht(void 0,Se.state,Se.props),Se.state.current+(Se.props.showLessItems?3:5))},Se.getItemIcon=function(nt,ct){var mt=Se.props.prefixCls,Dt=nt||se.createElement("button",{type:"button","aria-label":ct,className:"".concat(mt,"-item-link")});return typeof nt=="function"&&(Dt=se.createElement(nt,(0,a.Z)({},Se.props))),Dt},Se.isValid=function(nt){var ct=Se.props.total;return Pe(nt)&&nt!==Se.state.current&&Pe(ct)&&ct>0},Se.shouldDisplayQuickJumper=function(){var nt=Se.props,ct=nt.showQuickJumper,mt=nt.total,Dt=Se.state.pageSize;return mt<=Dt?!1:ct},Se.handleKeyDown=function(nt){(nt.keyCode===ne.ARROW_UP||nt.keyCode===ne.ARROW_DOWN)&&nt.preventDefault()},Se.handleKeyUp=function(nt){var ct=Se.getValidValue(nt),mt=Se.state.currentInputValue;ct!==mt&&Se.setState({currentInputValue:ct}),nt.keyCode===ne.ENTER?Se.handleChange(ct):nt.keyCode===ne.ARROW_UP?Se.handleChange(ct-1):nt.keyCode===ne.ARROW_DOWN&&Se.handleChange(ct+1)},Se.handleBlur=function(nt){var ct=Se.getValidValue(nt);Se.handleChange(ct)},Se.changePageSize=function(nt){var ct=Se.state.current,mt=ht(nt,Se.state,Se.props);ct=ct>mt?mt:ct,mt===0&&(ct=Se.state.current),typeof nt=="number"&&("pageSize"in Se.props||Se.setState({pageSize:nt}),"current"in Se.props||Se.setState({current:ct,currentInputValue:ct})),Se.props.onShowSizeChange(ct,nt),"onChange"in Se.props&&Se.props.onChange&&Se.props.onChange(ct,nt)},Se.handleChange=function(nt){var ct=Se.props,mt=ct.disabled,Dt=ct.onChange,It=Se.state,Tt=It.pageSize,Kt=It.current,kt=It.currentInputValue;if(Se.isValid(nt)&&!mt){var en=ht(void 0,Se.state,Se.props),Zt=nt;return nt>en?Zt=en:nt<1&&(Zt=1),"current"in Se.props||Se.setState({current:Zt}),Zt!==kt&&Se.setState({currentInputValue:Zt}),Dt(Zt,Tt),Zt}return Kt},Se.prev=function(){Se.hasPrev()&&Se.handleChange(Se.state.current-1)},Se.next=function(){Se.hasNext()&&Se.handleChange(Se.state.current+1)},Se.jumpPrev=function(){Se.handleChange(Se.getJumpPrevPage())},Se.jumpNext=function(){Se.handleChange(Se.getJumpNextPage())},Se.hasPrev=function(){return Se.state.current>1},Se.hasNext=function(){return Se.state.current<ht(void 0,Se.state,Se.props)},Se.runIfEnter=function(nt,ct){if(nt.key==="Enter"||nt.charCode===13){for(var mt=arguments.length,Dt=new Array(mt>2?mt-2:0),It=2;It<mt;It++)Dt[It-2]=arguments[It];ct.apply(void 0,Dt)}},Se.runIfEnterPrev=function(nt){Se.runIfEnter(nt,Se.prev)},Se.runIfEnterNext=function(nt){Se.runIfEnter(nt,Se.next)},Se.runIfEnterJumpPrev=function(nt){Se.runIfEnter(nt,Se.jumpPrev)},Se.runIfEnterJumpNext=function(nt){Se.runIfEnter(nt,Se.jumpNext)},Se.handleGoTO=function(nt){(nt.keyCode===ne.ENTER||nt.type==="click")&&Se.handleChange(Se.state.currentInputValue)},Se.renderPrev=function(nt){var ct=Se.props,mt=ct.prevIcon,Dt=ct.itemRender,It=Dt(nt,"prev",Se.getItemIcon(mt,"prev page")),Tt=!Se.hasPrev();return(0,se.isValidElement)(It)?(0,se.cloneElement)(It,{disabled:Tt}):It},Se.renderNext=function(nt){var ct=Se.props,mt=ct.nextIcon,Dt=ct.itemRender,It=Dt(nt,"next",Se.getItemIcon(mt,"next page")),Tt=!Se.hasNext();return(0,se.isValidElement)(It)?(0,se.cloneElement)(It,{disabled:Tt}):It};var Ke=Ue.onChange!==Oe,yt="current"in Ue;yt&&!Ke&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var st=Ue.defaultCurrent;"current"in Ue&&(st=Ue.current);var bt=Ue.defaultPageSize;return"pageSize"in Ue&&(bt=Ue.pageSize),st=Math.min(st,ht(bt,void 0,Ue)),Se.state={current:st,currentInputValue:st,pageSize:bt},Se}return(0,E.Z)(it,[{key:"componentDidUpdate",value:function(Se,Ke){var yt=this.props.prefixCls;if(Ke.current!==this.state.current&&this.paginationNode.current){var st=this.paginationNode.current.querySelector(".".concat(yt,"-item-").concat(Ke.current));if(st&&document.activeElement===st){var bt;st==null||(bt=st.blur)===null||bt===void 0||bt.call(st)}}}},{key:"getValidValue",value:function(Se){var Ke=Se.target.value,yt=ht(void 0,this.state,this.props),st=this.state.currentInputValue,bt;return Ke===""?bt=Ke:Number.isNaN(Number(Ke))?bt=st:Ke>=yt?bt=yt:bt=Number(Ke),bt}},{key:"getShowSizeChanger",value:function(){var Se=this.props,Ke=Se.showSizeChanger,yt=Se.total,st=Se.totalBoundaryShowSizeChanger;return typeof Ke!="undefined"?Ke:yt>st}},{key:"render",value:function(){var Se=this.props,Ke=Se.prefixCls,yt=Se.className,st=Se.style,bt=Se.disabled,nt=Se.hideOnSinglePage,ct=Se.total,mt=Se.locale,Dt=Se.showQuickJumper,It=Se.showLessItems,Tt=Se.showTitle,Kt=Se.showTotal,kt=Se.simple,en=Se.itemRender,Zt=Se.showPrevNextJumpers,sn=Se.jumpPrevIcon,pn=Se.jumpNextIcon,vn=Se.selectComponentClass,Rn=Se.selectPrefixCls,kn=Se.pageSizeOptions,Ln=this.state,an=Ln.current,zn=Ln.pageSize,jn=Ln.currentInputValue;if(nt===!0&&ct<=zn)return null;var Yt=ht(void 0,this.state,this.props),Sn=[],Vn=null,ea=null,Wn=null,ra=null,Gn=null,Jn=Dt&&Dt.goButton,Qt=It?1:2,Qn=an-1>0?an-1:0,Le=an+1<Yt?an+1:Yt,ze=(0,z.Z)(this.props,{aria:!0,data:!0}),Be=Kt&&se.createElement("li",{className:"".concat(Ke,"-total-text")},Kt(ct,[ct===0?0:(an-1)*zn+1,an*zn>ct?ct:an*zn]));if(kt){Jn&&(typeof Jn=="boolean"?Gn=se.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},mt.jump_to_confirm):Gn=se.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Jn),Gn=se.createElement("li",{title:Tt?"".concat(mt.jump_to).concat(an,"/").concat(Yt):null,className:"".concat(Ke,"-simple-pager")},Gn));var St=this.renderPrev(Qn);return se.createElement("ul",(0,te.Z)({className:we()(Ke,"".concat(Ke,"-simple"),(0,ae.Z)({},"".concat(Ke,"-disabled"),bt),yt),style:st,ref:this.paginationNode},ze),Be,St?se.createElement("li",{title:Tt?mt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Ke,"-prev"),(0,ae.Z)({},"".concat(Ke,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},St):null,se.createElement("li",{title:Tt?"".concat(an,"/").concat(Yt):null,className:"".concat(Ke,"-simple-pager")},se.createElement("input",{type:"text",value:jn,disabled:bt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),se.createElement("span",{className:"".concat(Ke,"-slash")},"/"),Yt),se.createElement("li",{title:Tt?mt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:we()("".concat(Ke,"-next"),(0,ae.Z)({},"".concat(Ke,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Le)),Gn)}if(Yt<=3+Qt*2){var Bt={locale:mt,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Tt,itemRender:en};Yt||Sn.push(se.createElement(me,(0,te.Z)({},Bt,{key:"noPager",page:1,className:"".concat(Ke,"-item-disabled")})));for(var Ft=1;Ft<=Yt;Ft+=1){var ln=an===Ft;Sn.push(se.createElement(me,(0,te.Z)({},Bt,{key:Ft,page:Ft,active:ln})))}}else{var Vt=It?mt.prev_3:mt.prev_5,zt=It?mt.next_3:mt.next_5,Ut=en(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(sn,"prev page")),En=en(this.getJumpNextPage(),"jump-next",this.getItemIcon(pn,"next page"));Zt&&(Vn=Ut?se.createElement("li",{title:Tt?Vt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:we()("".concat(Ke,"-jump-prev"),(0,ae.Z)({},"".concat(Ke,"-jump-prev-custom-icon"),!!sn))},Ut):null,ea=En?se.createElement("li",{title:Tt?zt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:we()("".concat(Ke,"-jump-next"),(0,ae.Z)({},"".concat(Ke,"-jump-next-custom-icon"),!!pn))},En):null),ra=se.createElement(me,{locale:mt,last:!0,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Yt,page:Yt,active:!1,showTitle:Tt,itemRender:en}),Wn=se.createElement(me,{locale:mt,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Tt,itemRender:en});var tt=Math.max(1,an-Qt),Jt=Math.min(an+Qt,Yt);an-1<=Qt&&(Jt=1+Qt*2),Yt-an<=Qt&&(tt=Yt-Qt*2);for(var Bn=tt;Bn<=Jt;Bn+=1){var ta=an===Bn;Sn.push(se.createElement(me,{locale:mt,rootPrefixCls:Ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Bn,page:Bn,active:ta,showTitle:Tt,itemRender:en}))}an-1>=Qt*2&&an!==3&&(Sn[0]=(0,se.cloneElement)(Sn[0],{className:"".concat(Ke,"-item-after-jump-prev")}),Sn.unshift(Vn)),Yt-an>=Qt*2&&an!==Yt-2&&(Sn[Sn.length-1]=(0,se.cloneElement)(Sn[Sn.length-1],{className:"".concat(Ke,"-item-before-jump-next")}),Sn.push(ea)),tt!==1&&Sn.unshift(Wn),Jt!==Yt&&Sn.push(ra)}var Nn=!this.hasPrev()||!Yt,yn=!this.hasNext()||!Yt,la=this.renderPrev(Qn),ia=this.renderNext(Le);return se.createElement("ul",(0,te.Z)({className:we()(Ke,yt,(0,ae.Z)({},"".concat(Ke,"-disabled"),bt)),style:st,ref:this.paginationNode},ze),Be,la?se.createElement("li",{title:Tt?mt.prev_page:null,onClick:this.prev,tabIndex:Nn?null:0,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Ke,"-prev"),(0,ae.Z)({},"".concat(Ke,"-disabled"),Nn)),"aria-disabled":Nn},la):null,Sn,ia?se.createElement("li",{title:Tt?mt.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:we()("".concat(Ke,"-next"),(0,ae.Z)({},"".concat(Ke,"-disabled"),yn)),"aria-disabled":yn},ia):null,se.createElement(ge,{disabled:bt,locale:mt,rootPrefixCls:Ke,selectComponentClass:vn,selectPrefixCls:Rn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:an,pageSize:zn,pageSizeOptions:kn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Jn}))}}],[{key:"getDerivedStateFromProps",value:function(Se,Ke){var yt={};if("current"in Se&&(yt.current=Se.current,Se.current!==Ke.current&&(yt.currentInputValue=yt.current)),"pageSize"in Se&&Se.pageSize!==Ke.pageSize){var st=Ke.current,bt=ht(Se.pageSize,Ke,Se);st=st>bt?bt:st,"current"in Se||(yt.current=st,yt.currentInputValue=st),yt.pageSize=Se.pageSize}return yt}}]),it}(se.Component);Pt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Oe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Oe,locale:re.Z,style:{},itemRender:qe,totalBoundaryShowSizeChanger:50};var Ce=Pt,Xe=oe(22075),Je=oe(36355),Qe=oe(19716),dt=oe(8628),Et=oe(9763),Gt=oe(57809);const At=de=>se.createElement(Gt.default,Object.assign({},de,{showSearch:!0,size:"small"})),Wt=de=>se.createElement(Gt.default,Object.assign({},de,{showSearch:!0,size:"middle"}));At.Option=Gt.default.Option,Wt.Option=Gt.default.Option;var _e=oe(9937),Me=oe(17313),et=oe(83116),wt=oe(37613);const ot=de=>{const{componentCls:he}=de;return{[`${he}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${he}-item-link`]:{color:de.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${he}-item-link`]:{color:de.colorTextDisabled,cursor:"not-allowed"}}},[`&${he}-disabled`]:{cursor:"not-allowed",[`${he}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:de.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:de.colorBorder,backgroundColor:de.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:de.itemActiveBgDisabled},a:{color:de.itemActiveColorDisabled}}},[`${he}-item-link`]:{color:de.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${he}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${he}-simple-pager`]:{color:de.colorTextDisabled},[`${he}-jump-prev, ${he}-jump-next`]:{[`${he}-item-link-icon`]:{opacity:0},[`${he}-item-ellipsis`]:{opacity:1}}},[`&${he}-simple`]:{[`${he}-prev, ${he}-next`]:{[`&${he}-disabled ${he}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ft=de=>{const{componentCls:he}=de;return{[`&${he}-mini ${he}-total-text, &${he}-mini ${he}-simple-pager`]:{height:de.itemSizeSM,lineHeight:`${de.itemSizeSM}px`},[`&${he}-mini ${he}-item`]:{minWidth:de.itemSizeSM,height:de.itemSizeSM,margin:0,lineHeight:`${de.itemSizeSM-2}px`},[`&${he}-mini:not(${he}-disabled) ${he}-item:not(${he}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:de.colorBgTextHover},"&:active":{backgroundColor:de.colorBgTextActive}},[`&${he}-mini ${he}-prev, &${he}-mini ${he}-next`]:{minWidth:de.itemSizeSM,height:de.itemSizeSM,margin:0,lineHeight:`${de.itemSizeSM}px`},[`&${he}-mini:not(${he}-disabled)`]:{[`${he}-prev, ${he}-next`]:{[`&:hover ${he}-item-link`]:{backgroundColor:de.colorBgTextHover},[`&:active ${he}-item-link`]:{backgroundColor:de.colorBgTextActive},[`&${he}-disabled:hover ${he}-item-link`]:{backgroundColor:"transparent"}}},[`
&${he}-mini ${he}-prev ${he}-item-link,
&${he}-mini ${he}-next ${he}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:de.itemSizeSM,lineHeight:`${de.itemSizeSM}px`}},[`&${he}-mini ${he}-jump-prev, &${he}-mini ${he}-jump-next`]:{height:de.itemSizeSM,marginInlineEnd:0,lineHeight:`${de.itemSizeSM}px`},[`&${he}-mini ${he}-options`]:{marginInlineStart:de.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:de.miniOptionsSizeChangerTop},"&-quick-jumper":{height:de.itemSizeSM,lineHeight:`${de.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,_e.x0)(de)),{width:de.paginationMiniQuickJumperInputWidth,height:de.controlHeightSM})}}}},ue=de=>{const{componentCls:he}=de;return{[`
&${he}-simple ${he}-prev,
&${he}-simple ${he}-next
`]:{height:de.itemSizeSM,lineHeight:`${de.itemSizeSM}px`,verticalAlign:"top",[`${he}-item-link`]:{height:de.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:de.colorBgTextHover},"&:active":{backgroundColor:de.colorBgTextActive},"&::after":{height:de.itemSizeSM,lineHeight:`${de.itemSizeSM}px`}}},[`&${he}-simple ${he}-simple-pager`]:{display:"inline-block",height:de.itemSizeSM,marginInlineEnd:de.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:de.marginXS,padding:`0 ${de.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:de.itemInputBg,border:`${de.lineWidth}px ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadius,outline:"none",transition:`border-color ${de.motionDurationMid}`,color:"inherit","&:hover":{borderColor:de.colorPrimary},"&:focus":{borderColor:de.colorPrimaryHover,boxShadow:`${de.inputOutlineOffset}px 0 ${de.controlOutlineWidth}px ${de.controlOutline}`},"&[disabled]":{color:de.colorTextDisabled,backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,cursor:"not-allowed"}}}}},$e=de=>{const{componentCls:he}=de;return{[`${he}-jump-prev, ${he}-jump-next`]:{outline:0,[`${he}-item-container`]:{position:"relative",[`${he}-item-link-icon`]:{color:de.colorPrimary,fontSize:de.fontSizeSM,opacity:0,transition:`all ${de.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${he}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:de.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:de.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:de.paginationEllipsisTextIndent,opacity:1,transition:`all ${de.motionDurationMid}`}},"&:hover":{[`${he}-item-link-icon`]:{opacity:1},[`${he}-item-ellipsis`]:{opacity:0}}},[`
${he}-prev,
${he}-jump-prev,
${he}-jump-next
`]:{marginInlineEnd:de.marginXS},[`
${he}-prev,
${he}-next,
${he}-jump-prev,
${he}-jump-next
`]:{display:"inline-block",minWidth:de.itemSize,height:de.itemSize,color:de.colorText,fontFamily:de.fontFamily,lineHeight:`${de.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:de.borderRadius,cursor:"pointer",transition:`all ${de.motionDurationMid}`},[`${he}-prev, ${he}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:de.colorText,cursor:"pointer",userSelect:"none"},[`${he}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:de.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${de.lineWidth}px ${de.lineType} transparent`,borderRadius:de.borderRadius,outline:"none",transition:`all ${de.motionDurationMid}`},[`&:hover ${he}-item-link`]:{backgroundColor:de.colorBgTextHover},[`&:active ${he}-item-link`]:{backgroundColor:de.colorBgTextActive},[`&${he}-disabled:hover`]:{[`${he}-item-link`]:{backgroundColor:"transparent"}}},[`${he}-slash`]:{marginInlineEnd:de.paginationSlashMarginInlineEnd,marginInlineStart:de.paginationSlashMarginInlineStart},[`${he}-options`]:{display:"inline-block",marginInlineStart:de.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:de.controlHeight,marginInlineStart:de.marginXS,lineHeight:`${de.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,_e.ik)(de)),{width:de.controlHeightLG*1.25,height:de.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:de.marginXS,marginInlineEnd:de.marginXS})}}}},je=de=>{const{componentCls:he}=de;return{[`${he}-item`]:{display:"inline-block",minWidth:de.itemSize,height:de.itemSize,marginInlineEnd:de.marginXS,fontFamily:de.fontFamily,lineHeight:`${de.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${de.lineWidth}px ${de.lineType} transparent`,borderRadius:de.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${de.paginationItemPaddingInline}px`,color:de.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${he}-item-active)`]:{"&:hover":{transition:`all ${de.motionDurationMid}`,backgroundColor:de.colorBgTextHover},"&:active":{backgroundColor:de.colorBgTextActive}},"&-active":{fontWeight:de.fontWeightStrong,backgroundColor:de.itemActiveBg,borderColor:de.colorPrimary,a:{color:de.colorPrimary},"&:hover":{borderColor:de.colorPrimaryHover},"&:hover a":{color:de.colorPrimaryHover}}}}},xt=de=>{const{componentCls:he}=de;return{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(de)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${he}-total-text`]:{display:"inline-block",height:de.itemSize,marginInlineEnd:de.marginXS,lineHeight:`${de.itemSize-2}px`,verticalAlign:"middle"}}),je(de)),$e(de)),ue(de)),ft(de)),ot(de)),{[`@media only screen and (max-width: ${de.screenLG}px)`]:{[`${he}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${de.screenSM}px)`]:{[`${he}-options`]:{display:"none"}}}),[`&${de.componentCls}-rtl`]:{direction:"rtl"}}},lt=de=>{const{componentCls:he}=de;return{[`${he}${he}-disabled:not(${he}-mini)`]:{"&, &:hover":{[`${he}-item-link`]:{borderColor:de.colorBorder}},"&:focus-visible":{[`${he}-item-link`]:{borderColor:de.colorBorder}},[`${he}-item, ${he}-item-link`]:{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,[`&:hover:not(${he}-item-active)`]:{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,a:{color:de.colorTextDisabled}},[`&${he}-item-active`]:{backgroundColor:de.itemActiveBgDisabled}},[`${he}-prev, ${he}-next`]:{"&:hover button":{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder,color:de.colorTextDisabled},[`${he}-item-link`]:{backgroundColor:de.colorBgContainerDisabled,borderColor:de.colorBorder}}},[`${he}:not(${he}-mini)`]:{[`${he}-prev, ${he}-next`]:{"&:hover button":{borderColor:de.colorPrimaryHover,backgroundColor:de.itemBg},[`${he}-item-link`]:{backgroundColor:de.itemLinkBg,borderColor:de.colorBorder},[`&:hover ${he}-item-link`]:{borderColor:de.colorPrimary,backgroundColor:de.itemBg,color:de.colorPrimary},[`&${he}-disabled`]:{[`${he}-item-link`]:{borderColor:de.colorBorder,color:de.colorTextDisabled}}},[`${he}-item`]:{backgroundColor:de.itemBg,border:`${de.lineWidth}px ${de.lineType} ${de.colorBorder}`,[`&:hover:not(${he}-item-active)`]:{borderColor:de.colorPrimary,backgroundColor:de.itemBg,a:{color:de.colorPrimary}},"&-active":{borderColor:de.colorPrimary}}}}},De=de=>{const{componentCls:he}=de;return{[`${he}:not(${he}-disabled)`]:{[`${he}-item`]:Object.assign({},(0,Me.Qy)(de)),[`${he}-jump-prev, ${he}-jump-next`]:{"&:focus-visible":Object.assign({[`${he}-item-link-icon`]:{opacity:1},[`${he}-item-ellipsis`]:{opacity:0}},(0,Me.oN)(de))},[`${he}-prev, ${he}-next`]:{[`&:focus-visible ${he}-item-link`]:Object.assign({},(0,Me.oN)(de))}}}};var be=(0,et.Z)("Pagination",de=>{const he=(0,wt.TS)(de,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:de.marginXXS/2,paginationMiniQuickJumperInputWidth:de.controlHeightLG*1.1,paginationItemPaddingInline:de.marginXXS*1.5,paginationEllipsisLetterSpacing:de.marginXXS/2,paginationSlashMarginInlineStart:de.marginXXS,paginationSlashMarginInlineEnd:de.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,_e.e5)(de),(0,_e.TM)(de));return[xt(he),De(he),de.wireframe&&lt(he)]},de=>({itemBg:de.colorBgContainer,itemSize:de.controlHeight,itemSizeSM:de.controlHeightSM,itemActiveBg:de.colorBgContainer,itemLinkBg:de.colorBgContainer,itemActiveColorDisabled:de.colorTextDisabled,itemActiveBgDisabled:de.controlItemBgActiveDisabled,itemInputBg:de.colorBgContainer,miniOptionsSizeChangerTop:0})),pe=function(de,he){var it={};for(var Ue in de)Object.prototype.hasOwnProperty.call(de,Ue)&&he.indexOf(Ue)<0&&(it[Ue]=de[Ue]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ue=Object.getOwnPropertySymbols(de);Se<Ue.length;Se++)he.indexOf(Ue[Se])<0&&Object.prototype.propertyIsEnumerable.call(de,Ue[Se])&&(it[Ue[Se]]=de[Ue[Se]]);return it},Ze=de=>{const{prefixCls:he,selectPrefixCls:it,className:Ue,rootClassName:Se,style:Ke,size:yt,locale:st,selectComponentClass:bt,responsive:nt,showSizeChanger:ct}=de,mt=pe(de,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Dt}=(0,dt.Z)(nt),{getPrefixCls:It,direction:Tt,pagination:Kt={}}=se.useContext(Je.E_),kt=It("pagination",he),[en,Zt]=be(kt),sn=ct!=null?ct:Kt.showSizeChanger,pn=se.useMemo(()=>{const Yt=se.createElement("span",{className:`${kt}-item-ellipsis`},"\u2022\u2022\u2022"),Sn=se.createElement("button",{className:`${kt}-item-link`,type:"button",tabIndex:-1},Tt==="rtl"?se.createElement(Te.Z,null):se.createElement(He.Z,null)),Vn=se.createElement("button",{className:`${kt}-item-link`,type:"button",tabIndex:-1},Tt==="rtl"?se.createElement(He.Z,null):se.createElement(Te.Z,null)),ea=se.createElement("a",{className:`${kt}-item-link`},se.createElement("div",{className:`${kt}-item-container`},Tt==="rtl"?se.createElement(Re.Z,{className:`${kt}-item-link-icon`}):se.createElement(Ye,{className:`${kt}-item-link-icon`}),Yt)),Wn=se.createElement("a",{className:`${kt}-item-link`},se.createElement("div",{className:`${kt}-item-container`},Tt==="rtl"?se.createElement(Ye,{className:`${kt}-item-link-icon`}):se.createElement(Re.Z,{className:`${kt}-item-link-icon`}),Yt));return{prevIcon:Sn,nextIcon:Vn,jumpPrevIcon:ea,jumpNextIcon:Wn}},[Tt,kt]),[vn]=(0,Et.Z)("Pagination",Xe.Z),Rn=Object.assign(Object.assign({},vn),st),kn=(0,Qe.Z)(yt),Ln=kn==="small"||!!(Dt&&!kn&&nt),an=It("select",it),zn=we()({[`${kt}-mini`]:Ln,[`${kt}-rtl`]:Tt==="rtl"},Kt==null?void 0:Kt.className,Ue,Se,Zt),jn=Object.assign(Object.assign({},Kt==null?void 0:Kt.style),Ke);return en(se.createElement(Ce,Object.assign({},pn,mt,{style:jn,prefixCls:kt,selectPrefixCls:an,className:zn,selectComponentClass:bt||(Ln?At:Wt),locale:Rn,showSizeChanger:sn})))},rt=Ze},12563:function(Ge,gt,oe){"use strict";oe.d(gt,{Z:function(){return Oe}});var te=oe(59301),se=oe(99267),Ve=oe(92310),We=oe.n(Ve),ye=oe(36785),xe=oe(47729),le=oe(14088),Ye=oe(36355),Re=oe(17313),He=oe(37613),Te=oe(83116);const ke=Pe=>{const{paddingXXS:qe,lineWidth:ht,tagPaddingHorizontal:Pt,componentCls:Ce}=Pe,Xe=Pt-ht,Je=qe-ht;return{[Ce]:Object.assign(Object.assign({},(0,Re.Wf)(Pe)),{display:"inline-block",height:"auto",marginInlineEnd:Pe.marginXS,paddingInline:Xe,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",[`&${Ce}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Pe.defaultColor},[`${Ce}-close-icon`]:{marginInlineStart:Je,color:Pe.colorTextDescription,fontSize:Pe.tagIconSize,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`,"&:hover":{color:Pe.colorTextHeading}},[`&${Ce}-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(${Ce}-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:Xe}}),[`${Ce}-borderless`]:{borderColor:"transparent",background:Pe.tagBorderlessBg}}},we=Pe=>{const{lineWidth:qe,fontSizeIcon:ht}=Pe,Pt=Pe.fontSizeSM,Ce=`${Pe.lineHeightSM*Pt}px`;return(0,He.TS)(Pe,{tagFontSize:Pt,tagLineHeight:Ce,tagIconSize:ht-2*qe,tagPaddingHorizontal:8,tagBorderlessBg:Pe.colorFillTertiary})},ae=Pe=>({defaultBg:Pe.colorFillQuaternary,defaultColor:Pe.colorText});var a=(0,Te.Z)("Tag",Pe=>{const qe=we(Pe);return ke(qe)},ae),y=function(Pe,qe){var ht={};for(var Pt in Pe)Object.prototype.hasOwnProperty.call(Pe,Pt)&&qe.indexOf(Pt)<0&&(ht[Pt]=Pe[Pt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Pt=Object.getOwnPropertySymbols(Pe);Ce<Pt.length;Ce++)qe.indexOf(Pt[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Pt[Ce])&&(ht[Pt[Ce]]=Pe[Pt[Ce]]);return ht},b=Pe=>{const{prefixCls:qe,style:ht,className:Pt,checked:Ce,onChange:Xe,onClick:Je}=Pe,Qe=y(Pe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:dt,tag:Et}=te.useContext(Ye.E_),Gt=et=>{Xe==null||Xe(!Ce),Je==null||Je(et)},At=dt("tag",qe),[Wt,_e]=a(At),Me=We()(At,`${At}-checkable`,{[`${At}-checkable-checked`]:Ce},Et==null?void 0:Et.className,Pt,_e);return Wt(te.createElement("span",Object.assign({},Qe,{style:Object.assign(Object.assign({},ht),Et==null?void 0:Et.style),className:Me,onClick:Gt})))},x=oe(45157);const z=Pe=>(0,x.Z)(Pe,(qe,ht)=>{let{textColor:Pt,lightBorderColor:Ce,lightColor:Xe,darkColor:Je}=ht;return{[`${Pe.componentCls}-${qe}`]:{color:Pt,background:Xe,borderColor:Ce,"&-inverse":{color:Pe.colorTextLightSolid,background:Je,borderColor:Je},[`&${Pe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ee=(0,Te.b)(["Tag","preset"],Pe=>{const qe=we(Pe);return z(qe)},ae);function ne(Pe){return typeof Pe!="string"?Pe:Pe.charAt(0).toUpperCase()+Pe.slice(1)}const re=(Pe,qe,ht)=>{const Pt=ne(ht);return{[`${Pe.componentCls}-${qe}`]:{color:Pe[`color${ht}`],background:Pe[`color${Pt}Bg`],borderColor:Pe[`color${Pt}Border`],[`&${Pe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ie=(0,Te.b)(["Tag","status"],Pe=>{const qe=we(Pe);return[re(qe,"success","Success"),re(qe,"processing","Info"),re(qe,"error","Error"),re(qe,"warning","Warning")]},ae),ge=function(Pe,qe){var ht={};for(var Pt in Pe)Object.prototype.hasOwnProperty.call(Pe,Pt)&&qe.indexOf(Pt)<0&&(ht[Pt]=Pe[Pt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Pt=Object.getOwnPropertySymbols(Pe);Ce<Pt.length;Ce++)qe.indexOf(Pt[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Pt[Ce])&&(ht[Pt[Ce]]=Pe[Pt[Ce]]);return ht};const ve=(Pe,qe)=>{const{prefixCls:ht,className:Pt,rootClassName:Ce,style:Xe,children:Je,icon:Qe,color:dt,onClose:Et,closeIcon:Gt,closable:At,bordered:Wt=!0}=Pe,_e=ge(Pe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Me,direction:et,tag:wt}=te.useContext(Ye.E_),[ot,ft]=te.useState(!0);te.useEffect(()=>{"visible"in _e&&ft(_e.visible)},[_e.visible]);const ue=(0,ye.o2)(dt),$e=(0,ye.yT)(dt),je=ue||$e,xt=Object.assign(Object.assign({backgroundColor:dt&&!je?dt:void 0},wt==null?void 0:wt.style),Xe),lt=Me("tag",ht),[De,be]=a(lt),pe=We()(lt,wt==null?void 0:wt.className,{[`${lt}-${dt}`]:je,[`${lt}-has-color`]:dt&&!je,[`${lt}-hidden`]:!ot,[`${lt}-rtl`]:et==="rtl",[`${lt}-borderless`]:!Wt},Pt,Ce,be),Ie=Ue=>{Ue.stopPropagation(),Et==null||Et(Ue),!Ue.defaultPrevented&&ft(!1)},[,Ze]=(0,xe.Z)(At,Gt,Ue=>Ue===null?te.createElement(se.Z,{className:`${lt}-close-icon`,onClick:Ie}):te.createElement("span",{className:`${lt}-close-icon`,onClick:Ie},Ue),null,!1),rt=typeof _e.onClick=="function"||Je&&Je.type==="a",de=Qe||null,he=de?te.createElement(te.Fragment,null,de,Je&&te.createElement("span",null,Je)):Je,it=te.createElement("span",Object.assign({},_e,{ref:qe,className:pe,style:xt}),he,Ze,ue&&te.createElement(ee,{key:"preset",prefixCls:lt}),$e&&te.createElement(ie,{key:"status",prefixCls:lt}));return De(rt?te.createElement(le.Z,{component:"Tag"},it):it)},me=te.forwardRef(ve);me.CheckableTag=b;var Oe=me},91735:function(Ge,gt){"use strict";gt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}}}]);