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

132 lines
340 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4496],{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(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Be.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Be.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Be.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,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[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var it=[];function ie(ne,a){var y=it.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=it.pop();return ne===void 0?new go.Point:ne}function Ae(ne){it.push(ne)}function Ke(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,re=NaN,se=NaN;if(oe===0)if(ge===0)ne===y&&(re=ne,se=a);else{var le=(x-ee)/ge,Fe=x-le*b;re=ne,se=le*re+Fe}else if(ge===0){var Ge=(a-E)/oe,qe=a-Ge*ne;re=b,se=Ge*re+qe}else{var Ge=(a-E)/oe,le=(x-ee)/ge,qe=a-Ge*ne,Fe=x-le*b;re=(Fe-qe)/(Ge-le),se=Ge*re+qe}return te.x=re,te.y=se,te}function We(ne,a,y,E,b,x,z,ee,te,oe,ge,re,se,le){var Fe=1-te,Ge=te,qe=ne*Fe+y*Ge,ut=a*Fe+E*Ge,Nt=y*Fe+b*Ge,ht=E*Fe+x*Ge,gt=b*Fe+z*Ge,ct=x*Fe+ee*Ge,yn=qe*Fe+Nt*Ge,Pn=ut*Fe+ht*Ge,wn=Nt*Fe+gt*Ge,Fn=ht*Fe+ct*Ge,ea=yn*Fe+wn*Ge,Xn=Pn*Fe+Fn*Ge;oe.x=qe,oe.y=ut,ge.x=yn,ge.y=Pn,re.x=ea,re.y=Xn,se.x=wn,se.y=Fn,le.x=gt,le.y=ct}var Le=new go.Spot(.156,.156),$e=new go.Spot(.844,.844),he=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*he,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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=$e,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,he*a,0,a,(1-he)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,he*y,(1-he)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,he*y,he*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-he)*a,0,0,(1-he)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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 et=[];function Me(){var ne=et.pop();return ne===void 0?[]:ne}function Ie(ne){ne.length=0,et.push(ne)}function Re(ne){for(var a=Me(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Je(ne){var a=Ze(ne),y=Me();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 Ie(a),y}function Ze(ne){for(var a=Re(ne),y=Me(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ie(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=Re(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()),Ie(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Ze(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Ze(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Ze(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Ze(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Ze(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Ze(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ie(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Je(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(),Ie(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Je(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(),Ie(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Je(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(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Je(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(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Je(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(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Je(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(),Ie(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(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.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(ne,a,y){var E=ne?ne.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=$e,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,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(ne,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(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.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(ne,a,y){var E=he/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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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),te=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(te,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-te,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-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,he*a,0,a,(.5-he/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+he/2)*y,he*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,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(ne,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(ne,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(ne,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,te=x*he;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*he,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*he,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.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=he*.4;var oe=ae(),ge=ae(),re=ae(),se=ae();We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,re,se,se);var le=ae(),Fe=ae(),Ge=ae();We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ge,le,Fe);var qe=ae(),ut=ae(),Nt=ae();We(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,qe,ut,Nt,se,se);var ht=ae(),gt=ae(),ct=ae();return We(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,ct,ht,gt),te.add(new go.PathSegment(go.PathSegment.Move,ct.x*a,ct.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ht.x*a,ht.y*y,gt.x*a,gt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.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)),te.add(new go.PathSegment(go.PathSegment.Line,ct.x*a,ct.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Nt.x*a,Nt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,Fe.x*a,Fe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*a,Nt.y*y,qe.x*a,qe.y*y,ut.x*a,ut.y*y).close()),Ae(oe),Ae(ge),Ae(re),Ae(se),Ae(le),Ae(Fe),Ae(Ge),Ae(qe),Ae(ut),Ae(Nt),Ae(ht),Ae(gt),Ae(ct),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,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(ne,a,y){var E=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,re,oe,te,te),se.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 le=ie(oe.x,oe.y);We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,re);var Fe=ie(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.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=he*.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 qe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(qe),Ae(te),Ae(oe),Ae(ge),Ae(re),Ae(le),Ae(Fe),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(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*he,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.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)),te.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)),te.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)),te.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)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*he;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.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)),te.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)),te.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)),te.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 te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.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()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Ae(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.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()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Ae(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,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(ne,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(ne,a,y){var E=ne?ne.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 te=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Ae(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=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,te)),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,te)),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=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(re.x,re.y),re=Ke(.7,te/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(ne,a,y){var E=ne?ne.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 te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Ae(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=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,te)),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,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),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=Ke(.7,te/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(ne,a,y){var E=ne?ne.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=Ke(.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(ne,a,y){var E=ne?ne.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=Ke(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(ne,a,y){var E=ne?ne.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 te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Ae(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.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 te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Ae(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.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(ne,a,y){var E=new go.Geometry,b=he*.5,x=he*.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(ne,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(ne,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(ne,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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=he*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,he*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,he*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-he*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-he*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-he*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-he*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=he*.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,he*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,he*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-he*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-he*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-he*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-he*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=he*.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-he*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-he*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,he*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,he*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+he*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+he*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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=he*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-he*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-he*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,he*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,he*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-he*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-he*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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=he*b,ee=he*x,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var re=.05,se=he*re;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,oe*y,(te+se)*a,(oe-re)*y,(te+re)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,se=he*re,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-se)*y,(te+se)*a,(oe-re)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-se)*a,(oe-re)*y,(te-re)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,se=he*re,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-se)*y,(te+se)*a,(oe-re)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-se)*a,(oe-re)*y,(te-re)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,se=he*re,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-se)*y,(te+se)*a,(oe-re)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-se)*a,(oe-re)*y,(te-re)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,se=he*re,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te-re)*a,(oe-se)*y,(te-se)*a,(oe-re)*y)),le.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(ne,a,y){var E=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=he*.5,x=he*.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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.5,x=he*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=he*.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=he*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=he*.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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.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 te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,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(ne,a,y){var E=new go.Geometry,b=he*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.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(ne,a,y){var E=new go.Geometry,b=he*.5,x=he*.4,z=he*.1,ee=.1,te=.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((te+ee)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+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(ne,a,y){var E=new go.Geometry,b=.5,x=he*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.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=he*.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(ne,a,y){var E=new go.Geometry,b=.5,x=he*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.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(ne,a,y){var E=new go.Geometry,b=.5,x=he*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.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=he*.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(ne,a,y){var E=new go.Geometry,b=.5,x=he*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.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(ne,a,y){var E=new go.Geometry,b=he*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=he*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,re=(x-y)/2,se=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te-ee)*a+ge,(oe-z)*y+re,(te-z)*a+ge,(oe-ee)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+re,te*a+ge,(oe-ee)*y+re,(te-ee+z*.5)*a+ge,(oe-z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te-ee+z*.5)*a+ge,(oe+z)*y+re,te*a+ge,(oe+ee)*y+re).close()),z=he*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te-ee)*a+ge,(oe-z)*y+re,(te-z)*a+ge,(oe-ee)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+re,te*a+ge,(oe-ee)*y+re,(te-ee+z*.5)*a+ge,(oe-z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te-ee+z*.5)*a+ge,(oe+z)*y+re,te*a+ge,(oe+ee)*y+re).close()),z=he*.2,ee=.2,te=.5,oe=.5;var Fe=new go.PathFigure((te-ee)*a+ge,oe*y+re,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te-ee)*a+ge,(oe-z)*y+re,(te-z)*a+ge,(oe-ee)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+re,(te+z)*a+ge,(oe-ee)*y+re,(te+ee)*a+ge,(oe-z)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te+ee)*a+ge,(oe+z)*y+re,(te+z)*a+ge,(oe+ee)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),z=he*.4,ee=.4,te=.8,oe=.5;var Ge=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+re,(te+z)*a+ge,(oe-ee)*y+re,(te+ee)*a+ge,(oe-z)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te+ee)*a+ge,(oe+z)*y+re,(te+z)*a+ge,(oe+ee)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+re,te*a+ge,(oe+ee)*y+re,(te+ee-z*.5)*a+ge,(oe+z)*y+re)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te+ee-z*.5)*a+ge,(oe-z)*y+re,te*a+ge,(oe-ee)*y+re).close()),z=he*.8,ee=.8,te=1,oe=.5;var qe=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);return E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+re,(te+z)*a+ge,(oe-ee)*y+re,(te+ee)*a+ge,(oe-z)*y+re)),qe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+re,(te+ee)*a+ge,(oe+z)*y+re,(te+z)*a+ge,(oe+ee)*y+re)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+re,te*a+ge,(oe+ee)*y+re,(te+ee-z*.5)*a+ge,(oe+z)*y+re)),qe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+re,(te+ee-z*.5)*a+ge,(oe-z)*y+re,te*a+ge,(oe-ee)*y+re).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=he*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae();We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,re);var se=ie(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),We(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,te,te),le.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=he*.3,x=.3,We(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),We(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,re),le.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 le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Ae(te),Ae(oe),Ae(ge),Ae(re),Ae(se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,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,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*he,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,se=.5,le=0,Fe=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Fe.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)),Fe.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)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ge*.5,se=z,le=z,Fe=ge*se,Ge=ge*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(Fe+se)/2)*a,(te+(le+Ge)/2)*y,(ee-se)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ge)*y,(ee-Fe)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+Fe)*a,(te-le)*y,(ee+se)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ge)*y,(ee+(Fe+se)/2)*a,(te+(le+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 qe=new go.PathFigure(.2*a,y,!1);E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ut=new go.PathFigure(.8*a,y,!1);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=he*.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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=he*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=he*.1,te=.8,oe=.9;var re=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,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(ne,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 te=.1,oe=he*.1,ge=.1,re=.9,se=new go.PathFigure((ge-te)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-oe)*y,(ge-oe)*a,(re-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+oe)*a,(re-te)*y,(ge+te)*a,(re-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+oe)*y,(ge+oe)*a,(re+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,re*y,(ge-oe)*a,(re+te)*y,(ge-te)*a,(re+oe)*y)),te=.1,oe=he*.1,ge=.4,re=.9;var le=new go.PathFigure((ge-te)*a,re*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-oe)*y,(ge-oe)*a,(re-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+oe)*a,(re-te)*y,(ge+te)*a,(re-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+oe)*y,(ge+oe)*a,(re+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,re*y,(ge-oe)*a,(re+te)*y,(ge-te)*a,(re+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,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=he*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-re)*y,(se-re)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+re)*a,(le-ge)*y,(se+ge)*a,(le-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+re)*y,(se+re)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-re)*a,(le+ge)*y,(se-ge)*a,(le+re)*y));var ge=.05,re=he*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-re)*y,(se-re)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+re)*a,(le-ge)*y,(se+ge)*a,(le-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+re)*y,(se+re)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-re)*a,(le+ge)*y,(se-ge)*a,(le+re)*y));var ge=.05,re=he*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-re)*y,(se-re)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+re)*a,(le-ge)*y,(se+ge)*a,(le-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+re)*y,(se+re)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-re)*a,(le+ge)*y,(se-ge)*a,(le+re)*y));var ge=.05,re=he*.05,se=.825,le=.95,Fe=new go.PathFigure((se-ge)*a,le*y,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-re)*y,(se-re)*a,(le-ge)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+re)*a,(le-ge)*y,(se+ge)*a,(le-re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+re)*y,(se+re)*a,(le+ge)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-re)*a,(le+ge)*y,(se-ge)*a,(le+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(ne,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,te=he*.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-te)*y,(oe-te)*a,(ge-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.3,x=he*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=he*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=he*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.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=he*.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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 te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,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(ne,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 te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,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 te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,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(ne,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(ne,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 te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*he,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 te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.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(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*he,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=15,x=b*he,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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,Ke=!1,We=null,Le=!1,$e=null,he=null,et=0;et<arguments.length;et++){var Me=arguments[et];if(Me!==null)switch(typeof Me){case"number":it=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Me:We=Me;break;case"object":typeof Me.is3D!="undefined"?ae=Me:ie=Me;break;case"boolean":Ae=Me,Ke=!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&&!Ke&&(Ae=!0)),We!==null&&ie.id===void 0&&(ie.id=We);var Ie="",Re="",Je=!1,Ze=null,ne=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 te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};Be.setHTML5Codebase=function(ye,Ce){he=ye,Fn(ye,Ce)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(ye,Ce){var je=parseFloat(ye);if(je!==NaN&&je<5){console.log("The GeoGebra HTML5 codebase version "+je+" is deprecated. Using version latest instead.");return}$e=ye,wn(ye,Ce)},Be.getHTML5CodebaseVersion=function(){return ne},Be.getParameters=function(){return ie},Be.setFontsCSSURL=function(ye){z=ye},Be.setGiacJSURL=function(ye){},Be.setJNLPFile=function(ye){Ie=ye},Be.setJNLPBaseDir=function(ye){},Be.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",je=ie.id,yt,ke=!1,St=0;St<arguments.length;St++){var de=arguments[St];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:je=arguments[St]):typeof de=="boolean"?ke=de:de instanceof HTMLElement&&(yt=de)}Ye();function Ye(){if(!Le){setTimeout(Ye,200);return}Ce=yn(Ce);var xt=yt||document.getElementById(je);if(!xt){console.log("possibly bug on ajax loading? ");return}if(Be.removeExistingApplet(xt,!1),ie.width===void 0&&xt.clientWidth&&(ie.width=xt.clientWidth),ie.height===void 0&&xt.clientHeight&&(ie.height=xt.clientHeight),!(ie.width&&ie.height)&&Ce==="html5"&&(delete ie.width,delete ie.height),Ze=Ce,Ce==="screenshot")ut(xt,ie);else{var tn=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?tn=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(tn=(!oe()||ye())&&ge()),tn?(Ze="screenshot",ht(xt,ie,ke,Ce)):qe(xt,ie,ke)}}};function oe(){try{return window.self!==window.top}catch(ye){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(ye){var Ce=function(St){var de=JSON.parse(St),Ye=function(It){return It.type=="G"||It.type=="E"},xt=de.elements?de.elements.filter(Ye)[0]:de;if(!xt||!xt.url){je();return}ie.fileName=xt.url,se(xt.settings||{}),ae.is3D=!0;var tn="https://www.geogebra.org/images/";Be.setPreviewImage(E||xt.previewUrl,tn+"GeoGebra_loading.png",tn+"applet_play.png"),ye()},je=function(){ie.onError&&ie.onError(),ea("Error: Fetching material (id "+ie.material_id+") failed.",ie)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ke="/materials/"+ie.material_id+"?scope=basic";le("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(ke),Ce,je)};function se(ye){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(je){ye[je]=!!ye[je]}),Ce.forEach(function(je){ie[je]===void 0&&ye[je]!==void 0&&(ie[je]=ye[je])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function le(ye,Ce,je){var yt=new XMLHttpRequest;yt.open("GET",ye),yt.onload=function(){Ce(yt.responseText)},yt.onerror=je,yt.send()}Be.isHTML5Installed=function(){return!0},Be.getLoadedAppletType=function(){return Ze},Be.setPreviewImage=function(ye,Ce,je){E=ye,b=Ce,x=je},Be.removeExistingApplet=function(ye,Ce){var je;typeof ye=="string"&&(ye=document.getElementById(ye)),Ze=null;var yt=null;for(je=0;je<ye.childNodes.length;je++){var ke=ye.childNodes[je],St=ke.className;St==="applet_screenshot"?Ce?(ke.style.display="block",Ze="screenshot"):ke.style.display="none":St!=="applet_scaler prerender"&&(ye.removeChild(ke),yt=St&&St.indexOf("appletParameters")!=-1?ke.id:null,je--)}var de=ie.id!==void 0?ie.id:yt,Ye=window[de];Ye&&typeof Ye.getBase64=="function"&&(Ye.remove(),window[de]=null)},Be.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Be.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var ye=Be.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Be.stopAnimation=function(){var ye=Be.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Be.getAppletObject=function(){var ye=ie.id!==void 0?ie.id:"ggbApplet";return window[ye]},Be.resize=function(){};var Fe=function(ye,Ce,je){var yt=document.createElement("param");yt.setAttribute("name",Ce),yt.setAttribute("value",je),ye.appendChild(yt)},Ge=function(ye){return ye&&ye!=="false"},qe=function(ye,Ce,je){te(ne)<=4.2&&(je=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ke=document.createElement("div");ke.classList.add("appletParameters","notranslate");var St=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ne)<=4.4)Ge(Ce.showToolBar)&&(Ce.height-=7),Ge(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&Ge(Ce.showToolBar)&&(Ce.width=605,St=605);else{var Ye=100;(Ge(Ce.showToolBar)||Ge(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Ye=Ge(Ce.showMenuBar)?245:155),St<Ye&&(Ce.width=Ye,St=Ye)}ke.style.border="none",ke.style.display="inline-block";for(var xt in Ce)Ce.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&ke.setAttribute("data-param-"+xt,Ce[xt]);z&&ke.setAttribute("data-param-fontscssurl",z),Be.resize=function(){GGBAppletUtils.responsiveResize(ye,Ce)},window.addEventListener("resize",function(sn){Be.resize()});var tn=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!je&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||ke.setAttribute("data-param-showSplash","false");var It=ye.querySelector(".applet_scaler.prerender"),zn=It!==null;if(zn)var Bn=It.querySelector(".ggb_preview");else{var Bn=ct(St,de,Ce.borderColor,!1);It=document.createElement("div"),It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.style.width=St+"px",It.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(It,"66%"),te(ne)>=5?(Ce.appletOnLoad=function(sn){var Tt=ye.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(It),window.GGBT_wsf_view&&$(window).trigger("resize"),tn(sn)},zn||It.appendChild(Bn)):ke.appendChild(Bn),It.appendChild(ke),zn||ye.appendChild(It),setTimeout(function(){Be.resize()},1)}else{var kt=document.createElement("div");kt.className="applet_scaler",kt.style.position="relative",kt.style.display="block",kt.appendChild(ke),ye.appendChild(kt),Ce.appletOnLoad=function(sn){Be.resize(),tn(sn)}}function Kn(sn,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,Tt.appletOnLoad):renderGGBElement(sn),ea("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function Vn(sn,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ta){Kn(ta.article,ta.params)}),html5AppletsToProcess=null)},te(ne)<5&&(sn.className+=" geogebraweb")):Kn(sn,Tt)}if(yt){scriptLoadStarted=!0;for(var Dn=0;Dn<ke.childNodes.length;Dn++){var Tn=ke.childNodes[Dn].tagName;Tn==="TABLE"&&(ke.removeChild(ke.childNodes[Dn]),Dn--)}if(ggbHTML5LoadedScript!==null){var An=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');An!=null&&An.parentNode.removeChild(An)}var Ht=document.createElement("script"),nn=function(){Vn(ke,Ce)};Ht.src=Re+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ht.src,ea("GeoGebra HTML5 codebase loaded: '"+Re+"'.",Ce),!he&&(!$e||$e=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),nn()):Re.requirejs?__webpack_require__.e(12).then(function(){var sn=[__webpack_require__(12)];nn.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(Ht.onload=nn,ye.appendChild(Ht))}else Vn(ke,Ce);Ce.height=de,Ce.width=St},ut=function(ye,Ce,je){var yt=ct(Ce.width,Ce.height,Ce.borderColor,je),ke=document.createElement("div");ke.style.position="relative",ke.style.display="block",ke.style.width=Ce.width+"px",ke.style.height=Ce.height+"px",ke.className="applet_screenshot applet_scaler"+(je?" applet_screenshot_play":""),ke.appendChild(yt);var St=GGBAppletUtils.getScale(Ce,ye,je);je?(ye.appendChild(gt()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ke,"66%"),ye.appendChild(ke),St!==1&&!isNaN(St)&&(GGBAppletUtils.scaleElement(ke,St),ke.style.width=Ce.width+"px",ke.style.height=Ce.height+"px",ke.parentNode.style.width=Ce.width*St+"px",ke.parentNode.style.height=Ce.height*St+"px"),Be.resize=function(){Nt(ye,yt,ke,je)},window.addEventListener("resize",function(de){Be.resize()}),Be.resize()};function Nt(ye,Ce,je,yt){if(ye.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var ke=GGBAppletUtils.getScale(ie,ye,yt);je.parentNode!==null&&(!isNaN(ke)&&ke!==1?(GGBAppletUtils.scaleElement(je,ke),je.parentNode.style.width=ie.width*ke+"px",je.parentNode.style.height=ie.height*ke+"px"):(GGBAppletUtils.scaleElement(je,1),je.parentNode.style.width=ie.width+"px",je.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Be.onExitFullscreen=function(ye,Ce){Ce.appendChild(ye)};var ht=function(ye,Ce,je,yt){ut(ye,Ce,!0);for(var ke=function(){var Ye=[];for(de=0;de<ye.childNodes.length;de++)Ye.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(ye,Ce.id),tn=document.getElementById("fullscreencontainer"),It=jQuery(ye).find(".fullscreencontent");It.length>0?(xt.remove(),It.attr("id","fullscreencontent").show(),jQuery(tn).append(It),window.dispatchEvent(new Event("resize"))):qe(xt,Ce,!1),window.GGBT_wsf_view.launchFullScreen(tn)}else Ze=yt,qe(ye,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ye.length;de++)ye.removeChild(Ye[de])},St=ye.getElementsByClassName("ggb_preview_play"),de=0;de<St.length;de++)St[de].addEventListener("click",ke,!1),St[de].addEventListener("ontouchstart",ke,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},gt=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.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");}',je=document.createElement("style");je.styleSheet?je.styleSheet.cssText=Ce:je.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(je)}return ye},ct=function(ye,Ce,je,yt){var ke=document.createElement("div");ke.className="ggb_preview",ke.style.position="absolute",ke.style.zIndex="90",ke.style.width=ye-2+"px",ke.style.height=Ce-2+"px",ke.style.top="0px",ke.style.left="0px",ke.style.overflow="hidden",ke.style.backgroundColor="white";var St="lightgrey";je!==void 0&&(je==="none"?St="transparent":St=je),ke.style.border="1px solid "+St;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 Ye,xt,tn;if(!yt){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,de.style.opacity=.3,xt=360,xt>ye/4*3&&(xt=ye/4*3),tn=xt/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",xt),Ye.setAttribute("height",tn);var It=(ye-xt)/2,zn=(Ce-tn)/2;Ye.style.left=It+"px",Ye.style.top=zn+"px",ke.appendChild(Ye)}}return ke.appendChild(de),ke},yn=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},Pn=["web","webSimple","web3d","tablet","tablet3d","phone"],wn=function(ye,Ce){if(ne=ye,Ce){Fn(ne,!0);return}var je=!Ae;if(je){var yt=te(ne);!isNaN(yt)&&yt<4.4&&(je=!1)}var ke,St;window.location.protocol.substr(0,4)==="http"?ke=window.location.protocol:ke="http:";var de=ne.indexOf("//");de>0?St=ne:de===0?St=ke+ne:St="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in Pn)if(ne.slice(Pn[Ye].length*-1)===Pn[Ye]||ne.slice((Pn[Ye].length+1)*-1)===Pn[Ye]+"/"){Fn(St,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&je&&!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")?St+="webSimple/":St+="web3d/",Fn(St,!1)},Fn=function(ye,Ce){if(ye.requirejs){Re=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Re=ye,Ce===null&&(Ce=ye.indexOf("http")===-1),Je=Ce,a="web.nocache.js",y=!1;var je=Re.split("/");je.length>1&&(!Ce&&je[je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Pn.indexOf(je[je.length-2])>=0&&(a=je[je.length-2]+".nocache.js")),je=ye.split("/"),ne=je[je.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var yt=parseFloat(ne);yt!==NaN&&yt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),wn("5.0",Ce))},ea=function(ye,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(ye)};ie.material_id!==void 0?re(Xn):Xn();function Xn(){var ye=it;$e!==null?ye=$e:parseFloat(ye)<5&&(ye="5.0"),wn(ye,!1),he!==null&&Fn(he,Je),Le=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function it(Le,$e){$e!=1?(Le.style.transformOrigin="0% 0% 0px",Le.style.webkitTransformOrigin="0% 0% 0px",Le.style.transform="scale("+$e+","+$e+")",Le.style.webkitTransform="scale("+$e+","+$e+")",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,$e,he,et,Me,Ie){var Re=null;if(Ie!=null&&Ie!="")for(var Je=Le.parentNode;Je!=null;)if((" "+Je.className+" ").indexOf(" "+Ie+" ")>-1){Re=Je;break}else Je=Je.parentNode;var Ze=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(Re)Ze=Re.offsetWidth,ne=Math.max(et?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ze):(Ze=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Le){var z=Le.getBoundingClientRect();z.left>0&&z.left<=Ze&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Ze-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&&((he===void 0||!he)&&$e>0&&$e+y<Ze?Ze=$e:Ze-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he===void 0||!he)&&(ne-=x)),{width:Ze,height:ne}}function ae(Le,$e,he,et,Me){if(Le.isScreenshoGenerator)return 1;var Ie=et!==void 0&&et,Re=Le.noScaleMargin!=null&&Le.noScaleMargin,Je=function(ee){return ee&&ee!=="false"},Ze=Je(Le.autoHeight),ne=ie($e,Le.width,he,Ze,Ie&&window.GGBT_wsf_view||Re,Me),a=parseInt(ne.width),y=Le.width,E=Le.height;if(y===void 0){var b=$e.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ie?1:ne.height/E;return he!==void 0&&!he&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Ae(Le,$e,he){var et=1,Me,Ie=!1;if(Le.hasOwnProperty("allowUpscale")&&(Ie=Le.allowUpscale),Le.hasOwnProperty("scale")&&(et=parseFloat(Le.scale),(isNaN(et)||et===null||et===0)&&(et=1),et>1&&(Ie=!0)),$e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(Le.hasOwnProperty("disableAutoScale")&&Le.disableAutoScale))Me=ae(Le,$e,Ie,he,Le.scaleContainerClass);else return et;return Ie&&(!Le.hasOwnProperty("scale")||et===1)?Me:Math.min(et,Me)}function Ke(Le){var $e=Math.min(window.innerWidth,document.documentElement.clientWidth),he=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Le.getBoundingClientRect(),Me=($e-et.width)/2,Ie=(he-et.height)/2;Ie<0&&(Ie=0),Le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?Le.style.left="40px":Le.style.left=Me+"px",Le.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?Le.style.top="40px":Le.style.top=Ie+"px",Le.style.left=Me+"px")}function We(Le,$e){var he=Le.querySelector(".appletParameters");if(he){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if($e.id!==he.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}if(he.parentElement&&/fullscreen/.test(he.parentElement.className))return;var et=Ae($e,Le);Be()&&he.setAttribute("data-param-scale",et);for(var Me=null,Ie=0;Ie<Le.childNodes.length;Ie++)if(Le.childNodes[Ie].className!==void 0&&Le.childNodes[Ie].className.match(/^applet_scaler/)){Me=Le.childNodes[Ie];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var Re=$e.id!==void 0?$e.id:"ggbApplet",Je=window[Re];(Je==null||!Je.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(et)&&et!==1?(Me.parentNode.style.width=$e.width*et+"px",Me.parentNode.style.height=$e.height*et+"px",it(Me,et)):(it(Me,1),Me.parentNode.style.width=$e.width+"px",Me.parentNode.style.height=$e.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(Le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(he).parents(".content-added-content"))}}return{responsiveResize:We,isFlexibleWorksheetEditor:Be,positionCenter:Ke,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 Ke=ae[Ae];ie[Ke[O]]=Ke[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 Ke=Ae();if(Ke){ae();return}function We(){if(!Ke){if(!Ae())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,We,!1),Le&&clearInterval(Le)}}o.addEventListener&&o.addEventListener(Z,We,!1);var Le=setInterval(function(){We()},$)}function ie(ae){var Ae=u(),Ke=Ae.body,We=Ae.createElement(_);We.language=ab,We.crossOrigin=W,We.src=ae,webModule.__errFn&&(We.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(We)}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 $e=Le.lastIndexOf(rb);$e==-1&&($e=Le.length);var he=Le.indexOf(sb);he==-1&&(he=Le.length);var et=Le.lastIndexOf(tb,Math.min(he,$e));return et>=O?Le.substring(O,et+P):W}function it(Le){if(!Le.match(/^\w+:\/\//)){var $e=o.createElement(ub);$e.src=Le+vb,Le=Be($e.src)}return Le}function ie(){var Le=__gwt_getMetaProperty(wb);return Le!=null?Le:W}function ae(){for(var Le=o.getElementsByTagName(_),$e=O;$e<Le.length;++$e)if(Le[$e].src.indexOf(xb)!=-1)return Be(Le[$e].src);return W}function Ae(){var Le=o.getElementsByTagName(yb);return Le.length>O?Le[Le.length-P].href:W}function Ke(){var Le=o.location;return Le.href==Le.protocol+zb+Le.host+Le.pathname+Le.search+Le.hash}var We=ie();return We==W&&(We=ae()),We==W&&(We=Ae()),We==W&&Ke()&&(We=Be(o.location.href)),We=it(We),We}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 $e=ae[Le](),he=ie[Le];if($e in he)return $e;var et=[];for(var Me in he)et[he[Me]]=Me;throw r&&r(Le,et,$e),null}if(__gwt_isKnownPropertyValue=function(Le,$e){return $e in ie[Le]},webModule.__getPropMap=function(){var Le={};for(var $e in ie)ie.hasOwnProperty($e)&&(Le[$e]=Ae($e));return Le},webModule.__computePropValue=Ae,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var We=Ke.indexOf(Db);We!=-1&&(it=parseInt(Ke.substring(We+P),$),Ke=Ke.substring(O,We))}catch(Le){}return webModule.__softPermutationId=it,C(Ke+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 We},Ds:function(){return Le},KI:function(){return he},SI:function(){return Ke},f1:function(){return Ae}});var ae=ie(11320);function Ae(et){let Me=!0;if(et.length>0){for(let Ie=0;Ie<et.length;Ie++)if(et[Ie].compile_success==0||!et[Ie].compile_success){Me=!1;break}}else Me=!1;return Me}function Ke(et,Me=""){let Ie=[];for(let Re=0;Re<et.length;Re++){let Je=et[Re],Ze=Me?`${Me}/${Je.name}`:`${Je.name}`;Ie.push({title:Je.name,type:Je.type,isLeaf:Je.type!=="tree",key:Ze})}return Ie}function We(et,Me,Ie){for(let Re=0;Re<et.length;Re++){let Je=et[Re];if(Je.key===Me){Je.children=Ie;break}Je.children&&We(Je.children,Me,Ie)}return et}function Le(et,Me,Ie){let Re;return function(){let Je=this,Ze=arguments,ne=function(){Re=null,Ie||et.apply(Je,Ze)},a=Ie&&!Re;clearTimeout(Re),Re=setTimeout(ne,Me),a&&et.apply(Je,Ze)}}const $e=!0,he=ae.Z.API_SERVER},63205:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return Re}});var ae=ie(67294),Ae={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=ie(94184),We=ie.n(Ke),Le=ie(57953),$e=ie(15979),he=ie(33170),et=ie(28706),Me=(Je,Ze,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Je,Ze)).next())}),Re=({data:Je,className:Ze,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,re]=(0,ae.useState)(!1),[se,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Je!=null&&Je.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Je!=null&&Je.src&&Fe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Je==null?void 0:Je.visible]);const Fe=()=>Me(void 0,null,function*(){re(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ht=yield(0,et.ZJ)(Je==null?void 0:Je.src);z.current.src="",z.current.src=ht,z.current.onload=function(){Nt()},re(!1),le("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},qe=ht=>Me(void 0,null,function*(){re(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const gt=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Je.title,file:ht.dataUrl}});gt!=null&&gt.id&&!x?(yield(0,he.ZP)(`/api/attachments/${Je.id}/add_subitem.json`,{method:"post",body:{subitem_id:gt==null?void 0:gt.id,settings:JSON.stringify(ht.state)}})).status===0&&E():gt!=null&&gt.id&&E(gt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),le("")}),ut=()=>{const ht=document.querySelector('a[href="https://markerjs.com/"]');ht&&ht.parentNode&&(ht.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ct=>{const yn=document.querySelector(ct.name);yn&&yn.setAttribute("title",ct.title)})},Nt=()=>{ee.current=new $e.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",qe),ee.current.addEventListener("beforeclose",Ge),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Je!=null&&Je.snapshotData&&ee.current.restoreState(Je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ut()},300)};return ae.createElement(ae.Fragment,null,(Je==null?void 0:Je.visible)&&ae.createElement(Le.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:We()(Ae.imageDimensions,Ze,ne?Ae.fullWidth:""),style:a},ae.createElement("img",{className:Ae.img,ref:z}))))}},36527:function(Be,it,ie){"use strict";var ae=ie(67294),Ae=ie(71230),Ke=ie(15746),We=ie(36182),Le=ie(71577),$e=ie(85725),he=ie(71736),et=ie(84279),Me=ie(67294);const Ie=(0,ae.forwardRef)(({callback:Re,showSaveButton:Je,value:Ze=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(Ae.Z,{className:he.Z.lists,gutter:[10,10]},y.map((ee,te)=>Me.createElement(Ke.Z,{flex:"110px",className:he.Z.item},Me.createElement("div",null,Me.createElement($e.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:he.Z.children},ee.children.map((oe,ge)=>Me.createElement("div",{key:ge},Me.createElement("h1",null,oe.name),Me.createElement(Ae.Z,{gutter:[10,10]},oe.data.map((re,se)=>Me.createElement(Ke.Z,{key:se,onClick:()=>b(re),className:he.Z.diamond},Me.createElement($e.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Ae.Z,{className:he.Z.lists,gutter:[10,10]},E.map((ee,te)=>Me.createElement(Ke.Z,{flex:"110px",className:he.Z.item},Me.createElement("div",null,Me.createElement($e.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:he.Z.children},ee.children.map((oe,ge)=>Me.createElement("div",{key:ge},oe.name&&Me.createElement("h1",null,oe.name),Me.createElement(Ae.Z,{gutter:[10,10]},oe.data.map((re,se)=>Me.createElement(Ke.Z,{key:se,onClick:()=>b(re),className:he.Z.diamond},Me.createElement($e.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Re&&Re(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Me.createElement("div",{className:he.Z.mathWrap},Me.createElement(We.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:he.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ze||""),Je&&Me.createElement("div",{className:he.Z.button},Me.createElement(Le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=Ie},57444:function(Be,it,ie){"use strict";ie.d(it,{h:function(){return ee}});var ae=ie(67294),Ae=ie(42563),Ke=ie(91773),We=ie(71577),Le=ie(4631),$e=ie.n(Le),he=ie(71749),et=ie(30483),Me=Object.defineProperty,Ie=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Me(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Ze.call(oe,ge)&&a(te,ge,oe[ge]);if(Je)for(var ge of Je(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},E=(te,oe)=>Ie(te,Re(oe));const b=Ae.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};it.Z=({callback:te,onCancel:oe})=>{const[ge,re]=(0,ae.useState)("python");function se(Fe){re(z[Fe][1])}function le(Fe){te(Fe)}return ae.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Ae.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:se},Object.keys(z).map(Fe=>ae.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(We.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:re={}}){const se=(0,ae.useRef)(),[le,Fe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ge=function(qe){const ut=qe.getValue();oe&&oe(ut)};return le.on("change",Ge),()=>{le.off("change",Ge)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const Ge=$e().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Fe(Ge)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},35567:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return Zn}});var ae=ie(67294),Ae=ie(4631),Ke=ie.n(Ae),We=ie(91033),Le=ie(71749),$e=ie(57341),he=ie(82801),et=ie(88386),Me=ie(49047),Ie=ie(80785),Re=ie(85725),Je=({value:Se="",className:Pe,showTextOnly:ce,showLines:Oe,style:ot={}})=>{const tt=(0,ae.useMemo)(()=>"",[Se]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:tt}}))},Ze=ie(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Se,Pe,ce)=>Pe in Se?ne(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Se[Pe]=ce,ee=(Se,Pe)=>{for(var ce in Pe||(Pe={}))b.call(Pe,ce)&&z(Se,ce,Pe[ce]);if(E)for(var ce of E(Pe))x.call(Pe,ce)&&z(Se,ce,Pe[ce]);return Se},te=(Se,Pe)=>a(Se,y(Pe));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:Se,title:Pe,icon:ce,actionName:Oe,className:ot="",children:tt}){function Ot(){Se(Oe)}return Ze.createElement("a",{title:Pe,className:ot,onClick:Ot},Ze.createElement("i",{className:`${ce}`}),tt)}var re=({watch:Se,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Oe,fullScreen:ot,insertTemp:tt,hidetoolBar:Ot,extraUse:wt})=>{const Ct=[...oe,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ze.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&Ct.map((Vt,cn)=>Ze.createElement("li",{key:cn},Vt.actionName?Ze.createElement(ge,te(ee({},Vt),{onActionCallback:Oe})):Ze.createElement("span",{className:"v-line"}))),Pe?Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Oe},Ze.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?Ze.createElement(Ze.Fragment,null,Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Oe},Ze.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Oe},Ze.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tt&&Ze.createElement("li",null,Ze.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tt}`,onActionCallback:Oe},Ze.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),wt&&Ze.createElement("li",null,wt),Ze.createElement("li",{className:"btn-full-screen"},Ze.createElement(ge,{icon:`${ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Oe})))},se=ie(76621),le=ie(91773),Fe=ie(11486),Ge=ie(71577),qe=Object.defineProperty,ut=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,yn=(Se,Pe,ce)=>Pe in Se?qe(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Se[Pe]=ce,Pn=(Se,Pe)=>{for(var ce in Pe||(Pe={}))gt.call(Pe,ce)&&yn(Se,ce,Pe[ce]);if(ht)for(var ce of ht(Pe))ct.call(Pe,ce)&&yn(Se,ce,Pe[ce]);return Se},wn=(Se,Pe)=>ut(Se,Nt(Pe));const Fn={labelCol:{span:4},wrapperCol:{span:20}};var ea=({callback:Se,onCancel:Pe})=>{function ce(Oe){Se(Oe)}return ae.createElement(le.default,wn(Pn({},Fn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Fe.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Fe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Xn=ie(57444),ye=ie(70859),Ce=ie(14446),je=ie(71230),yt=ie(63205),ke=ie(67294),St=({callback:Se,onCancel:Pe})=>{const ce=document.createElement("canvas"),Oe=ce.getContext("2d");ce.width=1e3,ce.height=800,Oe.fillStyle="#ffffff",Oe.fillRect(0,0,ce.width,ce.height);const ot=ce.toDataURL("image/png");return ke.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ke.createElement(je.Z,{style:{height:"100vh"}},ke.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ot,visible:!0,title:String(Date.now())},onOk:tt=>{Se({src:tt.url})},onClose:Pe})))},de=ie(23495);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},Ye.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var Pe=1/0;Se.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),Se.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var Pe=-1/0;Se.selection.each(function(ce){if(!(ce instanceof go.Link)){var Oe=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(Oe,Pe)}}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),Se.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var Pe=1/0;Se.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),Se.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var Pe=-1/0;Se.selection.each(function(ce){if(!(ce instanceof go.Link)){var Oe=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(Oe,Pe)}}),Se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),Se.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;Se.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(ce-Oe.actualBounds.width/2,Oe.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;Se.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.actualBounds.x,ce-Oe.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(Se){var Pe=this.diagram;Pe.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var ce=new Array;Pe.selection.each(function(wt){wt instanceof go.Link||ce.push(wt)});for(var Oe=0;Oe<ce.length-1;Oe++){var ot=ce[Oe],tt=ot.actualBounds.y+ot.actualBounds.height+Se,Ot=ce[Oe+1];Ot.move(new go.Point(ot.actualBounds.x,tt))}Pe.commitTransaction("align Column")},Ye.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(wt){wt instanceof go.Link||ce.push(wt)});for(var Oe=0;Oe<ce.length-1;Oe++){var ot=ce[Oe],tt=ot.actualBounds.x+ot.actualBounds.width+Se,Ot=ce[Oe+1];Ot.move(new go.Point(tt,ot.actualBounds.y))}Pe.commitTransaction("align Row")},Ye.prototype.canRotate=function(Se){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ye.prototype.rotate=function(Se){Se===void 0&&(Se=90);var Pe=this.diagram;Pe.startTransaction("rotate "+Se.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=Se)}),Pe.commitTransaction("rotate "+Se.toString())},Ye.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var Pe=new go.Map;Se.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Oe=0;ce.parts.each(function(ot){if(!ot.isSelected){var tt=ot.zOrder;isNaN(tt)?ot.zOrder=0:Oe=Math.max(Oe,tt)}}),Pe.set(ce,Oe)}),Se.selection.each(function(ce){Ye._assignZOrder(ce,Pe.get(ce.layer)+1)}),Se.commitTransaction("pullToFront")},Ye.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var Pe=new go.Map;Se.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Oe=0;ce.parts.each(function(ot){if(!ot.isSelected){var tt=ot.zOrder;isNaN(tt)?ot.zOrder=0:Oe=Math.min(Oe,tt)}}),Pe.set(ce,Oe)}),Se.selection.each(function(ce){Ye._assignZOrder(ce,Pe.get(ce.layer)-1-Ye._findGroupDepth(ce))}),Se.commitTransaction("pushToBack")},Ye._assignZOrder=function(Se,Pe,ce){ce===void 0&&(ce=Se),Se.layer===ce.layer&&(Se.zOrder=Pe),Se instanceof go.Group&&Se.memberParts.each(function(Oe){Ye._assignZOrder(Oe,Pe+1,ce)})},Ye._findGroupDepth=function(Se){if(Se instanceof go.Group){var Pe=0;return Se.memberParts.each(function(ce){Pe=Math.max(Pe,Ye._findGroupDepth(ce))}),Pe+1}else return 0},Ye.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var Pe=Se.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)}},Ye.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(Pe){Se.push(Pe)}),this.diagram.parts.each(function(Pe){Se.push(Pe)}),Se},Ye.prototype._arrowKeyMove=function(){var Se=this.diagram,Pe=Se.lastInput,ce=0,Oe=0;if(Pe.control||Pe.meta)ce=1,Oe=1;else if(Se.grid!==null){var ot=Se.grid.gridCellSize;Oe=ot.width,ce=ot.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(tt){Pe.key==="Up"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y-ce)):Pe.key==="Down"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y+ce)):Pe.key==="Left"?tt.move(new go.Point(tt.actualBounds.x-Oe,tt.actualBounds.y)):Pe.key==="Right"&&tt.move(new go.Point(tt.actualBounds.x+Oe,tt.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},Ye.prototype._arrowKeySelect=function(){var Se=this.diagram,Pe=Se.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:Se.select(ce))},Ye.prototype._findNearestPartTowards=function(Se){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,Oe=this._getAllParts(),ot=1/0,tt=Pe,Ot=0;Ot<Oe.length;Ot++){var wt=Oe[Ot];if(wt!==Pe&&wt.canSelect()){var Ct=wt.actualBounds.center,Vt=ce.directionPoint(Ct),cn=this._angleCloseness(Vt,Se);if(cn<=45){var De=ce.distanceSquaredPoint(Ct);De*=1+Math.sin(cn*Math.PI/180),De<ot&&(ot=De,tt=wt)}}}return tt},Ye.prototype._angleCloseness=function(Se,Pe){return Math.min(Math.abs(Pe-Se),Math.min(Math.abs(Pe+360-Se),Math.abs(Pe-360-Se)))},Ye.prototype._arrowKeyTree=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe instanceof go.Node){var ce=Se.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)Se.commandHandler.canExpandTree(Pe)&&Se.commandHandler.expandTree(Pe);else{var Oe=this._sortTreeChildrenByY(Pe).first();Oe!==null&&Se.select(Oe)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)Se.commandHandler.canCollapseTree(Pe)&&Se.commandHandler.collapseTree(Pe);else{var ot=Pe.findTreeParentNode();ot!==null&&Se.select(ot)}else if(ce.key==="Up"){var ot=Pe.findTreeParentNode();if(ot!==null){var tt=this._sortTreeChildrenByY(ot),Ot=tt.indexOf(Pe);if(Ot>0){for(var wt=tt.elt(Ot-1);wt!==null&&wt.isTreeExpanded&&!wt.isTreeLeaf;){var Ct=this._sortTreeChildrenByY(wt);wt=Ct.last()}wt!==null&&Se.select(wt)}else Se.select(ot)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Oe=this._sortTreeChildrenByY(Pe).first();Oe!==null&&Se.select(Oe)}else for(;Pe!==null;){var ot=Pe.findTreeParentNode();if(ot===null)break;var tt=this._sortTreeChildrenByY(ot),Ot=tt.indexOf(Pe);if(Ot<tt.length-1){Se.select(tt.elt(Ot+1));break}else Pe=ot}var Vt=Se.selection.first();Vt!==null&&Se.scrollToRect(Vt.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(Se){var Pe=new go.List().addAll(Se.findTreeChildrenNodes());return Pe.sort(function(ce,Oe){var ot=ce.location,tt=Oe.location;return ot.y<tt.y?-1:ot.y>tt.y?1:ot.x<tt.x?-1:ot.x>tt.x?1:0}),Pe},Ye.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var xt=Ye,tn=ie(18023),It=ie(15746),zn=ie(33170),Bn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},kt=ie(67294),Kn=(Se,Pe,ce)=>new Promise((Oe,ot)=>{var tt=Ct=>{try{wt(ce.next(Ct))}catch(Vt){ot(Vt)}},Ot=Ct=>{try{wt(ce.throw(Ct))}catch(Vt){ot(Vt)}},wt=Ct=>Ct.done?Oe(Ct.value):Promise.resolve(Ct.value).then(tt,Ot);wt((ce=ce.apply(Se,Pe)).next())});function Vn({onCancel:Se,callback:Pe}){let ce=(0,ae.useRef)(),Oe=(0,ae.useRef)(),ot=(0,ae.useRef)(),tt=(0,ae.useRef)(!1);const Ot=(0,ae.useRef)(!1),[wt,Ct]=(0,ae.useState)(0);function Vt(){const De=de.bx.make,zt={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(Oe.current,{padding:20,grid:De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ee=>{var _e=Ee.diagram.commandHandler.addTopLevelParts(Ee.diagram.selection,!0);_e||Ee.diagram.currentTool.doCancel()},commandHandler:De(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ee=>{var _e=Ee.subject;_e.location=_e.location.copy().snapToGridPoint(Ee.diagram.grid.gridOrigin,Ee.diagram.grid.gridCellSize),setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ee=>{var _e=Ee.subject;setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ee=>{var _e=Ee.parameter.part;_e.invalidateConnectedLinks();var dt=Ee.subject;Ee.diagram.toolManager.linkingTool.isForwards?dt.toNode.invalidateConnectedLinks():dt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=De(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),De(de.bn,{name:"SHAPE",fill:zt.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")),De(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),De(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=De("ToolTip",De(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},De(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),De(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function dn(Ee,_e){var dt=(Xe,Gt)=>{Xe.handled=!0,Xe.diagram.model.commit(Bt=>{var _t=Gt.part.adornedPart,jt=new de.E9().setRectSpot(_t.actualBounds,Ee);jt.subtract(_t.location),jt.scale(2,2),jt.x+=Math.sign(jt.x)*130,jt.y+=Math.sign(jt.y)*130,jt.add(_t.location),jt.snapToGridPoint(Xe.diagram.grid.gridOrigin,Xe.diagram.grid.gridCellSize);var Wt=Bt.copyNodeData(_t.data);Bt.setGroupKeyForNodeData(Wt,Bt.getGroupKeyForNodeData(_t.data)),Bt.addNodeData(Wt);var Et={from:_t.key,to:Bt.getKeyForNodeData(Wt)};Bt.addLinkData(Et);var mn=Xe.diagram.findNodeForData(Wt);mn.location=jt,Xe.diagram.select(mn),setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()},20)})};return De(de.bn,{figure:_e,alignment:Ee,alignmentFocus:Ee.opposite(),width:Ee.equals(de.z6.Top)||Ee.equals(de.z6.Bottom)?25:18,height:Ee.equals(de.z6.Top)||Ee.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:zt.white,strokeWidth:4,mouseEnter:(Xe,Gt)=>Gt.fill="dodgerblue",mouseLeave:(Xe,Gt)=>Gt.fill="orange",isActionable:!0,click:dt,contextClick:dt})}function _n(Ee){return De(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:(_e,dt)=>dt.fill="dodgerblue",mouseLeave:(_e,dt)=>dt.fill="orange",click:(_e,dt)=>{_e.diagram.commandHandler.showContextMenu(dt.part.adornedPart)}},Ee||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.Vm,{padding:10}),dn(de.z6.Top,"TriangleUp"),dn(de.z6.Left,"TriangleLeft"),dn(de.z6.Right,"TriangleRight"),dn(de.z6.Bottom,"TriangleDown"),_n({alignment:new de.z6(.75,0)}));function an(Ee,_e){return(dt,Xe)=>{dt.handled=!0,dt.diagram.model.commit(Gt=>{Gt.set(Xe.part.adornedPart.data,Ee,_e)})}}function Yt(Ee,_e){return _e||(_e="color"),De(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ee,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.stroke="dodgerblue",mouseLeave:(dt,Xe)=>Xe.stroke="lightgray",click:an(_e,Ee),contextClick:an(_e,Ee)})}function Un(){return[De("ContextMenuButton",De(de.s_,"Horizontal",Yt(zt.white,"fill"),Yt(zt.beige,"fill"),Yt(zt.extralightblue,"fill"),Yt(zt.extralightred,"fill"))),De("ContextMenuButton",De(de.s_,"Horizontal",Yt(zt.lightgray,"fill"),Yt(zt.lightgreen,"fill"),Yt(zt.lightblue,"fill"),Yt(zt.lightred,"fill")))]}function na(){return[De("ContextMenuButton",De(de.s_,"Horizontal",Yt(zt.black),Yt(zt.green),Yt(zt.blue),Yt(zt.red))),De("ContextMenuButton",De(de.s_,"Horizontal",Yt(zt.white),Yt(zt.magenta),Yt(zt.purple),Yt(zt.orange)))]}function ue(Ee,_e){return _e||(_e="thickness"),De(de.bn,"LineH",{width:16,height:16,strokeWidth:Ee,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:an(_e,Ee),contextClick:an(_e,Ee)})}function ve(Ee,_e){return _e||(_e="dash"),De(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ee,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:an(_e,Ee),contextClick:an(_e,Ee)})}function pe(){return[De("ContextMenuButton",De(de.s_,"Horizontal",ue(1),ue(2),ue(3),ue(4))),De("ContextMenuButton",De(de.s_,"Horizontal",ve(null),ve([2,4]),ve([4,4])))]}function we(Ee,_e){return _e||(_e="figure"),De(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ee,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.fill="dodgerblue",mouseLeave:(dt,Xe)=>Xe.fill="lightgray",click:an(_e,Ee),contextClick:an(_e,Ee)})}ce.current.nodeTemplate.contextMenu=De("ContextMenu",De("ContextMenuButton",De(de.s_,"Horizontal",we("Rectangle"),we("RoundedRectangle"),we("Ellipse"),we("Diamond"))),De("ContextMenuButton",De(de.s_,"Horizontal",we("Parallelogram2"),we("ManualOperation"),we("Procedure"),we("Cylinder1"))),De("ContextMenuButton",De(de.s_,"Horizontal",we("Terminator"),we("CreateRequest"),we("Document"),we("TriangleDown"))),Un(),na(),pe()),ce.current.groupTemplate=De(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ee,_e)=>{var dt=_e.addMembers(_e.diagram.selection,!0);dt||_e.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),De(de.s_,"Auto",{name:"BODY"},De(de.bn,{parameter1:10,fill:zt.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")),De(de.Vm,{background:"transparent",margin:20})),De(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=De(de.uz,"Spot",De(de.s_,"Auto",De(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),De(de.Vm,{margin:1.5})),_n({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=De("ContextMenu",Un(),na(),pe()),ce.current.linkTemplate=De(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",Ee=>Ee>=1?10:0),new de.KX("toShortLength","dir",Ee=>Ee>=1?10:0),new de.KX("points").makeTwoWay(),De(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(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",Ee=>Ee===1)),De(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",Ee=>Ee>=1),new de.KX("width","thickness",Ee=>7+3*Ee),new de.KX("height","thickness",Ee=>7+3*Ee),new de.KX("segmentOffset","thickness",Ee=>new de.E9(-15,4+1.5*Ee))),De(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",Ee=>Ee===2),new de.KX("width","thickness",Ee=>7+3*Ee),new de.KX("height","thickness",Ee=>7+3*Ee),new de.KX("segmentOffset","thickness",Ee=>new de.E9(-15,4+1.5*Ee))),De(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=De(de.uz,De(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Te(2)},new de.KX("pathPattern","thickness",Te)),_n({alignmentFocus:new de.z6(0,0,-6,-4)}));function Te(Ee){return De(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ee+4).toString()+" H3"})}function xe(Ee){var _e="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ee===0?_e="M0 0 M16 16 M0 8 L16 8":Ee===2&&(_e="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),De(de.bn,{geometryString:_e,margin:2,background:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:an("dir",Ee),contextClick:an("dir",Ee)})}function Ne(Ee){var _e=(dt,Xe)=>{dt.handled=!0,dt.diagram.model.commit(Gt=>{var Bt=Xe.part.adornedPart;Gt.set(Bt.data,Ee?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ee?Bt.toNode:Bt.fromNode).invalidateConnectedLinks()})};return De(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:_e,contextClick:_e})}function me(Ee,_e){var dt=0,Xe=de.z6.RightSide;Ee.equals(de.z6.Top)?(dt=270,Xe=de.z6.TopSide):Ee.equals(de.z6.Left)?(dt=180,Xe=de.z6.LeftSide):Ee.equals(de.z6.Bottom)&&(dt=90,Xe=de.z6.BottomSide),_e||(dt-=180);var Gt=(Bt,_t)=>{Bt.handled=!0,Bt.diagram.model.commit(jt=>{var Wt=_t.part.adornedPart;jt.set(Wt.data,_e?"toSpot":"fromSpot",de.z6.stringify(Xe)),(_e?Wt.toNode:Wt.fromNode).invalidateConnectedLinks()})};return De(de.bn,{alignment:Ee,alignmentFocus:Ee.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:dt,background:"transparent",mouseEnter:(Bt,_t)=>_t.background="dodgerblue",mouseLeave:(Bt,_t)=>_t.background="transparent",click:Gt,contextClick:Gt})}ce.current.linkTemplate.contextMenu=De("ContextMenu",na(),pe(),De("ContextMenuButton",De(de.s_,"Horizontal",xe(0),xe(1),xe(2))),De("ContextMenuButton",De(de.s_,"Horizontal",De(de.s_,"Spot",Ne(!1),me(de.z6.Top,!1),me(de.z6.Left,!1),me(de.z6.Right,!1),me(de.z6.Bottom,!1)),De(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Ne(!0),me(de.z6.Top,!0),me(de.z6.Left,!0),me(de.z6.Right,!0),me(de.z6.Bottom,!0)))));const mt=`{ "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 rt=["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 st(Ee){return console.log("shapeName:",Ee),rt.indexOf(Ee)>=0}var Ft=new de.YI(ot.current,{maxSelectionCount:1,linkTemplate:De(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:De(de.uz,"Link",{locationSpot:de.z6.Center},De(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),De(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),De(de.bn,{isPanelMain:!0,strokeWidth:2}),De(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(Ee=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ee.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Ee){var _e;const dt=Ee.subject.part;var Xe=(_e=document.activeElement)==null?void 0:_e.value;typeof Xe=="string"&&Xe.trim()===""&&ce.current.model.commit(function(Gt){Gt.set(dt.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),Ft.nodeTemplate=De(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),De(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")),De(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=De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(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 cn=()=>Kn(this,null,function*(){var De=ce.current.makeImage();const zt=yield(0,zn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:De.src}});Pe({src:zt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Vt()},500),Ct(wt+1),()=>{ce.current=null}),[]),kt.createElement("div",{ref:Ot,className:tt.current?`${Bn.maxH60} body-overflow-initial`:"body-overflow-initial"},kt.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!wt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:kt.createElement(je.Z,null,kt.createElement(It.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),kt.createElement(It.Z,{onClick:()=>{var De,zt,dn=ce.current.selection.first();if(tt.current=!tt.current,document.activeElement&&dn){let _n=(zt=(De=document.activeElement)==null?void 0:De.value)==null?void 0:zt.trim();typeof _n=="string"&&ce.current.model.commit(function(an){an.set(dn.data,"text",_n||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Ct(wt+1)}},kt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},kt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Bn.flowChartWrp},kt.createElement("div",{style:{display:"flex",height:"100%"}},kt.createElement("div",{style:{width:"300px",height:"100%"}},kt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),kt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Bn.myPaletteDiv,ref:ot})),kt.createElement("div",{style:{flex:1,position:"relative"}},kt.createElement("div",{ref:Oe,style:{height:"80vh"}}))),kt.createElement("div",{className:"tr"},kt.createElement(Ge.ZP,{size:"large",onClick:cn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Dn=Vn,Tn=ie(78045),An=ie(42405);const Ht=Tn.ZP.Group,nn={margin:"0 8px"};var sn=({callback:Se,onCancel:Pe})=>{function ce(Oe){Se(Oe)}return ae.createElement(le.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:nn},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:nn},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(An.Z,null)),ae.createElement("span",{style:nn},"\u5217\u6570"),ae.createElement(le.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:nn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Ht,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}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Tt=ie(47897),ta=ie(61016),En=ie.n(ta),La=(0,ae.forwardRef)(({use3d:Se,width:Pe,height:ce,callback:Oe,showSaveButton:ot},tt)=>{const Ot=(0,ae.useRef)(),wt=(0,ae.useRef)(),[Ct,Vt]=(0,ae.useState)(!1),cn=(0,ae.useRef)({id:Ot,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)(()=>{wt.current=new(En())(cn.current,!0),window.onload=function(){wt.current.inject("applet_container")}},[]);const De=()=>{var zt=window.ggbApplet.getPNGBase64(1,!0,72);return Oe&&Oe(zt),zt};return(0,ae.useEffect)(()=>{cn.current.appName=Ct?"3D":"graphing",wt.current.inject("applet_container")},[Ct]),(0,ae.useEffect)(()=>{Vt(Se)},[Se]),(0,ae.useImperativeHandle)(tt,()=>({getImgData:De})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ot}),ae.createElement(je.Z,{align:"middle"},ae.createElement(It.Z,{flex:1},ae.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ct,onChange:zt=>Vt(zt)})),ae.createElement(It.Z,null,ae.createElement(Ge.ZP,{size:"large",onClick:De,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Pa=ie(36527),fe=ie(25934),be=ie(2453);const ze="link",Ue="upload-image",Qe="add-flowchart",ft="draw-image",pt="add-flowchart",Pt="code-block",vt="add-table",At="------------",Mt={default:At,left:`:${At}`,center:`:${At}:`,right:`${At}:`};var Ut=ie(99914),rn=(Se,Pe,ce)=>new Promise((Oe,ot)=>{var tt=Ct=>{try{wt(ce.next(Ct))}catch(Vt){ot(Vt)}},Ot=Ct=>{try{wt(ce.throw(Ct))}catch(Vt){ot(Vt)}},wt=Ct=>Ct.done?Oe(Ct.value):Promise.resolve(Ct.value).then(tt,Ot);wt((ce=ce.apply(Se,Pe)).next())});function un(){}let Qt=0;const Xt=1e4,Rt="\u2581",Ln="@\u2581\u2581@",hn="@\u2581@",fn=`
**\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`,Kt=["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 On(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const kn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xn={[kn+"-B"]:"bold",[kn+"-I"]:"italic"},Jn={[ze]:"\u6DFB\u52A0\u94FE\u63A5",[Pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ue]:"\u6DFB\u52A0\u56FE\u7247",[ft]:"\u6DFB\u52A0\u753B\u56FE",[Qe]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[vt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:Se="",onChange:Pe,width:ce="100%",height:Oe=400,miniToolbar:ot=!1,isFocus:tt=!1,watch:Ot,insertTemp:wt,mode:Ct="markdown",id:Vt="markdown-editor-id",showResizeBar:cn=!1,noStorage:De=!1,showNullButton:zt=!1,showNullProgramButton:dn=!1,hidetoolBar:_n=!1,fullScreen:an=!1,onBlur:Yt,onCMBeforeChange:Un,onFullScreen:na,className:ue="",disablePaste:ve=!1,disabled:pe=!1,disabledFill:we=!1,placeholder:Te="",values:xe="",extraUse:Ne})=>{const[me,mt]=(0,ae.useState)(null),[rt,st]=(0,ae.useState)(Se),[Ft,Ee]=(0,ae.useState)(Ot),[_e,dt]=(0,ae.useState)(an),[Xe,Gt]=(0,ae.useState)(""),[Bt,_t]=(0,ae.useState)(0),[jt,Wt]=(0,ae.useState)(Oe),[Et,mn]=(0,ae.useState)(!1),Sn=(0,ae.useRef)((0,fe.Z)()),da=(0,ae.useRef)(!1),Qn=(0,ae.useRef)(),[$n,ua]=(0,ae.useState)(0),[ha,fa]=(0,ae.useState)(0),jn=(0,ae.useRef)(),Gn=(0,ae.useRef)(),qt=(0,ae.useRef)(),aa=(0,ae.useRef)(),pa=()=>rn(void 0,null,function*(){var nt;const He=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Sn.current}});(nt=He==null?void 0:He.attachments)!=null&&nt.length&&(console.log("cm:",me,jn),He.attachments.map(Ve=>{Ve.content_type.indexOf("image")>-1?me.replaceSelection(`![,](/api/attachments/${Ve.id}?type=${Ve.content_type})`):Ve.content_type.indexOf("video")>-1?me.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ve.content_type.indexOf("pdf")>-1?me.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type}&disposition=inline" target="_blank">${Ve.name}</a>`):me.replaceSelection(`[${Ve.name}](${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type})`)}))});(0,ae.useEffect)(()=>{const nt=window.scrollY||window.pageYOffset;st(xe),me==null||me.setValue(xe),window.scrollTo(0,nt)},[xe]),(0,ae.useEffect)(()=>{na==null||na(_e)},[_e]),(0,ae.useEffect)(()=>{if(jn.current){let nt=function(Ve,at){var $t;if(ve){at.preventDefault();return}const gn=at.clipboardData;if(gn){const Cn=gn.types.toString(),pn=gn.items;if(Cn==="Files"||gn.types.indexOf("Files")>-1){if(at.preventDefault(),Ct=="stex")return;try{let bn=pn[1];(($t=pn[0])==null?void 0:$t.kind)==="file"&&(bn=pn[0]);const vn=bn.getAsFile(),qn=vn.name.split(".").pop();(0,ye.I)(vn,Rn=>{var Fa,Ba,ya;Rn.id?((Fa=vn==null?void 0:vn.type)==null?void 0:Fa.indexOf("image"))>-1?He.replaceSelection(`<img width="100%" src="/api/attachments/${Rn.id}?type=${Rn.content_type})" alt="" />`):((Ba=vn==null?void 0:vn.type)==null?void 0:Ba.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="/api/attachments/${Rn.id}"></video>`):((ya=vn==null?void 0:vn.type)==null?void 0:ya.indexOf("pdf"))>-1?He.replaceSelection(`<a href="/api/attachments/${Rn.id}?type=${vn.type}&disposition=inline" target="_blank">${vn.name}</a>`):Kt.includes(qn)?He.replaceSelection(`<a href="/api/attachments/${Rn.id}?type=office&disposition=inline" target="_blank">${vn.name}</a>`):He.replaceSelection(`[${vn.name}](/api/attachments/${Rn.id}?type=${Rn.content_type})`):(Rn==null?void 0:Rn.status)===401&&(be.ZP.warning((Rn==null?void 0:Rn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(bn){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const He=Ke().fromTextArea(jn.current,{mode:Ct,lineNumbers:!ot,lineWrapping:!0,value:Se,autoCloseTags:!dn,autoCloseBrackets:!0});return He.on("keyup",function(Ve,at){at.keyCode===8&&(Ve.getValue()==""?He.setOption("placeholder",Te):He.setOption("placeholder",null))}),He.on("keydown",function(Ve,at){if(at.keyCode===8){var $t=ma(Ve);$t&&at.preventDefault()}}),tt&&He.focus(),He.on("paste",nt),He.on("dragleave",function(Ve,at){Gn.current.classList.remove("mouse-hover-md")}),pe&&He.on("beforeChange",function(Ve,at){(at.origin==="paste"||at.origin==="+input")&&at.cancel()}),mt(He),()=>{He.off("paste",nt)}}},[]);const ca=(0,ae.useCallback)(()=>{if(Gn.current)try{}catch(nt){console.log(nt,"---- to set md editor body height")}},[jt,Gn,_e]);(0,ae.useEffect)(()=>{function nt(){let He=new We.Z(Ve=>{for(let at of Ve)(at.target.offsetHeight>0||at.target.offsetWidth>0)&&(ca(),me.setSize("100%","100%"),me.refresh())});return He.observe(jn.current.parentElement),He}if(me){const He=nt();return()=>{var Ve,at;(Ve=jn.current)!=null&&Ve.parentElement&&He.unobserve((at=jn.current)==null?void 0:at.parentElement)}}},[me,ca]),(0,ae.useEffect)(()=>{if(me){let nt=[];for(const[He,Ve]of Object.entries(xn)){let at={[He]:()=>{In(Ve)}};nt.push(at),me.addKeyMap(at)}return Qn.current=setInterval(()=>{da.current&&pa()},4e3),()=>{clearInterval(Qn.current);for(let He of nt)me.removeKeyMap(He)}}},[me]),(0,ae.useEffect)(()=>{an!==_e&&dt(an)},[an]),(0,Ut.Z)(()=>{if(!De&&Bt>0){let nt=new Date().getTime(),He=window.sessionStorage.getItem(Vt);nt>=Bt+Xt&&(!He||He!==rt)&&(window.sessionStorage.setItem(Vt,rt),mn(!0))}},Xt),(0,ae.useEffect)(()=>{Ee(Ot)},[me,Ot]),(0,ae.useEffect)(()=>{me&&tt&&me.focus()},[me,tt]),(0,ae.useEffect)(()=>{if(Ft&&me){let nt=function(Ve){let at=Ve.target;if(aa.current){let $t=at.scrollTop/at.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*$t}};const He=me.getScrollerElement();return He.addEventListener("scroll",nt),()=>{He.removeEventListener("scroll",nt)}}},[me,Ft]),(0,ae.useEffect)(()=>{if(me&&Un){let nt=function(He,Ve){Un(He,Ve)};return me.on("beforeChange",nt),()=>{me.off("beforeChange",nt)}}},[me,Un]),(0,ae.useEffect)(()=>{if(me&&Yt){let nt=function(){Yt(me.getValue())};return me.on("blur",nt),()=>{me.off("blur",nt)}}},[me,Yt]);function ma(nt,He){var Ve=nt.getDoc(),at=Ve.getCursor(),$t=Ve.getLine(at.line),gn=$t.charAt(at.ch-1),Cn=$t.lastIndexOf("@\u2581@",at.ch),pn=$t.lastIndexOf("@\u2581\u2581@",at.ch),bn=Cn>pn?Cn:pn,vn=Cn>pn?3:4;if(Ln.indexOf(gn)===-1)return null;if(console.log("change1:",He,nt,$t,at,bn,Cn,pn,gn),bn>=0&&at.ch-bn<5){var qn=bn+vn;return Ve.replaceRange("",{line:at.line,ch:bn},{line:at.line,ch:qn}),{line:at.line,ch:qn}}return null}(0,ae.useEffect)(()=>{if(me){let nt=function(He,Ve){const at=He.getValue();st(at),_t(new Date().getTime()),He.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(dn?Pe(at,ba(at)):Pe(at))};return me.on("change",nt),()=>{me.off("change",nt)}}},[me,Pe]),(0,ae.useEffect)(()=>{if(me)if(Se==null)me.setValue(""),st("");else{const nt=window.scrollY||window.pageYOffset;Se!==me.getValue()&&(me.setValue(Se),st(Se),me.setCursor(pe?1:me.lineCount(),0),window.scrollTo(0,nt))}},[me,Se]);const In=(0,ae.useCallback)(nt=>{const He=me.getCursor(),Ve=me.getSelection();let at=Ve.split(`
`);switch(nt){case"bold":return me.replaceSelection("**"+Ve+"**"),Ve===""&&me.setCursor(He.line,He.ch+2),me.focus();case"italic":return me.replaceSelection("*"+Ve+"*"),Ve===""&&me.setCursor(He.line,He.ch+1),me.focus();case"code":return me.replaceSelection("`"+Ve+"`"),Ve===""&&me.setCursor(He.line,He.ch+1),me.focus();case"inline-latex":return Gt("inline-latex"),me.focus();case"latex":return me.replaceSelection("```latex\n"+Ve+"\n```"),me.setCursor(He.line+1,Ve.length+1),me.focus();case"line-break":return me.replaceSelection(`<br/>
`),me.focus();case"list-ul":return Ve===""?me.replaceSelection("- "+Ve):me.replaceSelection(at.map($t=>$t===""?"":`- ${$t}`).join(`
`)),me.focus();case"list-ol":return Ve===""?me.replaceSelection("1. "+Ve):me.replaceSelection(at.map(($t,gn)=>$t===""?"":`${gn+1}. ${$t}`).join(`
`)),me.focus();case"add-null-ch":return Ve===""&&me.setCursor(He.line,He.ch),me.replaceSelection(Rt),me.focus();case"add-signal":return Ve===""&&me.setCursor(He.line,He.ch),me.replaceSelection(hn),me.focus();case"add-multiple":return Ve===""&&me.setCursor(He.line,He.ch),me.replaceSelection(Ln),me.focus();case"inster-template-1":return Ve===""&&me.setCursor(He.line,He.ch),me.replaceSelection(fn),me.focus();case"eraser":return me.setValue(""),me.focus();case"trigger-watch":return Ee(!Ft),me.focus();case"trigger-full-screen":return dt(!_e),me.focus();case ze:Gt(ze);return;case Pt:Gt(Pt);return;case Ue:Gt(Ue);return;case ft:Gt(ft);return;case"maths-latex":Gt("maths-latex");return;case Qe:Gt(Qe);return;case vt:Gt(vt);return;default:throw new Error}},[me,Ft,_e]),Hn=(0,ae.useCallback)((nt,He)=>{var Ve,at,$t,gn,Cn,pn;switch(Gt(""),Xe){case ze:const{title:Fa,link:Ba}=nt;return me.replaceSelection(`[${Fa}](${Ba})`),me.focus();case Pt:const{language:ya,content:bt}=nt;return me.replaceSelection(["```"+ya,bt,"```"].join(`
`)),me.focus();case"maths-latex":for(var bn=atob(nt),vn=new Uint8Array(bn.length),qn=0;qn<bn.length;qn++)vn[qn]=bn.charCodeAt(qn);var Rn=new Blob([vn],{type:"image/png"});(0,ye.I)(Rn,ia=>{ia.id?me.replaceSelection(`![,](/api/attachments/${ia.id}?type=${ia.content_type})`):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":me.replaceSelection("`$$"+nt+"$$`");break;case Ue:case ft:case pt:const{src:Dt,alt:en}=nt,lt=He,Jt=($t=(at=(Ve=lt==null?void 0:lt.name)==null?void 0:Ve.split("."))==null?void 0:at.pop)==null?void 0:$t.call(at);return((gn=lt==null?void 0:lt.type)==null?void 0:gn.indexOf("image"))>-1||!(lt!=null&&lt.type)?lt.align||lt.width?me.replaceSelection(`<p style="text-align:${lt.align||"initial"}"><img width="${lt.width?lt.width+"%":"initial"}" src="${Dt}" alt="${en||""}" /></p>`):me.replaceSelection(`<img width="100%" src="${Dt}" alt="${en||""}" />`):((Cn=lt==null?void 0:lt.type)==null?void 0:Cn.indexOf("video"))>-1?me.replaceSelection(`<video width="100%" controls src="${Dt}"></video>`):((pn=lt==null?void 0:lt.type)==null?void 0:pn.indexOf("pdf"))>-1?me.replaceSelection(`<a href="${Dt}?type=${lt.type}&disposition=inline" target="_blank">${lt.name}</a>`):Kt.includes(Jt)?me.replaceSelection(`<a href="${Dt}?type=office&disposition=inline" target="_blank">${lt.name}</a>`):me.replaceSelection(`[${lt.name}](${Dt})`),me.focus();case vt:const{row:Mn,col:sa,align:va}=nt;let ra=`
`;for(let ia=0;ia<Mn;ia++){let Ea=[],xa=[];for(let Ga=0;Ga<sa;Ga++)ia===1&&xa.push(Mt[va]),Ea.push(" ");ia===1&&(ra+=`| ${xa.join(" | ")} |
`),ra+=`| ${Ea.join(sa===1?"":" | ")} |
`}return me.replaceSelection(ra+`
`),me.focus();default:throw new Error}},[me,Xe]),Lt=(0,ae.useMemo)(()=>{switch(Xe){case ze:return ae.createElement(ea,{callback:Hn,onCancel:Zt});case Pt:return ae.createElement(Xn.Z,{callback:Hn,onCancel:Zt});case Ue:return ae.createElement(ye.Z,{callback:Hn,onCancel:Zt});case Qe:return ae.createElement(Dn,{callback:Hn,onCancel:Zt});case vt:return ae.createElement(sn,{callback:Hn,onCancel:Zt});case"maths-latex":return ae.createElement(La,{showSaveButton:!0,callback:Hn});case"inline-latex":return ae.createElement(Pa.Z,{showSaveButton:!0,callback:Hn});default:return null}},[Xe]);function Zt(){Gt("")}(0,ae.useEffect)(()=>{if(qt.current){let nt=function(Cn){$t=!0,gn=Cn.pageY},He=function(){$t=!1},Ve=function(Cn){if($t){let pn=Cn.pageY-gn;pn<0&&(pn=0),pn>300&&(pn=300);let bn=Oe+pn+"px";Wt(bn)}},at=qt.current,$t=!1,gn=0;return at.addEventListener("mousedown",nt),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",He),()=>{at.removeEventListener("mousedown",nt),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",He)}}},[me,qt]),(0,ae.useEffect)(()=>{Wt(Oe)},[Oe]);const Wn=On(ce),Nn=On(jt),la={width:Wn,height:Nn},oa=(0,ae.useMemo)(()=>{if(Bt){let nt=new Date(Bt),He=nt.getHours(),Ve=nt.getMinutes(),at=nt.getSeconds();return He=He<10?"0"+He:He,Ve=Ve<10?"0"+Ve:Ve,at=at<10?"0"+at:at,`${He}:${Ve}:${at}`}return 0},[Bt]),ba=nt=>{const He=[];if(dn){let Ve=-1;nt=nt.replace(/(@▁▁@|@▁@)/g,function(at,$t,gn){He.push({multiLine:at!==hn})})}return He};function wa(){window.sessionStorage.removeItem(Vt),mn(!1),_t(0)}function ln(){mn(!1),_t(0),me.setValue(window.sessionStorage.getItem(Vt))}(0,ae.useEffect)(()=>{Jn[Xe]&&Xe!==ft&&Xe!==Qe&&setTimeout(()=>{const nt=document.getElementsByClassName("markdown-popup-form")[0],He=window.innerWidth/2-nt.offsetWidth/2,Ve=window.innerHeight/2-nt.offsetHeight/2;ua(He),fa(Ve)},0)},[Xe]);const on=nt=>{nt.preventDefault();const He=nt.clientX-$n,Ve=nt.clientY-ha;document.body.onmousemove=at=>{let $t=at.clientX-He,gn=at.clientY-Ve;const Cn=document.getElementsByClassName("markdown-popup-form")[0],pn=window.innerWidth-Cn.offsetWidth,bn=window.innerHeight-Cn.offsetHeight;$t=Math.max(0,Math.min($t,pn)),gn=Math.max(0,Math.min(gn,bn)),ga(at.clientX,at.clientY,He,Ve)&&(ua($t),fa(gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ga=(nt,He,Ve,at)=>{const $t=document.body.clientHeight,gn=document.body.clientWidth;return nt<20&&Ve>nt||nt>gn-20&&Ve<nt||He<20&&at>He||He>$t-20&&at<He?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Gn},ae.createElement("div",{className:`markdown-editor-container ${ue} ${Ft?"on-preview":""} ${ot?"mini":""} ${_e?"full-screen":""}`,style:la},ae.createElement(re,{insertTemp:wt,watch:Ft,fullScreen:_e,showNullButton:zt,showNullProgramButton:dn,onActionCallback:In,hidetoolBar:_n,extraUse:Ne}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:jn,placeholder:Te})),Ft?ae.createElement("div",{ref:aa,className:"preview-container"},Ct==="stex"&&ae.createElement(Je,{value:rt}),Ct!=="stex"&&ae.createElement(Re.Z,{disabledFill:we,showProgramFill:dn,value:rt})):null))),cn?ae.createElement("a",{ref:qt,className:"editor-resize"}):null,Xe===ft&&ae.createElement(St,{callback:Hn,onCancel:Zt}),Xe===Qe&&ae.createElement(Dn,{callback:Hn,onCancel:Zt}),ae.createElement(se.Z,null,Jn[Xe]&&Xe!==ft&&Xe!==Qe?ae.createElement(Ce.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:ha},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:on},Jn[Xe]),open:!0,onCancel:Zt,footer:null,destroyOnClose:!0,width:Xe===Qe?"1200px":null,height:Xe===Qe?"80vh":null,className:"markdown-popup-form"},Lt):null))}},70859:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return ge},I:function(){return se}});var ae=ie(91773),Ae=ie(2453),Ke=ie(11486),We=ie(93421),Le=ie(42405),$e=ie(78045),he=ie(71577),et=ie(15476),Me=ie(67294),Ie=ie(52262),Re=ie(67294),Je=Object.defineProperty,Ze=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,Fe,Ge)=>Fe in le?Je(le,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):le[Fe]=Ge,x=(le,Fe)=>{for(var Ge in Fe||(Fe={}))y.call(Fe,Ge)&&b(le,Ge,Fe[Ge]);if(a)for(var Ge of a(Fe))E.call(Fe,Ge)&&b(le,Ge,Fe[Ge]);return le},z=(le,Fe)=>Ze(le,ne(Fe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Fe})=>{const[Ge]=ee();let qe=(0,Me.useRef)();function ut(gt){qe.current.width=Ge.getFieldValue("width"),qe.current.align=Ge.getFieldValue("align"),le(gt,qe.current)}function Nt(gt,ct){if(gt.status===-1){Ae.ZP.error(gt.message);return}Ge.setFieldsValue({src:`/api/attachments/${gt.id}`,type:ct.type})}function ht(gt){let ct=gt.target.files[0];qe.current=ct,se(ct,Nt)}return Re.createElement(ae.default,z(x({form:Ge},oe),{className:"upload-image-panel",onFinish:ut,style:{width:470,overflow:"hidden"}}),Re.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(Ke.default,{style:te})),Re.createElement(re,{onFileChange:ht}))),Re.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Re.createElement(Ke.default,{style:{width:264}})),Re.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Re.createElement(We.Z,null,Re.createElement(ae.default.Item,{name:"width",style:{margin:0}},Re.createElement(Le.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Re.createElement($e.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Re.createElement("aside",null,Re.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(he.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function re({onFileChange:le}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:le}))}function se(le,Fe){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw Ae.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",le),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var qe=new window.XMLHttpRequest;qe.withCredentials=!0,qe.addEventListener("load",function(ut){Fe(JSON.parse(ut.target.responseText),le)},!1),qe.addEventListener("error",function(ut){console.error(ut)},!1),qe.open("POST",`${et.KI}/api/attachments.json`),qe.send(Ge)}},76621:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return Ke}});var ae=ie(67294),Ae=ie(73935);class Ke extends ae.Component{constructor(Le){super(Le);const $e=window.document;this.node=$e.createElement("div"),$e.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(Ke,We){const Le=(0,ae.useRef)();(0,ae.useEffect)(()=>{Le.current=Ke}),(0,ae.useEffect)(()=>{function $e(){Le.current()}if(We!==null){let he=setInterval($e,We);return()=>clearInterval(he)}},[We])}},87494:function(Be,it,ie){"use strict";ie.r(it),ie.d(it,{default:function(){return re}});var ae=ie(67294),Ae=ie(35567),Ke=ie(2453),We=ie(11486),Le=ie(71577),$e=ie(33170),he=(se,le,Fe)=>new Promise((Ge,qe)=>{var ut=gt=>{try{ht(Fe.next(gt))}catch(ct){qe(ct)}},Nt=gt=>{try{ht(Fe.throw(gt))}catch(ct){qe(ct)}},ht=gt=>gt.done?Ge(gt.value):Promise.resolve(gt.value).then(ut,Nt);ht((Fe=Fe.apply(se,le)).next())});function et({setIscreate:se,init:le,UpdateItem:Fe}){const[Ge,qe]=(0,ae.useState)(""),[ut,Nt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{Fe&&(qe(Fe&&Fe.name),Nt(Fe&&Fe.description))},[Fe]);function ht(){return he(this,null,function*(){if(!Ge){Ke.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ut){Ke.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(Fe){gt();return}(yield(0,$e.ZP)("/api/hpc_courses.json",{method:"post",body:{name:Ge,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Ke.ZP.info("\u521B\u5EFA\u6210\u529F"),se(!1),le("add"))})}function gt(){return he(this,null,function*(){(yield(0,$e.ZP)(`/api/hpc_courses/${Fe.id}.json`,{method:"put",body:{name:Ge,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Ke.ZP.info("\u7F16\u8F91\u6210\u529F"),se(!1),le(""))})}return ae.createElement("div",null,ae.createElement(We.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:Ge,maxLength:60,addonAfter:String(Ge.length)+"/60",onChange:ct=>qe(ct.target.value)}),ae.createElement(Ae.Z,{id:"courseContentMD",defaultValue:ut,onChange:ct=>Nt(ct)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(Le.ZP,{type:"primary",onClick:()=>ht(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>se(!1)},"\u53D6\u6D88")))}var Me=et,Ie=ie(85725),Re=(se,le,Fe)=>new Promise((Ge,qe)=>{var ut=gt=>{try{ht(Fe.next(gt))}catch(ct){qe(ct)}},Nt=gt=>{try{ht(Fe.throw(gt))}catch(ct){qe(ct)}},ht=gt=>gt.done?Ge(gt.value):Promise.resolve(gt.value).then(ut,Nt);ht((Fe=Fe.apply(se,le)).next())});function Je({CourseItem:se,userId:le,init:Fe,ItemUpdate:Ge,setSee:qe,UserInfo:ut}){function Nt(){return Re(this,null,function*(){(yield(0,$e.ZP)(`/api/hpc_courses/${se.id}.json`,{method:"delete"}))&&(Ke.ZP.info("\u5220\u9664\u6210\u529F"),Fe("delete"),qe(!1))})}function ht(){Ge(se)}return ae.createElement("div",null,le===299635||le===301458||ut!=null&&ut.admin||ut!=null&&ut.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(Le.ZP,{onClick:()=>ht()},"\u7F16\u8F91"),ae.createElement(Le.ZP,{onClick:()=>Nt(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,ae.createElement("h1",null,se==null?void 0:se.name),ae.createElement(Ie.Z,{value:se==null?void 0:se.description}))}var Ze=Je,ne=ie(92421),a=ie(11320),y=ie(35973),E=Object.defineProperty,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(se,le,Fe)=>le in se?E(se,le,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):se[le]=Fe,te=(se,le)=>{for(var Fe in le||(le={}))x.call(le,Fe)&&ee(se,Fe,le[Fe]);if(b)for(var Fe of b(le))z.call(le,Fe)&&ee(se,Fe,le[Fe]);return se},oe=(se,le,Fe)=>new Promise((Ge,qe)=>{var ut=gt=>{try{ht(Fe.next(gt))}catch(ct){qe(ct)}},Nt=gt=>{try{ht(Fe.throw(gt))}catch(ct){qe(ct)}},ht=gt=>gt.done?Ge(gt.value):Promise.resolve(gt.value).then(ut,Nt);ht((Fe=Fe.apply(se,le)).next())});function ge({user:se,dispatch:le}){var Fe,Ge,qe,ut,Nt,ht,gt,ct,yn;const[Pn,wn]=(0,ae.useState)(1),[Fn,ea]=(0,ae.useState)(100),[Xn,ye]=(0,ae.useState)([]),[Ce,je]=(0,ae.useState)(!1),[yt,ke]=(0,ae.useState)(!1),[St,de]=(0,ae.useState)(""),[Ye,xt]=(0,ae.useState)(""),[tn,It]=(0,ae.useState)("");let{itemname:zn}=(0,y.useParams)();const[Bn,kt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{le({type:"globalSetting/headerToggle",payload:!1}),Pn&&Kn("")},[Pn]);function Kn(Ht){return oe(this,null,function*(){var nn,sn;const Tt=yield(0,$e.ZP)("/api/hpc_courses.json",{method:"get",params:{page:Pn,per_page:Fn,container_type:window.location.pathname.split("/")[1]}});if(Tt){let ta=Tt.data.hpc_courses.length;if(ye(Tt.data.hpc_courses),It(Tt.data.file_url),xt(""),!ta)return;if(Bn)if(Ht==="delete"){if(ta===0){ke(!1);return}de(Tt.data.hpc_courses[0]),ke(!0),kt(Tt.data.hpc_courses[0].id)}else Ht==="add"?(de(Tt.data.hpc_courses[ta-1]),ke(!0),kt(Tt.data.hpc_courses[ta-1].id)):(de(Tt.data.hpc_courses.filter(En=>En.id===Bn)[0]),ke(!0),kt(Bn));else if(zn){let En=0;(sn=(nn=Tt==null?void 0:Tt.data)==null?void 0:nn.hpc_courses)==null||sn.map((Sa,La)=>{var Pa;(zn==null?void 0:zn.toLocaleLowerCase())===((Pa=Sa==null?void 0:Sa.name)==null?void 0:Pa.toLocaleLowerCase())&&(En=La)}),de(Tt.data.hpc_courses[En]),ke(!0),kt(Tt.data.hpc_courses[En].id),(zn==null?void 0:zn.toLocaleLowerCase())==="resources"&&(de(Tt.data.hpc_courses.filter(Sa=>Sa.id===15)[0]),ke(!0),kt(15))}else de(Tt.data.hpc_courses[0]),ke(!0),kt(Tt.data.hpc_courses[0].id)}})}function Vn(Ht){je(!1),ke(!0),de(Ht),kt(Ht.id)}function Dn(Ht){xt(Ht),je(!0),ke(!1)}function Tn(){xt(""),je(!0),ke(!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(Ht){const{status:nn}=Ht.file;nn==="done"?(Ke.ZP.success(`${Ht.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Kn("")):nn==="error"&&Ke.ZP.error(`${Ht.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Ht=>{const nn=Ht.size/1024/1024<150;return nn||Ke.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),nn}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${a.Z.IMG_SERVER+`/${tn}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${tn}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Xn&&Xn.map((Ht,nn)=>ae.createElement("p",{key:nn,onClick:()=>Vn(Ht),className:Bn===Ht.id?"menuitemselect":"menuitem task-hide"},Ht.name)),((Fe=se==null?void 0:se.userInfo)==null?void 0:Fe.user_id)===299635||((Ge=se==null?void 0:se.userInfo)==null?void 0:Ge.user_id)===301458||(qe=se==null?void 0:se.userInfo)!=null&&qe.admin||(ut=se==null?void 0:se.userInfo)!=null&&ut.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"}},Ce?ae.createElement(Me,{UpdateItem:Ye,setIscreate:je,init:Kn}):null,yt?ae.createElement(Ze,{UserInfo:se==null?void 0:se.userInfo,setSee:ke,userId:(Nt=se==null?void 0:se.userInfo)==null?void 0:Nt.user_id,ItemUpdate:Dn,CourseItem:St,init:Kn}):null)),((ht=se==null?void 0:se.userInfo)==null?void 0:ht.user_id)===299635||((gt=se==null?void 0:se.userInfo)==null?void 0:gt.user_id)===301458||(ct=se==null?void 0:se.userInfo)!=null&&ct.admin||(yn=se==null?void 0:se.userInfo)!=null&&yn.business?ae.createElement(ne.default,te({},An),ae.createElement(Le.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var re=(0,y.connect)(({user:se})=>({user:se}))(ge)},57838:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return Ae}});var ae=ie(67294);function Ae(){const[,Ke]=ae.useReducer(We=>We+1,0);return Ke}},38703:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return Pa}});var ae=ie(67294),Ae=ie(23526),Ke=ie(60068),We=ie(30186),Le=ie(85846),$e=ie(94184),he=ie.n($e),et=ie(10366),Me=ie(53124),Ie=ie(87462),Re=ie(1413),Je=ie(45987),Ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var be=(0,ae.useRef)([]),ze=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ue=Date.now(),Qe=!1;be.current.forEach(function(ft){if(ft){Qe=!0;var pt=ft.style;pt.transitionDuration=".3s, .3s, .3s, .06s",ze.current&&Ue-ze.current<100&&(pt.transitionDuration="0s, 0s")}}),Qe&&(ze.current=Date.now())}),be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(be){var ze=(0,Re.Z)((0,Re.Z)({},Ze),be),Ue=ze.className,Qe=ze.percent,ft=ze.prefixCls,pt=ze.strokeColor,Pt=ze.strokeLinecap,vt=ze.strokeWidth,At=ze.style,Mt=ze.trailColor,Ut=ze.trailWidth,rn=ze.transition,un=(0,Je.Z)(ze,a);delete un.gapPosition;var Qt=Array.isArray(Qe)?Qe:[Qe],Xt=Array.isArray(pt)?pt:[pt],Rt=ne(),Ln=vt/2,hn=100-vt/2,fn="M ".concat(Pt==="round"?Ln:0,",").concat(Ln,`
L `).concat(Pt==="round"?hn:100,",").concat(Ln),Kt="0 0 100 ".concat(vt),On=0;return ae.createElement("svg",(0,Ie.Z)({className:he()("".concat(ft,"-line"),Ue),viewBox:Kt,preserveAspectRatio:"none",style:At},un),ae.createElement("path",{className:"".concat(ft,"-line-trail"),d:fn,strokeLinecap:Pt,stroke:Mt,strokeWidth:Ut||vt,fillOpacity:"0"}),Qt.map(function(Yn,kn){var xn=1;switch(Pt){case"round":xn=1-vt/100;break;case"square":xn=1-vt/2/100;break;default:xn=1;break}var Jn={strokeDasharray:"".concat(Yn*xn,"px, 100px"),strokeDashoffset:"-".concat(On,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=Xt[kn]||Xt[Xt.length-1];return On+=Yn,ae.createElement("path",{key:kn,className:"".concat(ft,"-line-path"),d:fn,strokeLinecap:Pt,stroke:Zn,strokeWidth:vt,fillOpacity:"0",ref:function(Pe){Rt[kn]=Pe},style:Jn})}))},E=y,b=ie(71002),x=ie(97685),z=ie(98924),ee=0,te=(0,z.Z)();function oe(){var fe;return te?(fe=ee,ee+=1):fe="TEST_OR_SSR",fe}var ge=function(fe){var be=ae.useState(),ze=(0,x.Z)(be,2),Ue=ze[0],Qe=ze[1];return ae.useEffect(function(){Qe("rc_progress_".concat(oe()))},[]),fe||Ue},re=function(be){var ze=be.bg,Ue=be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:ze}},Ue)};function se(fe,be){return Object.keys(fe).map(function(ze){var Ue=parseFloat(ze),Qe="".concat(Math.floor(Ue*be),"%");return"".concat(fe[ze]," ").concat(Qe)})}var le=ae.forwardRef(function(fe,be){var ze=fe.prefixCls,Ue=fe.color,Qe=fe.gradientId,ft=fe.radius,pt=fe.style,Pt=fe.ptg,vt=fe.strokeLinecap,At=fe.strokeWidth,Mt=fe.size,Ut=fe.gapDegree,rn=Ue&&(0,b.Z)(Ue)==="object",un=rn?"#FFF":void 0,Qt=Mt/2,Xt=ae.createElement("circle",{className:"".concat(ze,"-circle-path"),r:ft,cx:Qt,cy:Qt,stroke:un,strokeLinecap:vt,strokeWidth:At,opacity:Pt===0?0:1,style:pt,ref:be});if(!rn)return Xt;var Rt="".concat(Qe,"-conic"),Ln=Ut?"".concat(180+Ut/2,"deg"):"0deg",hn=se(Ue,(360-Ut)/360),fn=se(Ue,1),Kt="conic-gradient(from ".concat(Ln,", ").concat(hn.join(", "),")"),On="linear-gradient(to ".concat(Ut?"bottom":"top",", ").concat(fn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Rt},Xt),ae.createElement("foreignObject",{x:0,y:0,width:Mt,height:Mt,mask:"url(#".concat(Rt,")")},ae.createElement(re,{bg:On},ae.createElement(re,{bg:Kt}))))}),Fe=le,Ge=100,qe=function(be,ze,Ue,Qe,ft,pt,Pt,vt,At,Mt){var Ut=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=Ue/100*360*((360-pt)/360),un=pt===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],Qt=(100-Qe)/100*ze;At==="round"&&Qe!==100&&(Qt+=Mt/2,Qt>=ze&&(Qt=ze-.01));var Xt=Ge/2;return{stroke:typeof vt=="string"?vt:void 0,strokeDasharray:"".concat(ze,"px ").concat(be),strokeDashoffset:Qt+Ut,transform:"rotate(".concat(ft+rn+un,"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}},ut=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Nt(fe){var be=fe!=null?fe:[];return Array.isArray(be)?be:[be]}var ht=function(be){var ze=(0,Re.Z)((0,Re.Z)({},Ze),be),Ue=ze.id,Qe=ze.prefixCls,ft=ze.steps,pt=ze.strokeWidth,Pt=ze.trailWidth,vt=ze.gapDegree,At=vt===void 0?0:vt,Mt=ze.gapPosition,Ut=ze.trailColor,rn=ze.strokeLinecap,un=ze.style,Qt=ze.className,Xt=ze.strokeColor,Rt=ze.percent,Ln=(0,Je.Z)(ze,ut),hn=Ge/2,fn=ge(Ue),Kt="".concat(fn,"-gradient"),On=hn-pt/2,Yn=Math.PI*2*On,kn=At>0?90+At/2:-90,xn=Yn*((360-At)/360),Jn=(0,b.Z)(ft)==="object"?ft:{count:ft,space:2},Zn=Jn.count,Se=Jn.space,Pe=Nt(Rt),ce=Nt(Xt),Oe=ce.find(function(cn){return cn&&(0,b.Z)(cn)==="object"}),ot=Oe&&(0,b.Z)(Oe)==="object",tt=ot?"butt":rn,Ot=qe(Yn,xn,0,100,kn,At,Mt,Ut,tt,pt),wt=ne(),Ct=function(){var De=0;return Pe.map(function(zt,dn){var _n=ce[dn]||ce[ce.length-1],an=qe(Yn,xn,De,zt,kn,At,Mt,_n,tt,pt);return De+=zt,ae.createElement(Fe,{key:dn,color:_n,ptg:zt,radius:On,prefixCls:Qe,gradientId:Kt,style:an,strokeLinecap:tt,strokeWidth:pt,gapDegree:At,ref:function(Un){wt[dn]=Un},size:Ge})}).reverse()},Vt=function(){var De=Math.round(Zn*(Pe[0]/100)),zt=100/Zn,dn=0;return new Array(Zn).fill(null).map(function(_n,an){var Yt=an<=De-1?ce[0]:Ut,Un=Yt&&(0,b.Z)(Yt)==="object"?"url(#".concat(Kt,")"):void 0,na=qe(Yn,xn,dn,zt,kn,At,Mt,Yt,"butt",pt,Se);return dn+=(xn-na.strokeDashoffset+Se)*100/xn,ae.createElement("circle",{key:an,className:"".concat(Qe,"-circle-path"),r:On,cx:hn,cy:hn,stroke:Un,strokeWidth:pt,opacity:1,style:na,ref:function(ve){wt[an]=ve}})})};return ae.createElement("svg",(0,Ie.Z)({className:he()("".concat(Qe,"-circle"),Qt),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:un,id:Ue,role:"presentation"},Ln),!Zn&&ae.createElement("circle",{className:"".concat(Qe,"-circle-trail"),r:On,cx:hn,cy:hn,stroke:Ut,strokeLinecap:tt,strokeWidth:Pt||pt,style:Ot}),Zn?Vt():Ct())},gt=ht,ct={Line:E,Circle:gt},yn=ie(83062),Pn=ie(47448);function wn(fe){return!fe||fe<0?0:fe>100?100:fe}function Fn(fe){let{success:be,successPercent:ze}=fe,Ue=ze;return be&&"progress"in be&&(Ue=be.progress),be&&"percent"in be&&(Ue=be.percent),Ue}const ea=fe=>{let{percent:be,success:ze,successPercent:Ue}=fe;const Qe=wn(Fn({success:ze,successPercent:Ue}));return[Qe,wn(wn(be)-Qe)]},Xn=fe=>{let{success:be={},strokeColor:ze}=fe;const{strokeColor:Ue}=be;return[Ue||Pn.presetPrimaryColors.green,ze||null]},ye=(fe,be,ze)=>{var Ue,Qe,ft,pt;let Pt=-1,vt=-1;if(be==="step"){const At=ze.steps,Mt=ze.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?(Pt=fe==="small"?2:14,vt=Mt!=null?Mt:8):typeof fe=="number"?[Pt,vt]=[fe,fe]:[Pt=14,vt=8]=fe,Pt*=At}else if(be==="line"){const At=ze==null?void 0:ze.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?vt=At||(fe==="small"?6:8):typeof fe=="number"?[Pt,vt]=[fe,fe]:[Pt=-1,vt=8]=fe}else(be==="circle"||be==="dashboard")&&(typeof fe=="string"||typeof fe=="undefined"?[Pt,vt]=fe==="small"?[60,60]:[120,120]:typeof fe=="number"?[Pt,vt]=[fe,fe]:(Pt=(Qe=(Ue=fe[0])!==null&&Ue!==void 0?Ue:fe[1])!==null&&Qe!==void 0?Qe:120,vt=(pt=(ft=fe[0])!==null&&ft!==void 0?ft:fe[1])!==null&&pt!==void 0?pt:120));return[Pt,vt]},Ce=3,je=fe=>Ce/fe*100;var ke=fe=>{const{prefixCls:be,trailColor:ze=null,strokeLinecap:Ue="round",gapPosition:Qe,gapDegree:ft,width:pt=120,type:Pt,children:vt,success:At,size:Mt=pt}=fe,[Ut,rn]=ye(Mt,"circle");let{strokeWidth:un}=fe;un===void 0&&(un=Math.max(je(Ut),6));const Qt={width:Ut,height:rn,fontSize:Ut*.15+6},Xt=ae.useMemo(()=>{if(ft||ft===0)return ft;if(Pt==="dashboard")return 75},[ft,Pt]),Rt=Qe||Pt==="dashboard"&&"bottom"||void 0,Ln=Object.prototype.toString.call(fe.strokeColor)==="[object Object]",hn=Xn({success:At,strokeColor:fe.strokeColor}),fn=he()(`${be}-inner`,{[`${be}-circle-gradient`]:Ln}),Kt=ae.createElement(gt,{percent:ea(fe),strokeWidth:un,trailWidth:un,strokeColor:hn,strokeLinecap:Ue,trailColor:ze,prefixCls:be,gapDegree:Xt,gapPosition:Rt});return ae.createElement("div",{className:fn,style:Qt},Ut<=20?ae.createElement(yn.Z,{title:vt},ae.createElement("span",null,Kt)):ae.createElement(ae.Fragment,null,Kt,vt))},St=function(fe,be){var ze={};for(var Ue in fe)Object.prototype.hasOwnProperty.call(fe,Ue)&&be.indexOf(Ue)<0&&(ze[Ue]=fe[Ue]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ue=Object.getOwnPropertySymbols(fe);Qe<Ue.length;Qe++)be.indexOf(Ue[Qe])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ue[Qe])&&(ze[Ue[Qe]]=fe[Ue[Qe]]);return ze};const de=fe=>{let be=[];return Object.keys(fe).forEach(ze=>{const Ue=parseFloat(ze.replace(/%/g,""));isNaN(Ue)||be.push({key:Ue,value:fe[ze]})}),be=be.sort((ze,Ue)=>ze.key-Ue.key),be.map(ze=>{let{key:Ue,value:Qe}=ze;return`${Qe} ${Ue}%`}).join(", ")},Ye=(fe,be)=>{const{from:ze=Pn.presetPrimaryColors.blue,to:Ue=Pn.presetPrimaryColors.blue,direction:Qe=be==="rtl"?"to left":"to right"}=fe,ft=St(fe,["from","to","direction"]);if(Object.keys(ft).length!==0){const pt=de(ft);return{backgroundImage:`linear-gradient(${Qe}, ${pt})`}}return{backgroundImage:`linear-gradient(${Qe}, ${ze}, ${Ue})`}};var tn=fe=>{const{prefixCls:be,direction:ze,percent:Ue,size:Qe,strokeWidth:ft,strokeColor:pt,strokeLinecap:Pt="round",children:vt,trailColor:At=null,success:Mt}=fe,Ut=pt&&typeof pt!="string"?Ye(pt,ze):{backgroundColor:pt},rn=Pt==="square"||Pt==="butt"?0:void 0,un={backgroundColor:At||void 0,borderRadius:rn},Qt=Qe!=null?Qe:[-1,ft||(Qe==="small"?6:8)],[Xt,Rt]=ye(Qt,"line",{strokeWidth:ft}),Ln=Object.assign({width:`${wn(Ue)}%`,height:Rt,borderRadius:rn},Ut),hn=Fn(fe),fn={width:`${wn(hn)}%`,height:Rt,borderRadius:rn,backgroundColor:Mt==null?void 0:Mt.strokeColor},Kt={width:Xt<0?"100%":Xt,height:Rt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:Kt},ae.createElement("div",{className:`${be}-inner`,style:un},ae.createElement("div",{className:`${be}-bg`,style:Ln}),hn!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:fn}):null)),vt)},zn=fe=>{const{size:be,steps:ze,percent:Ue=0,strokeWidth:Qe=8,strokeColor:ft,trailColor:pt=null,prefixCls:Pt,children:vt}=fe,At=Math.round(ze*(Ue/100)),Mt=be==="small"?2:14,Ut=be!=null?be:[Mt,Qe],[rn,un]=ye(Ut,"step",{steps:ze,strokeWidth:Qe}),Qt=rn/ze,Xt=new Array(ze);for(let Rt=0;Rt<ze;Rt++){const Ln=Array.isArray(ft)?ft[Rt]:ft;Xt[Rt]=ae.createElement("div",{key:Rt,className:he()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:Rt<=At-1}),style:{backgroundColor:Rt<=At-1?Ln:pt,width:Qt,height:un}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},Xt,vt)},Bn=ie(45930),kt=ie(14747),Kn=ie(67968),Vn=ie(45503);const Dn=fe=>{const be=fe?"100%":"-100%";return new Bn.Keyframes(`antProgress${fe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Tn=fe=>{const{componentCls:be,iconCls:ze}=fe;return{[be]:Object.assign(Object.assign({},(0,kt.Wf)(fe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:fe.fontSize,marginInlineEnd:fe.marginXS,marginBottom:fe.marginXS},[`${be}-outer`]:{display:"inline-block",width:"100%"},[`&${be}-show-info`]:{[`${be}-outer`]:{marginInlineEnd:`calc(-2em - ${fe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${fe.paddingXS}px)`}},[`${be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:fe.remainingColor,borderRadius:fe.lineBorderRadius},[`${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:fe.defaultColor}},[`${be}-success-bg, ${be}-bg`]:{position:"relative",backgroundColor:fe.defaultColor,borderRadius:fe.lineBorderRadius,transition:`all ${fe.motionDurationSlow} ${fe.motionEaseInOutCirc}`},[`${be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:fe.colorSuccess},[`${be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:fe.marginXS,color:fe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ze]:{fontSize:fe.fontSize}},[`&${be}-status-active`]:{[`${be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:fe.colorBgContainer,borderRadius:fe.lineBorderRadius,opacity:0,animationName:Dn(),animationDuration:fe.progressActiveMotionDuration,animationTimingFunction:fe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:Dn(!0)}},[`&${be}-status-exception`]:{[`${be}-bg`]:{backgroundColor:fe.colorError},[`${be}-text`]:{color:fe.colorError}},[`&${be}-status-exception ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:fe.colorError}},[`&${be}-status-success`]:{[`${be}-bg`]:{backgroundColor:fe.colorSuccess},[`${be}-text`]:{color:fe.colorSuccess}},[`&${be}-status-success ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:fe.colorSuccess}}})}},An=fe=>{const{componentCls:be,iconCls:ze}=fe;return{[be]:{[`${be}-circle-trail`]:{stroke:fe.remainingColor},[`&${be}-circle ${be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${be}-circle ${be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:fe.circleTextColor,fontSize:fe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ze]:{fontSize:`${fe.fontSize/fe.fontSizeSM}em`}},[`${be}-circle&-status-exception`]:{[`${be}-text`]:{color:fe.colorError}},[`${be}-circle&-status-success`]:{[`${be}-text`]:{color:fe.colorSuccess}}},[`${be}-inline-circle`]:{lineHeight:1,[`${be}-inner`]:{verticalAlign:"bottom"}}}},Ht=fe=>{const{componentCls:be}=fe;return{[be]:{[`${be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:fe.progressStepMinWidth,marginInlineEnd:fe.progressStepMarginInlineEnd,backgroundColor:fe.remainingColor,transition:`all ${fe.motionDurationSlow}`,"&-active":{backgroundColor:fe.defaultColor}}}}}},nn=fe=>{const{componentCls:be,iconCls:ze}=fe;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${ze}`]:{fontSize:fe.fontSizeSM}}}};var sn=(0,Kn.Z)("Progress",fe=>{const be=fe.marginXXS/2,ze=(0,Vn.TS)(fe,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[Tn(ze),An(ze),Ht(ze),nn(ze)]},fe=>({circleTextColor:fe.colorText,defaultColor:fe.colorInfo,remainingColor:fe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Tt=function(fe,be){var ze={};for(var Ue in fe)Object.prototype.hasOwnProperty.call(fe,Ue)&&be.indexOf(Ue)<0&&(ze[Ue]=fe[Ue]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ue=Object.getOwnPropertySymbols(fe);Qe<Ue.length;Qe++)be.indexOf(Ue[Qe])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ue[Qe])&&(ze[Ue[Qe]]=fe[Ue[Qe]]);return ze};const ta=null,En=["normal","exception","active","success"];var La=ae.forwardRef((fe,be)=>{const{prefixCls:ze,className:Ue,rootClassName:Qe,steps:ft,strokeColor:pt,percent:Pt=0,size:vt="default",showInfo:At=!0,type:Mt="line",status:Ut,format:rn,style:un}=fe,Qt=Tt(fe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Xt=ae.useMemo(()=>{var Pe,ce;const Oe=Fn(fe);return parseInt(Oe!==void 0?(Pe=Oe!=null?Oe:0)===null||Pe===void 0?void 0:Pe.toString():(ce=Pt!=null?Pt:0)===null||ce===void 0?void 0:ce.toString(),10)},[Pt,fe.success,fe.successPercent]),Rt=ae.useMemo(()=>!En.includes(Ut)&&Xt>=100?"success":Ut||"normal",[Ut,Xt]),{getPrefixCls:Ln,direction:hn,progress:fn}=ae.useContext(Me.E_),Kt=Ln("progress",ze),[On,Yn]=sn(Kt),kn=ae.useMemo(()=>{if(!At)return null;const Pe=Fn(fe);let ce;const Oe=rn||(tt=>`${tt}%`),ot=Mt==="line";return rn||Rt!=="exception"&&Rt!=="success"?ce=Oe(wn(Pt),wn(Pe)):Rt==="exception"?ce=ot?ae.createElement(We.Z,null):ae.createElement(Le.Z,null):Rt==="success"&&(ce=ot?ae.createElement(Ae.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${Kt}-text`,title:typeof ce=="string"?ce:void 0},ce)},[At,Pt,Xt,Rt,Mt,Kt,rn]),xn=Array.isArray(pt)?pt[0]:pt,Jn=typeof pt=="string"||Array.isArray(pt)?pt:void 0;let Zn;Mt==="line"?Zn=ft?ae.createElement(zn,Object.assign({},fe,{strokeColor:Jn,prefixCls:Kt,steps:ft}),kn):ae.createElement(tn,Object.assign({},fe,{strokeColor:xn,prefixCls:Kt,direction:hn}),kn):(Mt==="circle"||Mt==="dashboard")&&(Zn=ae.createElement(ke,Object.assign({},fe,{strokeColor:xn,prefixCls:Kt,progressStatus:Rt}),kn));const Se=he()(Kt,`${Kt}-status-${Rt}`,`${Kt}-${Mt==="dashboard"&&"circle"||ft&&"steps"||Mt}`,{[`${Kt}-inline-circle`]:Mt==="circle"&&ye(vt,"circle")[0]<=20,[`${Kt}-show-info`]:At,[`${Kt}-${vt}`]:typeof vt=="string",[`${Kt}-rtl`]:hn==="rtl"},fn==null?void 0:fn.className,Ue,Qe,Yn);return On(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},fn==null?void 0:fn.style),un),className:Se,role:"progressbar","aria-valuenow":Xt},(0,et.Z)(Qt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zn))}),Pa=La},92421:function(Be,it,ie){"use strict";ie.d(it,{default:function(){return na}});var ae=ie(67294),Ae=ie(74902),Ke=ie(94184),We=ie.n(Ke),Le=ie(87462),$e=ie(15671),he=ie(43144),et=ie(60136),Me=ie(51630),Ie=ie(4942),Re=ie(45987),Je=ie(74165),Ze=ie(71002),ne=ie(15861),a=ie(64217);function y(ue,ve){var pe="cannot ".concat(ue.method," ").concat(ue.action," ").concat(ve.status,"'"),we=new Error(pe);return we.status=ve.status,we.method=ue.method,we.url=ue.action,we}function E(ue){var ve=ue.responseText||ue.response;if(!ve)return ve;try{return JSON.parse(ve)}catch(pe){return ve}}function b(ue){var ve=new XMLHttpRequest;ue.onProgress&&ve.upload&&(ve.upload.onprogress=function(xe){xe.total>0&&(xe.percent=xe.loaded/xe.total*100),ue.onProgress(xe)});var pe=new FormData;ue.data&&Object.keys(ue.data).forEach(function(Te){var xe=ue.data[Te];if(Array.isArray(xe)){xe.forEach(function(Ne){pe.append("".concat(Te,"[]"),Ne)});return}pe.append(Te,xe)}),ue.file instanceof Blob?pe.append(ue.filename,ue.file,ue.file.name):pe.append(ue.filename,ue.file),ve.onerror=function(xe){ue.onError(xe)},ve.onload=function(){return ve.status<200||ve.status>=300?ue.onError(y(ue,ve),E(ve)):ue.onSuccess(E(ve),ve)},ve.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in ve&&(ve.withCredentials=!0);var we=ue.headers||{};return we["X-Requested-With"]!==null&&ve.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(we).forEach(function(Te){we[Te]!==null&&ve.setRequestHeader(Te,we[Te])}),ve.send(pe),{abort:function(){ve.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=ie(80334),oe=function(ue,ve){if(ue&&ve){var pe=Array.isArray(ve)?ve:ve.split(","),we=ue.name||"",Te=ue.type||"",xe=Te.replace(/\/.*$/,"");return pe.some(function(Ne){var me=Ne.trim();if(/^\*(\/\*)?$/.test(Ne))return!0;if(me.charAt(0)==="."){var mt=we.toLowerCase(),rt=me.toLowerCase(),st=[rt];return(rt===".jpg"||rt===".jpeg")&&(st=[".jpg",".jpeg"]),st.some(function(Ft){return mt.endsWith(Ft)})}return/\/\*$/.test(me)?xe===me.replace(/\/.*$/,""):Te===me?!0:/^\w+$/.test(me)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(me,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,ve){var pe=ue.createReader(),we=[];function Te(){pe.readEntries(function(xe){var Ne=Array.prototype.slice.apply(xe);we=we.concat(Ne);var me=!Ne.length;me?ve(we):Te()})}Te()}var re=function(ve,pe,we){var Te=function xe(Ne,me){Ne&&(Ne.path=me||"",Ne.isFile?Ne.file(function(mt){we(mt)&&(Ne.fullPath&&!mt.webkitRelativePath&&(Object.defineProperties(mt,{webkitRelativePath:{writable:!0}}),mt.webkitRelativePath=Ne.fullPath.replace(/^\//,""),Object.defineProperties(mt,{webkitRelativePath:{writable:!1}})),pe([mt]))}):Ne.isDirectory&&ge(Ne,function(mt){mt.forEach(function(rt){xe(rt,"".concat(me).concat(Ne.name,"/"))})}))};ve.forEach(function(xe){Te(xe.webkitGetAsEntry())})},se=re,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Fe=function(ue){(0,et.Z)(pe,ue);var ve=(0,Me.Z)(pe);function pe(){var we;(0,$e.Z)(this,pe);for(var Te=arguments.length,xe=new Array(Te),Ne=0;Ne<Te;Ne++)xe[Ne]=arguments[Ne];return we=ve.call.apply(ve,[this].concat(xe)),we.state={uid:ee()},we.reqs={},we.fileInput=void 0,we._isMounted=void 0,we.onChange=function(me){var mt=we.props,rt=mt.accept,st=mt.directory,Ft=me.target.files,Ee=(0,Ae.Z)(Ft).filter(function(_e){return!st||oe(_e,rt)});we.uploadFiles(Ee),we.reset()},we.onClick=function(me){var mt=we.fileInput;if(mt){var rt=we.props,st=rt.children,Ft=rt.onClick;if(st&&st.type==="button"){var Ee=mt.parentNode;Ee.focus(),Ee.querySelector("button").blur()}mt.click(),Ft&&Ft(me)}},we.onKeyDown=function(me){me.key==="Enter"&&we.onClick(me)},we.onFileDrop=function(me){var mt=we.props.multiple;if(me.preventDefault(),me.type!=="dragover")if(we.props.directory)se(Array.prototype.slice.call(me.dataTransfer.items),we.uploadFiles,function(st){return oe(st,we.props.accept)});else{var rt=(0,Ae.Z)(me.dataTransfer.files).filter(function(st){return oe(st,we.props.accept)});mt===!1&&(rt=rt.slice(0,1)),we.uploadFiles(rt)}},we.uploadFiles=function(me){var mt=(0,Ae.Z)(me),rt=mt.map(function(st){return st.uid=ee(),we.processFile(st,mt)});Promise.all(rt).then(function(st){var Ft=we.props.onBatchStart;Ft==null||Ft(st.map(function(Ee){var _e=Ee.origin,dt=Ee.parsedFile;return{file:_e,parsedFile:dt}})),st.filter(function(Ee){return Ee.parsedFile!==null}).forEach(function(Ee){we.post(Ee)})})},we.processFile=function(){var me=(0,ne.Z)((0,Je.Z)().mark(function mt(rt,st){var Ft,Ee,_e,dt,Xe,Gt,Bt,_t,jt;return(0,Je.Z)().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(Ft=we.props.beforeUpload,Ee=rt,!Ft){Et.next=14;break}return Et.prev=3,Et.next=6,Ft(rt,st);case 6:Ee=Et.sent,Et.next=12;break;case 9:Et.prev=9,Et.t0=Et.catch(3),Ee=!1;case 12:if(Ee!==!1){Et.next=14;break}return Et.abrupt("return",{origin:rt,parsedFile:null,action:null,data:null});case 14:if(_e=we.props.action,typeof _e!="function"){Et.next=21;break}return Et.next=18,_e(rt);case 18:dt=Et.sent,Et.next=22;break;case 21:dt=_e;case 22:if(Xe=we.props.data,typeof Xe!="function"){Et.next=29;break}return Et.next=26,Xe(rt);case 26:Gt=Et.sent,Et.next=30;break;case 29:Gt=Xe;case 30:return Bt=((0,Ze.Z)(Ee)==="object"||typeof Ee=="string")&&Ee?Ee:rt,Bt instanceof File?_t=Bt:_t=new File([Bt],rt.name,{type:rt.type}),jt=_t,jt.uid=rt.uid,Et.abrupt("return",{origin:rt,data:Gt,parsedFile:jt,action:dt});case 35:case"end":return Et.stop()}},mt,null,[[3,9]])}));return function(mt,rt){return me.apply(this,arguments)}}(),we.saveFileInput=function(me){we.fileInput=me},we}return(0,he.Z)(pe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Te){var xe=this,Ne=Te.data,me=Te.origin,mt=Te.action,rt=Te.parsedFile;if(this._isMounted){var st=this.props,Ft=st.onStart,Ee=st.customRequest,_e=st.name,dt=st.headers,Xe=st.withCredentials,Gt=st.method,Bt=me.uid,_t=Ee||b,jt={action:mt,filename:_e,data:Ne,file:rt,headers:dt,withCredentials:Xe,method:Gt||"post",onProgress:function(Et){var mn=xe.props.onProgress;mn==null||mn(Et,rt)},onSuccess:function(Et,mn){var Sn=xe.props.onSuccess;Sn==null||Sn(Et,rt,mn),delete xe.reqs[Bt]},onError:function(Et,mn){var Sn=xe.props.onError;Sn==null||Sn(Et,mn,rt),delete xe.reqs[Bt]}};Ft(me),this.reqs[Bt]=_t(jt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Te){var xe=this.reqs;if(Te){var Ne=Te.uid?Te.uid:Te;xe[Ne]&&xe[Ne].abort&&xe[Ne].abort(),delete xe[Ne]}else Object.keys(xe).forEach(function(me){xe[me]&&xe[me].abort&&xe[me].abort(),delete xe[me]})}},{key:"render",value:function(){var Te,xe=this.props,Ne=xe.component,me=xe.prefixCls,mt=xe.className,rt=xe.disabled,st=xe.id,Ft=xe.style,Ee=xe.multiple,_e=xe.accept,dt=xe.capture,Xe=xe.children,Gt=xe.directory,Bt=xe.openFileDialogOnClick,_t=xe.onMouseEnter,jt=xe.onMouseLeave,Wt=(0,Re.Z)(xe,le),Et=We()((Te={},(0,Ie.Z)(Te,me,!0),(0,Ie.Z)(Te,"".concat(me,"-disabled"),rt),(0,Ie.Z)(Te,mt,mt),Te)),mn=Gt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=rt?{}:{onClick:Bt?this.onClick:function(){},onKeyDown:Bt?this.onKeyDown:function(){},onMouseEnter:_t,onMouseLeave:jt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ne,(0,Le.Z)({},Sn,{className:Et,role:"button",style:Ft}),ae.createElement("input",(0,Le.Z)({},(0,a.Z)(Wt,{aria:!0,data:!0}),{id:st,disabled:rt,type:"file",ref:this.saveFileInput,onClick:function(Qn){return Qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:_e},mn,{multiple:Ee,onChange:this.onChange},dt!=null?{capture:dt}:{})),Xe)}}]),pe}(ae.Component),Ge=Fe;function qe(){}var ut=function(ue){(0,et.Z)(pe,ue);var ve=(0,Me.Z)(pe);function pe(){var we;(0,$e.Z)(this,pe);for(var Te=arguments.length,xe=new Array(Te),Ne=0;Ne<Te;Ne++)xe[Ne]=arguments[Ne];return we=ve.call.apply(ve,[this].concat(xe)),we.uploader=void 0,we.saveUploader=function(me){we.uploader=me},we}return(0,he.Z)(pe,[{key:"abort",value:function(Te){this.uploader.abort(Te)}},{key:"render",value:function(){return ae.createElement(Ge,(0,Le.Z)({},this.props,{ref:this.saveUploader}))}}]),pe}(ae.Component);ut.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:qe,onError:qe,onSuccess:qe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Nt=ut,ht=Nt,gt=ie(5663),ct=ie(73935),yn=ie(53124),Pn=ie(98866),wn=ie(10110),Fn=ie(24457),ea={icon:function(ve,pe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pe}},{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:ve}}]}},name:"file",theme:"twotone"},Xn=ea,ye=ie(44327),Ce=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:Xn}))},je=ae.forwardRef(Ce),yt=ie(77322),ke={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"},St=ke,de=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:St}))},Ye=ae.forwardRef(de),xt={icon:function(ve,pe){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:ve}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pe}},{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:pe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pe}},{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:ve}}]}},name:"picture",theme:"twotone"},tn=xt,It=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:tn}))},zn=ae.forwardRef(It),Bn=ie(38379),kt=ie(57838),Kn=ie(33603),Vn=ie(96159),Dn=ie(71577);function Tn(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function An(ue,ve){const pe=(0,Ae.Z)(ve),we=pe.findIndex(Te=>{let{uid:xe}=Te;return xe===ue.uid});return we===-1?pe.push(ue):pe[we]=ue,pe}function Ht(ue,ve){const pe=ue.uid!==void 0?"uid":"name";return ve.filter(we=>we[pe]===ue[pe])[0]}function nn(ue,ve){const pe=ue.uid!==void 0?"uid":"name",we=ve.filter(Te=>Te[pe]!==ue[pe]);return we.length===ve.length?null:we}const sn=function(){const ve=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),we=ve[ve.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(we)||[""])[0]},Tt=ue=>ue.indexOf("image/")===0,ta=ue=>{if(ue.type&&!ue.thumbUrl)return Tt(ue.type);const ve=ue.thumbUrl||ue.url||"",pe=sn(ve);return/^data:image\//.test(ve)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pe)?!0:!(/^data:/.test(ve)||pe)},En=200;function Sa(ue){return new Promise(ve=>{if(!ue.type||!Tt(ue.type)){ve("");return}const pe=document.createElement("canvas");pe.width=En,pe.height=En,pe.style.cssText=`position: fixed; left: 0; top: 0; width: ${En}px; height: ${En}px; z-index: 9999; display: none;`,document.body.appendChild(pe);const we=pe.getContext("2d"),Te=new Image;if(Te.onload=()=>{const{width:xe,height:Ne}=Te;let me=En,mt=En,rt=0,st=0;xe>Ne?(mt=Ne*(En/xe),st=-(mt-me)/2):(me=xe*(En/Ne),rt=-(me-mt)/2),we.drawImage(Te,rt,st,me,mt);const Ft=pe.toDataURL();document.body.removeChild(pe),window.URL.revokeObjectURL(Te.src),ve(Ft)},Te.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const xe=new FileReader;xe.onload=()=>{xe.result&&(Te.src=xe.result)},xe.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const xe=new FileReader;xe.onload=()=>{xe.result&&ve(xe.result)},xe.readAsDataURL(ue)}else Te.src=window.URL.createObjectURL(ue)})}var La={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"},Pa=La,fe=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:Pa}))},be=ae.forwardRef(fe),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"},Ue=ze,Qe=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:Ue}))},ft=ae.forwardRef(Qe),pt=ie(43481),Pt=ie(38703),vt=ie(83062),Mt=ae.forwardRef((ue,ve)=>{let{prefixCls:pe,className:we,style:Te,locale:xe,listType:Ne,file:me,items:mt,progress:rt,iconRender:st,actionIconRender:Ft,itemRender:Ee,isImgUrl:_e,showPreviewIcon:dt,showRemoveIcon:Xe,showDownloadIcon:Gt,previewIcon:Bt,removeIcon:_t,downloadIcon:jt,onPreview:Wt,onDownload:Et,onClose:mn}=ue;var Sn,da;const{status:Qn}=me,[$n,ua]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ua(Qn)},[Qn]);const[ha,fa]=ae.useState(!1);ae.useEffect(()=>{const ln=setTimeout(()=>{fa(!0)},300);return()=>{clearTimeout(ln)}},[]);const jn=st(me);let Gn=ae.createElement("div",{className:`${pe}-icon`},jn);if(Ne==="picture"||Ne==="picture-card"||Ne==="picture-circle")if($n==="uploading"||!me.thumbUrl&&!me.url){const ln=We()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:$n!=="uploading"});Gn=ae.createElement("div",{className:ln},jn)}else{const ln=_e!=null&&_e(me)?ae.createElement("img",{src:me.thumbUrl||me.url,alt:me.name,className:`${pe}-list-item-image`,crossOrigin:me.crossOrigin}):jn,on=We()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:_e&&!_e(me)});Gn=ae.createElement("a",{className:on,onClick:ga=>Wt(me,ga),href:me.url||me.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ln)}const qt=We()(`${pe}-list-item`,`${pe}-list-item-${$n}`),aa=typeof me.linkProps=="string"?JSON.parse(me.linkProps):me.linkProps,pa=Xe?Ft((typeof _t=="function"?_t(me):_t)||ae.createElement(be,null),()=>mn(me),pe,xe.removeFile):null,ca=Gt&&$n==="done"?Ft((typeof jt=="function"?jt(me):jt)||ae.createElement(ft,null),()=>Et(me),pe,xe.downloadFile):null,ma=Ne!=="picture-card"&&Ne!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:We()(`${pe}-list-item-actions`,{picture:Ne==="picture"})},ca,pa),In=We()(`${pe}-list-item-name`),Hn=me.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:In,title:me.name},aa,{href:me.url,onClick:ln=>Wt(me,ln)}),me.name),ma]:[ae.createElement("span",{key:"view",className:In,onClick:ln=>Wt(me,ln),title:me.name},me.name),ma],Lt={pointerEvents:"none",opacity:.5},Zt=dt?ae.createElement("a",{href:me.url||me.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:me.url||me.thumbUrl?void 0:Lt,onClick:ln=>Wt(me,ln),title:xe.previewFile},typeof Bt=="function"?Bt(me):Bt||ae.createElement(pt.Z,null)):null,Wn=(Ne==="picture-card"||Ne==="picture-circle")&&$n!=="uploading"&&ae.createElement("span",{className:`${pe}-list-item-actions`},Zt,$n==="done"&&ca,pa),{getPrefixCls:Nn}=ae.useContext(yn.E_),la=Nn(),oa=ae.createElement("div",{className:qt},Gn,Hn,Wn,ha&&ae.createElement(Bn.default,{motionName:`${la}-fade`,visible:$n==="uploading",motionDeadline:2e3},ln=>{let{className:on}=ln;const ga="percent"in me?ae.createElement(Pt.Z,Object.assign({},rt,{type:"line",percent:me.percent,"aria-label":me["aria-label"],"aria-labelledby":me["aria-labelledby"]})):null;return ae.createElement("div",{className:We()(`${pe}-list-item-progress`,on)},ga)})),ba=me.response&&typeof me.response=="string"?me.response:((Sn=me.error)===null||Sn===void 0?void 0:Sn.statusText)||((da=me.error)===null||da===void 0?void 0:da.message)||xe.uploadError,wa=$n==="error"?ae.createElement(vt.Z,{title:ba,getPopupContainer:ln=>ln.parentNode},oa):oa;return ae.createElement("div",{className:We()(`${pe}-list-item-container`,we),style:Te,ref:ve},Ee?Ee(wa,me,mt,{download:Et.bind(null,me),preview:Wt.bind(null,me),remove:mn.bind(null,me)}):wa)});const Ut=(ue,ve)=>{const{listType:pe="text",previewFile:we=Sa,onPreview:Te,onDownload:xe,onRemove:Ne,locale:me,iconRender:mt,isImageUrl:rt=ta,prefixCls:st,items:Ft=[],showPreviewIcon:Ee=!0,showRemoveIcon:_e=!0,showDownloadIcon:dt=!1,removeIcon:Xe,previewIcon:Gt,downloadIcon:Bt,progress:_t={size:[-1,2],showInfo:!1},appendAction:jt,appendActionVisible:Wt=!0,itemRender:Et,disabled:mn}=ue,Sn=(0,kt.Z)(),[da,Qn]=ae.useState(!1);ae.useEffect(()=>{pe!=="picture"&&pe!=="picture-card"&&pe!=="picture-circle"||(Ft||[]).forEach(Lt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Lt.originFileObj instanceof File||Lt.originFileObj instanceof Blob)||Lt.thumbUrl!==void 0||(Lt.thumbUrl="",we&&we(Lt.originFileObj).then(Zt=>{Lt.thumbUrl=Zt||"",Sn()}))})},[pe,Ft,we]),ae.useEffect(()=>{Qn(!0)},[]);const $n=(Lt,Zt)=>{if(Te)return Zt==null||Zt.preventDefault(),Te(Lt)},ua=Lt=>{typeof xe=="function"?xe(Lt):Lt.url&&window.open(Lt.url)},ha=Lt=>{Ne==null||Ne(Lt)},fa=Lt=>{if(mt)return mt(Lt,pe);const Zt=Lt.status==="uploading",Wn=rt&&rt(Lt)?ae.createElement(zn,null):ae.createElement(je,null);let Nn=Zt?ae.createElement(yt.Z,null):ae.createElement(Ye,null);return pe==="picture"?Nn=Zt?ae.createElement(yt.Z,null):Wn:(pe==="picture-card"||pe==="picture-circle")&&(Nn=Zt?me.uploading:Wn),Nn},jn=(Lt,Zt,Wn,Nn)=>{const la={type:"text",size:"small",title:Nn,onClick:oa=>{Zt(),(0,Vn.l$)(Lt)&&Lt.props.onClick&&Lt.props.onClick(oa)},className:`${Wn}-list-item-action`,disabled:mn};if((0,Vn.l$)(Lt)){const oa=(0,Vn.Tm)(Lt,Object.assign(Object.assign({},Lt.props),{onClick:()=>{}}));return ae.createElement(Dn.ZP,Object.assign({},la,{icon:oa}))}return ae.createElement(Dn.ZP,Object.assign({},la),ae.createElement("span",null,Lt))};ae.useImperativeHandle(ve,()=>({handlePreview:$n,handleDownload:ua}));const{getPrefixCls:Gn}=ae.useContext(yn.E_),qt=Gn("upload",st),aa=Gn(),pa=We()(`${qt}-list`,`${qt}-list-${pe}`),ca=(0,Ae.Z)(Ft.map(Lt=>({key:Lt.uid,file:Lt})));let In={motionDeadline:2e3,motionName:`${qt}-${pe==="picture-card"||pe==="picture-circle"?"animate-inline":"animate"}`,keys:ca,motionAppear:da};const Hn=ae.useMemo(()=>{const Lt=Object.assign({},(0,Kn.Z)(aa));return delete Lt.onAppearEnd,delete Lt.onEnterEnd,delete Lt.onLeaveEnd,Lt},[aa]);return pe!=="picture-card"&&pe!=="picture-circle"&&(In=Object.assign(Object.assign({},Hn),In)),ae.createElement("div",{className:pa},ae.createElement(Bn.CSSMotionList,Object.assign({},In,{component:!1}),Lt=>{let{key:Zt,file:Wn,className:Nn,style:la}=Lt;return ae.createElement(Mt,{key:Zt,locale:me,prefixCls:qt,className:Nn,style:la,file:Wn,items:Ft,progress:_t,listType:pe,isImgUrl:rt,showPreviewIcon:Ee,showRemoveIcon:_e,showDownloadIcon:dt,removeIcon:Xe,previewIcon:Gt,downloadIcon:Bt,iconRender:fa,actionIconRender:jn,itemRender:Et,onPreview:$n,onDownload:ua,onClose:ha})}),jt&&ae.createElement(Bn.default,Object.assign({},In,{visible:Wt,forceRender:!0}),Lt=>{let{className:Zt,style:Wn}=Lt;return(0,Vn.Tm)(jt,Nn=>({className:We()(Nn.className,Zt),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Zt?"none":void 0}),Nn.style)}))}))};var un=ae.forwardRef(Ut),Qt=ie(14747),Xt=ie(33507),Rt=ie(67968),Ln=ie(45503),fn=ue=>{const{componentCls:ve,iconCls:pe}=ue;return{[`${ve}-wrapper`]:{[`${ve}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[ve]:{padding:`${ue.padding}px 0`},[`${ve}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ve}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ve}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${ve}-drag-icon`]:{marginBottom:ue.margin,[pe]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${ve}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${ve}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${ve}-disabled`]:{cursor:"not-allowed",[`p${ve}-drag-icon ${pe},
p${ve}-text,
p${ve}-hint
`]:{color:ue.colorTextDisabled}}}}}},On=ue=>{const{componentCls:ve,antCls:pe,iconCls:we,fontSize:Te,lineHeight:xe}=ue,Ne=`${ve}-list-item`,me=`${Ne}-actions`,mt=`${Ne}-action`,rt=Math.round(Te*xe);return{[`${ve}-wrapper`]:{[`${ve}-list`]:Object.assign(Object.assign({},(0,Qt.dF)()),{lineHeight:ue.lineHeight,[Ne]:{position:"relative",height:ue.lineHeight*Te,marginTop:ue.marginXS,fontSize:Te,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Ne}-name`]:Object.assign(Object.assign({},Qt.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:xe,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[me]:{[mt]:{opacity:0},[`${mt}${pe}-btn-sm`]:{height:rt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${mt}:focus-visible,
&.picture ${mt}
`]:{opacity:1},[we]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${we}`]:{color:ue.colorText}},[`${ve}-icon ${we}`]:{color:ue.colorTextDescription,fontSize:Te},[`${Ne}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:Te+ue.paddingXS,fontSize:Te,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ne}:hover ${mt}`]:{opacity:1,color:ue.colorText},[`${Ne}-error`]:{color:ue.colorError,[`${Ne}-name, ${ve}-icon ${we}`]:{color:ue.colorError},[me]:{[`${we}, ${we}:hover`]:{color:ue.colorError},[mt]:{opacity:1}}},[`${ve}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Yn=ie(45930),kn=ie(16932);const xn=new Yn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new Yn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Se=ue=>{const{componentCls:ve}=ue,pe=`${ve}-animate-inline`;return[{[`${ve}-wrapper`]:{[`${pe}-appear, ${pe}-enter, ${pe}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pe}-appear, ${pe}-enter`]:{animationName:xn},[`${pe}-leave`]:{animationName:Jn}}},{[`${ve}-wrapper`]:(0,kn.J$)(ue)},xn,Jn]},Pe=ie(47448),ce=ie(84780);const Oe=ue=>{const{componentCls:ve,iconCls:pe,uploadThumbnailSize:we,uploadProgressOffset:Te}=ue,xe=`${ve}-list`,Ne=`${xe}-item`;return{[`${ve}-wrapper`]:{[`
${xe}${xe}-picture,
${xe}${xe}-picture-card,
${xe}${xe}-picture-circle
`]:{[Ne]:{position:"relative",height:we+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ne}-thumbnail`]:Object.assign(Object.assign({},Qt.vS),{width:we,height:we,lineHeight:`${we+ue.paddingSM}px`,textAlign:"center",flex:"none",[pe]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ne}-progress`]:{bottom:Te,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:we+ue.paddingXS}},[`${Ne}-error`]:{borderColor:ue.colorError,[`${Ne}-thumbnail ${pe}`]:{[`svg path[fill='${Pe.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${Pe.blue.primary}']`]:{fill:ue.colorError}}},[`${Ne}-uploading`]:{borderStyle:"dashed",[`${Ne}-name`]:{marginBottom:Te}}},[`${xe}${xe}-picture-circle ${Ne}`]:{[`&, &::before, ${Ne}-thumbnail`]:{borderRadius:"50%"}}}}},ot=ue=>{const{componentCls:ve,iconCls:pe,fontSizeLG:we,colorTextLightSolid:Te}=ue,xe=`${ve}-list`,Ne=`${xe}-item`,me=ue.uploadPicCardSize;return{[`
${ve}-wrapper${ve}-picture-card-wrapper,
${ve}-wrapper${ve}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Qt.dF)()),{display:"inline-block",width:"100%",[`${ve}${ve}-select`]:{width:me,height:me,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${ve}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ve}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${xe}${xe}-picture-card, ${xe}${xe}-picture-circle`]:{[`${xe}-item-container`]:{display:"inline-block",width:me,height:me,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ne]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Ne}:hover`]:{[`&::before, ${Ne}-actions`]:{opacity:1}},[`${Ne}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{zIndex:10,width:we,margin:`0 ${ue.marginXXS}px`,fontSize:we,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ne}-actions, ${Ne}-actions:hover`]:{[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{color:new ce.C(Te).setAlpha(.65).toRgbString(),"&:hover":{color:Te}}},[`${Ne}-thumbnail, ${Ne}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ne}-name`]:{display:"none",textAlign:"center"},[`${Ne}-file + ${Ne}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Ne}-uploading`]:{[`&${Ne}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${pe}-eye, ${pe}-download, ${pe}-delete`]:{display:"none"}},[`${Ne}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ve}-wrapper${ve}-picture-circle-wrapper`]:{[`${ve}${ve}-select`]:{borderRadius:"50%"}}}};var Ot=ue=>{const{componentCls:ve}=ue;return{[`${ve}-rtl`]:{direction:"rtl"}}};const wt=ue=>{const{componentCls:ve,colorTextDisabled:pe}=ue;return{[`${ve}-wrapper`]:Object.assign(Object.assign({},(0,Qt.Wf)(ue)),{[ve]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ve}-select`]:{display:"inline-block"},[`${ve}-disabled`]:{color:pe,cursor:"not-allowed"}})}};var Ct=(0,Rt.Z)("Upload",ue=>{const{fontSizeHeading3:ve,fontSize:pe,lineHeight:we,lineWidth:Te,controlHeightLG:xe}=ue,Ne=Math.round(pe*we),me=(0,Ln.TS)(ue,{uploadThumbnailSize:ve*2,uploadProgressOffset:Ne/2+Te,uploadPicCardSize:xe*2.55});return[wt(me),fn(me),Oe(me),ot(me),On(me),Se(me),Ot(me),(0,Xt.Z)(me)]},ue=>({actionsColor:ue.colorTextDescription})),Vt=function(ue,ve,pe,we){function Te(xe){return xe instanceof pe?xe:new pe(function(Ne){Ne(xe)})}return new(pe||(pe=Promise))(function(xe,Ne){function me(st){try{rt(we.next(st))}catch(Ft){Ne(Ft)}}function mt(st){try{rt(we.throw(st))}catch(Ft){Ne(Ft)}}function rt(st){st.done?xe(st.value):Te(st.value).then(me,mt)}rt((we=we.apply(ue,ve||[])).next())})};const cn=`__LIST_IGNORE_${Date.now()}__`,De=(ue,ve)=>{const{fileList:pe,defaultFileList:we,onRemove:Te,showUploadList:xe=!0,listType:Ne="text",onPreview:me,onDownload:mt,onChange:rt,onDrop:st,previewFile:Ft,disabled:Ee,locale:_e,iconRender:dt,isImageUrl:Xe,progress:Gt,prefixCls:Bt,className:_t,type:jt="select",children:Wt,style:Et,itemRender:mn,maxCount:Sn,data:da={},multiple:Qn=!1,action:$n="",accept:ua="",supportServerRender:ha=!0,rootClassName:fa}=ue,jn=ae.useContext(Pn.Z),Gn=Ee!=null?Ee:jn,[qt,aa]=(0,gt.Z)(we||[],{value:pe,postState:bt=>bt!=null?bt:[]}),[pa,ca]=ae.useState("drop"),ma=ae.useRef(null);ae.useMemo(()=>{const bt=Date.now();(pe||[]).forEach((Dt,en)=>{!Dt.uid&&!Object.isFrozen(Dt)&&(Dt.uid=`__AUTO__${bt}_${en}__`)})},[pe]);const In=(bt,Dt,en)=>{let lt=(0,Ae.Z)(Dt),Jt=!1;Sn===1?lt=lt.slice(-1):Sn&&(Jt=lt.length>Sn,lt=lt.slice(0,Sn)),(0,ct.flushSync)(()=>{aa(lt)});const Mn={file:bt,fileList:lt};en&&(Mn.event=en),(!Jt||lt.some(sa=>sa.uid===bt.uid))&&(0,ct.flushSync)(()=>{rt==null||rt(Mn)})},Hn=(bt,Dt)=>Vt(void 0,void 0,void 0,function*(){const{beforeUpload:en,transformFile:lt}=ue;let Jt=bt;if(en){const Mn=yield en(bt,Dt);if(Mn===!1)return!1;if(delete bt[cn],Mn===cn)return Object.defineProperty(bt,cn,{value:!0,configurable:!0}),!1;typeof Mn=="object"&&Mn&&(Jt=Mn)}return lt&&(Jt=yield lt(Jt)),Jt}),Lt=bt=>{const Dt=bt.filter(Jt=>!Jt.file[cn]);if(!Dt.length)return;const en=Dt.map(Jt=>Tn(Jt.file));let lt=(0,Ae.Z)(qt);en.forEach(Jt=>{lt=An(Jt,lt)}),en.forEach((Jt,Mn)=>{let sa=Jt;if(Dt[Mn].parsedFile)Jt.status="uploading";else{const{originFileObj:va}=Jt;let ra;try{ra=new File([va],va.name,{type:va.type})}catch(ia){ra=new Blob([va],{type:va.type}),ra.name=va.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=Jt.uid,sa=ra}In(sa,lt)})},Zt=(bt,Dt,en)=>{try{typeof bt=="string"&&(bt=JSON.parse(bt))}catch(Mn){}if(!Ht(Dt,qt))return;const lt=Tn(Dt);lt.status="done",lt.percent=100,lt.response=bt,lt.xhr=en;const Jt=An(lt,qt);In(lt,Jt)},Wn=(bt,Dt)=>{if(!Ht(Dt,qt))return;const en=Tn(Dt);en.status="uploading",en.percent=bt.percent;const lt=An(en,qt);In(en,lt,bt)},Nn=(bt,Dt,en)=>{if(!Ht(en,qt))return;const lt=Tn(en);lt.error=bt,lt.response=Dt,lt.status="error";const Jt=An(lt,qt);In(lt,Jt)},la=bt=>{let Dt;Promise.resolve(typeof Te=="function"?Te(bt):Te).then(en=>{var lt;if(en===!1)return;const Jt=nn(bt,qt);Jt&&(Dt=Object.assign(Object.assign({},bt),{status:"removed"}),qt==null||qt.forEach(Mn=>{const sa=Dt.uid!==void 0?"uid":"name";Mn[sa]===Dt[sa]&&!Object.isFrozen(Mn)&&(Mn.status="removed")}),(lt=ma.current)===null||lt===void 0||lt.abort(Dt),In(Dt,Jt))})},oa=bt=>{ca(bt.type),bt.type==="drop"&&(st==null||st(bt))};ae.useImperativeHandle(ve,()=>({onBatchStart:Lt,onSuccess:Zt,onProgress:Wn,onError:Nn,fileList:qt,upload:ma.current}));const{getPrefixCls:ba,direction:wa,upload:ln}=ae.useContext(yn.E_),on=ba("upload",Bt),ga=Object.assign(Object.assign({onBatchStart:Lt,onError:Nn,onProgress:Wn,onSuccess:Zt},ue),{data:da,multiple:Qn,action:$n,accept:ua,supportServerRender:ha,prefixCls:on,disabled:Gn,beforeUpload:Hn,onChange:void 0});delete ga.className,delete ga.style,(!Wt||Gn)&&delete ga.id;const[nt,He]=Ct(on),[Ve]=(0,wn.Z)("Upload",Fn.Z.Upload),{showRemoveIcon:at,showPreviewIcon:$t,showDownloadIcon:gn,removeIcon:Cn,previewIcon:pn,downloadIcon:bn}=typeof xe=="boolean"?{}:xe,vn=(bt,Dt)=>xe?ae.createElement(un,{prefixCls:on,listType:Ne,items:qt,previewFile:Ft,onPreview:me,onDownload:mt,onRemove:la,showRemoveIcon:!Gn&&at,showPreviewIcon:$t,showDownloadIcon:gn,removeIcon:Cn,previewIcon:pn,downloadIcon:bn,iconRender:dt,locale:Object.assign(Object.assign({},Ve),_e),isImageUrl:Xe,progress:Gt,appendAction:bt,appendActionVisible:Dt,itemRender:mn,disabled:Gn}):bt,qn=We()(`${on}-wrapper`,_t,fa,He,ln==null?void 0:ln.className,{[`${on}-rtl`]:wa==="rtl",[`${on}-picture-card-wrapper`]:Ne==="picture-card",[`${on}-picture-circle-wrapper`]:Ne==="picture-circle"}),Rn=Object.assign(Object.assign({},ln==null?void 0:ln.style),Et);if(jt==="drag"){const bt=We()(He,on,`${on}-drag`,{[`${on}-drag-uploading`]:qt.some(Dt=>Dt.status==="uploading"),[`${on}-drag-hover`]:pa==="dragover",[`${on}-disabled`]:Gn,[`${on}-rtl`]:wa==="rtl"});return nt(ae.createElement("span",{className:qn},ae.createElement("div",{className:bt,style:Rn,onDrop:oa,onDragOver:oa,onDragLeave:oa},ae.createElement(ht,Object.assign({},ga,{ref:ma,className:`${on}-btn`}),ae.createElement("div",{className:`${on}-drag-container`},Wt))),vn()))}const Fa=We()(on,`${on}-select`,{[`${on}-disabled`]:Gn}),ya=(bt=>ae.createElement("div",{className:Fa,style:bt},ae.createElement(ht,Object.assign({},ga,{ref:ma}))))(Wt?void 0:{display:"none"});return nt(Ne==="picture-card"||Ne==="picture-circle"?ae.createElement("span",{className:qn},vn(ya,!!Wt)):ae.createElement("span",{className:qn},ya,vn()))};var dn=ae.forwardRef(De),_n=function(ue,ve){var pe={};for(var we in ue)Object.prototype.hasOwnProperty.call(ue,we)&&ve.indexOf(we)<0&&(pe[we]=ue[we]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,we=Object.getOwnPropertySymbols(ue);Te<we.length;Te++)ve.indexOf(we[Te])<0&&Object.prototype.propertyIsEnumerable.call(ue,we[Te])&&(pe[we[Te]]=ue[we[Te]]);return pe},Yt=ae.forwardRef((ue,ve)=>{var{style:pe,height:we}=ue,Te=_n(ue,["style","height"]);return ae.createElement(dn,Object.assign({ref:ve},Te,{type:"drag",style:Object.assign(Object.assign({},pe),{height:we})}))});const Un=dn;Un.Dragger=Yt,Un.LIST_IGNORE=cn;var na=Un},64217:function(Be,it,ie){"use strict";ie.d(it,{Z:function(){return et}});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`,Ke=`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`,We="".concat(Ae," ").concat(Ke).split(/[\s\n]+/),Le="aria-",$e="data-";function he(Me,Ie){return Me.indexOf(Ie)===0}function et(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re;Ie===!1?Re={aria:!0,data:!0,attr:!0}:Ie===!0?Re={aria:!0}:Re=(0,ae.Z)({},Ie);var Je={};return Object.keys(Me).forEach(function(Ze){(Re.aria&&(Ze==="role"||he(Ze,Le))||Re.data&&he(Ze,$e)||Re.attr&&We.includes(Ze))&&(Je[Ze]=Me[Ze])}),Je}}}]);