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__HttpStatus__HpcCourse.3f...

132 lines
346 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4496],{84249:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return Se}});var ae=ie(87462),Ae=ie(67294),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},je=Ze,Le=ie(74643),Re=function(Ue,Ce){return Ae.createElement(Le.Z,(0,ae.Z)({},Ue,{ref:Ce,icon:je}))},Se=Ae.forwardRef(Re)},90674:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return Se}});var ae=ie(87462),Ae=ie(67294),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},je=Ze,Le=ie(74643),Re=function(Ue,Ce){return Ae.createElement(Le.Z,(0,ae.Z)({},Ue,{ref:Ce,icon:je}))},Se=Ae.forwardRef(Re)},71736:function(be,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function be(te,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=te,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(be.prototype,"name",{get:function(){return this._name},set:function(te){if(typeof te!="string"||te==="")throw new Error("Shape name must be a valid string.");this._name=te}}),Object.defineProperty(be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("The default value must be a real number, not: "+te);this._defaultValue=te}}),Object.defineProperty(be.prototype,"minimum",{get:function(){return this._minimum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Minimum must be a real number, not: "+te);this._minimum=te}}),Object.defineProperty(be.prototype,"maximum",{get:function(){return this._maximum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Maximum must be a real number, not: "+te);this._maximum=te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(te,a){var y=go.Shape._FigureParameters[te];return y?y[a]:null},go.Shape.setFigureParameter=function(te,a,y){if(!(y instanceof be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var it=[];function ie(te,a){var y=it.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ae(){var te=it.pop();return te===void 0?new go.Point:te}function Ae(te){it.push(te)}function Ze(te,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=te-y,ge=b-z,re=NaN,me=NaN;if(oe===0)if(ge===0)te===y&&(re=te,me=a);else{var ue=(x-ee)/ge,ye=x-ue*b;re=te,me=ue*re+ye}else if(ge===0){var Ge=(a-E)/oe,$e=a-Ge*te;re=b,me=Ge*re+$e}else{var Ge=(a-E)/oe,ue=(x-ee)/ge,$e=a-Ge*te,ye=x-ue*b;re=(ye-$e)/(Ge-ue),me=Ge*re+$e}return ne.x=re,ne.y=me,ne}function je(te,a,y,E,b,x,z,ee,ne,oe,ge,re,me,ue){var ye=1-ne,Ge=ne,$e=te*ye+y*Ge,St=a*ye+E*Ge,ut=y*ye+b*Ge,Gt=E*ye+x*Ge,Pt=b*ye+z*Ge,Lt=x*ye+ee*Ge,zt=$e*ye+ut*Ge,Wt=St*ye+Gt*Ge,ln=ut*ye+Pt*Ge,Fn=Gt*ye+Lt*Ge,Xn=zt*ye+ln*Ge,Hn=Wt*ye+Fn*Ge;oe.x=$e,oe.y=St,ge.x=zt,ge.y=Wt,re.x=Xn,re.y=Hn,me.x=ln,me.y=Fn,ue.x=Pt,ue.y=Lt}var Le=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),Se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*Se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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=Le,b.spot2=Re,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(te,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(te,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(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,Se*a,0,a,(1-Se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,Se*y,(1-Se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,Se*y,Se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-Se)*a,0,0,(1-Se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(te,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(te,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(te,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(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(te,a,y){var E=te?te.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 nt=[];function Ue(){var te=nt.pop();return te===void 0?[]:te}function Ce(te){te.length=0,nt.push(te)}function dt(te){for(var a=Ue(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<te;z++)x=2*Math.PI/te*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Ye(te){var a=Ke(te),y=Ue();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 Ce(a),y}function Ke(te){for(var a=dt(te),y=Ue(),E=Math.floor(a.length/2),b=a.length-1,x=te%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ze(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(te,a,y){var E=dt(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()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(te,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<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()),Ce(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(te,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<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()),Ce(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(te,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<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()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(te,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<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()),Ce(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(te,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<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()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(te,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<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()),Ce(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(te,a,y){var E=Ye(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(),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(te,a,y){var E=Ye(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(),Ce(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(te,a,y){var E=Ye(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(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(te,a,y){var E=Ye(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(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(te,a,y){var E=Ye(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(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(te,a,y){var E=Ye(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(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(te,a,y){var E=te?te.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=Le,x.spot2=Re,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(te,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(te,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.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(te,a,y){var E=Se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(te,a,y){var E=te?te.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(te,a,y){var E=te?te.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(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,Se*a,0,a,(.5-Se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Se/2)*y,Se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*Se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=Se*.4;var oe=ae(),ge=ae(),re=ae(),me=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,re,me,me);var ue=ae(),ye=ae(),Ge=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Ge,ue,ye);var $e=ae(),St=ae(),ut=ae();je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,$e,St,ut,me,me);var Gt=ae(),Pt=ae(),Lt=ae();return je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Lt,Gt,Pt),ne.add(new go.PathSegment(go.PathSegment.Move,Lt.x*a,Lt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Gt.x*a,Gt.y*y,Pt.x*a,Pt.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,re.x*a,re.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Lt.x*a,Lt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,ut.x*a,ut.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ue.x*a,ue.y*y,ye.x*a,ye.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,ut.x*a,ut.y*y,$e.x*a,$e.y*y,St.x*a,St.y*y).close()),Ae(oe),Ae(ge),Ae(re),Ae(me),Ae(ue),Ae(ye),Ae(Ge),Ae($e),Ae(St),Ae(ut),Ae(Gt),Ae(Pt),Ae(Lt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(te,a,y){var E=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=Se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),re=ae(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),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)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,re,oe,ne,ne),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y));var ue=ie(oe.x,oe.y);je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,ge,re);var ye=ie(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,(ye.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.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)),x=.35,b=Se*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.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 $e=new go.PathFigure((z-x)*a,ee*y,!1);return E.add($e),Ae(ne),Ae(oe),Ae(ge),Ae(re),Ae(ue),Ae(ye),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(te,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*Se,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*Se;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(te,a,y){var E=te?te.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(te,a,y){var E=te?te.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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=te?te.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),Ae(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=te?te.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),Ae(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(te,a,y){var E=te?te.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=Ze(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ze(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Ae(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=Ze(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(re.x,re.y),re=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),Ae(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(te,a,y){var E=te?te.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=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Ae(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var re=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(re.x,re.y),Ae(re),oe}),go.Shape.setFigureParameter("Pointer",0,new be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(te,a,y){var E=te?te.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=Ze(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Ae(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(te,a,y){var E=te?te.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=Ze(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Ae(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(te,a,y){var E=te?te.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=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Ae(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(te,a,y){var E=te?te.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=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Ae(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(te,a,y){var E=te?te.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(te,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(te,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(te,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(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-Se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-Se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-Se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-Se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-Se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-Se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-Se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+Se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+Se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-Se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-Se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.2,x=.1,z=Se*b,ee=Se*x,ne=.5,oe=.1,ge=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var re=.05,me=Se*re;ne=.05,oe=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+re)*a,oe*y,(ne+me)*a,(oe-re)*y,(ne+re)*a,(oe-me)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,me=Se*re,ne=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-me)*y,(ne+me)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-me)*a,(oe-re)*y,(ne-re)*a,(oe-me)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,me=Se*re,ne=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-me)*y,(ne+me)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-me)*a,(oe-re)*y,(ne-re)*a,(oe-me)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,me=Se*re,ne=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-me)*y,(ne+me)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-me)*a,(oe-re)*y,(ne-re)*a,(oe-me)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,me=Se*re,ne=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne-re)*a,(oe-me)*y,(ne-me)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(te,a,y){var E=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(te,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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=Se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.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(te,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=Se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(te,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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,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(te,a,y){var E=new go.Geometry,b=te?te.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(te,a,y){var E=new go.Geometry,b=Se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(te,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(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(te,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(te,a,y){var E=new go.Geometry,b=Se*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.4,z=Se*.1,ee=.1,ne=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var re=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=Se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=Se*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=Se*.8,ee=.8,ne=0,oe=.5,ge=(b-a)/2,re=(x-y)/2,me=new go.PathFigure(ne*a+ge,(oe+ee)*y+re,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+re,ne*a+ge,(oe-ee)*y+re,(ne-ee+z*.5)*a+ge,(oe-z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne-ee+z*.5)*a+ge,(oe+z)*y+re,ne*a+ge,(oe+ee)*y+re).close()),z=Se*.4,ee=.4,ne=.2,oe=.5;var ue=new go.PathFigure(ne*a+ge,(oe+ee)*y+re,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+re,ne*a+ge,(oe-ee)*y+re,(ne-ee+z*.5)*a+ge,(oe-z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne-ee+z*.5)*a+ge,(oe+z)*y+re,ne*a+ge,(oe+ee)*y+re).close()),z=Se*.2,ee=.2,ne=.5,oe=.5;var ye=new go.PathFigure((ne-ee)*a+ge,oe*y+re,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),z=Se*.4,ee=.4,ne=.8,oe=.5;var Ge=new go.PathFigure(ne*a+ge,(oe-ee)*y+re,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+re,ne*a+ge,(oe+ee)*y+re,(ne+ee-z*.5)*a+ge,(oe+z)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne+ee-z*.5)*a+ge,(oe-z)*y+re,ne*a+ge,(oe-ee)*y+re).close()),z=Se*.8,ee=.8,ne=1,oe=.5;var $e=new go.PathFigure(ne*a+ge,(oe-ee)*y+re,!0);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+re,ne*a+ge,(oe+ee)*y+re,(ne+ee-z*.5)*a+ge,(oe+z)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne+ee-z*.5)*a+ge,(oe-z)*y+re,ne*a+ge,(oe-ee)*y+re).close()),E}),go.Shape.defineFigureGenerator("Email",function(te,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(te,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(te,a,y){var E=new go.Geometry,b=Se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),re=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,re);var me=ie(oe.x,oe.y),ue=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,ne,ne),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),b=Se*.3,x=.3,je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,ne,ne),ue.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,re),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y).close());var ue=new go.PathFigure(.45*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Ae(ne),Ae(oe),Ae(ge),Ae(re),Ae(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*Se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,me=.5,ue=0,ye=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(ue+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ye.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)),ye.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)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ge*.5,me=z,ue=z,ye=ge*me,Ge=ge*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,ne*y,(ee-(ye+me)/2)*a,(ne+(ue+Ge)/2)*y,(ee-me)*a,(ne+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ue)*y,(ee-me)*a,(ne-Ge)*y,(ee-ye)*a,(ne-ue)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,ne*y,(ee+ye)*a,(ne-ue)*y,(ee+me)*a,(ne-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(ne+Ge)*y,(ee+(ye+me)/2)*a,(ne+(ue+Ge)/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 $e=new go.PathFigure(.2*a,y,!1);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var St=new go.PathFigure(.8*a,y,!1);return E.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=Se*.1,ne=.2,oe=.9,ge=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=Se*.1,ne=.8,oe=.9;var re=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,oe=Se*.1,ge=.1,re=.9,me=new go.PathFigure((ge-ne)*a,re*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-ne)*y,(ge-ne)*a,(re-oe)*y,(ge-oe)*a,(re-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,re*y,(ge+oe)*a,(re-ne)*y,(ge+ne)*a,(re-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+ne)*y,(ge+ne)*a,(re+oe)*y,(ge+oe)*a,(re+ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,re*y,(ge-oe)*a,(re+ne)*y,(ge-ne)*a,(re+oe)*y)),ne=.1,oe=Se*.1,ge=.4,re=.9;var ue=new go.PathFigure((ge-ne)*a,re*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-ne)*y,(ge-ne)*a,(re-oe)*y,(ge-oe)*a,(re-ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,re*y,(ge+oe)*a,(re-ne)*y,(ge+ne)*a,(re-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+ne)*y,(ge+ne)*a,(re+oe)*y,(ge+oe)*a,(re+ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,re*y,(ge-oe)*a,(re+ne)*y,(ge-ne)*a,(re+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,re=Se*.05,me=.175,ue=.95,ee=new go.PathFigure((me-ge)*a,ue*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue-ge)*y,(me-ge)*a,(ue-re)*y,(me-re)*a,(ue-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,ue*y,(me+re)*a,(ue-ge)*y,(me+ge)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue+ge)*y,(me+ge)*a,(ue+re)*y,(me+re)*a,(ue+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,ue*y,(me-re)*a,(ue+ge)*y,(me-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,me=.375,ue=.95,ne=new go.PathFigure((me-ge)*a,ue*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue-ge)*y,(me-ge)*a,(ue-re)*y,(me-re)*a,(ue-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,ue*y,(me+re)*a,(ue-ge)*y,(me+ge)*a,(ue-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue+ge)*y,(me+ge)*a,(ue+re)*y,(me+re)*a,(ue+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,ue*y,(me-re)*a,(ue+ge)*y,(me-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,me=.625,ue=.95,oe=new go.PathFigure((me-ge)*a,ue*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue-ge)*y,(me-ge)*a,(ue-re)*y,(me-re)*a,(ue-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,ue*y,(me+re)*a,(ue-ge)*y,(me+ge)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue+ge)*y,(me+ge)*a,(ue+re)*y,(me+re)*a,(ue+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,ue*y,(me-re)*a,(ue+ge)*y,(me-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,me=.825,ue=.95,ye=new go.PathFigure((me-ge)*a,ue*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue-ge)*y,(me-ge)*a,(ue-re)*y,(me-re)*a,(ue-ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,ue*y,(me+re)*a,(ue-ge)*y,(me+ge)*a,(ue-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ue+ge)*y,(me+ge)*a,(ue+re)*y,(me+re)*a,(ue+ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,ue*y,(me-re)*a,(ue+ge)*y,(me-ge)*a,(ue+re)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=Se*.05,oe=.35,ge=.775,re=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-ne)*y,(oe-ne)*a,(ge-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+ne)*a,(ge-ee)*y,(oe+ee)*a,(ge-ne)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+ne)*y,(oe+ne)*a,(ge+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-ne)*a,(ge+ee)*y,(oe-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.3,x=Se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(te,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(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=Se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=8,x=b*Se,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*Se,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=15,x=b*Se,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var be={},it="5.0",ie={},ae=null,Ae=!1,Ze=!1,je=null,Le=!1,Re=null,Se=null,nt=0;nt<arguments.length;nt++){var Ue=arguments[nt];if(Ue!==null)switch(typeof Ue){case"number":it=Ue.toFixed(1);break;case"string":Ue.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Ue:je=Ue;break;case"object":typeof Ue.is3D!="undefined"?ae=Ue:ie=Ue;break;case"boolean":Ae=Ue,Ze=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!Ze&&(Ae=!0)),je!==null&&ie.id===void 0&&(ie.id=je);var Ce="",dt="",Ye=!1,Ke=null,te=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var ne=function(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};be.setHTML5Codebase=function(Fe,ze){Se=Fe,Fn(Fe,ze)},be.setJavaCodebase=be.setJavaCodebaseVersion=be.isCompiledInstalled=be.setPreCompiledScriptPath=be.setPreCompiledResourcePath=function(){},be.setHTML5CodebaseVersion=function(Fe,ze){var He=parseFloat(Fe);if(He!==NaN&&He<5){console.log("The GeoGebra HTML5 codebase version "+He+" is deprecated. Using version latest instead.");return}Re=Fe,ln(Fe,ze)},be.getHTML5CodebaseVersion=function(){return te},be.getParameters=function(){return ie},be.setFontsCSSURL=function(Fe){z=Fe},be.setGiacJSURL=function(Fe){},be.setJNLPFile=function(Fe){Ce=Fe},be.setJNLPBaseDir=function(Fe){},be.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",He=ie.id,bt,_e=!1,pt=0;pt<arguments.length;pt++){var de=arguments[pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=de:He=arguments[pt]):typeof de=="boolean"?_e=de:de instanceof HTMLElement&&(bt=de)}Qe();function Qe(){if(!Le){setTimeout(Qe,200);return}ze=zt(ze);var Nt=bt||document.getElementById(He);if(!Nt){console.log("possibly bug on ajax loading? ");return}if(be.removeExistingApplet(Nt,!1),ie.width===void 0&&Nt.clientWidth&&(ie.width=Nt.clientWidth),ie.height===void 0&&Nt.clientHeight&&(ie.height=Nt.clientHeight),!(ie.width&&ie.height)&&ze==="html5"&&(delete ie.width,delete ie.height),Ke=ze,ze==="screenshot")St(Nt,ie);else{var Qt=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?Qt=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(Qt=(!oe()||Fe())&&ge()),Qt?(Ke="screenshot",Gt(Nt,ie,_e,ze)):$e(Nt,ie,_e)}}};function oe(){try{return window.self!==window.top}catch(Fe){return!0}}function ge(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}be.getViews=function(){return ae},be.isJavaInstalled=function(){return!1};var re=function(Fe){var ze=function(pt){var de=JSON.parse(pt),Qe=function(jt){return jt.type=="G"||jt.type=="E"},Nt=de.elements?de.elements.filter(Qe)[0]:de;if(!Nt||!Nt.url){He();return}ie.fileName=Nt.url,me(Nt.settings||{}),ae.is3D=!0;var Qt="https://www.geogebra.org/images/";be.setPreviewImage(E||Nt.previewUrl,Qt+"GeoGebra_loading.png",Qt+"applet_play.png"),Fe()},He=function(){ie.onError&&ie.onError(),Xn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",_e="/materials/"+ie.material_id+"?scope=basic";ue("https://"+bt+"/api/proxy.php?path="+encodeURIComponent(_e),ze,He)};function me(Fe){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(He){Fe[He]=!!Fe[He]}),ze.forEach(function(He){ie[He]===void 0&&Fe[He]!==void 0&&(ie[He]=Fe[He])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function ue(Fe,ze,He){var bt=new XMLHttpRequest;bt.open("GET",Fe),bt.onload=function(){ze(bt.responseText)},bt.onerror=He,bt.send()}be.isHTML5Installed=function(){return!0},be.getLoadedAppletType=function(){return Ke},be.setPreviewImage=function(Fe,ze,He){E=Fe,b=ze,x=He},be.removeExistingApplet=function(Fe,ze){var He;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),Ke=null;var bt=null;for(He=0;He<Fe.childNodes.length;He++){var _e=Fe.childNodes[He],pt=_e.className;pt==="applet_screenshot"?ze?(_e.style.display="block",Ke="screenshot"):_e.style.display="none":pt!=="applet_scaler prerender"&&(Fe.removeChild(_e),bt=pt&&pt.indexOf("appletParameters")!=-1?_e.id:null,He--)}var de=ie.id!==void 0?ie.id:bt,Qe=window[de];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[de]=null)},be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=be.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},be.startAnimation=function(){var Fe=be.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},be.stopAnimation=function(){var Fe=be.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},be.getAppletObject=function(){var Fe=ie.id!==void 0?ie.id:"ggbApplet";return window[Fe]},be.resize=function(){};var ye=function(Fe,ze,He){var bt=document.createElement("param");bt.setAttribute("name",ze),bt.setAttribute("value",He),Fe.appendChild(bt)},Ge=function(Fe){return Fe&&Fe!=="false"},$e=function(Fe,ze,He){ne(te)<=4.2&&(He=!0);var bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var _e=document.createElement("div");_e.classList.add("appletParameters","notranslate");var pt=ze.width,de=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(ne(te)<=4.4)Ge(ze.showToolBar)&&(ze.height-=7),Ge(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&Ge(ze.showToolBar)&&(ze.width=605,pt=605);else{var Qe=100;(Ge(ze.showToolBar)||Ge(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),Qe=Ge(ze.showMenuBar)?245:155),pt<Qe&&(ze.width=Qe,pt=Qe)}_e.style.border="none",_e.style.display="inline-block";for(var Nt in ze)ze.hasOwnProperty(Nt)&&Nt!=="appletOnLoad"&&_e.setAttribute("data-param-"+Nt,ze[Nt]);z&&_e.setAttribute("data-param-fontscssurl",z),be.resize=function(){GGBAppletUtils.responsiveResize(Fe,ze)},window.addEventListener("resize",function(un){be.resize()});var Qt=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!He&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||_e.setAttribute("data-param-showSplash","false");var jt=Fe.querySelector(".applet_scaler.prerender"),Mn=jt!==null;if(Mn)var En=jt.querySelector(".ggb_preview");else{var En=Lt(pt,de,ze.borderColor,!1);jt=document.createElement("div"),jt.className="applet_scaler",jt.style.position="relative",jt.style.display="block",jt.style.width=pt+"px",jt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(jt,"66%"),ne(te)>=5?(ze.appletOnLoad=function(un){var kt=Fe.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(jt),window.GGBT_wsf_view&&$(window).trigger("resize"),Qt(un)},Mn||jt.appendChild(En)):_e.appendChild(En),jt.appendChild(_e),Mn||Fe.appendChild(jt),setTimeout(function(){be.resize()},1)}else{var $t=document.createElement("div");$t.className="applet_scaler",$t.style.position="relative",$t.style.display="block",$t.appendChild(_e),Fe.appendChild($t),ze.appletOnLoad=function(un){be.resize(),Qt(un)}}function Wn(un,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(un,kt.appletOnLoad):renderGGBElement(un),Xn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function Zn(un,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:un,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vn){Wn(Vn.article,Vn.params)}),html5AppletsToProcess=null)},ne(te)<5&&(un.className+=" geogebraweb")):Wn(un,kt)}if(bt){scriptLoadStarted=!0;for(var Dn=0;Dn<_e.childNodes.length;Dn++){var Tn=_e.childNodes[Dn].tagName;Tn==="TABLE"&&(_e.removeChild(_e.childNodes[Dn]),Dn--)}if(ggbHTML5LoadedScript!==null){var An=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');An!=null&&An.parentNode.removeChild(An)}var Zt=document.createElement("script"),qt=function(){Zn(_e,ze)};Zt.src=dt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Zt.src,Xn("GeoGebra HTML5 codebase loaded: '"+dt+"'.",ze),!Se&&(!Re||Re=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),qt()):dt.requirejs?__webpack_require__.e(12).then(function(){var un=[__webpack_require__(12)];qt.apply(null,un)}.bind(this)).catch(__webpack_require__.oe):(Zt.onload=qt,Fe.appendChild(Zt))}else Zn(_e,ze);ze.height=de,ze.width=pt},St=function(Fe,ze,He){var bt=Lt(ze.width,ze.height,ze.borderColor,He),_e=document.createElement("div");_e.style.position="relative",_e.style.display="block",_e.style.width=ze.width+"px",_e.style.height=ze.height+"px",_e.className="applet_screenshot applet_scaler"+(He?" applet_screenshot_play":""),_e.appendChild(bt);var pt=GGBAppletUtils.getScale(ze,Fe,He);He?(Fe.appendChild(Pt()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Fe.appendChild(_e),pt!==1&&!isNaN(pt)&&(GGBAppletUtils.scaleElement(_e,pt),_e.style.width=ze.width+"px",_e.style.height=ze.height+"px",_e.parentNode.style.width=ze.width*pt+"px",_e.parentNode.style.height=ze.height*pt+"px"),be.resize=function(){ut(Fe,bt,_e,He)},window.addEventListener("resize",function(de){be.resize()}),be.resize()};function ut(Fe,ze,He,bt){if(Fe.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var _e=GGBAppletUtils.getScale(ie,Fe,bt);He.parentNode!==null&&(!isNaN(_e)&&_e!==1?(GGBAppletUtils.scaleElement(He,_e),He.parentNode.style.width=ie.width*_e+"px",He.parentNode.style.height=ie.height*_e+"px"):(GGBAppletUtils.scaleElement(He,1),He.parentNode.style.width=ie.width+"px",He.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}be.onExitFullscreen=function(Fe,ze){ze.appendChild(Fe)};var Gt=function(Fe,ze,He,bt){St(Fe,ze,!0);for(var _e=function(){var Qe=[];for(de=0;de<Fe.childNodes.length;de++)Qe.push(Fe.childNodes[de]);if(window.GGBT_wsf_view){var Nt=window.GGBT_wsf_view.renderFullScreen(Fe,ze.id),Qt=document.getElementById("fullscreencontainer"),jt=jQuery(Fe).find(".fullscreencontent");jt.length>0?(Nt.remove(),jt.attr("id","fullscreencontent").show(),jQuery(Qt).append(jt),window.dispatchEvent(new Event("resize"))):$e(Nt,ze,!1),window.GGBT_wsf_view.launchFullScreen(Qt)}else Ke=bt,$e(Fe,ze,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)Fe.removeChild(Qe[de])},pt=Fe.getElementsByClassName("ggb_preview_play"),de=0;de<pt.length;de++)pt[de].addEventListener("click",_e,!1),pt[de].addEventListener("ontouchstart",_e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Pt=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.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");}',He=document.createElement("style");He.styleSheet?He.styleSheet.cssText=ze:He.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(He)}return Fe},Lt=function(Fe,ze,He,bt){var _e=document.createElement("div");_e.className="ggb_preview",_e.style.position="absolute",_e.style.zIndex="90",_e.style.width=Fe-2+"px",_e.style.height=ze-2+"px",_e.style.top="0px",_e.style.left="0px",_e.style.overflow="hidden",_e.style.backgroundColor="white";var pt="lightgrey";He!==void 0&&(He==="none"?pt="transparent":pt=He),_e.style.border="1px solid "+pt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Qe,Nt,Qt;if(!bt){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,Nt=360,Nt>Fe/4*3&&(Nt=Fe/4*3),Qt=Nt/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",Nt),Qe.setAttribute("height",Qt);var jt=(Fe-Nt)/2,Mn=(ze-Qt)/2;Qe.style.left=jt+"px",Qe.style.top=Mn+"px",_e.appendChild(Qe)}}return _e.appendChild(de),_e},zt=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},Wt=["web","webSimple","web3d","tablet","tablet3d","phone"],ln=function(Fe,ze){if(te=Fe,ze){Fn(te,!0);return}var He=!Ae;if(He){var bt=ne(te);!isNaN(bt)&&bt<4.4&&(He=!1)}var _e,pt;window.location.protocol.substr(0,4)==="http"?_e=window.location.protocol:_e="http:";var de=te.indexOf("//");de>0?pt=te:de===0?pt=_e+te:pt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in Wt)if(te.slice(Wt[Qe].length*-1)===Wt[Qe]||te.slice((Wt[Qe].length+1)*-1)===Wt[Qe]+"/"){Fn(pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&He&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ge(ie.showToolBar)&&!Ge(ie.showMenuBar)&&!Ge(ie.showAlgebraInput)&&!Ge(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?pt+="webSimple/":pt+="web3d/",Fn(pt,!1)},Fn=function(Fe,ze){if(Fe.requirejs){dt=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),dt=Fe,ze===null&&(ze=Fe.indexOf("http")===-1),Ye=ze,a="web.nocache.js",y=!1;var He=dt.split("/");He.length>1&&(!ze&&He[He.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Wt.indexOf(He[He.length-2])>=0&&(a=He[He.length-2]+".nocache.js")),He=Fe.split("/"),te=He[He.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var bt=parseFloat(te);bt!==NaN&&bt<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+bt+" is deprecated. Using version latest instead."),ln("5.0",ze))},Xn=function(Fe,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(Fe)};ie.material_id!==void 0?re(Hn):Hn();function Hn(){var Fe=it;Re!==null?Fe=Re:parseFloat(Fe)<5&&(Fe="5.0"),ln(Fe,!1),Se!==null&&Fn(Se,Ye),Le=!0}return be},GGBAppletUtils=function(){"use strict";function be(){return window.GGBT_wsf_edit!==void 0}function it(Le,Re){Re!=1?(Le.style.transformOrigin="0% 0% 0px",Le.style.webkitTransformOrigin="0% 0% 0px",Le.style.transform="scale("+Re+","+Re+")",Le.style.webkitTransform="scale("+Re+","+Re+")",Le.style.maxWidth="initial",Le.querySelector(".ggb_preview")!==null&&(Le.querySelector(".ggb_preview").style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Le.style.transform="none",Le.style.webkitTransform="none")}function ie(Le,Re,Se,nt,Ue,Ce){var dt=null;if(Ce!=null&&Ce!="")for(var Ye=Le.parentNode;Ye!=null;)if((" "+Ye.className+" ").indexOf(" "+Ce+" ")>-1){dt=Ye;break}else Ye=Ye.parentNode;var Ke=0,te=0,a=0,y=0,E=0,b=0,x=0;if(dt)Ke=dt.offsetWidth,te=Math.max(nt?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ke):(Ke=window.innerWidth,te=window.innerHeight,a=window.innerWidth),Le){var z=Le.getBoundingClientRect();z.left>0&&z.left<=Ke&&(Ue===void 0||!Ue)&&(document.dir==="rtl"?(E=Ke-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Le&&((Se===void 0||!Se)&&Re>0&&Re+y<Ke?Ke=Re:Ke-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(te-=x)),{width:Ke,height:te}}function ae(Le,Re,Se,nt,Ue){if(Le.isScreenshoGenerator)return 1;var Ce=nt!==void 0&&nt,dt=Le.noScaleMargin!=null&&Le.noScaleMargin,Ye=function(ee){return ee&&ee!=="false"},Ke=Ye(Le.autoHeight),te=ie(Re,Le.width,Se,Ke,Ce&&window.GGBT_wsf_view||dt,Ue),a=parseInt(te.width),y=Le.width,E=Le.height;if(y===void 0){var b=Re.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ce?1:te.height/E;return Se!==void 0&&!Se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Ae(Le,Re,Se){var nt=1,Ue,Ce=!1;if(Le.hasOwnProperty("allowUpscale")&&(Ce=Le.allowUpscale),Le.hasOwnProperty("scale")&&(nt=parseFloat(Le.scale),(isNaN(nt)||nt===null||nt===0)&&(nt=1),nt>1&&(Ce=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(Le.hasOwnProperty("disableAutoScale")&&Le.disableAutoScale))Ue=ae(Le,Re,Ce,Se,Le.scaleContainerClass);else return nt;return Ce&&(!Le.hasOwnProperty("scale")||nt===1)?Ue:Math.min(nt,Ue)}function Ze(Le){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=Le.getBoundingClientRect(),Ue=(Re-nt.width)/2,Ce=(Se-nt.height)/2;Ce<0&&(Ce=0),Le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ue<40?Le.style.left="40px":Le.style.left=Ue+"px",Le.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?Le.style.top="40px":Le.style.top=Ce+"px",Le.style.left=Ue+"px")}function je(Le,Re){var Se=Le.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var nt=Ae(Re,Le);be()&&Se.setAttribute("data-param-scale",nt);for(var Ue=null,Ce=0;Ce<Le.childNodes.length;Ce++)if(Le.childNodes[Ce].className!==void 0&&Le.childNodes[Ce].className.match(/^applet_scaler/)){Ue=Le.childNodes[Ce];break}if(Ue!==null&&Ue.querySelector(".noscale")!==null)return;var dt=Re.id!==void 0?Re.id:"ggbApplet",Ye=window[dt];(Ye==null||!Ye.recalculateEnvironments)&&Ue!==null&&!Ue.className.match(/fullscreen/)&&(Ue.parentNode.style.transform="",!isNaN(nt)&&nt!==1?(Ue.parentNode.style.width=Re.width*nt+"px",Ue.parentNode.style.height=Re.height*nt+"px",it(Ue,nt)):(it(Ue,1),Ue.parentNode.style.width=Re.width+"px",Ue.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(Le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:be,positionCenter:Ze,getScale:Ae,scaleElement:it}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var be=n.location.search;return be.indexOf(J)!=-1||be.indexOf(K)!=-1}function q(be,it){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(be){var it=s[L].bindings;s[L].bindings=function(){for(var ie=it?it():{},ae=be[webModule.__softPermutationId],Ae=O;Ae<ae.length;Ae++){var Ze=ae[Ae];ie[Ze[O]]=Ze[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var be=o.createElement(Q);if(be.id=L,be.style.cssText=R+S,be.tabIndex=-1,o.body.appendChild(be),t=be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(be){function it(ae){function Ae(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=Ae();if(Ze){ae();return}function je(){if(!Ze){if(!Ae())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,je,!1),Le&&clearInterval(Le)}}o.addEventListener&&o.addEventListener(Z,je,!1);var Le=setInterval(function(){je()},$)}function ie(ae){var Ae=u(),Ze=Ae.body,je=Ae.createElement(_);je.language=ab,je.crossOrigin=W,je.src=ae,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(je)}it(function(){ie(be)})}webModule.__startLoadingFragment=function(be){return C(be)},webModule.__installRunAsyncCode=function(be){var it=u(),ie=it.body,ae=it.createElement(_);ae.language=ab,ae.text=be,ie.appendChild(ae),ie.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(be){var it=c[be];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function be(Le){var Re=Le.lastIndexOf(rb);Re==-1&&(Re=Le.length);var Se=Le.indexOf(sb);Se==-1&&(Se=Le.length);var nt=Le.lastIndexOf(tb,Math.min(Se,Re));return nt>=O?Le.substring(O,nt+P):W}function it(Le){if(!Le.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Le+vb,Le=be(Re.src)}return Le}function ie(){var Le=__gwt_getMetaProperty(wb);return Le!=null?Le:W}function ae(){for(var Le=o.getElementsByTagName(_),Re=O;Re<Le.length;++Re)if(Le[Re].src.indexOf(xb)!=-1)return be(Le[Re].src);return W}function Ae(){var Le=o.getElementsByTagName(yb);return Le.length>O?Le[Le.length-P].href:W}function Ze(){var Le=o.location;return Le.href==Le.protocol+zb+Le.host+Le.pathname+Le.search+Le.hash}var je=ie();return je==W&&(je=ae()),je==W&&(je=Ae()),je==W&&Ze()&&(je=be(o.location.href)),je=it(je),je}function C(be){return be.match(/^\//)||be.match(/^[a-zA-Z]+:\/\//)?be:webModule.__moduleBase+be}function D(){var be=[],it=O,ie=[],ae=[];function Ae(Le){var Re=ae[Le](),Se=ie[Le];if(Re in Se)return Re;var nt=[];for(var Ue in Se)nt[Se[Ue]]=Ue;throw r&&r(Le,nt,Re),null}if(__gwt_isKnownPropertyValue=function(Le,Re){return Re in ie[Le]},webModule.__getPropMap=function(){var Le={};for(var Re in ie)ie.hasOwnProperty(Re)&&(Le[Re]=Ae(Re));return Le},webModule.__computePropValue=Ae,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var je=Ze.indexOf(Db);je!=-1&&(it=parseInt(Ze.substring(je+P),$),Ze=Ze.substring(O,je))}catch(Le){}return webModule.__softPermutationId=it,C(Ze+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(be,it,ie){"use strict";ie.d(it,{Ax:function(){return je},Ds:function(){return Le},KI:function(){return Se},SI:function(){return Ze},f1:function(){return Ae}});var ae=ie(11320);function Ae(nt){let Ue=!0;if(nt.length>0){for(let Ce=0;Ce<nt.length;Ce++)if(nt[Ce].compile_success==0||!nt[Ce].compile_success){Ue=!1;break}}else Ue=!1;return Ue}function Ze(nt,Ue=""){let Ce=[];for(let dt=0;dt<nt.length;dt++){let Ye=nt[dt],Ke=Ue?`${Ue}/${Ye.name}`:`${Ye.name}`;Ce.push({title:Ye.name,type:Ye.type,isLeaf:Ye.type!=="tree",key:Ke})}return Ce}function je(nt,Ue,Ce){for(let dt=0;dt<nt.length;dt++){let Ye=nt[dt];if(Ye.key===Ue){Ye.children=Ce;break}Ye.children&&je(Ye.children,Ue,Ce)}return nt}function Le(nt,Ue,Ce){let dt;return function(){let Ye=this,Ke=arguments,te=function(){dt=null,Ce||nt.apply(Ye,Ke)},a=Ce&&!dt;clearTimeout(dt),dt=setTimeout(te,Ue),a&&nt.apply(Ye,Ke)}}const Re=!0,Se=ae.Z.API_SERVER},63205:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return Ye}});var ae=ie(67294),Ae={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ie(94184),je=ie.n(Ze),Le=ie(57953),Re=ie(15979),Se=ie(33170),nt=ie(28706),Ue=ie(35973),Ce=(Ke,te,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(ne){E(ne)}},x=ee=>{try{z(a.throw(ee))}catch(ne){E(ne)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(Ke,te)).next())}),Ye=({data:Ke,className:te,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Ue.useIntl)(),ne=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),ge=(0,ae.useRef)(null),re=(0,ae.useRef)(null),[me,ue]=(0,ae.useState)(!1),[ye,Ge]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ge.current||(ge.current=document.createElement("style"),document.head.appendChild(ge.current)),Ke!=null&&Ke.visible?(document.body.setAttribute("data-custom","y-hidden"),ge.current.innerHTML=" html { overflow-y: hidden; }",Ke!=null&&Ke.src&&$e()):(document.body.removeAttribute("data-custom"),ge.current&&(document.head.removeChild(ge.current),ge.current=null))},[Ke==null?void 0:Ke.visible]);const $e=()=>Ce(void 0,null,function*(){ue(!0),Ge("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,nt.ZJ)(Ke==null?void 0:Ke.src);ne.current.src="",ne.current.src=Lt,ne.current.onload=function(){Pt()},ue(!1),Ge("")}),St=()=>{document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",E()},ut=Lt=>Ce(void 0,null,function*(){ue(!0),Ge("\u6B63\u5728\u4FDD\u5B58\u4E2D");const zt=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ke.title,file:Lt.dataUrl}});zt!=null&&zt.id&&!z?(yield(0,Se.ZP)(`/api/attachments/${Ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:zt==null?void 0:zt.id,settings:JSON.stringify(Lt.state)}})).status===0&&b():zt!=null&&zt.id&&b(zt),document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",ue(!1),Ge("")}),Gt=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.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:ee.formatMessage({id:"shixuns.text",defaultMessage:"\u6587\u672C"})},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Wt=>{const ln=document.querySelector(Wt.name);ln&&ln.setAttribute("title",Wt.title)})},Pt=()=>{oe.current=new Re.hP(ne.current),oe.current.targetRoot=re.current,oe.current.addEventListener("render",ut),oe.current.addEventListener("beforeclose",St),x&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),Ke!=null&&Ke.snapshotData&&oe.current.restoreState(Ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return ae.createElement(ae.Fragment,null,(Ke==null?void 0:Ke.visible)&&ae.createElement(Le.Z,{spinning:me,tip:ye,style:{position:"absolute"}},ae.createElement("div",{ref:re,className:je()(Ae.imageDimensions,te,a?Ae.fullWidth:""),style:y},ae.createElement("img",{className:Ae.img,ref:ne}))))}},36527:function(be,it,ie){"use strict";var ae=ie(67294),Ae=ie(71230),Ze=ie(15746),je=ie(66368),Le=ie(71577),Re=ie(85725),Se=ie(71736),nt=ie(84279),Ue=ie(35973),Ce=ie(67294);const dt=(0,ae.forwardRef)(({callback:Ye,showSaveButton:Ke,value:te=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ue.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\u5206\u6570\u5F97\u5206"}),value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\u6839\u5F0F\u89D2\u6807"}),value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\u6781\u9650\u5BF9\u6570"}),value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\u4E09\u89D2\u51FD\u6570"}),value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\u79EF\u5206\u8FD0\u7B97"}),value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\u5927\u578B\u8FD0\u7B97"}),value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\u4EE3\u6570"}),value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\u51E0\u4F55"}),value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\u4E0D\u7B49\u5F0F"}),value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\u79EF\u5206"}),value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\u4E09\u89D2"}),value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\u7EDF\u8BA1"}),value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],z=oe=>{y.current.setValue(y.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ce.createElement(Ae.Z,{className:Se.Z.lists,gutter:[10,10]},b.map((oe,ge)=>Ce.createElement(Ze.Z,{flex:"110px",className:Se.Z.item},Ce.createElement("div",null,Ce.createElement(Re.Z,{value:`$$${oe.value}$$`}),oe.name),Ce.createElement("div",{className:Se.Z.children},oe.children.map((re,me)=>Ce.createElement("div",{key:me},Ce.createElement("h1",null,re.name),Ce.createElement(Ae.Z,{gutter:[10,10]},re.data.map((ue,ye)=>Ce.createElement(Ze.Z,{key:ye,onClick:()=>z(ue),className:Se.Z.diamond},Ce.createElement(Re.Z,{value:"`$$"+ue.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ce.createElement(Ae.Z,{className:Se.Z.lists,gutter:[10,10]},x.map((oe,ge)=>Ce.createElement(Ze.Z,{flex:"110px",className:Se.Z.item},Ce.createElement("div",null,Ce.createElement(Re.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Ce.createElement("div",{className:Se.Z.children},oe.children.map((re,me)=>Ce.createElement("div",{key:me},re.name&&Ce.createElement("h1",null,re.name),Ce.createElement(Ae.Z,{gutter:[10,10]},re.data.map((ue,ye)=>Ce.createElement(Ze.Z,{key:ye,onClick:()=>z(ue),className:Se.Z.diamond},Ce.createElement(Re.Z,{value:"`$$"+ue.value+"$$`"}))))))))))}],ne=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var ge=oe.innerText;return Ye&&Ye(ge),ge};return(0,ae.useImperativeHandle)(a,()=>({getData:ne})),Ce.createElement("div",{className:Se.Z.mathWrap},Ce.createElement(je.default,{defaultActiveKey:"1",items:ee}),Ce.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},te||""),Ke&&Ce.createElement("div",{className:Se.Z.button},Ce.createElement(Le.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});it.Z=dt},57444:function(be,it,ie){"use strict";ie.d(it,{h:function(){return ne}});var ae=ie(67294),Ae=ie(11713),Ze=ie(22150),je=ie(71577),Le=ie(4631),Re=ie.n(Le),Se=ie(71749),nt=ie(30483),Ue=ie(35973),Ce=Object.defineProperty,dt=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,ge,re)=>ge in oe?Ce(oe,ge,{enumerable:!0,configurable:!0,writable:!0,value:re}):oe[ge]=re,E=(oe,ge)=>{for(var re in ge||(ge={}))te.call(ge,re)&&y(oe,re,ge[re]);if(Ke)for(var re of Ke(ge))a.call(ge,re)&&y(oe,re,ge[re]);return oe},b=(oe,ge)=>dt(oe,Ye(ge));const x=Ae.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={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"]};it.Z=({callback:oe,onCancel:ge})=>{const[re,me]=(0,ae.useState)("python");function ue($e){me(ee[$e][1])}function ye($e){oe($e)}const Ge=(0,Ue.useIntl)();return ae.createElement(Ze.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),ae.createElement(Ze.default.Item,{label:Ge.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(Ae.default,{getPopupContainer:$e=>$e.parentNode,onChange:ue},Object.keys(ee).map($e=>ae.createElement(x,{key:$e,value:$e},ee[$e][0])))),ae.createElement(Ze.default.Item,{label:Ge.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ne,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ge.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(je.ZP,{type:"ghost",onClick:ge},Ge.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:oe,onChange:ge,mode:re,options:me={}}){const ue=(0,ae.useRef)(),[ye,Ge]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ye){let $e=function(St){const ut=St.getValue();ge&&ge(ut)};return ye.on("change",$e),()=>{ye.off("change",$e)}}},[ye,ge]),(0,ae.useEffect)(()=>{ye&&ye.setOption("mode",re)},[ye,re]),(0,ae.useEffect)(()=>{ye&&(oe!==ye.getValue()||oe==="")&&setTimeout(()=>{ye.setValue(oe||"")},300)},[ye,oe]),(0,ae.useEffect)(()=>{if(ue.current&&!ye){const $e=Re().fromTextArea(ue.current,E({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},me));Ge($e)}},[ue.current,ye]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},35567:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return ea}});var ae=ie(67294),Ae=ie(4631),Ze=ie.n(Ae),je=ie(91033),Le=ie(71749),Re=ie(57341),Se=ie(82801),nt=ie(88386),Ue=ie(49047),Ce=ie(80785),dt=ie(85725),Ye=({value:le="",className:Pe,showTextOnly:ce,showLines:Ne,style:qe={}})=>{const at=(0,ae.useMemo)(()=>"",[le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},Ke=ie(35973),te=ie(67294),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(le,Pe,ce)=>Pe in le?a(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,ne=(le,Pe)=>{for(var ce in Pe||(Pe={}))x.call(Pe,ce)&&ee(le,ce,Pe[ce]);if(b)for(var ce of b(Pe))z.call(Pe,ce)&&ee(le,ce,Pe[ce]);return le},oe=(le,Pe)=>y(le,E(Pe));function ge({onActionCallback:le,title:Pe,icon:ce,actionName:Ne,className:qe="",children:at}){function Dt(){le(Ne)}return te.createElement("a",{title:Pe,className:qe,onClick:Dt},te.createElement("i",{className:`${ce}`}),at)}var re=({watch:le,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Ne,fullScreen:qe,insertTemp:at,hidetoolBar:Dt,extraUse:xt})=>{const st=(0,Ke.useIntl)(),Rn=[...[{title:st.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:st.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:st.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:st.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:st.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:st.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:st.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:st.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:st.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:st.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:st.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:st.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:st.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:st.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:st.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:st.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${le?st.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):st.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Dt&&Rn.map((Pn,ke)=>te.createElement("li",{key:ke},Pn.actionName?te.createElement(ge,oe(ne({},Pn),{onActionCallback:Ne})):te.createElement("span",{className:"v-line"}))),Pe?te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ne},te.createElement("span",{className:"fill-tip"},st.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",st.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,ce?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ne},te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ne},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,at&&te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:st.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${at}`,onActionCallback:Ne},te.createElement("span",{className:"fill-tip"},st.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),xt&&te.createElement("li",null,xt),te.createElement("li",{className:"btn-full-screen"},te.createElement(ge,{icon:`${qe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},me=ie(76621),ue=ie(22150),ye=ie(69677),Ge=ie(71577),$e=Object.defineProperty,St=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,zt=(le,Pe,ce)=>Pe in le?$e(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,Wt=(le,Pe)=>{for(var ce in Pe||(Pe={}))Pt.call(Pe,ce)&&zt(le,ce,Pe[ce]);if(Gt)for(var ce of Gt(Pe))Lt.call(Pe,ce)&&zt(le,ce,Pe[ce]);return le},ln=(le,Pe)=>St(le,ut(Pe));const Fn={labelCol:{span:4},wrapperCol:{span:20}};var Xn=({callback:le,onCancel:Pe})=>{function ce(qe){le(qe)}const Ne=(0,Ke.useIntl)();return ae.createElement(ue.default,ln(Wt({},Fn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(ue.default.Item,{label:Ne.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ye.default,null)),ae.createElement(ue.default.Item,{label:Ne.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ye.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ne.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},Ne.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Hn=ie(57444),Fe=ie(70859),ze=ie(14446),He=ie(71230),bt=ie(63205),_e=ie(67294),pt=({callback:le,onCancel:Pe})=>{const ce=document.createElement("canvas"),Ne=ce.getContext("2d");ce.width=1e3,ce.height=800,Ne.fillStyle="#ffffff",Ne.fillRect(0,0,ce.width,ce.height);const qe=ce.toDataURL("image/png");return _e.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},_e.createElement(He.Z,{style:{height:"100vh"}},_e.createElement(bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qe,visible:!0,title:String(Date.now())},onOk:at=>{le({src:at.url})},onClose:Pe})))},de=ie(23495);function Qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qe,go.CommandHandler),Qe.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},Qe.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),le.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Ne=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(Ne,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),le.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),le.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Ne=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(Ne,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),le.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;le.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(ce-Ne.actualBounds.width/2,Ne.actualBounds.y))}),le.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;le.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Ne.actualBounds.x,ce-Ne.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(le){var Pe=this.diagram;Pe.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var ce=new Array;Pe.selection.each(function(xt){xt instanceof go.Link||ce.push(xt)});for(var Ne=0;Ne<ce.length-1;Ne++){var qe=ce[Ne],at=qe.actualBounds.y+qe.actualBounds.height+le,Dt=ce[Ne+1];Dt.move(new go.Point(qe.actualBounds.x,at))}Pe.commitTransaction("align Column")},Qe.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(xt){xt instanceof go.Link||ce.push(xt)});for(var Ne=0;Ne<ce.length-1;Ne++){var qe=ce[Ne],at=qe.actualBounds.x+qe.actualBounds.width+le,Dt=ce[Ne+1];Dt.move(new go.Point(at,qe.actualBounds.y))}Pe.commitTransaction("align Row")},Qe.prototype.canRotate=function(le){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Qe.prototype.rotate=function(le){le===void 0&&(le=90);var Pe=this.diagram;Pe.startTransaction("rotate "+le.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=le)}),Pe.commitTransaction("rotate "+le.toString())},Qe.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Ne=0;ce.parts.each(function(qe){if(!qe.isSelected){var at=qe.zOrder;isNaN(at)?qe.zOrder=0:Ne=Math.max(Ne,at)}}),Pe.set(ce,Ne)}),le.selection.each(function(ce){Qe._assignZOrder(ce,Pe.get(ce.layer)+1)}),le.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Ne=0;ce.parts.each(function(qe){if(!qe.isSelected){var at=qe.zOrder;isNaN(at)?qe.zOrder=0:Ne=Math.min(Ne,at)}}),Pe.set(ce,Ne)}),le.selection.each(function(ce){Qe._assignZOrder(ce,Pe.get(ce.layer)-1-Qe._findGroupDepth(ce))}),le.commitTransaction("pushToBack")},Qe._assignZOrder=function(le,Pe,ce){ce===void 0&&(ce=le),le.layer===ce.layer&&(le.zOrder=Pe),le instanceof go.Group&&le.memberParts.each(function(Ne){Qe._assignZOrder(Ne,Pe+1,ce)})},Qe._findGroupDepth=function(le){if(le instanceof go.Group){var Pe=0;return le.memberParts.each(function(ce){Pe=Math.max(Pe,Qe._findGroupDepth(ce))}),Pe+1}else return 0},Qe.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Pe=le.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Pe){le.push(Pe)}),this.diagram.parts.each(function(Pe){le.push(Pe)}),le},Qe.prototype._arrowKeyMove=function(){var le=this.diagram,Pe=le.lastInput,ce=0,Ne=0;if(Pe.control||Pe.meta)ce=1,Ne=1;else if(le.grid!==null){var qe=le.grid.gridCellSize;Ne=qe.width,ce=qe.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(at){Pe.key==="Up"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y-ce)):Pe.key==="Down"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y+ce)):Pe.key==="Left"?at.move(new go.Point(at.actualBounds.x-Ne,at.actualBounds.y)):Pe.key==="Right"&&at.move(new go.Point(at.actualBounds.x+Ne,at.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var le=this.diagram,Pe=le.lastInput,ce=null;Pe.key==="Up"?ce=this._findNearestPartTowards(270):Pe.key==="Down"?ce=this._findNearestPartTowards(90):Pe.key==="Left"?ce=this._findNearestPartTowards(180):Pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(Pe.shift?ce.isSelected=!0:Pe.control||Pe.meta?ce.isSelected=!ce.isSelected:le.select(ce))},Qe.prototype._findNearestPartTowards=function(le){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,Ne=this._getAllParts(),qe=1/0,at=Pe,Dt=0;Dt<Ne.length;Dt++){var xt=Ne[Dt];if(xt!==Pe&&xt.canSelect()){var st=xt.actualBounds.center,Yt=ce.directionPoint(st),Rn=this._angleCloseness(Yt,le);if(Rn<=45){var Pn=ce.distanceSquaredPoint(st);Pn*=1+Math.sin(Rn*Math.PI/180),Pn<qe&&(qe=Pn,at=xt)}}}return at},Qe.prototype._angleCloseness=function(le,Pe){return Math.min(Math.abs(Pe-le),Math.min(Math.abs(Pe+360-le),Math.abs(Pe-360-le)))},Qe.prototype._arrowKeyTree=function(){var le=this.diagram,Pe=le.selection.first();if(Pe instanceof go.Node){var ce=le.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)le.commandHandler.canExpandTree(Pe)&&le.commandHandler.expandTree(Pe);else{var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&le.select(Ne)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)le.commandHandler.canCollapseTree(Pe)&&le.commandHandler.collapseTree(Pe);else{var qe=Pe.findTreeParentNode();qe!==null&&le.select(qe)}else if(ce.key==="Up"){var qe=Pe.findTreeParentNode();if(qe!==null){var at=this._sortTreeChildrenByY(qe),Dt=at.indexOf(Pe);if(Dt>0){for(var xt=at.elt(Dt-1);xt!==null&&xt.isTreeExpanded&&!xt.isTreeLeaf;){var st=this._sortTreeChildrenByY(xt);xt=st.last()}xt!==null&&le.select(xt)}else le.select(qe)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&le.select(Ne)}else for(;Pe!==null;){var qe=Pe.findTreeParentNode();if(qe===null)break;var at=this._sortTreeChildrenByY(qe),Dt=at.indexOf(Pe);if(Dt<at.length-1){le.select(at.elt(Dt+1));break}else Pe=qe}var Yt=le.selection.first();Yt!==null&&le.scrollToRect(Yt.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(le){var Pe=new go.List().addAll(le.findTreeChildrenNodes());return Pe.sort(function(ce,Ne){var qe=ce.location,at=Ne.location;return qe.y<at.y?-1:qe.y>at.y?1:qe.x<at.x?-1:qe.x>at.x?1:0}),Pe},Qe.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},Qe.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(Qe.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(Qe.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 Nt=Qe,Qt=ie(18023),jt=ie(15746),Mn=ie(33170),En={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},$t=ie(67294),Wn=(le,Pe,ce)=>new Promise((Ne,qe)=>{var at=st=>{try{xt(ce.next(st))}catch(Yt){qe(Yt)}},Dt=st=>{try{xt(ce.throw(st))}catch(Yt){qe(Yt)}},xt=st=>st.done?Ne(st.value):Promise.resolve(st.value).then(at,Dt);xt((ce=ce.apply(le,Pe)).next())});function Zn({onCancel:le,callback:Pe}){let ce=(0,ae.useRef)(),Ne=(0,ae.useRef)(),qe=(0,ae.useRef)(),at=(0,ae.useRef)(!1);const Dt=(0,ae.useRef)(!1),[xt,st]=(0,ae.useState)(0);function Yt(){const ke=de.bx.make,Bt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ce.current=new de.S0(Ne.current,{padding:20,grid:ke(de.s_,"Grid",ke(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ke(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Me=>{var et=Me.diagram.commandHandler.addTopLevelParts(Me.diagram.selection,!0);et||Me.diagram.currentTool.doCancel()},commandHandler:ke(Nt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Me=>{var et=Me.subject;et.location=et.location.copy().snapToGridPoint(Me.diagram.grid.gridOrigin,Me.diagram.grid.gridCellSize),setTimeout(()=>{Me.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Me=>{var et=Me.subject;setTimeout(()=>{Me.diagram.commandHandler.editTextBlock()})},LinkRelinked:Me=>{var et=Me.parameter.part;et.invalidateConnectedLinks();var Je=Me.subject;Me.diagram.toolManager.linkingTool.isForwards?Je.toNode.invalidateConnectedLinks():Je.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=ke(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),ke(de.bn,{name:"SHAPE",fill:Bt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ke(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ke(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=ke("ToolTip",ke(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},ke(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),ke(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function se(Me,et){var Je=(Ie,Tt)=>{Ie.handled=!0,Ie.diagram.model.commit(Mt=>{var tn=Tt.part.adornedPart,Jt=new de.E9().setRectSpot(tn.actualBounds,Me);Jt.subtract(tn.location),Jt.scale(2,2),Jt.x+=Math.sign(Jt.x)*130,Jt.y+=Math.sign(Jt.y)*130,Jt.add(tn.location),Jt.snapToGridPoint(Ie.diagram.grid.gridOrigin,Ie.diagram.grid.gridCellSize);var mn=Mt.copyNodeData(tn.data);Mt.setGroupKeyForNodeData(mn,Mt.getGroupKeyForNodeData(tn.data)),Mt.addNodeData(mn);var Yn={from:tn.key,to:Mt.getKeyForNodeData(mn)};Mt.addLinkData(Yn);var ta=Ie.diagram.findNodeForData(mn);ta.location=Jt,Ie.diagram.select(ta),setTimeout(()=>{Ie.diagram.commandHandler.editTextBlock()},20)})};return ke(de.bn,{figure:et,alignment:Me,alignmentFocus:Me.opposite(),width:Me.equals(de.z6.Top)||Me.equals(de.z6.Bottom)?25:18,height:Me.equals(de.z6.Top)||Me.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Bt.white,strokeWidth:4,mouseEnter:(Ie,Tt)=>Tt.fill="dodgerblue",mouseLeave:(Ie,Tt)=>Tt.fill="orange",isActionable:!0,click:Je,contextClick:Je})}function pe(Me){return ke(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(et,Je)=>Je.fill="dodgerblue",mouseLeave:(et,Je)=>Je.fill="orange",click:(et,Je)=>{et.diagram.commandHandler.showContextMenu(Je.part.adornedPart)}},Me||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=ke(de.uz,"Spot",ke(de.Vm,{padding:10}),se(de.z6.Top,"TriangleUp"),se(de.z6.Left,"TriangleLeft"),se(de.z6.Right,"TriangleRight"),se(de.z6.Bottom,"TriangleDown"),pe({alignment:new de.z6(.75,0)}));function fe(Me,et){return(Je,Ie)=>{Je.handled=!0,Je.diagram.model.commit(Tt=>{Tt.set(Ie.part.adornedPart.data,Me,et)})}}function ve(Me,et){return et||(et="color"),ke(de.bn,{width:16,height:16,stroke:"lightgray",fill:Me,margin:1,background:"transparent",mouseEnter:(Je,Ie)=>Ie.stroke="dodgerblue",mouseLeave:(Je,Ie)=>Ie.stroke="lightgray",click:fe(et,Me),contextClick:fe(et,Me)})}function Oe(){return[ke("ContextMenuButton",ke(de.s_,"Horizontal",ve(Bt.white,"fill"),ve(Bt.beige,"fill"),ve(Bt.extralightblue,"fill"),ve(Bt.extralightred,"fill"))),ke("ContextMenuButton",ke(de.s_,"Horizontal",ve(Bt.lightgray,"fill"),ve(Bt.lightgreen,"fill"),ve(Bt.lightblue,"fill"),ve(Bt.lightred,"fill")))]}function xe(){return[ke("ContextMenuButton",ke(de.s_,"Horizontal",ve(Bt.black),ve(Bt.green),ve(Bt.blue),ve(Bt.red))),ke("ContextMenuButton",ke(de.s_,"Horizontal",ve(Bt.white),ve(Bt.magenta),ve(Bt.purple),ve(Bt.orange)))]}function De(Me,et){return et||(et="thickness"),ke(de.bn,"LineH",{width:16,height:16,strokeWidth:Me,margin:1,background:"transparent",mouseEnter:(Je,Ie)=>Ie.background="dodgerblue",mouseLeave:(Je,Ie)=>Ie.background="transparent",click:fe(et,Me),contextClick:fe(et,Me)})}function Be(Me,et){return et||(et="dash"),ke(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Me,margin:1,background:"transparent",mouseEnter:(Je,Ie)=>Ie.background="dodgerblue",mouseLeave:(Je,Ie)=>Ie.background="transparent",click:fe(et,Me),contextClick:fe(et,Me)})}function lt(){return[ke("ContextMenuButton",ke(de.s_,"Horizontal",De(1),De(2),De(3),De(4))),ke("ContextMenuButton",ke(de.s_,"Horizontal",Be(null),Be([2,4]),Be([4,4])))]}function tt(Me,et){return et||(et="figure"),ke(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Me,margin:1,background:"transparent",mouseEnter:(Je,Ie)=>Ie.fill="dodgerblue",mouseLeave:(Je,Ie)=>Ie.fill="lightgray",click:fe(et,Me),contextClick:fe(et,Me)})}ce.current.nodeTemplate.contextMenu=ke("ContextMenu",ke("ContextMenuButton",ke(de.s_,"Horizontal",tt("Rectangle"),tt("RoundedRectangle"),tt("Ellipse"),tt("Diamond"))),ke("ContextMenuButton",ke(de.s_,"Horizontal",tt("Parallelogram2"),tt("ManualOperation"),tt("Procedure"),tt("Cylinder1"))),ke("ContextMenuButton",ke(de.s_,"Horizontal",tt("Terminator"),tt("CreateRequest"),tt("Document"),tt("TriangleDown"))),Oe(),xe(),lt()),ce.current.groupTemplate=ke(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Me,et)=>{var Je=et.addMembers(et.diagram.selection,!0);Je||et.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),ke(de.s_,"Auto",{name:"BODY"},ke(de.bn,{parameter1:10,fill:Bt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ke(de.Vm,{background:"transparent",margin:20})),ke(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=ke(de.uz,"Spot",ke(de.s_,"Auto",ke(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ke(de.Vm,{margin:1.5})),pe({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=ke("ContextMenu",Oe(),xe(),lt()),ce.current.linkTemplate=ke(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Me=>Me>=1?10:0),new de.KX("toShortLength","dir",Me=>Me>=1?10:0),new de.KX("points").makeTwoWay(),ke(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ke(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Me=>Me===1)),ke(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Me=>Me>=1),new de.KX("width","thickness",Me=>7+3*Me),new de.KX("height","thickness",Me=>7+3*Me),new de.KX("segmentOffset","thickness",Me=>new de.E9(-15,4+1.5*Me))),ke(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Me=>Me===2),new de.KX("width","thickness",Me=>7+3*Me),new de.KX("height","thickness",Me=>7+3*Me),new de.KX("segmentOffset","thickness",Me=>new de.E9(-15,4+1.5*Me))),ke(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=ke(de.uz,ke(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ct(2)},new de.KX("pathPattern","thickness",ct)),pe({alignmentFocus:new de.z6(0,0,-6,-4)}));function ct(Me){return ke(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Me+4).toString()+" H3"})}function Ct(Me){var et="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Me===0?et="M0 0 M16 16 M0 8 L16 8":Me===2&&(et="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ke(de.bn,{geometryString:et,margin:2,background:"transparent",mouseEnter:(Je,Ie)=>Ie.background="dodgerblue",mouseLeave:(Je,Ie)=>Ie.background="transparent",click:fe("dir",Me),contextClick:fe("dir",Me)})}function we(Me){var et=(Je,Ie)=>{Je.handled=!0,Je.diagram.model.commit(Tt=>{var Mt=Ie.part.adornedPart;Tt.set(Mt.data,Me?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Me?Mt.toNode:Mt.fromNode).invalidateConnectedLinks()})};return ke(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Je,Ie)=>Ie.background="dodgerblue",mouseLeave:(Je,Ie)=>Ie.background="transparent",click:et,contextClick:et})}function Rt(Me,et){var Je=0,Ie=de.z6.RightSide;Me.equals(de.z6.Top)?(Je=270,Ie=de.z6.TopSide):Me.equals(de.z6.Left)?(Je=180,Ie=de.z6.LeftSide):Me.equals(de.z6.Bottom)&&(Je=90,Ie=de.z6.BottomSide),et||(Je-=180);var Tt=(Mt,tn)=>{Mt.handled=!0,Mt.diagram.model.commit(Jt=>{var mn=tn.part.adornedPart;Jt.set(mn.data,et?"toSpot":"fromSpot",de.z6.stringify(Ie)),(et?mn.toNode:mn.fromNode).invalidateConnectedLinks()})};return ke(de.bn,{alignment:Me,alignmentFocus:Me.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Je,background:"transparent",mouseEnter:(Mt,tn)=>tn.background="dodgerblue",mouseLeave:(Mt,tn)=>tn.background="transparent",click:Tt,contextClick:Tt})}ce.current.linkTemplate.contextMenu=ke("ContextMenu",xe(),lt(),ke("ContextMenuButton",ke(de.s_,"Horizontal",Ct(0),Ct(1),Ct(2))),ke("ContextMenuButton",ke(de.s_,"Horizontal",ke(de.s_,"Spot",we(!1),Rt(de.z6.Top,!1),Rt(de.z6.Left,!1),Rt(de.z6.Right,!1),Rt(de.z6.Bottom,!1)),ke(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},we(!0),Rt(de.z6.Top,!0),Rt(de.z6.Left,!0),Rt(de.z6.Right,!0),Rt(de.z6.Bottom,!0)))));const hn=`{ "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 Ln=["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(Me){return console.log("shapeName:",Me),Ln.indexOf(Me)>=0}var en=new de.YI(qe.current,{maxSelectionCount:1,linkTemplate:ke(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:ke(de.uz,"Link",{locationSpot:de.z6.Center},ke(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ke(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),ke(de.bn,{isPanelMain:!0,strokeWidth:2}),ke(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Me=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Me.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Me){var et;const Je=Me.subject.part;var Ie=(et=document.activeElement)==null?void 0:et.value;typeof Ie=="string"&&Ie.trim()===""&&ce.current.model.commit(function(Tt){Tt.set(Je.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),en.nodeTemplate=ke(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),ke(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),ke(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=ke(de.s_,"Grid",ke(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ke(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const Rn=()=>Wn(this,null,function*(){var ke=ce.current.makeImage();const Bt=yield(0,Mn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ke.src}});Pe({src:Bt.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{Yt()},500),st(xt+1),()=>{ce.current=null}),[]);const Pn=(0,Ke.useIntl)();return $t.createElement("div",{ref:Dt,className:at.current?`${En.maxH60} body-overflow-initial`:"body-overflow-initial"},$t.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:$t.createElement(He.Z,null,$t.createElement(jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),$t.createElement(jt.Z,{onClick:()=>{var ke,Bt,se=ce.current.selection.first();if(at.current=!at.current,document.activeElement&&se){let pe=(Bt=(ke=document.activeElement)==null?void 0:ke.value)==null?void 0:Bt.trim();typeof pe=="string"&&ce.current.model.commit(function(fe){fe.set(se.data,"text",pe||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}st(xt+1)}},$t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},Pn.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",Pn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:le},$t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:En.flowChartWrp},$t.createElement("div",{style:{display:"flex",height:"100%"}},$t.createElement("div",{style:{width:"300px",height:"100%"}},$t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),$t.createElement("div",{style:{height:"calc(100% - 50px)"},className:En.myPaletteDiv,ref:qe})),$t.createElement("div",{style:{flex:1,position:"relative"}},$t.createElement("div",{ref:Ne,style:{height:"80vh"}}))),$t.createElement("div",{className:"tr"},$t.createElement(Ge.ZP,{size:"large",onClick:Rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Pn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Dn=Zn,Tn=ie(78045),An=ie(31795);const Zt=Tn.ZP.Group,qt={margin:"0 8px"};var un=({callback:le,onCancel:Pe})=>{function ce(qe){le(qe)}const Ne=(0,Ke.useIntl)();return ae.createElement(ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:qt},Ne.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:qt},Ne.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(An.Z,null)),ae.createElement("span",{style:qt},Ne.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(An.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:qt},Ne.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(ue.default.Item,{name:"align"},ae.createElement(Zt,null,ae.createElement(Tn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Tn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Tn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Tn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ne.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},Ne.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},kt=ie(47897),Vn=ie(61016),Bn=ie.n(Vn),la=(0,ae.forwardRef)(({use3d:le,width:Pe,height:ce,callback:Ne,showSaveButton:qe},at)=>{const Dt=(0,ae.useRef)(),xt=(0,ae.useRef)(),st=(0,Ke.useIntl)(),[Yt,Rn]=(0,ae.useState)(!1),Pn=(0,ae.useRef)({id:Dt,appName:"graphing",width:Pe||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{xt.current=new(Bn())(Pn.current,!0),window.onload=function(){xt.current.inject("applet_container")}},[]);const ke=()=>{var Bt=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(Bt),Bt};return(0,ae.useEffect)(()=>{Pn.current.appName=Yt?"3D":"graphing",xt.current.inject("applet_container")},[Yt]),(0,ae.useEffect)(()=>{Rn(le)},[le]),(0,ae.useImperativeHandle)(at,()=>({getImgData:ke})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Dt}),ae.createElement(He.Z,{align:"middle"},ae.createElement(jt.Z,{flex:1},ae.createElement(kt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:st.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Yt,onChange:Bt=>Rn(Bt)})),ae.createElement(jt.Z,null,ae.createElement(Ge.ZP,{size:"large",onClick:ke,style:{zIndex:8,marginTop:10},type:"primary"},st.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),sa=ie(36527),he=ie(25934),Ee=ie(2453);const Te="link",Xe="upload-image",ot="add-flowchart",yt="draw-image",Et="add-flowchart",vt="code-block",ht="add-table",Ot="------------",At={default:Ot,left:`:${Ot}`,center:`:${Ot}:`,right:`${Ot}:`};var Kt=ie(99914),dn=(le,Pe,ce)=>new Promise((Ne,qe)=>{var at=st=>{try{xt(ce.next(st))}catch(Yt){qe(Yt)}},Dt=st=>{try{xt(ce.throw(st))}catch(Yt){qe(Yt)}},xt=st=>st.done?Ne(st.value):Promise.resolve(st.value).then(at,Dt);xt((ce=ce.apply(le,Pe)).next())});function cn(){}let vn=0;const Xt=1e4,It="\u2581",yn="@\u2581\u2581@",sn="@\u2581@",Sn=`
**\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`,Vt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function kn(le){return/^\d+$/.test(le)?`${le}px`:le}const On=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zn={[On+"-B"]:"bold",[On+"-I"]:"italic"};var ea=({defaultValue:le="",onChange:Pe,width:ce="100%",height:Ne=400,miniToolbar:qe=!1,isFocus:at=!1,watch:Dt,insertTemp:xt,mode:st="markdown",id:Yt="markdown-editor-id",showResizeBar:Rn=!1,noStorage:Pn=!1,showNullButton:ke=!1,showNullProgramButton:Bt=!1,hidetoolBar:se=!1,fullScreen:pe=!1,onBlur:fe,onCMBeforeChange:ve,onFullScreen:Oe,className:xe="",disablePaste:De=!1,disabled:Be=!1,disabledFill:lt=!1,placeholder:tt="",values:ct="",extraUse:Ct})=>{const[we,Rt]=(0,ae.useState)(null),[hn,Ln]=(0,ae.useState)(le),[fn,en]=(0,ae.useState)(Dt),[Me,et]=(0,ae.useState)(pe),[Je,Ie]=(0,ae.useState)(""),[Tt,Mt]=(0,ae.useState)(0),[tn,Jt]=(0,ae.useState)(Ne),[mn,Yn]=(0,ae.useState)(!1),ta=(0,ae.useRef)((0,he.Z)()),ua=(0,ae.useRef)(!1),na=(0,ae.useRef)(),[$n,nn]=(0,ae.useState)(0),[ra,ia]=(0,ae.useState)(0),_n=(0,ae.useRef)(),Kn=(0,ae.useRef)(),xn=(0,ae.useRef)(),aa=(0,ae.useRef)(),Ft=()=>dn(void 0,null,function*(){var rt;const We=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ta.current}});(rt=We==null?void 0:We.attachments)!=null&&rt.length&&(console.log("cm:",we,_n),We.attachments.map(Ve=>{Ve.content_type.indexOf("image")>-1?we.replaceSelection(`![,](/api/attachments/${Ve.id}?type=${Ve.content_type})`):Ve.content_type.indexOf("video")>-1?we.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ve.content_type.indexOf("pdf")>-1?we.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type}&disposition=inline" target="_blank">${Ve.name}</a>`):we.replaceSelection(`[${Ve.name}](${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type})`)}))});(0,ae.useEffect)(()=>{const rt=window.scrollY||window.pageYOffset;Ln(ct),we==null||we.setValue(ct),window.scrollTo(0,rt)},[ct]),(0,ae.useEffect)(()=>{Oe==null||Oe(Me)},[Me]),(0,ae.useEffect)(()=>{if(_n.current){let rt=function(Ve,gt){var _t;if(De){gt.preventDefault();return}const rn=gt.clipboardData;if(rn){const Nn=rn.types.toString(),pn=rn.items;if(Nn==="Files"||rn.types.indexOf("Files")>-1){if(gt.preventDefault(),st=="stex")return;try{let mt=pn[1];((_t=pn[0])==null?void 0:_t.kind)==="file"&&(mt=pn[0]);const wt=mt.getAsFile(),Ht=wt.name.split(".").pop();(0,Fe.I)(wt,ft=>{var Ut,wn,qn;ft.id?((Ut=wt==null?void 0:wt.type)==null?void 0:Ut.indexOf("image"))>-1?We.replaceSelection(`<img width="100%" src="/api/attachments/${ft.id}?type=${ft.content_type})" alt="" />`):((wn=wt==null?void 0:wt.type)==null?void 0:wn.indexOf("video"))>-1?We.replaceSelection(`<video width="100%" controls src="/api/attachments/${ft.id}"></video>`):((qn=wt==null?void 0:wt.type)==null?void 0:qn.indexOf("pdf"))>-1?We.replaceSelection(`<a href="/api/attachments/${ft.id}?type=${wt.type}&disposition=inline" target="_blank">${wt.name}</a>`):Vt.includes(Ht)?We.replaceSelection(`<a href="/api/attachments/${ft.id}?type=office&disposition=inline" target="_blank">${wt.name}</a>`):We.replaceSelection(`[${wt.name}](/api/attachments/${ft.id}?type=${ft.content_type})`):(ft==null?void 0:ft.status)===401&&(Ee.ZP.warning((ft==null?void 0:ft.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(mt){Ee.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const We=Ze().fromTextArea(_n.current,{mode:st,lineNumbers:!qe,lineWrapping:!0,value:le,autoCloseTags:!Bt,autoCloseBrackets:!0});return We.on("keyup",function(Ve,gt){gt.keyCode===8&&(Ve.getValue()==""?We.setOption("placeholder",tt):We.setOption("placeholder",null))}),We.on("keydown",function(Ve,gt){if(gt.keyCode===8){var _t=In(Ve);_t&&gt.preventDefault()}}),at&&We.focus(),We.on("paste",rt),We.on("dragleave",function(Ve,gt){Kn.current.classList.remove("mouse-hover-md")}),Be&&We.on("beforeChange",function(Ve,gt){(gt.origin==="paste"||gt.origin==="+input")&&gt.cancel()}),Rt(We),()=>{We.off("paste",rt)}}},[]);const an=(0,ae.useCallback)(()=>{if(Kn.current)try{}catch(rt){console.log(rt,"---- to set md editor body height")}},[tn,Kn,Me]);(0,ae.useEffect)(()=>{function rt(){let We=new je.Z(Ve=>{for(let gt of Ve)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&(an(),we.setSize("100%","100%"),we.refresh())});return We.observe(_n.current.parentElement),We}if(we){const We=rt();return()=>{var Ve,gt;(Ve=_n.current)!=null&&Ve.parentElement&&We.unobserve((gt=_n.current)==null?void 0:gt.parentElement)}}},[we,an]),(0,ae.useEffect)(()=>{if(we){let rt=[];for(const[We,Ve]of Object.entries(zn)){let gt={[We]:()=>{Gn(Ve)}};rt.push(gt),we.addKeyMap(gt)}return na.current=setInterval(()=>{ua.current&&Ft()},4e3),()=>{clearInterval(na.current);for(let We of rt)we.removeKeyMap(We)}}},[we]),(0,ae.useEffect)(()=>{pe!==Me&&et(pe)},[pe]),(0,Kt.Z)(()=>{if(!Pn&&Tt>0){let rt=new Date().getTime(),We=window.sessionStorage.getItem(Yt);rt>=Tt+Xt&&(!We||We!==hn)&&(window.sessionStorage.setItem(Yt,hn),Yn(!0))}},Xt),(0,ae.useEffect)(()=>{en(Dt)},[we,Dt]),(0,ae.useEffect)(()=>{we&&at&&we.focus()},[we,at]),(0,ae.useEffect)(()=>{if(fn&&we){let rt=function(Ve){let gt=Ve.target;if(aa.current){let _t=gt.scrollTop/gt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*_t}};const We=we.getScrollerElement();return We.addEventListener("scroll",rt),()=>{We.removeEventListener("scroll",rt)}}},[we,fn]),(0,ae.useEffect)(()=>{if(we&&ve){let rt=function(We,Ve){ve(We,Ve)};return we.on("beforeChange",rt),()=>{we.off("beforeChange",rt)}}},[we,ve]),(0,ae.useEffect)(()=>{if(we&&fe){let rt=function(){fe(we.getValue())};return we.on("blur",rt),()=>{we.off("blur",rt)}}},[we,fe]);function In(rt,We){var Ve=rt.getDoc(),gt=Ve.getCursor(),_t=Ve.getLine(gt.line),rn=_t.charAt(gt.ch-1),Nn=_t.lastIndexOf("@\u2581@",gt.ch),pn=_t.lastIndexOf("@\u2581\u2581@",gt.ch),mt=Nn>pn?Nn:pn,wt=Nn>pn?3:4;if(yn.indexOf(rn)===-1)return null;if(console.log("change1:",We,rt,_t,gt,mt,Nn,pn,rn),mt>=0&&gt.ch-mt<5){var Ht=mt+wt;return Ve.replaceRange("",{line:gt.line,ch:mt},{line:gt.line,ch:Ht}),{line:gt.line,ch:Ht}}return null}(0,ae.useEffect)(()=>{if(we){let rt=function(We,Ve){const gt=We.getValue();Ln(gt),Mt(new Date().getTime()),We.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Bt?Pe(gt,Pa(gt)):Pe(gt))};return we.on("change",rt),()=>{we.off("change",rt)}}},[we,Pe]),(0,ae.useEffect)(()=>{if(we)if(le==null)we.setValue(""),Ln("");else{const rt=window.scrollY||window.pageYOffset;le!==we.getValue()&&(we.setValue(le),Ln(le),we.setCursor(Be?1:we.lineCount(),0),window.scrollTo(0,rt))}},[we,le]);const Gn=(0,ae.useCallback)(rt=>{const We=we.getCursor(),Ve=we.getSelection();let gt=Ve.split(`
`);switch(rt){case"bold":return we.replaceSelection("**"+Ve+"**"),Ve===""&&we.setCursor(We.line,We.ch+2),we.focus();case"italic":return we.replaceSelection("*"+Ve+"*"),Ve===""&&we.setCursor(We.line,We.ch+1),we.focus();case"code":return we.replaceSelection("`"+Ve+"`"),Ve===""&&we.setCursor(We.line,We.ch+1),we.focus();case"inline-latex":return Ie("inline-latex"),we.focus();case"latex":return we.replaceSelection("```latex\n"+Ve+"\n```"),we.setCursor(We.line+1,Ve.length+1),we.focus();case"line-break":return we.replaceSelection(`<br/>
`),we.focus();case"list-ul":return Ve===""?we.replaceSelection("- "+Ve):we.replaceSelection(gt.map(_t=>_t===""?"":`- ${_t}`).join(`
`)),we.focus();case"list-ol":return Ve===""?we.replaceSelection("1. "+Ve):we.replaceSelection(gt.map((_t,rn)=>_t===""?"":`${rn+1}. ${_t}`).join(`
`)),we.focus();case"add-null-ch":return Ve===""&&we.setCursor(We.line,We.ch),we.replaceSelection(It),we.focus();case"add-signal":return Ve===""&&we.setCursor(We.line,We.ch),we.replaceSelection(sn),we.focus();case"add-multiple":return Ve===""&&we.setCursor(We.line,We.ch),we.replaceSelection(yn),we.focus();case"inster-template-1":return Ve===""&&we.setCursor(We.line,We.ch),we.replaceSelection(Sn),we.focus();case"eraser":return we.setValue(""),we.focus();case"trigger-watch":return en(!fn),we.focus();case"trigger-full-screen":return et(!Me),we.focus();case Te:Ie(Te);return;case vt:Ie(vt);return;case Xe:Ie(Xe);return;case yt:Ie(yt);return;case"maths-latex":Ie("maths-latex");return;case ot:Ie(ot);return;case ht:Ie(ht);return;default:throw new Error}},[we,fn,Me]),Cn=(0,ae.useCallback)((rt,We)=>{var Ve,gt,_t,rn,Nn,pn;switch(Ie(""),Je){case Te:const{title:Ut,link:wn}=rt;return we.replaceSelection(`[${Ut}](${wn})`),we.focus();case vt:const{language:qn,content:ma}=rt;return we.replaceSelection(["```"+qn,ma,"```"].join(`
`)),we.focus();case"maths-latex":for(var mt=atob(rt),wt=new Uint8Array(mt.length),Ht=0;Ht<mt.length;Ht++)wt[Ht]=mt.charCodeAt(Ht);var ft=new Blob([wt],{type:"image/png"});(0,Fe.I)(ft,ga=>{ga.id?we.replaceSelection(`![,](/api/attachments/${ga.id}?type=${ga.content_type})`):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":we.replaceSelection("`$$"+rt+"$$`");break;case Xe:case yt:case Et:const{src:jn,alt:La}=rt,bn=We,xa=(_t=(gt=(Ve=bn==null?void 0:bn.name)==null?void 0:Ve.split("."))==null?void 0:gt.pop)==null?void 0:_t.call(gt);return((rn=bn==null?void 0:bn.type)==null?void 0:rn.indexOf("image"))>-1||!(bn!=null&&bn.type)?bn.align||bn.width?we.replaceSelection(`<p style="text-align:${bn.align||"initial"}"><img width="${bn.width?bn.width+"%":"initial"}" src="${jn}" alt="${La||""}" /></p>`):we.replaceSelection(`<img width="100%" src="${jn}" alt="${La||""}" />`):((Nn=bn==null?void 0:bn.type)==null?void 0:Nn.indexOf("video"))>-1?we.replaceSelection(`<video width="100%" controls src="${jn}"></video>`):((pn=bn==null?void 0:bn.type)==null?void 0:pn.indexOf("pdf"))>-1?we.replaceSelection(`<a href="${jn}?type=${bn.type}&disposition=inline" target="_blank">${bn.name}</a>`):Vt.includes(xa)?we.replaceSelection(`<a href="${jn}?type=office&disposition=inline" target="_blank">${bn.name}</a>`):we.replaceSelection(`[${bn.name}](${jn})`),we.focus();case ht:const{row:Ga,col:Fa,align:Ca}=rt;let ya=`
`;for(let ga=0;ga<Ga;ga++){let ba=[],Ea=[];for(let Ba=0;Ba<Fa;Ba++)ga===1&&Ea.push(At[Ca]),ba.push(" ");ga===1&&(ya+=`| ${Ea.join(" | ")} |
`),ya+=`| ${ba.join(Fa===1?"":" | ")} |
`}return we.replaceSelection(ya+`
`),we.focus();default:throw new Error}},[we,Je]),Jn=(0,ae.useMemo)(()=>{switch(Je){case Te:return ae.createElement(Xn,{callback:Cn,onCancel:Qn});case vt:return ae.createElement(Hn.Z,{callback:Cn,onCancel:Qn});case Xe:return ae.createElement(Fe.Z,{callback:Cn,onCancel:Qn});case ot:return ae.createElement(Dn,{callback:Cn,onCancel:Qn});case ht:return ae.createElement(un,{callback:Cn,onCancel:Qn});case"maths-latex":return ae.createElement(la,{showSaveButton:!0,callback:Cn});case"inline-latex":return ae.createElement(sa.Z,{showSaveButton:!0,callback:Cn});default:return null}},[Je]);function Qn(){Ie("")}(0,ae.useEffect)(()=>{if(xn.current){let rt=function(Nn){_t=!0,rn=Nn.pageY},We=function(){_t=!1},Ve=function(Nn){if(_t){let pn=Nn.pageY-rn;pn<0&&(pn=0),pn>300&&(pn=300);let mt=Ne+pn+"px";Jt(mt)}},gt=xn.current,_t=!1,rn=0;return gt.addEventListener("mousedown",rt),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",We),()=>{gt.removeEventListener("mousedown",rt),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",We)}}},[we,xn]),(0,ae.useEffect)(()=>{Jt(Ne)},[Ne]);const ca=kn(ce),on=kn(tn),gn={width:ca,height:on},oa=(0,ae.useMemo)(()=>{if(Tt){let rt=new Date(Tt),We=rt.getHours(),Ve=rt.getMinutes(),gt=rt.getSeconds();return We=We<10?"0"+We:We,Ve=Ve<10?"0"+Ve:Ve,gt=gt<10?"0"+gt:gt,`${We}:${Ve}:${gt}`}return 0},[Tt]),Pa=rt=>{const We=[];if(Bt){let Ve=-1;rt=rt.replace(/(@▁▁@|@▁@)/g,function(gt,_t,rn){We.push({multiLine:gt!==sn})})}return We};function fa(){window.sessionStorage.removeItem(Yt),Yn(!1),Mt(0)}function wa(){Yn(!1),Mt(0),we.setValue(window.sessionStorage.getItem(Yt))}const Sa=(0,Ke.useIntl)(),ha={[Te]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:Sa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[Xe]:Sa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[yt]:"\u6DFB\u52A0\u753B\u56FE",[ot]:Sa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[ht]:"\u6DFB\u52A0\u8868\u683C","maths-latex":Sa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":Sa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{ha[Je]&&Je!==yt&&Je!==ot&&setTimeout(()=>{const rt=document.getElementsByClassName("markdown-popup-form")[0],We=window.innerWidth/2-rt.offsetWidth/2,Ve=window.innerHeight/2-rt.offsetHeight/2;nn(We),ia(Ve)},0)},[Je]);const pa=rt=>{rt.preventDefault();const We=rt.clientX-$n,Ve=rt.clientY-ra;document.body.onmousemove=gt=>{let _t=gt.clientX-We,rn=gt.clientY-Ve;const Nn=document.getElementsByClassName("markdown-popup-form")[0],pn=window.innerWidth-Nn.offsetWidth,mt=window.innerHeight-Nn.offsetHeight;_t=Math.max(0,Math.min(_t,pn)),rn=Math.max(0,Math.min(rn,mt)),va(gt.clientX,gt.clientY,We,Ve)&&(nn(_t),ia(rn))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(rt,We,Ve,gt)=>{const _t=document.body.clientHeight,rn=document.body.clientWidth;return rt<20&&Ve>rt||rt>rn-20&&Ve<rt||We<20&&gt>We||We>_t-20&&gt<We?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Kn},ae.createElement("div",{className:`markdown-editor-container ${xe} ${fn?"on-preview":""} ${qe?"mini":""} ${Me?"full-screen":""}`,style:gn},ae.createElement(re,{insertTemp:xt,watch:fn,fullScreen:Me,showNullButton:ke,showNullProgramButton:Bt,onActionCallback:Gn,hidetoolBar:se,extraUse:Ct}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:_n,placeholder:tt})),fn?ae.createElement("div",{ref:aa,className:"preview-container"},st==="stex"&&ae.createElement(Ye,{value:hn}),st!=="stex"&&ae.createElement(dt.Z,{disabledFill:lt,showProgramFill:Bt,value:hn})):null))),Rn?ae.createElement("a",{ref:xn,className:"editor-resize"}):null,Je===yt&&ae.createElement(pt,{callback:Cn,onCancel:Qn}),Je===ot&&ae.createElement(Dn,{callback:Cn,onCancel:Qn}),ae.createElement(me.Z,null,ha[Je]&&Je!==yt&&Je!==ot?ae.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:ra},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:pa},ha[Je]),open:!0,onCancel:Qn,footer:null,destroyOnClose:!0,width:Je===ot?"1200px":null,height:Je===ot?"80vh":null,className:"markdown-popup-form"},Jn):null))}},70859:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return re},I:function(){return ue}});var ae=ie(22150),Ae=ie(2453),Ze=ie(69677),je=ie(93421),Le=ie(31795),Re=ie(78045),Se=ie(71577),nt=ie(15476),Ue=ie(67294),Ce=ie(52262),dt=ie(35973),Ye=ie(67294),Ke=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ye,Ge,$e)=>Ge in ye?Ke(ye,Ge,{enumerable:!0,configurable:!0,writable:!0,value:$e}):ye[Ge]=$e,z=(ye,Ge)=>{for(var $e in Ge||(Ge={}))E.call(Ge,$e)&&x(ye,$e,Ge[$e]);if(y)for(var $e of y(Ge))b.call(Ge,$e)&&x(ye,$e,Ge[$e]);return ye},ee=(ye,Ge)=>te(ye,a(Ge));const{useForm:ne}=ae.default,oe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:ye,onCancel:Ge})=>{const[$e]=ne();let St=(0,Ue.useRef)();const ut=(0,dt.useIntl)();function Gt(zt){St.current.width=$e.getFieldValue("width"),St.current.align=$e.getFieldValue("align"),ye(zt,St.current)}function Pt(zt,Wt){if(zt.status===-1){Ae.ZP.error(zt.message);return}$e.setFieldsValue({src:`/api/attachments/${zt.id}`,type:Wt.type})}function Lt(zt){let Wt=zt.target.files[0];St.current=Wt,ue(Wt,Pt)}return Ye.createElement(ae.default,ee(z({form:$e},ge),{className:"upload-image-panel",onFinish:Gt,style:{width:470,overflow:"hidden"}}),Ye.createElement(ae.default.Item,{label:ut.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Ye.createElement("div",{className:"flex-container"},Ye.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ye.createElement(Ze.default,{style:oe})),Ye.createElement(me,{onFileChange:Lt}))),Ye.createElement(ae.default.Item,{label:ut.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Ye.createElement(Ze.default,{style:{width:264}})),Ye.createElement(ae.default.Item,{label:ut.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Ye.createElement(je.Z,null,Ye.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ye.createElement(Le.Z,{style:{width:264}})),Ye.createElement("span",{className:"ml8"},"%"))),Ye.createElement(ae.default.Item,{label:ut.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Ye.createElement(Re.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:ut.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:ut.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:ut.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Ye.createElement("aside",null,Ye.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ye.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ut.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Ye.createElement(Se.ZP,{type:"default",onClick:Ge},ut.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function me({onFileChange:ye}){return Ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ye.createElement("input",{type:"file",onChange:ye}))}function ue(ye,Ge){if(!ye)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Ae.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",ye),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var St=new window.XMLHttpRequest;St.withCredentials=!0,St.addEventListener("load",function(ut){Ge(JSON.parse(ut.target.responseText),ye)},!1),St.addEventListener("error",function(ut){console.error(ut)},!1),St.open("POST",`${nt.KI}/api/attachments.json`),St.send($e)}},76621:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return Ze}});var ae=ie(67294),Ae=ie(73935);class Ze extends ae.Component{constructor(Le){super(Le);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Le}=this.props;return(0,Ae.createPortal)(Le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return Ae}});var ae=ie(67294);function Ae(Ze,je){const Le=(0,ae.useRef)();(0,ae.useEffect)(()=>{Le.current=Ze}),(0,ae.useEffect)(()=>{function Re(){Le.current()}if(je!==null){let Se=setInterval(Re,je);return()=>clearInterval(Se)}},[je])}},87494:function(be,it,ie){"use strict";ie.r(it),ie.d(it,{default:function(){return re}});var ae=ie(67294),Ae=ie(35567),Ze=ie(2453),je=ie(69677),Le=ie(71577),Re=ie(33170),Se=ie(35973),nt=(me,ue,ye)=>new Promise((Ge,$e)=>{var St=Pt=>{try{Gt(ye.next(Pt))}catch(Lt){$e(Lt)}},ut=Pt=>{try{Gt(ye.throw(Pt))}catch(Lt){$e(Lt)}},Gt=Pt=>Pt.done?Ge(Pt.value):Promise.resolve(Pt.value).then(St,ut);Gt((ye=ye.apply(me,ue)).next())});function Ue({setIscreate:me,init:ue,UpdateItem:ye}){const Ge=(0,Se.useIntl)(),[$e,St]=(0,ae.useState)(""),[ut,Gt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{ye&&(St(ye&&ye.name),Gt(ye&&ye.description))},[ye]);function Pt(){return nt(this,null,function*(){if(!$e){Ze.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ut){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(ye){Lt();return}(yield(0,Re.ZP)("/api/hpc_courses.json",{method:"post",body:{name:$e,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info(Ge.formatMessage({id:"shixuns.creationSuccessful",defaultMessage:"\u521B\u5EFA\u6210\u529F"})),me(!1),ue("add"))})}function Lt(){return nt(this,null,function*(){(yield(0,Re.ZP)(`/api/hpc_courses/${ye.id}.json`,{method:"put",body:{name:$e,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u7F16\u8F91\u6210\u529F"),me(!1),ue(""))})}return ae.createElement("div",null,ae.createElement(je.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:$e,onChange:zt=>St(zt.target.value)}),ae.createElement(Ae.Z,{id:"courseContentMD",defaultValue:ut,onChange:zt=>Gt(zt)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(Le.ZP,{type:"primary",onClick:()=>Pt(),className:"defalutSubmitbtn fl mr20"},Ge.formatMessage({id:"classroomGraphicGroupHomework.submit",defaultMessage:"\u63D0\u4EA4"})),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>me(!1)},Ge.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))}var Ce=Ue,dt=ie(85725),Ye=(me,ue,ye)=>new Promise((Ge,$e)=>{var St=Pt=>{try{Gt(ye.next(Pt))}catch(Lt){$e(Lt)}},ut=Pt=>{try{Gt(ye.throw(Pt))}catch(Lt){$e(Lt)}},Gt=Pt=>Pt.done?Ge(Pt.value):Promise.resolve(Pt.value).then(St,ut);Gt((ye=ye.apply(me,ue)).next())});function Ke({CourseItem:me,userId:ue,init:ye,ItemUpdate:Ge,setSee:$e,UserInfo:St}){const ut=(0,Se.useIntl)();function Gt(){return Ye(this,null,function*(){(yield(0,Re.ZP)(`/api/hpc_courses/${me.id}.json`,{method:"delete"}))&&(Ze.ZP.info(ut.formatMessage({id:"classrooms.deleteSuccess",defaultMessage:"\u5220\u9664\u6210\u529F"})),ye("delete"),$e(!1))})}function Pt(){Ge(me)}return ae.createElement("div",null,ue===299635||ue===301458||St!=null&&St.admin||St!=null&&St.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(Le.ZP,{onClick:()=>Pt()},ut.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"})),ae.createElement(Le.ZP,{onClick:()=>Gt(),style:{marginLeft:"30px"}},ut.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"}))):null,ae.createElement("h1",null,me==null?void 0:me.name),ae.createElement(dt.Z,{value:me==null?void 0:me.description}))}var te=Ke,a=ie(59810),y=ie(11320),E=Object.defineProperty,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(me,ue,ye)=>ue in me?E(me,ue,{enumerable:!0,configurable:!0,writable:!0,value:ye}):me[ue]=ye,ne=(me,ue)=>{for(var ye in ue||(ue={}))x.call(ue,ye)&&ee(me,ye,ue[ye]);if(b)for(var ye of b(ue))z.call(ue,ye)&&ee(me,ye,ue[ye]);return me},oe=(me,ue,ye)=>new Promise((Ge,$e)=>{var St=Pt=>{try{Gt(ye.next(Pt))}catch(Lt){$e(Lt)}},ut=Pt=>{try{Gt(ye.throw(Pt))}catch(Lt){$e(Lt)}},Gt=Pt=>Pt.done?Ge(Pt.value):Promise.resolve(Pt.value).then(St,ut);Gt((ye=ye.apply(me,ue)).next())});function ge({user:me,dispatch:ue}){var ye,Ge,$e,St,ut,Gt,Pt,Lt,zt;const[Wt,ln]=(0,ae.useState)(1),[Fn,Xn]=(0,ae.useState)(100),[Hn,Fe]=(0,ae.useState)([]),[ze,He]=(0,ae.useState)(!1),[bt,_e]=(0,ae.useState)(!1),[pt,de]=(0,ae.useState)(""),[Qe,Nt]=(0,ae.useState)(""),[Qt,jt]=(0,ae.useState)("");let{itemname:Mn}=(0,Se.useParams)();const[En,$t]=(0,ae.useState)("");(0,ae.useEffect)(()=>{ue({type:"globalSetting/headerToggle",payload:!1}),Wt&&Wn("")},[Wt]);function Wn(Zt){return oe(this,null,function*(){var qt,un;const kt=yield(0,Re.ZP)("/api/hpc_courses.json",{method:"get",params:{page:Wt,per_page:Fn,container_type:window.location.pathname.split("/")[1]}});if(kt){let Vn=kt.data.hpc_courses.length;if(Fe(kt.data.hpc_courses),jt(kt.data.file_url),Nt(""),!Vn)return;if(En)if(Zt==="delete"){if(Vn===0){_e(!1);return}de(kt.data.hpc_courses[0]),_e(!0),$t(kt.data.hpc_courses[0].id)}else Zt==="add"?(de(kt.data.hpc_courses[Vn-1]),_e(!0),$t(kt.data.hpc_courses[Vn-1].id)):(de(kt.data.hpc_courses.filter(Bn=>Bn.id===En)[0]),_e(!0),$t(En));else if(Mn){let Bn=0;(un=(qt=kt==null?void 0:kt.data)==null?void 0:qt.hpc_courses)==null||un.map((da,la)=>{var sa;(Mn==null?void 0:Mn.toLocaleLowerCase())===((sa=da==null?void 0:da.name)==null?void 0:sa.toLocaleLowerCase())&&(Bn=la)}),de(kt.data.hpc_courses[Bn]),_e(!0),$t(kt.data.hpc_courses[Bn].id),(Mn==null?void 0:Mn.toLocaleLowerCase())==="resources"&&(de(kt.data.hpc_courses.filter(da=>da.id===15)[0]),_e(!0),$t(15))}else de(kt.data.hpc_courses[0]),_e(!0),$t(kt.data.hpc_courses[0].id)}})}function Zn(Zt){He(!1),_e(!0),de(Zt),$t(Zt.id)}function Dn(Zt){Nt(Zt),He(!0),_e(!1)}function Tn(){Nt(""),He(!0),_e(!1)}const An={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(Zt){const{status:qt}=Zt.file;qt==="done"?(Ze.ZP.success(`${Zt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Wn("")):qt==="error"&&Ze.ZP.error(`${Zt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Zt=>{const qt=Zt.size/1024/1024<150;return qt||Ze.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),qt}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${y.Z.IMG_SERVER+`/${Qt}`})`}}),ae.createElement("img",{style:{width:"100%"},src:y.Z.IMG_SERVER+`/${Qt}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Hn&&Hn.map((Zt,qt)=>ae.createElement("p",{key:qt,onClick:()=>Zn(Zt),className:En===Zt.id?"menuitemselect":"menuitem task-hide"},Zt.name)),((ye=me==null?void 0:me.userInfo)==null?void 0:ye.user_id)===299635||((Ge=me==null?void 0:me.userInfo)==null?void 0:Ge.user_id)===301458||($e=me==null?void 0:me.userInfo)!=null&&$e.admin||(St=me==null?void 0:me.userInfo)!=null&&St.business?ae.createElement("p",{onClick:()=>Tn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},ze?ae.createElement(Ce,{UpdateItem:Qe,setIscreate:He,init:Wn}):null,bt?ae.createElement(te,{UserInfo:me==null?void 0:me.userInfo,setSee:_e,userId:(ut=me==null?void 0:me.userInfo)==null?void 0:ut.user_id,ItemUpdate:Dn,CourseItem:pt,init:Wn}):null)),((Gt=me==null?void 0:me.userInfo)==null?void 0:Gt.user_id)===299635||((Pt=me==null?void 0:me.userInfo)==null?void 0:Pt.user_id)===301458||(Lt=me==null?void 0:me.userInfo)!=null&&Lt.admin||(zt=me==null?void 0:me.userInfo)!=null&&zt.business?ae.createElement(a.default,ne({},An),ae.createElement(Le.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var re=(0,Se.connect)(({user:me})=>({user:me}))(ge)},57838:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return Ae}});var ae=ie(67294);function Ae(){const[,Ze]=ae.useReducer(je=>je+1,0);return Ze}},38703:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return sa}});var ae=ie(67294),Ae=ie(87725),Ze=ie(18299),je=ie(16646),Le=ie(73475),Re=ie(94184),Se=ie.n(Re),nt=ie(10366),Ue=ie(53124),Ce=ie(87462),dt=ie(1413),Ye=ie(45987),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var Ee=(0,ae.useRef)([]),Te=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Xe=Date.now(),ot=!1;Ee.current.forEach(function(yt){if(yt){ot=!0;var Et=yt.style;Et.transitionDuration=".3s, .3s, .3s, .06s",Te.current&&Xe-Te.current<100&&(Et.transitionDuration="0s, 0s")}}),ot&&(Te.current=Date.now())}),Ee.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ee){var Te=(0,dt.Z)((0,dt.Z)({},Ke),Ee),Xe=Te.className,ot=Te.percent,yt=Te.prefixCls,Et=Te.strokeColor,vt=Te.strokeLinecap,ht=Te.strokeWidth,Ot=Te.style,At=Te.trailColor,Kt=Te.trailWidth,dn=Te.transition,cn=(0,Ye.Z)(Te,a);delete cn.gapPosition;var vn=Array.isArray(ot)?ot:[ot],Xt=Array.isArray(Et)?Et:[Et],It=te(),yn=ht/2,sn=100-ht/2,Sn="M ".concat(vt==="round"?yn:0,",").concat(yn,`
L `).concat(vt==="round"?sn:100,",").concat(yn),Vt="0 0 100 ".concat(ht),kn=0;return ae.createElement("svg",(0,Ce.Z)({className:Se()("".concat(yt,"-line"),Xe),viewBox:Vt,preserveAspectRatio:"none",style:Ot},cn),ae.createElement("path",{className:"".concat(yt,"-line-trail"),d:Sn,strokeLinecap:vt,stroke:At,strokeWidth:Kt||ht,fillOpacity:"0"}),vn.map(function(Un,On){var zn=1;switch(vt){case"round":zn=1-ht/100;break;case"square":zn=1-ht/2/100;break;default:zn=1;break}var ea={strokeDasharray:"".concat(Un*zn,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:dn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},le=Xt[On]||Xt[Xt.length-1];return kn+=Un,ae.createElement("path",{key:On,className:"".concat(yt,"-line-path"),d:Sn,strokeLinecap:vt,stroke:le,strokeWidth:ht,fillOpacity:"0",ref:function(ce){It[On]=ce},style:ea})}))},E=y,b=ie(71002),x=ie(97685),z=ie(98924),ee=0,ne=(0,z.Z)();function oe(){var he;return ne?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var Ee=ae.useState(),Te=(0,x.Z)(Ee,2),Xe=Te[0],ot=Te[1];return ae.useEffect(function(){ot("rc_progress_".concat(oe()))},[]),he||Xe},re=function(Ee){var Te=Ee.bg,Xe=Ee.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Te}},Xe)};function me(he,Ee){return Object.keys(he).map(function(Te){var Xe=parseFloat(Te),ot="".concat(Math.floor(Xe*Ee),"%");return"".concat(he[Te]," ").concat(ot)})}var ue=ae.forwardRef(function(he,Ee){var Te=he.prefixCls,Xe=he.color,ot=he.gradientId,yt=he.radius,Et=he.style,vt=he.ptg,ht=he.strokeLinecap,Ot=he.strokeWidth,At=he.size,Kt=he.gapDegree,dn=Xe&&(0,b.Z)(Xe)==="object",cn=dn?"#FFF":void 0,vn=At/2,Xt=ae.createElement("circle",{className:"".concat(Te,"-circle-path"),r:yt,cx:vn,cy:vn,stroke:cn,strokeLinecap:ht,strokeWidth:Ot,opacity:vt===0?0:1,style:Et,ref:Ee});if(!dn)return Xt;var It="".concat(ot,"-conic"),yn=Kt?"".concat(180+Kt/2,"deg"):"0deg",sn=me(Xe,(360-Kt)/360),Sn=me(Xe,1),Vt="conic-gradient(from ".concat(yn,", ").concat(sn.join(", "),")"),kn="linear-gradient(to ".concat(Kt?"bottom":"top",", ").concat(Sn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:It},Xt),ae.createElement("foreignObject",{x:0,y:0,width:At,height:At,mask:"url(#".concat(It,")")},ae.createElement(re,{bg:kn},ae.createElement(re,{bg:Vt}))))}),ye=ue,Ge=100,$e=function(Ee,Te,Xe,ot,yt,Et,vt,ht,Ot,At){var Kt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,dn=Xe/100*360*((360-Et)/360),cn=Et===0?0:{bottom:0,top:180,left:90,right:-90}[vt],vn=(100-ot)/100*Te;Ot==="round"&&ot!==100&&(vn+=At/2,vn>=Te&&(vn=Te-.01));var Xt=Ge/2;return{stroke:typeof ht=="string"?ht:void 0,strokeDasharray:"".concat(Te,"px ").concat(Ee),strokeDashoffset:vn+Kt,transform:"rotate(".concat(yt+dn+cn,"deg)"),transformOrigin:"".concat(Xt,"px ").concat(Xt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},St=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ut(he){var Ee=he!=null?he:[];return Array.isArray(Ee)?Ee:[Ee]}var Gt=function(Ee){var Te=(0,dt.Z)((0,dt.Z)({},Ke),Ee),Xe=Te.id,ot=Te.prefixCls,yt=Te.steps,Et=Te.strokeWidth,vt=Te.trailWidth,ht=Te.gapDegree,Ot=ht===void 0?0:ht,At=Te.gapPosition,Kt=Te.trailColor,dn=Te.strokeLinecap,cn=Te.style,vn=Te.className,Xt=Te.strokeColor,It=Te.percent,yn=(0,Ye.Z)(Te,St),sn=Ge/2,Sn=ge(Xe),Vt="".concat(Sn,"-gradient"),kn=sn-Et/2,Un=Math.PI*2*kn,On=Ot>0?90+Ot/2:-90,zn=Un*((360-Ot)/360),ea=(0,b.Z)(yt)==="object"?yt:{count:yt,space:2},le=ea.count,Pe=ea.space,ce=ut(It),Ne=ut(Xt),qe=Ne.find(function(Pn){return Pn&&(0,b.Z)(Pn)==="object"}),at=qe&&(0,b.Z)(qe)==="object",Dt=at?"butt":dn,xt=$e(Un,zn,0,100,On,Ot,At,Kt,Dt,Et),st=te(),Yt=function(){var ke=0;return ce.map(function(Bt,se){var pe=Ne[se]||Ne[Ne.length-1],fe=$e(Un,zn,ke,Bt,On,Ot,At,pe,Dt,Et);return ke+=Bt,ae.createElement(ye,{key:se,color:pe,ptg:Bt,radius:kn,prefixCls:ot,gradientId:Vt,style:fe,strokeLinecap:Dt,strokeWidth:Et,gapDegree:Ot,ref:function(Oe){st[se]=Oe},size:Ge})}).reverse()},Rn=function(){var ke=Math.round(le*(ce[0]/100)),Bt=100/le,se=0;return new Array(le).fill(null).map(function(pe,fe){var ve=fe<=ke-1?Ne[0]:Kt,Oe=ve&&(0,b.Z)(ve)==="object"?"url(#".concat(Vt,")"):void 0,xe=$e(Un,zn,se,Bt,On,Ot,At,ve,"butt",Et,Pe);return se+=(zn-xe.strokeDashoffset+Pe)*100/zn,ae.createElement("circle",{key:fe,className:"".concat(ot,"-circle-path"),r:kn,cx:sn,cy:sn,stroke:Oe,strokeWidth:Et,opacity:1,style:xe,ref:function(Be){st[fe]=Be}})})};return ae.createElement("svg",(0,Ce.Z)({className:Se()("".concat(ot,"-circle"),vn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:cn,id:Xe,role:"presentation"},yn),!le&&ae.createElement("circle",{className:"".concat(ot,"-circle-trail"),r:kn,cx:sn,cy:sn,stroke:Kt,strokeLinecap:Dt,strokeWidth:vt||Et,style:xt}),le?Rn():Yt())},Pt=Gt,Lt={Line:E,Circle:Pt},zt=ie(83062),Wt=ie(47448);function ln(he){return!he||he<0?0:he>100?100:he}function Fn(he){let{success:Ee,successPercent:Te}=he,Xe=Te;return Ee&&"progress"in Ee&&(Xe=Ee.progress),Ee&&"percent"in Ee&&(Xe=Ee.percent),Xe}const Xn=he=>{let{percent:Ee,success:Te,successPercent:Xe}=he;const ot=ln(Fn({success:Te,successPercent:Xe}));return[ot,ln(ln(Ee)-ot)]},Hn=he=>{let{success:Ee={},strokeColor:Te}=he;const{strokeColor:Xe}=Ee;return[Xe||Wt.presetPrimaryColors.green,Te||null]},Fe=(he,Ee,Te)=>{var Xe,ot,yt,Et;let vt=-1,ht=-1;if(Ee==="step"){const Ot=Te.steps,At=Te.strokeWidth;typeof he=="string"||typeof he=="undefined"?(vt=he==="small"?2:14,ht=At!=null?At:8):typeof he=="number"?[vt,ht]=[he,he]:[vt=14,ht=8]=he,vt*=Ot}else if(Ee==="line"){const Ot=Te==null?void 0:Te.strokeWidth;typeof he=="string"||typeof he=="undefined"?ht=Ot||(he==="small"?6:8):typeof he=="number"?[vt,ht]=[he,he]:[vt=-1,ht=8]=he}else(Ee==="circle"||Ee==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[vt,ht]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[vt,ht]=[he,he]:(vt=(ot=(Xe=he[0])!==null&&Xe!==void 0?Xe:he[1])!==null&&ot!==void 0?ot:120,ht=(Et=(yt=he[0])!==null&&yt!==void 0?yt:he[1])!==null&&Et!==void 0?Et:120));return[vt,ht]},ze=3,He=he=>ze/he*100;var _e=he=>{const{prefixCls:Ee,trailColor:Te=null,strokeLinecap:Xe="round",gapPosition:ot,gapDegree:yt,width:Et=120,type:vt,children:ht,success:Ot,size:At=Et}=he,[Kt,dn]=Fe(At,"circle");let{strokeWidth:cn}=he;cn===void 0&&(cn=Math.max(He(Kt),6));const vn={width:Kt,height:dn,fontSize:Kt*.15+6},Xt=ae.useMemo(()=>{if(yt||yt===0)return yt;if(vt==="dashboard")return 75},[yt,vt]),It=ot||vt==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",sn=Hn({success:Ot,strokeColor:he.strokeColor}),Sn=Se()(`${Ee}-inner`,{[`${Ee}-circle-gradient`]:yn}),Vt=ae.createElement(Pt,{percent:Xn(he),strokeWidth:cn,trailWidth:cn,strokeColor:sn,strokeLinecap:Xe,trailColor:Te,prefixCls:Ee,gapDegree:Xt,gapPosition:It});return ae.createElement("div",{className:Sn,style:vn},Kt<=20?ae.createElement(zt.Z,{title:ht},ae.createElement("span",null,Vt)):ae.createElement(ae.Fragment,null,Vt,ht))},pt=function(he,Ee){var Te={};for(var Xe in he)Object.prototype.hasOwnProperty.call(he,Xe)&&Ee.indexOf(Xe)<0&&(Te[Xe]=he[Xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Xe=Object.getOwnPropertySymbols(he);ot<Xe.length;ot++)Ee.indexOf(Xe[ot])<0&&Object.prototype.propertyIsEnumerable.call(he,Xe[ot])&&(Te[Xe[ot]]=he[Xe[ot]]);return Te};const de=he=>{let Ee=[];return Object.keys(he).forEach(Te=>{const Xe=parseFloat(Te.replace(/%/g,""));isNaN(Xe)||Ee.push({key:Xe,value:he[Te]})}),Ee=Ee.sort((Te,Xe)=>Te.key-Xe.key),Ee.map(Te=>{let{key:Xe,value:ot}=Te;return`${ot} ${Xe}%`}).join(", ")},Qe=(he,Ee)=>{const{from:Te=Wt.presetPrimaryColors.blue,to:Xe=Wt.presetPrimaryColors.blue,direction:ot=Ee==="rtl"?"to left":"to right"}=he,yt=pt(he,["from","to","direction"]);if(Object.keys(yt).length!==0){const Et=de(yt);return{backgroundImage:`linear-gradient(${ot}, ${Et})`}}return{backgroundImage:`linear-gradient(${ot}, ${Te}, ${Xe})`}};var Qt=he=>{const{prefixCls:Ee,direction:Te,percent:Xe,size:ot,strokeWidth:yt,strokeColor:Et,strokeLinecap:vt="round",children:ht,trailColor:Ot=null,success:At}=he,Kt=Et&&typeof Et!="string"?Qe(Et,Te):{backgroundColor:Et},dn=vt==="square"||vt==="butt"?0:void 0,cn={backgroundColor:Ot||void 0,borderRadius:dn},vn=ot!=null?ot:[-1,yt||(ot==="small"?6:8)],[Xt,It]=Fe(vn,"line",{strokeWidth:yt}),yn=Object.assign({width:`${ln(Xe)}%`,height:It,borderRadius:dn},Kt),sn=Fn(he),Sn={width:`${ln(sn)}%`,height:It,borderRadius:dn,backgroundColor:At==null?void 0:At.strokeColor},Vt={width:Xt<0?"100%":Xt,height:It};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ee}-outer`,style:Vt},ae.createElement("div",{className:`${Ee}-inner`,style:cn},ae.createElement("div",{className:`${Ee}-bg`,style:yn}),sn!==void 0?ae.createElement("div",{className:`${Ee}-success-bg`,style:Sn}):null)),ht)},Mn=he=>{const{size:Ee,steps:Te,percent:Xe=0,strokeWidth:ot=8,strokeColor:yt,trailColor:Et=null,prefixCls:vt,children:ht}=he,Ot=Math.round(Te*(Xe/100)),At=Ee==="small"?2:14,Kt=Ee!=null?Ee:[At,ot],[dn,cn]=Fe(Kt,"step",{steps:Te,strokeWidth:ot}),vn=dn/Te,Xt=new Array(Te);for(let It=0;It<Te;It++){const yn=Array.isArray(yt)?yt[It]:yt;Xt[It]=ae.createElement("div",{key:It,className:Se()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:It<=Ot-1}),style:{backgroundColor:It<=Ot-1?yn:Et,width:vn,height:cn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},Xt,ht)},En=ie(45930),$t=ie(14747),Wn=ie(67968),Zn=ie(45503);const Dn=he=>{const Ee=he?"100%":"-100%";return new En.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Tn=he=>{const{componentCls:Ee,iconCls:Te}=he;return{[Ee]:Object.assign(Object.assign({},(0,$t.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Ee}-outer`]:{display:"inline-block",width:"100%"},[`&${Ee}-show-info`]:{[`${Ee}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Ee}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.defaultColor}},[`${Ee}-success-bg, ${Ee}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Ee}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Ee}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Te]:{fontSize:he.fontSize}},[`&${Ee}-status-active`]:{[`${Ee}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:Dn(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ee}-rtl${Ee}-status-active`]:{[`${Ee}-bg::before`]:{animationName:Dn(!0)}},[`&${Ee}-status-exception`]:{[`${Ee}-bg`]:{backgroundColor:he.colorError},[`${Ee}-text`]:{color:he.colorError}},[`&${Ee}-status-exception ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.colorError}},[`&${Ee}-status-success`]:{[`${Ee}-bg`]:{backgroundColor:he.colorSuccess},[`${Ee}-text`]:{color:he.colorSuccess}},[`&${Ee}-status-success ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.colorSuccess}}})}},An=he=>{const{componentCls:Ee,iconCls:Te}=he;return{[Ee]:{[`${Ee}-circle-trail`]:{stroke:he.remainingColor},[`&${Ee}-circle ${Ee}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ee}-circle ${Ee}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Te]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Ee}-circle&-status-exception`]:{[`${Ee}-text`]:{color:he.colorError}},[`${Ee}-circle&-status-success`]:{[`${Ee}-text`]:{color:he.colorSuccess}}},[`${Ee}-inline-circle`]:{lineHeight:1,[`${Ee}-inner`]:{verticalAlign:"bottom"}}}},Zt=he=>{const{componentCls:Ee}=he;return{[Ee]:{[`${Ee}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},qt=he=>{const{componentCls:Ee,iconCls:Te}=he;return{[Ee]:{[`${Ee}-small&-line, ${Ee}-small&-line ${Ee}-text ${Te}`]:{fontSize:he.fontSizeSM}}}};var un=(0,Wn.Z)("Progress",he=>{const Ee=he.marginXXS/2,Te=(0,Zn.TS)(he,{progressStepMarginInlineEnd:Ee,progressStepMinWidth:Ee,progressActiveMotionDuration:"2.4s"});return[Tn(Te),An(Te),Zt(Te),qt(Te)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(he,Ee){var Te={};for(var Xe in he)Object.prototype.hasOwnProperty.call(he,Xe)&&Ee.indexOf(Xe)<0&&(Te[Xe]=he[Xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Xe=Object.getOwnPropertySymbols(he);ot<Xe.length;ot++)Ee.indexOf(Xe[ot])<0&&Object.prototype.propertyIsEnumerable.call(he,Xe[ot])&&(Te[Xe[ot]]=he[Xe[ot]]);return Te};const Vn=null,Bn=["normal","exception","active","success"];var la=ae.forwardRef((he,Ee)=>{const{prefixCls:Te,className:Xe,rootClassName:ot,steps:yt,strokeColor:Et,percent:vt=0,size:ht="default",showInfo:Ot=!0,type:At="line",status:Kt,format:dn,style:cn}=he,vn=kt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Xt=ae.useMemo(()=>{var ce,Ne;const qe=Fn(he);return parseInt(qe!==void 0?(ce=qe!=null?qe:0)===null||ce===void 0?void 0:ce.toString():(Ne=vt!=null?vt:0)===null||Ne===void 0?void 0:Ne.toString(),10)},[vt,he.success,he.successPercent]),It=ae.useMemo(()=>!Bn.includes(Kt)&&Xt>=100?"success":Kt||"normal",[Kt,Xt]),{getPrefixCls:yn,direction:sn,progress:Sn}=ae.useContext(Ue.E_),Vt=yn("progress",Te),[kn,Un]=un(Vt),On=ae.useMemo(()=>{if(!Ot)return null;const ce=Fn(he);let Ne;const qe=dn||(Dt=>`${Dt}%`),at=At==="line";return dn||It!=="exception"&&It!=="success"?Ne=qe(ln(vt),ln(ce)):It==="exception"?Ne=at?ae.createElement(je.Z,null):ae.createElement(Le.Z,null):It==="success"&&(Ne=at?ae.createElement(Ae.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${Vt}-text`,title:typeof Ne=="string"?Ne:void 0},Ne)},[Ot,vt,Xt,It,At,Vt,dn]),zn=Array.isArray(Et)?Et[0]:Et,ea=typeof Et=="string"||Array.isArray(Et)?Et:void 0;let le;At==="line"?le=yt?ae.createElement(Mn,Object.assign({},he,{strokeColor:ea,prefixCls:Vt,steps:yt}),On):ae.createElement(Qt,Object.assign({},he,{strokeColor:zn,prefixCls:Vt,direction:sn}),On):(At==="circle"||At==="dashboard")&&(le=ae.createElement(_e,Object.assign({},he,{strokeColor:zn,prefixCls:Vt,progressStatus:It}),On));const Pe=Se()(Vt,`${Vt}-status-${It}`,`${Vt}-${At==="dashboard"&&"circle"||yt&&"steps"||At}`,{[`${Vt}-inline-circle`]:At==="circle"&&Fe(ht,"circle")[0]<=20,[`${Vt}-show-info`]:Ot,[`${Vt}-${ht}`]:typeof ht=="string",[`${Vt}-rtl`]:sn==="rtl"},Sn==null?void 0:Sn.className,Xe,ot,Un);return kn(ae.createElement("div",Object.assign({ref:Ee,style:Object.assign(Object.assign({},Sn==null?void 0:Sn.style),cn),className:Pe,role:"progressbar","aria-valuenow":Xt},(0,nt.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),le))}),sa=la},59810:function(be,it,ie){"use strict";ie.d(it,{default:function(){return Bt}});var ae=ie(67294),Ae=ie(74902),Ze=ie(94184),je=ie.n(Ze),Le=ie(87462),Re=ie(15671),Se=ie(43144),nt=ie(60136),Ue=ie(51630),Ce=ie(4942),dt=ie(45987),Ye=ie(74165),Ke=ie(71002),te=ie(15861),a=ie(64217);function y(se,pe){var fe="cannot ".concat(se.method," ").concat(se.action," ").concat(pe.status,"'"),ve=new Error(fe);return ve.status=pe.status,ve.method=se.method,ve.url=se.action,ve}function E(se){var pe=se.responseText||se.response;if(!pe)return pe;try{return JSON.parse(pe)}catch(fe){return pe}}function b(se){var pe=new XMLHttpRequest;se.onProgress&&pe.upload&&(pe.upload.onprogress=function(xe){xe.total>0&&(xe.percent=xe.loaded/xe.total*100),se.onProgress(xe)});var fe=new FormData;se.data&&Object.keys(se.data).forEach(function(Oe){var xe=se.data[Oe];if(Array.isArray(xe)){xe.forEach(function(De){fe.append("".concat(Oe,"[]"),De)});return}fe.append(Oe,xe)}),se.file instanceof Blob?fe.append(se.filename,se.file,se.file.name):fe.append(se.filename,se.file),pe.onerror=function(xe){se.onError(xe)},pe.onload=function(){return pe.status<200||pe.status>=300?se.onError(y(se,pe),E(pe)):se.onSuccess(E(pe),pe)},pe.open(se.method,se.action,!0),se.withCredentials&&"withCredentials"in pe&&(pe.withCredentials=!0);var ve=se.headers||{};return ve["X-Requested-With"]!==null&&pe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ve).forEach(function(Oe){ve[Oe]!==null&&pe.setRequestHeader(Oe,ve[Oe])}),pe.send(fe),{abort:function(){pe.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=ie(80334),oe=function(se,pe){if(se&&pe){var fe=Array.isArray(pe)?pe:pe.split(","),ve=se.name||"",Oe=se.type||"",xe=Oe.replace(/\/.*$/,"");return fe.some(function(De){var Be=De.trim();if(/^\*(\/\*)?$/.test(De))return!0;if(Be.charAt(0)==="."){var lt=ve.toLowerCase(),tt=Be.toLowerCase(),ct=[tt];return(tt===".jpg"||tt===".jpeg")&&(ct=[".jpg",".jpeg"]),ct.some(function(Ct){return lt.endsWith(Ct)})}return/\/\*$/.test(Be)?xe===Be.replace(/\/.*$/,""):Oe===Be?!0:/^\w+$/.test(Be)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Be,"'.Skip for check.")),!0):!1})}return!0};function ge(se,pe){var fe=se.createReader(),ve=[];function Oe(){fe.readEntries(function(xe){var De=Array.prototype.slice.apply(xe);ve=ve.concat(De);var Be=!De.length;Be?pe(ve):Oe()})}Oe()}var re=function(pe,fe,ve){var Oe=function xe(De,Be){De&&(De.path=Be||"",De.isFile?De.file(function(lt){ve(lt)&&(De.fullPath&&!lt.webkitRelativePath&&(Object.defineProperties(lt,{webkitRelativePath:{writable:!0}}),lt.webkitRelativePath=De.fullPath.replace(/^\//,""),Object.defineProperties(lt,{webkitRelativePath:{writable:!1}})),fe([lt]))}):De.isDirectory&&ge(De,function(lt){lt.forEach(function(tt){xe(tt,"".concat(Be).concat(De.name,"/"))})}))};pe.forEach(function(xe){Oe(xe.webkitGetAsEntry())})},me=re,ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ye=function(se){(0,nt.Z)(fe,se);var pe=(0,Ue.Z)(fe);function fe(){var ve;(0,Re.Z)(this,fe);for(var Oe=arguments.length,xe=new Array(Oe),De=0;De<Oe;De++)xe[De]=arguments[De];return ve=pe.call.apply(pe,[this].concat(xe)),ve.state={uid:ee()},ve.reqs={},ve.fileInput=void 0,ve._isMounted=void 0,ve.onChange=function(Be){var lt=ve.props,tt=lt.accept,ct=lt.directory,Ct=Be.target.files,we=(0,Ae.Z)(Ct).filter(function(Rt){return!ct||oe(Rt,tt)});ve.uploadFiles(we),ve.reset()},ve.onClick=function(Be){var lt=ve.fileInput;if(lt){var tt=ve.props,ct=tt.children,Ct=tt.onClick;if(ct&&ct.type==="button"){var we=lt.parentNode;we.focus(),we.querySelector("button").blur()}lt.click(),Ct&&Ct(Be)}},ve.onKeyDown=function(Be){Be.key==="Enter"&&ve.onClick(Be)},ve.onFileDrop=function(Be){var lt=ve.props.multiple;if(Be.preventDefault(),Be.type!=="dragover")if(ve.props.directory)me(Array.prototype.slice.call(Be.dataTransfer.items),ve.uploadFiles,function(ct){return oe(ct,ve.props.accept)});else{var tt=(0,Ae.Z)(Be.dataTransfer.files).filter(function(ct){return oe(ct,ve.props.accept)});lt===!1&&(tt=tt.slice(0,1)),ve.uploadFiles(tt)}},ve.uploadFiles=function(Be){var lt=(0,Ae.Z)(Be),tt=lt.map(function(ct){return ct.uid=ee(),ve.processFile(ct,lt)});Promise.all(tt).then(function(ct){var Ct=ve.props.onBatchStart;Ct==null||Ct(ct.map(function(we){var Rt=we.origin,hn=we.parsedFile;return{file:Rt,parsedFile:hn}})),ct.filter(function(we){return we.parsedFile!==null}).forEach(function(we){ve.post(we)})})},ve.processFile=function(){var Be=(0,te.Z)((0,Ye.Z)().mark(function lt(tt,ct){var Ct,we,Rt,hn,Ln,fn,en,Me,et;return(0,Ye.Z)().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(Ct=ve.props.beforeUpload,we=tt,!Ct){Ie.next=14;break}return Ie.prev=3,Ie.next=6,Ct(tt,ct);case 6:we=Ie.sent,Ie.next=12;break;case 9:Ie.prev=9,Ie.t0=Ie.catch(3),we=!1;case 12:if(we!==!1){Ie.next=14;break}return Ie.abrupt("return",{origin:tt,parsedFile:null,action:null,data:null});case 14:if(Rt=ve.props.action,typeof Rt!="function"){Ie.next=21;break}return Ie.next=18,Rt(tt);case 18:hn=Ie.sent,Ie.next=22;break;case 21:hn=Rt;case 22:if(Ln=ve.props.data,typeof Ln!="function"){Ie.next=29;break}return Ie.next=26,Ln(tt);case 26:fn=Ie.sent,Ie.next=30;break;case 29:fn=Ln;case 30:return en=((0,Ke.Z)(we)==="object"||typeof we=="string")&&we?we:tt,en instanceof File?Me=en:Me=new File([en],tt.name,{type:tt.type}),et=Me,et.uid=tt.uid,Ie.abrupt("return",{origin:tt,data:fn,parsedFile:et,action:hn});case 35:case"end":return Ie.stop()}},lt,null,[[3,9]])}));return function(lt,tt){return Be.apply(this,arguments)}}(),ve.saveFileInput=function(Be){ve.fileInput=Be},ve}return(0,Se.Z)(fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Oe){var xe=this,De=Oe.data,Be=Oe.origin,lt=Oe.action,tt=Oe.parsedFile;if(this._isMounted){var ct=this.props,Ct=ct.onStart,we=ct.customRequest,Rt=ct.name,hn=ct.headers,Ln=ct.withCredentials,fn=ct.method,en=Be.uid,Me=we||b,et={action:lt,filename:Rt,data:De,file:tt,headers:hn,withCredentials:Ln,method:fn||"post",onProgress:function(Ie){var Tt=xe.props.onProgress;Tt==null||Tt(Ie,tt)},onSuccess:function(Ie,Tt){var Mt=xe.props.onSuccess;Mt==null||Mt(Ie,tt,Tt),delete xe.reqs[en]},onError:function(Ie,Tt){var Mt=xe.props.onError;Mt==null||Mt(Ie,Tt,tt),delete xe.reqs[en]}};Ct(Be),this.reqs[en]=Me(et)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Oe){var xe=this.reqs;if(Oe){var De=Oe.uid?Oe.uid:Oe;xe[De]&&xe[De].abort&&xe[De].abort(),delete xe[De]}else Object.keys(xe).forEach(function(Be){xe[Be]&&xe[Be].abort&&xe[Be].abort(),delete xe[Be]})}},{key:"render",value:function(){var Oe,xe=this.props,De=xe.component,Be=xe.prefixCls,lt=xe.className,tt=xe.disabled,ct=xe.id,Ct=xe.style,we=xe.multiple,Rt=xe.accept,hn=xe.capture,Ln=xe.children,fn=xe.directory,en=xe.openFileDialogOnClick,Me=xe.onMouseEnter,et=xe.onMouseLeave,Je=(0,dt.Z)(xe,ue),Ie=je()((Oe={},(0,Ce.Z)(Oe,Be,!0),(0,Ce.Z)(Oe,"".concat(Be,"-disabled"),tt),(0,Ce.Z)(Oe,lt,lt),Oe)),Tt=fn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Mt=tt?{}:{onClick:en?this.onClick:function(){},onKeyDown:en?this.onKeyDown:function(){},onMouseEnter:Me,onMouseLeave:et,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(De,(0,Le.Z)({},Mt,{className:Ie,role:"button",style:Ct}),ae.createElement("input",(0,Le.Z)({},(0,a.Z)(Je,{aria:!0,data:!0}),{id:ct,disabled:tt,type:"file",ref:this.saveFileInput,onClick:function(Jt){return Jt.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Rt},Tt,{multiple:we,onChange:this.onChange},hn!=null?{capture:hn}:{})),Ln)}}]),fe}(ae.Component),Ge=ye;function $e(){}var St=function(se){(0,nt.Z)(fe,se);var pe=(0,Ue.Z)(fe);function fe(){var ve;(0,Re.Z)(this,fe);for(var Oe=arguments.length,xe=new Array(Oe),De=0;De<Oe;De++)xe[De]=arguments[De];return ve=pe.call.apply(pe,[this].concat(xe)),ve.uploader=void 0,ve.saveUploader=function(Be){ve.uploader=Be},ve}return(0,Se.Z)(fe,[{key:"abort",value:function(Oe){this.uploader.abort(Oe)}},{key:"render",value:function(){return ae.createElement(Ge,(0,Le.Z)({},this.props,{ref:this.saveUploader}))}}]),fe}(ae.Component);St.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:$e,onError:$e,onSuccess:$e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var ut=St,Gt=ut,Pt=ie(5663),Lt=ie(73935),zt=ie(53124),Wt=ie(98866),ln=ie(10110),Fn=ie(24457),Xn={icon:function(pe,fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:fe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:pe}}]}},name:"file",theme:"twotone"},Hn=Xn,Fe=ie(74643),ze=function(pe,fe){return ae.createElement(Fe.Z,(0,Le.Z)({},pe,{ref:fe,icon:Hn}))},He=ae.forwardRef(ze),bt=ie(3407),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},pt=_e,de=function(pe,fe){return ae.createElement(Fe.Z,(0,Le.Z)({},pe,{ref:fe,icon:pt}))},Qe=ae.forwardRef(de),Nt={icon:function(pe,fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:pe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:fe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:fe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:pe}}]}},name:"picture",theme:"twotone"},Qt=Nt,jt=function(pe,fe){return ae.createElement(Fe.Z,(0,Le.Z)({},pe,{ref:fe,icon:Qt}))},Mn=ae.forwardRef(jt),En=ie(38379),$t=ie(57838),Wn=ie(33603),Zn=ie(96159),Dn=ie(71577);function Tn(se){return Object.assign(Object.assign({},se),{lastModified:se.lastModified,lastModifiedDate:se.lastModifiedDate,name:se.name,size:se.size,type:se.type,uid:se.uid,percent:0,originFileObj:se})}function An(se,pe){const fe=(0,Ae.Z)(pe),ve=fe.findIndex(Oe=>{let{uid:xe}=Oe;return xe===se.uid});return ve===-1?fe.push(se):fe[ve]=se,fe}function Zt(se,pe){const fe=se.uid!==void 0?"uid":"name";return pe.filter(ve=>ve[fe]===se[fe])[0]}function qt(se,pe){const fe=se.uid!==void 0?"uid":"name",ve=pe.filter(Oe=>Oe[fe]!==se[fe]);return ve.length===pe.length?null:ve}const un=function(){const pe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ve=pe[pe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ve)||[""])[0]},kt=se=>se.indexOf("image/")===0,Vn=se=>{if(se.type&&!se.thumbUrl)return kt(se.type);const pe=se.thumbUrl||se.url||"",fe=un(pe);return/^data:image\//.test(pe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(fe)?!0:!(/^data:/.test(pe)||fe)},Bn=200;function da(se){return new Promise(pe=>{if(!se.type||!kt(se.type)){pe("");return}const fe=document.createElement("canvas");fe.width=Bn,fe.height=Bn,fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Bn}px; height: ${Bn}px; z-index: 9999; display: none;`,document.body.appendChild(fe);const ve=fe.getContext("2d"),Oe=new Image;if(Oe.onload=()=>{const{width:xe,height:De}=Oe;let Be=Bn,lt=Bn,tt=0,ct=0;xe>De?(lt=De*(Bn/xe),ct=-(lt-Be)/2):(Be=xe*(Bn/De),tt=-(Be-lt)/2),ve.drawImage(Oe,tt,ct,Be,lt);const Ct=fe.toDataURL();document.body.removeChild(fe),window.URL.revokeObjectURL(Oe.src),pe(Ct)},Oe.crossOrigin="anonymous",se.type.startsWith("image/svg+xml")){const xe=new FileReader;xe.onload=()=>{xe.result&&(Oe.src=xe.result)},xe.readAsDataURL(se)}else if(se.type.startsWith("image/gif")){const xe=new FileReader;xe.onload=()=>{xe.result&&pe(xe.result)},xe.readAsDataURL(se)}else Oe.src=window.URL.createObjectURL(se)})}var la=ie(84249),sa=ie(90674),he=ie(99569),Ee=ie(38703),Te=ie(83062),ot=ae.forwardRef((se,pe)=>{let{prefixCls:fe,className:ve,style:Oe,locale:xe,listType:De,file:Be,items:lt,progress:tt,iconRender:ct,actionIconRender:Ct,itemRender:we,isImgUrl:Rt,showPreviewIcon:hn,showRemoveIcon:Ln,showDownloadIcon:fn,previewIcon:en,removeIcon:Me,downloadIcon:et,onPreview:Je,onDownload:Ie,onClose:Tt}=se;var Mt,tn;const{status:Jt}=Be,[mn,Yn]=ae.useState(Jt);ae.useEffect(()=>{Jt!=="removed"&&Yn(Jt)},[Jt]);const[ta,ua]=ae.useState(!1);ae.useEffect(()=>{const on=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(on)}},[]);const na=ct(Be);let $n=ae.createElement("div",{className:`${fe}-icon`},na);if(De==="picture"||De==="picture-card"||De==="picture-circle")if(mn==="uploading"||!Be.thumbUrl&&!Be.url){const on=je()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:mn!=="uploading"});$n=ae.createElement("div",{className:on},na)}else{const on=Rt!=null&&Rt(Be)?ae.createElement("img",{src:Be.thumbUrl||Be.url,alt:Be.name,className:`${fe}-list-item-image`,crossOrigin:Be.crossOrigin}):na,gn=je()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Rt&&!Rt(Be)});$n=ae.createElement("a",{className:gn,onClick:oa=>Je(Be,oa),href:Be.url||Be.thumbUrl,target:"_blank",rel:"noopener noreferrer"},on)}const nn=je()(`${fe}-list-item`,`${fe}-list-item-${mn}`),ra=typeof Be.linkProps=="string"?JSON.parse(Be.linkProps):Be.linkProps,ia=Ln?Ct((typeof Me=="function"?Me(Be):Me)||ae.createElement(la.Z,null),()=>Tt(Be),fe,xe.removeFile):null,_n=fn&&mn==="done"?Ct((typeof et=="function"?et(Be):et)||ae.createElement(sa.Z,null),()=>Ie(Be),fe,xe.downloadFile):null,Kn=De!=="picture-card"&&De!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:je()(`${fe}-list-item-actions`,{picture:De==="picture"})},_n,ia),xn=je()(`${fe}-list-item-name`),aa=Be.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:xn,title:Be.name},ra,{href:Be.url,onClick:on=>Je(Be,on)}),Be.name),Kn]:[ae.createElement("span",{key:"view",className:xn,onClick:on=>Je(Be,on),title:Be.name},Be.name),Kn],Ft={pointerEvents:"none",opacity:.5},an=hn?ae.createElement("a",{href:Be.url||Be.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Be.url||Be.thumbUrl?void 0:Ft,onClick:on=>Je(Be,on),title:xe.previewFile},typeof en=="function"?en(Be):en||ae.createElement(he.Z,null)):null,In=(De==="picture-card"||De==="picture-circle")&&mn!=="uploading"&&ae.createElement("span",{className:`${fe}-list-item-actions`},an,mn==="done"&&_n,ia),{getPrefixCls:Gn}=ae.useContext(zt.E_),Cn=Gn(),Jn=ae.createElement("div",{className:nn},$n,aa,In,ta&&ae.createElement(En.default,{motionName:`${Cn}-fade`,visible:mn==="uploading",motionDeadline:2e3},on=>{let{className:gn}=on;const oa="percent"in Be?ae.createElement(Ee.Z,Object.assign({},tt,{type:"line",percent:Be.percent,"aria-label":Be["aria-label"],"aria-labelledby":Be["aria-labelledby"]})):null;return ae.createElement("div",{className:je()(`${fe}-list-item-progress`,gn)},oa)})),Qn=Be.response&&typeof Be.response=="string"?Be.response:((Mt=Be.error)===null||Mt===void 0?void 0:Mt.statusText)||((tn=Be.error)===null||tn===void 0?void 0:tn.message)||xe.uploadError,ca=mn==="error"?ae.createElement(Te.Z,{title:Qn,getPopupContainer:on=>on.parentNode},Jn):Jn;return ae.createElement("div",{className:je()(`${fe}-list-item-container`,ve),style:Oe,ref:pe},we?we(ca,Be,lt,{download:Ie.bind(null,Be),preview:Je.bind(null,Be),remove:Tt.bind(null,Be)}):ca)});const yt=(se,pe)=>{const{listType:fe="text",previewFile:ve=da,onPreview:Oe,onDownload:xe,onRemove:De,locale:Be,iconRender:lt,isImageUrl:tt=Vn,prefixCls:ct,items:Ct=[],showPreviewIcon:we=!0,showRemoveIcon:Rt=!0,showDownloadIcon:hn=!1,removeIcon:Ln,previewIcon:fn,downloadIcon:en,progress:Me={size:[-1,2],showInfo:!1},appendAction:et,appendActionVisible:Je=!0,itemRender:Ie,disabled:Tt}=se,Mt=(0,$t.Z)(),[tn,Jt]=ae.useState(!1);ae.useEffect(()=>{fe!=="picture"&&fe!=="picture-card"&&fe!=="picture-circle"||(Ct||[]).forEach(Ft=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ft.originFileObj instanceof File||Ft.originFileObj instanceof Blob)||Ft.thumbUrl!==void 0||(Ft.thumbUrl="",ve&&ve(Ft.originFileObj).then(an=>{Ft.thumbUrl=an||"",Mt()}))})},[fe,Ct,ve]),ae.useEffect(()=>{Jt(!0)},[]);const mn=(Ft,an)=>{if(Oe)return an==null||an.preventDefault(),Oe(Ft)},Yn=Ft=>{typeof xe=="function"?xe(Ft):Ft.url&&window.open(Ft.url)},ta=Ft=>{De==null||De(Ft)},ua=Ft=>{if(lt)return lt(Ft,fe);const an=Ft.status==="uploading",In=tt&&tt(Ft)?ae.createElement(Mn,null):ae.createElement(He,null);let Gn=an?ae.createElement(bt.Z,null):ae.createElement(Qe,null);return fe==="picture"?Gn=an?ae.createElement(bt.Z,null):In:(fe==="picture-card"||fe==="picture-circle")&&(Gn=an?Be.uploading:In),Gn},na=(Ft,an,In,Gn)=>{const Cn={type:"text",size:"small",title:Gn,onClick:Jn=>{an(),(0,Zn.l$)(Ft)&&Ft.props.onClick&&Ft.props.onClick(Jn)},className:`${In}-list-item-action`,disabled:Tt};if((0,Zn.l$)(Ft)){const Jn=(0,Zn.Tm)(Ft,Object.assign(Object.assign({},Ft.props),{onClick:()=>{}}));return ae.createElement(Dn.ZP,Object.assign({},Cn,{icon:Jn}))}return ae.createElement(Dn.ZP,Object.assign({},Cn),ae.createElement("span",null,Ft))};ae.useImperativeHandle(pe,()=>({handlePreview:mn,handleDownload:Yn}));const{getPrefixCls:$n}=ae.useContext(zt.E_),nn=$n("upload",ct),ra=$n(),ia=je()(`${nn}-list`,`${nn}-list-${fe}`),_n=(0,Ae.Z)(Ct.map(Ft=>({key:Ft.uid,file:Ft})));let xn={motionDeadline:2e3,motionName:`${nn}-${fe==="picture-card"||fe==="picture-circle"?"animate-inline":"animate"}`,keys:_n,motionAppear:tn};const aa=ae.useMemo(()=>{const Ft=Object.assign({},(0,Wn.Z)(ra));return delete Ft.onAppearEnd,delete Ft.onEnterEnd,delete Ft.onLeaveEnd,Ft},[ra]);return fe!=="picture-card"&&fe!=="picture-circle"&&(xn=Object.assign(Object.assign({},aa),xn)),ae.createElement("div",{className:ia},ae.createElement(En.CSSMotionList,Object.assign({},xn,{component:!1}),Ft=>{let{key:an,file:In,className:Gn,style:Cn}=Ft;return ae.createElement(ot,{key:an,locale:Be,prefixCls:nn,className:Gn,style:Cn,file:In,items:Ct,progress:Me,listType:fe,isImgUrl:tt,showPreviewIcon:we,showRemoveIcon:Rt,showDownloadIcon:hn,removeIcon:Ln,previewIcon:fn,downloadIcon:en,iconRender:ua,actionIconRender:na,itemRender:Ie,onPreview:mn,onDownload:Yn,onClose:ta})}),et&&ae.createElement(En.default,Object.assign({},xn,{visible:Je,forceRender:!0}),Ft=>{let{className:an,style:In}=Ft;return(0,Zn.Tm)(et,Gn=>({className:je()(Gn.className,an),style:Object.assign(Object.assign(Object.assign({},In),{pointerEvents:an?"none":void 0}),Gn.style)}))}))};var vt=ae.forwardRef(yt),ht=ie(14747),Ot=ie(33507),At=ie(67968),Kt=ie(45503),cn=se=>{const{componentCls:pe,iconCls:fe}=se;return{[`${pe}-wrapper`]:{[`${pe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[pe]:{padding:`${se.padding}px 0`},[`${pe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${pe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${pe}-disabled):hover`]:{borderColor:se.colorPrimaryHover},[`p${pe}-drag-icon`]:{marginBottom:se.margin,[fe]:{color:se.colorPrimary,fontSize:se.uploadThumbnailSize}},[`p${pe}-text`]:{margin:`0 0 ${se.marginXXS}px`,color:se.colorTextHeading,fontSize:se.fontSizeLG},[`p${pe}-hint`]:{color:se.colorTextDescription,fontSize:se.fontSize},[`&${pe}-disabled`]:{cursor:"not-allowed",[`p${pe}-drag-icon ${fe},
p${pe}-text,
p${pe}-hint
`]:{color:se.colorTextDisabled}}}}}},Xt=se=>{const{componentCls:pe,antCls:fe,iconCls:ve,fontSize:Oe,lineHeight:xe}=se,De=`${pe}-list-item`,Be=`${De}-actions`,lt=`${De}-action`,tt=Math.round(Oe*xe);return{[`${pe}-wrapper`]:{[`${pe}-list`]:Object.assign(Object.assign({},(0,ht.dF)()),{lineHeight:se.lineHeight,[De]:{position:"relative",height:se.lineHeight*Oe,marginTop:se.marginXS,fontSize:Oe,display:"flex",alignItems:"center",transition:`background-color ${se.motionDurationSlow}`,"&:hover":{backgroundColor:se.controlItemBgHover},[`${De}-name`]:Object.assign(Object.assign({},ht.vS),{padding:`0 ${se.paddingXS}px`,lineHeight:xe,flex:"auto",transition:`all ${se.motionDurationSlow}`}),[Be]:{[lt]:{opacity:0},[`${lt}${fe}-btn-sm`]:{height:tt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${lt}:focus-visible,
&.picture ${lt}
`]:{opacity:1},[ve]:{color:se.actionsColor,transition:`all ${se.motionDurationSlow}`},[`&:hover ${ve}`]:{color:se.colorText}},[`${pe}-icon ${ve}`]:{color:se.colorTextDescription,fontSize:Oe},[`${De}-progress`]:{position:"absolute",bottom:-se.uploadProgressOffset,width:"100%",paddingInlineStart:Oe+se.paddingXS,fontSize:Oe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${De}:hover ${lt}`]:{opacity:1,color:se.colorText},[`${De}-error`]:{color:se.colorError,[`${De}-name, ${pe}-icon ${ve}`]:{color:se.colorError},[Be]:{[`${ve}, ${ve}:hover`]:{color:se.colorError},[lt]:{opacity:1}}},[`${pe}-list-item-container`]:{transition:`opacity ${se.motionDurationSlow}, height ${se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},It=ie(45930),yn=ie(16932);const sn=new It.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Sn=new It.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var kn=se=>{const{componentCls:pe}=se,fe=`${pe}-animate-inline`;return[{[`${pe}-wrapper`]:{[`${fe}-appear, ${fe}-enter, ${fe}-leave`]:{animationDuration:se.motionDurationSlow,animationTimingFunction:se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${fe}-appear, ${fe}-enter`]:{animationName:sn},[`${fe}-leave`]:{animationName:Sn}}},{[`${pe}-wrapper`]:(0,yn.J$)(se)},sn,Sn]},Un=ie(47448),On=ie(84780);const zn=se=>{const{componentCls:pe,iconCls:fe,uploadThumbnailSize:ve,uploadProgressOffset:Oe}=se,xe=`${pe}-list`,De=`${xe}-item`;return{[`${pe}-wrapper`]:{[`
${xe}${xe}-picture,
${xe}${xe}-picture-card,
${xe}${xe}-picture-circle
`]:{[De]:{position:"relative",height:ve+se.lineWidth*2+se.paddingXS*2,padding:se.paddingXS,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusLG,"&:hover":{background:"transparent"},[`${De}-thumbnail`]:Object.assign(Object.assign({},ht.vS),{width:ve,height:ve,lineHeight:`${ve+se.paddingSM}px`,textAlign:"center",flex:"none",[fe]:{fontSize:se.fontSizeHeading2,color:se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${De}-progress`]:{bottom:Oe,width:`calc(100% - ${se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ve+se.paddingXS}},[`${De}-error`]:{borderColor:se.colorError,[`${De}-thumbnail ${fe}`]:{[`svg path[fill='${Un.blue[0]}']`]:{fill:se.colorErrorBg},[`svg path[fill='${Un.blue.primary}']`]:{fill:se.colorError}}},[`${De}-uploading`]:{borderStyle:"dashed",[`${De}-name`]:{marginBottom:Oe}}},[`${xe}${xe}-picture-circle ${De}`]:{[`&, &::before, ${De}-thumbnail`]:{borderRadius:"50%"}}}}},ea=se=>{const{componentCls:pe,iconCls:fe,fontSizeLG:ve,colorTextLightSolid:Oe}=se,xe=`${pe}-list`,De=`${xe}-item`,Be=se.uploadPicCardSize;return{[`
${pe}-wrapper${pe}-picture-card-wrapper,
${pe}-wrapper${pe}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,ht.dF)()),{display:"inline-block",width:"100%",[`${pe}${pe}-select`]:{width:Be,height:Be,marginInlineEnd:se.marginXS,marginBottom:se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[`> ${pe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${pe}-disabled):hover`]:{borderColor:se.colorPrimary}},[`${xe}${xe}-picture-card, ${xe}${xe}-picture-circle`]:{[`${xe}-item-container`]:{display:"inline-block",width:Be,height:Be,marginBlock:`0 ${se.marginXS}px`,marginInline:`0 ${se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[De]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se.paddingXS*2}px)`,height:`calc(100% - ${se.paddingXS*2}px)`,backgroundColor:se.colorBgMask,opacity:0,transition:`all ${se.motionDurationSlow}`,content:'" "'}},[`${De}:hover`]:{[`&::before, ${De}-actions`]:{opacity:1}},[`${De}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${se.motionDurationSlow}`,[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{zIndex:10,width:ve,margin:`0 ${se.marginXXS}px`,fontSize:ve,cursor:"pointer",transition:`all ${se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${De}-actions, ${De}-actions:hover`]:{[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{color:new On.C(Oe).setAlpha(.65).toRgbString(),"&:hover":{color:Oe}}},[`${De}-thumbnail, ${De}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${De}-name`]:{display:"none",textAlign:"center"},[`${De}-file + ${De}-name`]:{position:"absolute",bottom:se.margin,display:"block",width:`calc(100% - ${se.paddingXS*2}px)`},[`${De}-uploading`]:{[`&${De}`]:{backgroundColor:se.colorFillAlter},[`&::before, ${fe}-eye, ${fe}-download, ${fe}-delete`]:{display:"none"}},[`${De}-progress`]:{bottom:se.marginXL,width:`calc(100% - ${se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${pe}-wrapper${pe}-picture-circle-wrapper`]:{[`${pe}${pe}-select`]:{borderRadius:"50%"}}}};var Pe=se=>{const{componentCls:pe}=se;return{[`${pe}-rtl`]:{direction:"rtl"}}};const ce=se=>{const{componentCls:pe,colorTextDisabled:fe}=se;return{[`${pe}-wrapper`]:Object.assign(Object.assign({},(0,ht.Wf)(se)),{[pe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${pe}-select`]:{display:"inline-block"},[`${pe}-disabled`]:{color:fe,cursor:"not-allowed"}})}};var Ne=(0,At.Z)("Upload",se=>{const{fontSizeHeading3:pe,fontSize:fe,lineHeight:ve,lineWidth:Oe,controlHeightLG:xe}=se,De=Math.round(fe*ve),Be=(0,Kt.TS)(se,{uploadThumbnailSize:pe*2,uploadProgressOffset:De/2+Oe,uploadPicCardSize:xe*2.55});return[ce(Be),cn(Be),zn(Be),ea(Be),Xt(Be),kn(Be),Pe(Be),(0,Ot.Z)(Be)]},se=>({actionsColor:se.colorTextDescription})),qe=function(se,pe,fe,ve){function Oe(xe){return xe instanceof fe?xe:new fe(function(De){De(xe)})}return new(fe||(fe=Promise))(function(xe,De){function Be(ct){try{tt(ve.next(ct))}catch(Ct){De(Ct)}}function lt(ct){try{tt(ve.throw(ct))}catch(Ct){De(Ct)}}function tt(ct){ct.done?xe(ct.value):Oe(ct.value).then(Be,lt)}tt((ve=ve.apply(se,pe||[])).next())})};const at=`__LIST_IGNORE_${Date.now()}__`,Dt=(se,pe)=>{const{fileList:fe,defaultFileList:ve,onRemove:Oe,showUploadList:xe=!0,listType:De="text",onPreview:Be,onDownload:lt,onChange:tt,onDrop:ct,previewFile:Ct,disabled:we,locale:Rt,iconRender:hn,isImageUrl:Ln,progress:fn,prefixCls:en,className:Me,type:et="select",children:Je,style:Ie,itemRender:Tt,maxCount:Mt,data:tn={},multiple:Jt=!1,action:mn="",accept:Yn="",supportServerRender:ta=!0,rootClassName:ua}=se,na=ae.useContext(Wt.Z),$n=we!=null?we:na,[nn,ra]=(0,Pt.Z)(ve||[],{value:fe,postState:mt=>mt!=null?mt:[]}),[ia,_n]=ae.useState("drop"),Kn=ae.useRef(null);ae.useMemo(()=>{const mt=Date.now();(fe||[]).forEach((wt,Ht)=>{!wt.uid&&!Object.isFrozen(wt)&&(wt.uid=`__AUTO__${mt}_${Ht}__`)})},[fe]);const xn=(mt,wt,Ht)=>{let ft=(0,Ae.Z)(wt),Ut=!1;Mt===1?ft=ft.slice(-1):Mt&&(Ut=ft.length>Mt,ft=ft.slice(0,Mt)),(0,Lt.flushSync)(()=>{ra(ft)});const wn={file:mt,fileList:ft};Ht&&(wn.event=Ht),(!Ut||ft.some(qn=>qn.uid===mt.uid))&&(0,Lt.flushSync)(()=>{tt==null||tt(wn)})},aa=(mt,wt)=>qe(void 0,void 0,void 0,function*(){const{beforeUpload:Ht,transformFile:ft}=se;let Ut=mt;if(Ht){const wn=yield Ht(mt,wt);if(wn===!1)return!1;if(delete mt[at],wn===at)return Object.defineProperty(mt,at,{value:!0,configurable:!0}),!1;typeof wn=="object"&&wn&&(Ut=wn)}return ft&&(Ut=yield ft(Ut)),Ut}),Ft=mt=>{const wt=mt.filter(Ut=>!Ut.file[at]);if(!wt.length)return;const Ht=wt.map(Ut=>Tn(Ut.file));let ft=(0,Ae.Z)(nn);Ht.forEach(Ut=>{ft=An(Ut,ft)}),Ht.forEach((Ut,wn)=>{let qn=Ut;if(wt[wn].parsedFile)Ut.status="uploading";else{const{originFileObj:ma}=Ut;let jn;try{jn=new File([ma],ma.name,{type:ma.type})}catch(La){jn=new Blob([ma],{type:ma.type}),jn.name=ma.name,jn.lastModifiedDate=new Date,jn.lastModified=new Date().getTime()}jn.uid=Ut.uid,qn=jn}xn(qn,ft)})},an=(mt,wt,Ht)=>{try{typeof mt=="string"&&(mt=JSON.parse(mt))}catch(wn){}if(!Zt(wt,nn))return;const ft=Tn(wt);ft.status="done",ft.percent=100,ft.response=mt,ft.xhr=Ht;const Ut=An(ft,nn);xn(ft,Ut)},In=(mt,wt)=>{if(!Zt(wt,nn))return;const Ht=Tn(wt);Ht.status="uploading",Ht.percent=mt.percent;const ft=An(Ht,nn);xn(Ht,ft,mt)},Gn=(mt,wt,Ht)=>{if(!Zt(Ht,nn))return;const ft=Tn(Ht);ft.error=mt,ft.response=wt,ft.status="error";const Ut=An(ft,nn);xn(ft,Ut)},Cn=mt=>{let wt;Promise.resolve(typeof Oe=="function"?Oe(mt):Oe).then(Ht=>{var ft;if(Ht===!1)return;const Ut=qt(mt,nn);Ut&&(wt=Object.assign(Object.assign({},mt),{status:"removed"}),nn==null||nn.forEach(wn=>{const qn=wt.uid!==void 0?"uid":"name";wn[qn]===wt[qn]&&!Object.isFrozen(wn)&&(wn.status="removed")}),(ft=Kn.current)===null||ft===void 0||ft.abort(wt),xn(wt,Ut))})},Jn=mt=>{_n(mt.type),mt.type==="drop"&&(ct==null||ct(mt))};ae.useImperativeHandle(pe,()=>({onBatchStart:Ft,onSuccess:an,onProgress:In,onError:Gn,fileList:nn,upload:Kn.current}));const{getPrefixCls:Qn,direction:ca,upload:on}=ae.useContext(zt.E_),gn=Qn("upload",en),oa=Object.assign(Object.assign({onBatchStart:Ft,onError:Gn,onProgress:In,onSuccess:an},se),{data:tn,multiple:Jt,action:mn,accept:Yn,supportServerRender:ta,prefixCls:gn,disabled:$n,beforeUpload:aa,onChange:void 0});delete oa.className,delete oa.style,(!Je||$n)&&delete oa.id;const[Pa,fa]=Ne(gn),[wa]=(0,ln.Z)("Upload",Fn.Z.Upload),{showRemoveIcon:Sa,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:va,previewIcon:rt,downloadIcon:We}=typeof xe=="boolean"?{}:xe,Ve=(mt,wt)=>xe?ae.createElement(vt,{prefixCls:gn,listType:De,items:nn,previewFile:Ct,onPreview:Be,onDownload:lt,onRemove:Cn,showRemoveIcon:!$n&&Sa,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:va,previewIcon:rt,downloadIcon:We,iconRender:hn,locale:Object.assign(Object.assign({},wa),Rt),isImageUrl:Ln,progress:fn,appendAction:mt,appendActionVisible:wt,itemRender:Tt,disabled:$n}):mt,gt=je()(`${gn}-wrapper`,Me,ua,fa,on==null?void 0:on.className,{[`${gn}-rtl`]:ca==="rtl",[`${gn}-picture-card-wrapper`]:De==="picture-card",[`${gn}-picture-circle-wrapper`]:De==="picture-circle"}),_t=Object.assign(Object.assign({},on==null?void 0:on.style),Ie);if(et==="drag"){const mt=je()(fa,gn,`${gn}-drag`,{[`${gn}-drag-uploading`]:nn.some(wt=>wt.status==="uploading"),[`${gn}-drag-hover`]:ia==="dragover",[`${gn}-disabled`]:$n,[`${gn}-rtl`]:ca==="rtl"});return Pa(ae.createElement("span",{className:gt},ae.createElement("div",{className:mt,style:_t,onDrop:Jn,onDragOver:Jn,onDragLeave:Jn},ae.createElement(Gt,Object.assign({},oa,{ref:Kn,className:`${gn}-btn`}),ae.createElement("div",{className:`${gn}-drag-container`},Je))),Ve()))}const rn=je()(gn,`${gn}-select`,{[`${gn}-disabled`]:$n}),pn=(mt=>ae.createElement("div",{className:rn,style:mt},ae.createElement(Gt,Object.assign({},oa,{ref:Kn}))))(Je?void 0:{display:"none"});return Pa(De==="picture-card"||De==="picture-circle"?ae.createElement("span",{className:gt},Ve(pn,!!Je)):ae.createElement("span",{className:gt},pn,Ve()))};var st=ae.forwardRef(Dt),Yt=function(se,pe){var fe={};for(var ve in se)Object.prototype.hasOwnProperty.call(se,ve)&&pe.indexOf(ve)<0&&(fe[ve]=se[ve]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ve=Object.getOwnPropertySymbols(se);Oe<ve.length;Oe++)pe.indexOf(ve[Oe])<0&&Object.prototype.propertyIsEnumerable.call(se,ve[Oe])&&(fe[ve[Oe]]=se[ve[Oe]]);return fe},Pn=ae.forwardRef((se,pe)=>{var{style:fe,height:ve}=se,Oe=Yt(se,["style","height"]);return ae.createElement(st,Object.assign({ref:pe},Oe,{type:"drag",style:Object.assign(Object.assign({},fe),{height:ve})}))});const ke=st;ke.Dragger=Pn,ke.LIST_IGNORE=at;var Bt=ke},64217:function(be,it,ie){"use strict";ie.d(it,{Z:function(){return nt}});var ae=ie(1413),Ae=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Ze=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,je="".concat(Ae," ").concat(Ze).split(/[\s\n]+/),Le="aria-",Re="data-";function Se(Ue,Ce){return Ue.indexOf(Ce)===0}function nt(Ue){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt;Ce===!1?dt={aria:!0,data:!0,attr:!0}:Ce===!0?dt={aria:!0}:dt=(0,ae.Z)({},Ce);var Ye={};return Object.keys(Ue).forEach(function(Ke){(dt.aria&&(Ke==="role"||Se(Ke,Le))||dt.data&&Se(Ke,Re)||dt.attr&&je.includes(Ke))&&(Ye[Ke]=Ue[Ke])}),Ye}}}]);